diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 28d78915a553..3249407e8626 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4095,7 +4095,7 @@ packages: dependencies: semver: 7.3.7 shelljs: 0.8.5 - typescript: 4.9.0-dev.20220829 + typescript: 4.9.0-dev.20220831 dev: false /downlevel-dts/0.4.0: @@ -9098,8 +9098,8 @@ packages: hasBin: true dev: false - /typescript/4.9.0-dev.20220829: - resolution: {integrity: sha512-JPUwN18SBzfknl8eLExxWrNo8H98PrZMQdNTXRFYlQFv6qg56e3H/gaJn8Bmo2xz6L1vADwzbMHIp4PAWjskQw==} + /typescript/4.9.0-dev.20220831: + resolution: {integrity: sha512-FXVLQI/P9R7uT/I0ODGrIPmV9uDlQXufoe+RUcvZOvTtLzk2Kd1H9rr+e3l6hiSho6ikrnvews2LWF5AulwO/w==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -14721,7 +14721,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-zR3IeH9PKKdyMB6ZAI4ofVQfVUdISHmUNqKefMrtICfI+pYrDFlSPJABRaZ6XP73acXZZgVzZddbVAElt0jd8g==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-uL/PEQ10xFzOhgnYk/yqGjQ32JTGxBWT9WtHLhR6RsiPngHv7ecYNkXDWhVjrn/513JJ3sCaJW56kUKC5vGf2A==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -14733,6 +14733,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.77.2 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.77.2 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.77.2 + '@types/chai': 4.3.1 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -14744,7 +14746,6 @@ packages: uglify-js: 3.16.3 transitivePeerDependencies: - '@types/node' - - encoding - supports-color dev: false diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index b9cbe67eed19..13bb1d62f177 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,15 +1,298 @@ # Release History + +## 10.0.0-beta.1 (2022-08-31) + +**Features** -## 9.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group DatabaseAdvancedThreatProtectionSettings + - Added operation group DistributedAvailabilityGroups + - Added operation group EndpointCertificates + - Added operation group IPv6FirewallRules + - Added operation group ManagedDatabaseAdvancedThreatProtectionSettings + - Added operation group ManagedDatabaseMoveOperations + - Added operation group ManagedInstanceAdvancedThreatProtectionSettings + - Added operation group ManagedInstanceDtcs + - Added operation group ManagedServerDnsAliases + - Added operation group ServerAdvancedThreatProtectionSettings + - Added operation group ServerTrustCertificates + - Added operation VirtualClusters.beginUpdateDnsServers + - Added operation VirtualClusters.beginUpdateDnsServersAndWait + - Added Interface Advisor + - Added Interface BackupShortTermRetentionPolicy + - Added Interface Database + - Added Interface DatabaseAdvancedThreatProtection + - Added Interface DatabaseAdvancedThreatProtectionListResult + - Added Interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + - Added Interface DatabaseAutomaticTuning + - Added Interface DatabaseBlobAuditingPolicy + - Added Interface DatabaseColumn + - Added Interface DatabaseExtensions + - Added Interface DatabaseOperation + - Added Interface DatabaseSchema + - Added Interface DatabaseSecurityAlertPolicy + - Added Interface DatabaseTable + - Added Interface DatabaseUsage + - Added Interface DatabaseVulnerabilityAssessment + - Added Interface DatabaseVulnerabilityAssessmentRuleBaseline + - Added Interface DatabaseVulnerabilityAssessmentScansExport + - Added Interface DataMaskingPolicy + - Added Interface DataMaskingRule + - Added Interface DataWarehouseUserActivities + - Added Interface DeletedServer + - Added Interface DistributedAvailabilityGroup + - Added Interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + - Added Interface DistributedAvailabilityGroupsDeleteOptionalParams + - Added Interface DistributedAvailabilityGroupsGetOptionalParams + - Added Interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams + - Added Interface DistributedAvailabilityGroupsListByInstanceOptionalParams + - Added Interface DistributedAvailabilityGroupsListResult + - Added Interface DistributedAvailabilityGroupsUpdateOptionalParams + - Added Interface ElasticPool + - Added Interface ElasticPoolActivity + - Added Interface ElasticPoolDatabaseActivity + - Added Interface ElasticPoolOperation + - Added Interface EncryptionProtector + - Added Interface EndpointCertificate + - Added Interface EndpointCertificateListResult + - Added Interface EndpointCertificatesGetOptionalParams + - Added Interface EndpointCertificatesListByInstanceNextOptionalParams + - Added Interface EndpointCertificatesListByInstanceOptionalParams + - Added Interface ExtendedDatabaseBlobAuditingPolicy + - Added Interface ExtendedServerBlobAuditingPolicy + - Added Interface FailoverGroup + - Added Interface FirewallRule + - Added Interface GeoBackupPolicy + - Added Interface ImportExportExtensionsOperationResult + - Added Interface ImportExportOperationResult + - Added Interface InstanceFailoverGroup + - Added Interface InstancePool + - Added Interface IPv6FirewallRule + - Added Interface IPv6FirewallRuleListResult + - Added Interface IPv6FirewallRulesCreateOrUpdateOptionalParams + - Added Interface IPv6FirewallRulesDeleteOptionalParams + - Added Interface IPv6FirewallRulesGetOptionalParams + - Added Interface IPv6FirewallRulesListByServerNextOptionalParams + - Added Interface IPv6FirewallRulesListByServerOptionalParams + - Added Interface Job + - Added Interface JobAgent + - Added Interface JobCredential + - Added Interface JobExecution + - Added Interface JobStep + - Added Interface JobTargetGroup + - Added Interface JobVersion + - Added Interface LedgerDigestUploads + - Added Interface LogicalDatabaseTransparentDataEncryption + - Added Interface LogicalServerAdvancedThreatProtectionListResult + - Added Interface LongTermRetentionBackup + - Added Interface LongTermRetentionBackupOperationResult + - Added Interface LongTermRetentionPolicy + - Added Interface MaintenanceWindowOptions + - Added Interface MaintenanceWindows + - Added Interface ManagedBackupShortTermRetentionPolicy + - Added Interface ManagedDatabase + - Added Interface ManagedDatabaseAdvancedThreatProtection + - Added Interface ManagedDatabaseAdvancedThreatProtectionListResult + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + - Added Interface ManagedDatabaseMoveOperationListResult + - Added Interface ManagedDatabaseMoveOperationResult + - Added Interface ManagedDatabaseMoveOperationsGetOptionalParams + - Added Interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams + - Added Interface ManagedDatabaseMoveOperationsListByLocationOptionalParams + - Added Interface ManagedDatabaseRestoreDetailsResult + - Added Interface ManagedDatabaseSecurityAlertPolicy + - Added Interface ManagedInstance + - Added Interface ManagedInstanceAdministrator + - Added Interface ManagedInstanceAdvancedThreatProtection + - Added Interface ManagedInstanceAdvancedThreatProtectionListResult + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + - Added Interface ManagedInstanceAzureADOnlyAuthentication + - Added Interface ManagedInstanceDtc + - Added Interface ManagedInstanceDtcListResult + - Added Interface ManagedInstanceDtcsCreateOrUpdateOptionalParams + - Added Interface ManagedInstanceDtcSecuritySettings + - Added Interface ManagedInstanceDtcsGetOptionalParams + - Added Interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams + - Added Interface ManagedInstanceDtcsListByManagedInstanceOptionalParams + - Added Interface ManagedInstanceDtcTransactionManagerCommunicationSettings + - Added Interface ManagedInstanceEncryptionProtector + - Added Interface ManagedInstanceKey + - Added Interface ManagedInstanceLongTermRetentionBackup + - Added Interface ManagedInstanceLongTermRetentionPolicy + - Added Interface ManagedInstanceOperation + - Added Interface ManagedInstancePrivateEndpointConnection + - Added Interface ManagedInstancePrivateLink + - Added Interface ManagedInstanceQuery + - Added Interface ManagedInstanceVulnerabilityAssessment + - Added Interface ManagedServerDnsAlias + - Added Interface ManagedServerDnsAliasAcquisition + - Added Interface ManagedServerDnsAliasCreation + - Added Interface ManagedServerDnsAliasesAcquireOptionalParams + - Added Interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams + - Added Interface ManagedServerDnsAliasesDeleteOptionalParams + - Added Interface ManagedServerDnsAliasesGetOptionalParams + - Added Interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams + - Added Interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams + - Added Interface ManagedServerDnsAliasListResult + - Added Interface ManagedServerSecurityAlertPolicy + - Added Interface ManagedTransparentDataEncryption + - Added Interface OutboundFirewallRule + - Added Interface PrivateEndpointConnection + - Added Interface PrivateLinkResource + - Added Interface ProxyResource + - Added Interface ProxyResourceWithWritableName + - Added Interface QueryStatistics + - Added Interface RecommendedAction + - Added Interface RecommendedSensitivityLabelUpdate + - Added Interface RecoverableDatabase + - Added Interface RecoverableManagedDatabase + - Added Interface ReplicationLink + - Added Interface RestorableDroppedDatabase + - Added Interface RestorableDroppedManagedDatabase + - Added Interface RestorePoint + - Added Interface SecurityEvent + - Added Interface SensitivityLabel + - Added Interface SensitivityLabelUpdate + - Added Interface Server + - Added Interface ServerAdvancedThreatProtection + - Added Interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + - Added Interface ServerAutomaticTuning + - Added Interface ServerAzureADAdministrator + - Added Interface ServerAzureADOnlyAuthentication + - Added Interface ServerBlobAuditingPolicy + - Added Interface ServerCommunicationLink + - Added Interface ServerConnectionPolicy + - Added Interface ServerDevOpsAuditingSettings + - Added Interface ServerDnsAlias + - Added Interface ServerKey + - Added Interface ServerOperation + - Added Interface ServerSecurityAlertPolicy + - Added Interface ServerTrustCertificate + - Added Interface ServerTrustCertificatesCreateOrUpdateOptionalParams + - Added Interface ServerTrustCertificatesDeleteOptionalParams + - Added Interface ServerTrustCertificatesGetOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceNextOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceOptionalParams + - Added Interface ServerTrustCertificatesListResult + - Added Interface ServerTrustGroup + - Added Interface ServerVulnerabilityAssessment + - Added Interface ServiceObjective + - Added Interface SqlAgentConfiguration + - Added Interface SubscriptionUsage + - Added Interface SyncAgent + - Added Interface SyncAgentLinkedDatabase + - Added Interface SyncGroup + - Added Interface SyncMember + - Added Interface TdeCertificate + - Added Interface TimeZone + - Added Interface TrackedResource + - Added Interface UpdateVirtualClusterDnsServersOperation + - Added Interface VirtualCluster + - Added Interface VirtualNetworkRule + - Added Interface VulnerabilityAssessmentScanRecord + - Added Interface WorkloadClassifier + - Added Interface WorkloadGroup + - Added Type Alias AdvancedThreatProtectionName + - Added Type Alias AdvancedThreatProtectionState + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse + - Added Type Alias DistributedAvailabilityGroupsCreateOrUpdateResponse + - Added Type Alias DistributedAvailabilityGroupsGetResponse + - Added Type Alias DistributedAvailabilityGroupsListByInstanceNextResponse + - Added Type Alias DistributedAvailabilityGroupsListByInstanceResponse + - Added Type Alias DistributedAvailabilityGroupsUpdateResponse + - Added Type Alias DNSRefreshOperationStatus + - Added Type Alias DtcName + - Added Type Alias EndpointCertificatesGetResponse + - Added Type Alias EndpointCertificatesListByInstanceNextResponse + - Added Type Alias EndpointCertificatesListByInstanceResponse + - Added Type Alias IPv6FirewallRulesCreateOrUpdateResponse + - Added Type Alias IPv6FirewallRulesGetResponse + - Added Type Alias IPv6FirewallRulesListByServerNextResponse + - Added Type Alias IPv6FirewallRulesListByServerResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse + - Added Type Alias ManagedDatabaseMoveOperationsGetResponse + - Added Type Alias ManagedDatabaseMoveOperationsListByLocationNextResponse + - Added Type Alias ManagedDatabaseMoveOperationsListByLocationResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse + - Added Type Alias ManagedInstanceDtcsCreateOrUpdateResponse + - Added Type Alias ManagedInstanceDtcsGetResponse + - Added Type Alias ManagedInstanceDtcsListByManagedInstanceNextResponse + - Added Type Alias ManagedInstanceDtcsListByManagedInstanceResponse + - Added Type Alias ManagedServerDnsAliasesAcquireResponse + - Added Type Alias ManagedServerDnsAliasesCreateOrUpdateResponse + - Added Type Alias ManagedServerDnsAliasesGetResponse + - Added Type Alias ManagedServerDnsAliasesListByManagedInstanceNextResponse + - Added Type Alias ManagedServerDnsAliasesListByManagedInstanceResponse + - Added Type Alias MoveOperationMode + - Added Type Alias ReplicationLinksFailoverAllowDataLossResponse + - Added Type Alias ReplicationLinksFailoverResponse + - Added Type Alias ReplicationMode + - Added Type Alias ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerNextResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerResponse + - Added Type Alias ServerTrustCertificatesCreateOrUpdateResponse + - Added Type Alias ServerTrustCertificatesGetResponse + - Added Type Alias ServerTrustCertificatesListByInstanceNextResponse + - Added Type Alias ServerTrustCertificatesListByInstanceResponse + - Added Type Alias SyncGroupsType + - Interface ElasticPoolUpdate has a new optional parameter highAvailabilityReplicaCount + - Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter resumeFrom + - Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter updateIntervalInMs + - Interface VirtualClusterUpdate has a new optional parameter version + - Class SqlManagementClient has a new parameter databaseAdvancedThreatProtectionSettings + - Class SqlManagementClient has a new parameter distributedAvailabilityGroups + - Class SqlManagementClient has a new parameter endpointCertificates + - Class SqlManagementClient has a new parameter iPv6FirewallRules + - Class SqlManagementClient has a new parameter managedDatabaseAdvancedThreatProtectionSettings + - Class SqlManagementClient has a new parameter managedDatabaseMoveOperations + - Class SqlManagementClient has a new parameter managedInstanceAdvancedThreatProtectionSettings + - Class SqlManagementClient has a new parameter managedInstanceDtcs + - Class SqlManagementClient has a new parameter managedServerDnsAliases + - Class SqlManagementClient has a new parameter serverAdvancedThreatProtectionSettings + - Class SqlManagementClient has a new parameter serverTrustCertificates + - Added Enum KnownAdvancedThreatProtectionName + - Added Enum KnownDNSRefreshOperationStatus + - Added Enum KnownDtcName + - Added Enum KnownMoveOperationMode + - Added Enum KnownReplicationMode + - Added Enum KnownSyncGroupsType -### Other Changes +**Breaking Changes** + - Removed operation group OperationsHealthOperations + - Removed operation ReplicationLinks.beginUnlink + - Removed operation ReplicationLinks.beginUnlinkAndWait + - Removed operation VirtualClusters.updateDnsServers + - Operation SyncGroups.listLogs has a new signature + - Interface DatabaseIdentity no longer has parameter delegatedResources + - Interface DatabaseUpdate no longer has parameter primaryDelegatedIdentityClientId + - Interface VirtualClusterUpdate no longer has parameter family + - Interface VirtualClusterUpdate no longer has parameter maintenanceConfigurationId + - Class SqlManagementClient no longer has parameter operationsHealthOperations + - Removed Enum KnownDnsRefreshConfigurationPropertiesStatus + - Removed Enum KnownEnum60 + ## 9.0.1 (2022-05-01) **Features** diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index 5dad927bf1bc..61f3cea457c9 100644 --- a/sdk/sql/arm-sql/README.md +++ b/sdk/sql/arm-sql/README.md @@ -6,7 +6,7 @@ The Azure SQL Database management API provides a RESTful set of web services tha [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-sql) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/sql/arm-sql/_meta.json b/sdk/sql/arm-sql/_meta.json index b640ececed17..65582e1b9dae 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", - "readme": "specification\\sql\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "commit": "da5458e6804013fd710f56ab8b7fd2e62ecdb252", + "readme": "specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" -} + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.1" +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index 145daa97c29a..809589aacfb8 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SqlManagementClient.", - "version": "9.0.2", + "version": "10.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -40,9 +40,13 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql", "repository": { @@ -93,9 +97,8 @@ "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" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -106,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/review/arm-sql.api.md b/sdk/sql/arm-sql/review/arm-sql.api.md index 4366bc263db6..7311ce072d2b 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -23,16 +23,22 @@ export type AdministratorName = string; export type AdministratorType = string; // @public -export type Advisor = ProxyResource & { - readonly kind?: string; - readonly location?: string; +export type AdvancedThreatProtectionName = string; + +// @public +export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; + +// @public +export interface Advisor extends ProxyResource { readonly advisorStatus?: AdvisorStatus; autoExecuteStatus?: AutoExecuteStatus; readonly autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; - readonly recommendationsStatus?: string; + readonly kind?: string; readonly lastChecked?: Date; + readonly location?: string; + readonly recommendationsStatus?: string; readonly recommendedActions?: RecommendedAction[]; -}; +} // @public export type AdvisorStatus = "GA" | "PublicPreview" | "LimitedPublicPreview" | "PrivatePreview"; @@ -149,10 +155,10 @@ export interface BackupShortTermRetentionPoliciesUpdateOptionalParams extends co export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; // @public -export type BackupShortTermRetentionPolicy = ProxyResource & { - retentionDays?: number; +export interface BackupShortTermRetentionPolicy extends ProxyResource { diffBackupIntervalInHours?: DiffBackupIntervalInHours; -}; + retentionDays?: number; +} // @public export interface BackupShortTermRetentionPolicyListResult { @@ -240,51 +246,99 @@ export type CreatedByType = string; export type CreateMode = string; // @public -export type Database = TrackedResource & { - sku?: Sku; - readonly kind?: string; - readonly managedBy?: string; - identity?: DatabaseIdentity; - createMode?: CreateMode; +export interface Database extends TrackedResource { + autoPauseDelay?: number; + catalogCollation?: CatalogCollationType; collation?: string; - maxSizeBytes?: number; - sampleName?: SampleName; - elasticPoolId?: string; - sourceDatabaseId?: string; - readonly status?: DatabaseStatus; - readonly databaseId?: string; + createMode?: CreateMode; readonly creationDate?: Date; + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; readonly currentServiceObjectiveName?: string; - readonly requestedServiceObjectiveName?: string; + readonly currentSku?: Sku; + readonly databaseId?: string; readonly defaultSecondaryLocation?: string; + readonly earliestRestoreDate?: Date; + elasticPoolId?: string; readonly failoverGroupId?: string; - restorePointInTime?: Date; - sourceDatabaseDeletionDate?: Date; - recoveryServicesRecoveryPointId?: string; - longTermRetentionBackupResourceId?: string; - recoverableDatabaseId?: string; - restorableDroppedDatabaseId?: string; - catalogCollation?: CatalogCollationType; - zoneRedundant?: boolean; + federatedClientId?: string; + highAvailabilityReplicaCount?: number; + identity?: DatabaseIdentity; + readonly isInfraEncryptionEnabled?: boolean; + isLedgerOn?: boolean; + readonly kind?: string; licenseType?: DatabaseLicenseType; + longTermRetentionBackupResourceId?: string; + maintenanceConfigurationId?: string; + readonly managedBy?: string; readonly maxLogSizeBytes?: number; - readonly earliestRestoreDate?: Date; - readScale?: DatabaseReadScale; - highAvailabilityReplicaCount?: number; - secondaryType?: SecondaryType; - readonly currentSku?: Sku; - autoPauseDelay?: number; - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - requestedBackupStorageRedundancy?: BackupStorageRedundancy; + maxSizeBytes?: number; minCapacity?: number; readonly pausedDate?: Date; + readScale?: DatabaseReadScale; + recoverableDatabaseId?: string; + recoveryServicesRecoveryPointId?: string; + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + readonly requestedServiceObjectiveName?: string; + restorableDroppedDatabaseId?: string; + restorePointInTime?: Date; readonly resumedDate?: Date; - maintenanceConfigurationId?: string; - isLedgerOn?: boolean; - readonly isInfraEncryptionEnabled?: boolean; - federatedClientId?: string; - primaryDelegatedIdentityClientId?: string; -}; + sampleName?: SampleName; + secondaryType?: SecondaryType; + sku?: Sku; + sourceDatabaseDeletionDate?: Date; + sourceDatabaseId?: string; + sourceResourceId?: string; + readonly status?: DatabaseStatus; + zoneRedundant?: boolean; +} + +// @public +export interface DatabaseAdvancedThreatProtection extends ProxyResource { + readonly creationTime?: Date; + state?: AdvancedThreatProtectionState; + readonly systemData?: SystemData; +} + +// @public +export interface DatabaseAdvancedThreatProtectionListResult { + readonly nextLink?: string; + readonly value?: DatabaseAdvancedThreatProtection[]; +} + +// @public +export interface DatabaseAdvancedThreatProtectionSettings { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: DatabaseAdvancedThreatProtection, options?: DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: DatabaseAdvancedThreatProtectionSettingsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; + +// @public +export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; + +// @public +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; + +// @public +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; // @public export interface DatabaseAdvisors { @@ -316,13 +370,13 @@ export interface DatabaseAdvisorsUpdateOptionalParams extends coreClient.Operati export type DatabaseAdvisorsUpdateResponse = Advisor; // @public -export type DatabaseAutomaticTuning = ProxyResource & { - desiredState?: AutomaticTuningMode; +export interface DatabaseAutomaticTuning extends ProxyResource { readonly actualState?: AutomaticTuningMode; + desiredState?: AutomaticTuningMode; options?: { [propertyName: string]: AutomaticTuningOptions; }; -}; +} // @public export interface DatabaseAutomaticTuningGetOptionalParams extends coreClient.OperationOptions { @@ -380,18 +434,19 @@ export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extend export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; // @public -export type DatabaseBlobAuditingPolicy = ProxyResource & { - readonly kind?: string; - retentionDays?: number; +export interface DatabaseBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; - isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; + isManagedIdentityInUse?: boolean; + isStorageSecondaryKeyInUse?: boolean; + readonly kind?: string; queueDelayMs?: number; + retentionDays?: number; state?: BlobAuditingPolicyState; - storageEndpoint?: string; storageAccountAccessKey?: string; storageAccountSubscriptionId?: string; -}; + storageEndpoint?: string; +} // @public export interface DatabaseBlobAuditingPolicyListResult { @@ -400,12 +455,12 @@ export interface DatabaseBlobAuditingPolicyListResult { } // @public -export type DatabaseColumn = ProxyResource & { +export interface DatabaseColumn extends ProxyResource { columnType?: ColumnDataType; - temporalType?: TableTemporalType; - memoryOptimized?: boolean; isComputed?: boolean; -}; + memoryOptimized?: boolean; + temporalType?: TableTemporalType; +} // @public export interface DatabaseColumnListResult { @@ -468,12 +523,12 @@ export interface DatabaseColumnsListByTableOptionalParams extends coreClient.Ope export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; // @public -export type DatabaseExtensions = ProxyResource & { +export interface DatabaseExtensions extends ProxyResource { operationMode?: OperationMode; - storageKeyType?: StorageKeyType; storageKey?: string; + storageKeyType?: StorageKeyType; storageUri?: string; -}; +} // @public export interface DatabaseExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { @@ -512,9 +567,6 @@ export interface DatabaseExtensionsOperations { // @public export interface DatabaseIdentity { - delegatedResources?: { - [propertyName: string]: Delegation; - }; readonly tenantId?: string; type?: DatabaseIdentityType; userAssignedIdentities?: { @@ -535,22 +587,22 @@ export interface DatabaseListResult { } // @public -export type DatabaseOperation = ProxyResource & { +export interface DatabaseOperation extends ProxyResource { readonly databaseName?: string; + readonly description?: string; + readonly errorCode?: number; + readonly errorDescription?: string; + readonly errorSeverity?: number; + readonly estimatedCompletionTime?: Date; + readonly isCancellable?: boolean; + readonly isUserError?: boolean; 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 DatabaseOperationListResult { @@ -643,7 +695,8 @@ export interface Databases { } // @public -export type DatabaseSchema = ProxyResource & {}; +export interface DatabaseSchema extends ProxyResource { +} // @public export interface DatabaseSchemaListResult { @@ -737,17 +790,17 @@ export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams exten export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; // @public -export type DatabaseSecurityAlertPolicy = ProxyResource & { - readonly systemData?: SystemData; - state?: SecurityAlertsPolicyState; +export interface DatabaseSecurityAlertPolicy extends ProxyResource { + readonly creationTime?: Date; disabledAlerts?: string[]; - emailAddresses?: string[]; emailAccountAdmins?: boolean; - storageEndpoint?: string; - storageAccountAccessKey?: string; + emailAddresses?: string[]; retentionDays?: number; - readonly creationTime?: Date; -}; + state?: SecurityAlertsPolicyState; + storageAccountAccessKey?: string; + storageEndpoint?: string; + readonly systemData?: SystemData; +} // @public export interface DatabasesExportOptionalParams extends coreClient.OperationOptions { @@ -885,10 +938,10 @@ export interface DatabasesUpgradeDataWarehouseOptionalParams extends coreClient. } // @public -export type DatabaseTable = ProxyResource & { - temporalType?: TableTemporalType; +export interface DatabaseTable extends ProxyResource { memoryOptimized?: boolean; -}; + temporalType?: TableTemporalType; +} // @public export interface DatabaseTableListResult { @@ -952,7 +1005,6 @@ export interface DatabaseUpdate { maxSizeBytes?: number; minCapacity?: number; readonly pausedDate?: Date; - primaryDelegatedIdentityClientId?: string; readScale?: DatabaseReadScale; recoverableDatabaseId?: string; recoveryServicesRecoveryPointId?: string; @@ -974,12 +1026,12 @@ export interface DatabaseUpdate { } // @public -export type DatabaseUsage = ProxyResource & { - readonly displayName?: string; +export interface DatabaseUsage extends ProxyResource { readonly currentValue?: number; + readonly displayName?: string; readonly limit?: number; readonly unit?: string; -}; +} // @public export interface DatabaseUsageListResult { @@ -1013,12 +1065,12 @@ export interface DatabaseUserIdentity { } // @public -export type DatabaseVulnerabilityAssessment = ProxyResource & { +export interface DatabaseVulnerabilityAssessment extends ProxyResource { + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; + storageAccountAccessKey?: string; storageContainerPath?: string; storageContainerSasKey?: string; - storageAccountAccessKey?: string; - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -}; +} // @public export interface DatabaseVulnerabilityAssessmentListResult { @@ -1027,9 +1079,9 @@ export interface DatabaseVulnerabilityAssessmentListResult { } // @public -export type DatabaseVulnerabilityAssessmentRuleBaseline = ProxyResource & { +export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -}; +} // @public export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { @@ -1079,9 +1131,9 @@ export interface DatabaseVulnerabilityAssessmentScans { } // @public -export type DatabaseVulnerabilityAssessmentScansExport = ProxyResource & { +export interface DatabaseVulnerabilityAssessmentScansExport extends ProxyResource { readonly exportedReportLocation?: string; -}; +} // @public export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions { @@ -1173,32 +1225,32 @@ export interface DataMaskingPoliciesGetOptionalParams extends coreClient.Operati export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; // @public -export type DataMaskingPolicy = ProxyResource & { - readonly location?: string; - readonly kind?: string; +export interface DataMaskingPolicy extends ProxyResource { + readonly applicationPrincipals?: string; dataMaskingState?: DataMaskingState; exemptPrincipals?: string; - readonly applicationPrincipals?: string; + readonly kind?: string; + readonly location?: string; readonly maskingLevel?: string; -}; +} // @public -export type DataMaskingRule = ProxyResource & { - readonly location?: string; - readonly kind?: string; - readonly idPropertiesId?: string; +export interface DataMaskingRule extends ProxyResource { aliasName?: string; - ruleState?: DataMaskingRuleState; - schemaName?: string; - tableName?: string; columnName?: string; + readonly idPropertiesId?: string; + readonly kind?: string; + readonly location?: string; maskingFunction?: DataMaskingFunction; numberFrom?: string; numberTo?: string; prefixSize?: string; - suffixSize?: string; replacementString?: string; -}; + ruleState?: DataMaskingRuleState; + schemaName?: string; + suffixSize?: string; + tableName?: string; +} // @public export interface DataMaskingRuleListResult { @@ -1232,9 +1284,9 @@ export type DataMaskingRuleState = "Disabled" | "Enabled"; export type DataMaskingState = "Disabled" | "Enabled"; // @public -export type DataWarehouseUserActivities = ProxyResource & { +export interface DataWarehouseUserActivities extends ProxyResource { readonly activeQueriesCount?: number; -}; +} // @public export interface DataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions { @@ -1276,18 +1328,12 @@ export type DataWarehouseUserActivityName = string; export type DayOfWeek = string; // @public -export interface Delegation { - resourceId?: string; - readonly tenantId?: string; -} - -// @public -export type DeletedServer = ProxyResource & { - readonly version?: string; +export interface DeletedServer extends ProxyResource { readonly deletionTime?: Date; - readonly originalId?: string; readonly fullyQualifiedDomainName?: string; -}; + readonly originalId?: string; + readonly version?: string; +} // @public export interface DeletedServerListResult { @@ -1352,68 +1398,149 @@ export type DeletedServersRecoverResponse = DeletedServer; export type DiffBackupIntervalInHours = number; // @public -export type DnsRefreshConfigurationPropertiesStatus = string; +export interface DistributedAvailabilityGroup extends ProxyResource { + readonly distributedAvailabilityGroupId?: string; + readonly lastHardenedLsn?: string; + readonly linkState?: string; + primaryAvailabilityGroupName?: string; + replicationMode?: ReplicationMode; + secondaryAvailabilityGroupName?: string; + sourceEndpoint?: string; + readonly sourceReplicaId?: string; + targetDatabase?: string; + readonly targetReplicaId?: string; +} // @public -export interface EditionCapability { - readonly name?: string; - readonly readScale?: ReadScaleCapability; - reason?: string; - readonly status?: CapabilityStatus; - readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; - readonly supportedStorageCapabilities?: StorageCapability[]; - readonly zoneRedundant?: boolean; +export interface DistributedAvailabilityGroups { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise, DistributedAvailabilityGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise, DistributedAvailabilityGroupsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: DistributedAvailabilityGroupsListByInstanceOptionalParams): PagedAsyncIterableIterator; } // @public -export type ElasticPool = TrackedResource & { - sku?: Sku; - readonly kind?: string; - readonly state?: ElasticPoolState; - readonly creationDate?: Date; - maxSizeBytes?: number; - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - zoneRedundant?: boolean; - licenseType?: ElasticPoolLicenseType; - maintenanceConfigurationId?: string; -}; +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface ElasticPoolActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; // @public -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { +export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export type ElasticPoolActivity = ProxyResource & { - location?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedDatabaseDtuMax?: number; - readonly requestedDatabaseDtuMin?: number; - readonly requestedDtu?: number; - readonly requestedElasticPoolName?: string; - readonly requestedStorageLimitInGB?: number; - readonly elasticPoolName?: string; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; - readonly requestedStorageLimitInMB?: number; - readonly requestedDatabaseDtuGuarantee?: number; - readonly requestedDatabaseDtuCap?: number; - readonly requestedDtuGuarantee?: number; -}; +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; + +// @public +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; + +// @public +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; + +// @public +export interface DistributedAvailabilityGroupsListResult { + readonly nextLink?: string; + readonly value?: DistributedAvailabilityGroup[]; +} + +// @public +export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; + +// @public +export type DNSRefreshOperationStatus = string; + +// @public +export type DtcName = string; + +// @public +export interface EditionCapability { + readonly name?: string; + readonly readScale?: ReadScaleCapability; + reason?: string; + readonly status?: CapabilityStatus; + readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; + readonly supportedStorageCapabilities?: StorageCapability[]; + readonly zoneRedundant?: boolean; +} + +// @public +export interface ElasticPool extends TrackedResource { + readonly creationDate?: Date; + highAvailabilityReplicaCount?: number; + readonly kind?: string; + licenseType?: ElasticPoolLicenseType; + maintenanceConfigurationId?: string; + maxSizeBytes?: number; + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + sku?: Sku; + readonly state?: ElasticPoolState; + zoneRedundant?: boolean; +} + +// @public +export interface ElasticPoolActivities { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; + +// @public +export interface ElasticPoolActivity extends ProxyResource { + readonly elasticPoolName?: string; + readonly endTime?: Date; + readonly errorCode?: number; + readonly errorMessage?: string; + readonly errorSeverity?: number; + location?: string; + readonly operation?: string; + readonly operationId?: string; + readonly percentComplete?: number; + readonly requestedDatabaseDtuCap?: number; + readonly requestedDatabaseDtuGuarantee?: number; + readonly requestedDatabaseDtuMax?: number; + readonly requestedDatabaseDtuMin?: number; + readonly requestedDtu?: number; + readonly requestedDtuGuarantee?: number; + readonly requestedElasticPoolName?: string; + readonly requestedStorageLimitInGB?: number; + readonly requestedStorageLimitInMB?: number; + readonly serverName?: string; + readonly startTime?: Date; + readonly state?: string; +} // @public export interface ElasticPoolActivityListResult { @@ -1433,24 +1560,24 @@ export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams ex export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; // @public -export type ElasticPoolDatabaseActivity = ProxyResource & { - location?: string; +export interface ElasticPoolDatabaseActivity extends ProxyResource { + readonly currentElasticPoolName?: string; + readonly currentServiceObjective?: string; readonly databaseName?: string; readonly endTime?: Date; readonly errorCode?: number; readonly errorMessage?: string; readonly errorSeverity?: number; + location?: string; readonly operation?: string; readonly operationId?: string; readonly percentComplete?: number; readonly requestedElasticPoolName?: string; - readonly currentElasticPoolName?: string; - readonly currentServiceObjective?: string; readonly requestedServiceObjective?: string; readonly serverName?: string; readonly startTime?: Date; readonly state?: string; -}; +} // @public export interface ElasticPoolDatabaseActivityListResult { @@ -1476,22 +1603,22 @@ export interface ElasticPoolListResult { } // @public -export type ElasticPoolOperation = ProxyResource & { +export interface ElasticPoolOperation extends ProxyResource { + readonly description?: string; readonly elasticPoolName?: string; + readonly errorCode?: number; + readonly errorDescription?: string; + readonly errorSeverity?: number; + readonly estimatedCompletionTime?: Date; + readonly isCancellable?: boolean; + readonly isUserError?: boolean; readonly operation?: string; readonly operationFriendlyName?: string; readonly percentComplete?: number; readonly serverName?: string; readonly startTime?: Date; readonly state?: string; - readonly errorCode?: number; - readonly errorDescription?: string; - readonly errorSeverity?: number; - readonly isUserError?: boolean; - readonly estimatedCompletionTime?: Date; - readonly description?: string; - readonly isCancellable?: boolean; -}; +} // @public export interface ElasticPoolOperationListResult { @@ -1650,6 +1777,7 @@ export type ElasticPoolsUpdateResponse = ElasticPool; // @public export interface ElasticPoolUpdate { + highAvailabilityReplicaCount?: number; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; @@ -1662,16 +1790,16 @@ export interface ElasticPoolUpdate { } // @public -export type EncryptionProtector = ProxyResource & { +export interface EncryptionProtector extends ProxyResource { + autoRotationEnabled?: boolean; readonly kind?: string; readonly location?: string; - readonly subregion?: string; serverKeyName?: string; serverKeyType?: ServerKeyType; - readonly uri?: string; + readonly subregion?: string; readonly thumbprint?: string; - autoRotationEnabled?: boolean; -}; + readonly uri?: string; +} // @public export interface EncryptionProtectorListResult { @@ -1729,7 +1857,42 @@ export interface EncryptionProtectorsRevalidateOptionalParams extends coreClient } // @public -export type Enum60 = string; +export interface EndpointCertificate extends ProxyResource { + publicBlob?: string; +} + +// @public +export interface EndpointCertificateListResult { + readonly nextLink?: string; + readonly value?: EndpointCertificate[]; +} + +// @public +export interface EndpointCertificates { + get(resourceGroupName: string, managedInstanceName: string, endpointType: string, options?: EndpointCertificatesGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: EndpointCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EndpointCertificatesGetResponse = EndpointCertificate; + +// @public +export interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; + +// @public +export interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; // @public export interface ExportDatabaseDefinition { @@ -1778,18 +1941,19 @@ export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParam export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; // @public -export type ExtendedDatabaseBlobAuditingPolicy = ProxyResource & { - predicateExpression?: string; - retentionDays?: number; +export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; - isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; + isManagedIdentityInUse?: boolean; + isStorageSecondaryKeyInUse?: boolean; + predicateExpression?: string; queueDelayMs?: number; + retentionDays?: number; state?: BlobAuditingPolicyState; - storageEndpoint?: string; storageAccountAccessKey?: string; storageAccountSubscriptionId?: string; -}; + storageEndpoint?: string; +} // @public export interface ExtendedDatabaseBlobAuditingPolicyListResult { @@ -1836,19 +2000,20 @@ export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams ex export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; // @public -export type ExtendedServerBlobAuditingPolicy = ProxyResource & { - isDevopsAuditEnabled?: boolean; - predicateExpression?: string; - retentionDays?: number; +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; - isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; + isDevopsAuditEnabled?: boolean; + isManagedIdentityInUse?: boolean; + isStorageSecondaryKeyInUse?: boolean; + predicateExpression?: string; queueDelayMs?: number; + retentionDays?: number; state?: BlobAuditingPolicyState; - storageEndpoint?: string; storageAccountAccessKey?: string; storageAccountSubscriptionId?: string; -}; + storageEndpoint?: string; +} // @public export interface ExtendedServerBlobAuditingPolicyListResult { @@ -1857,18 +2022,18 @@ export interface ExtendedServerBlobAuditingPolicyListResult { } // @public -export type FailoverGroup = ProxyResource & { +export interface FailoverGroup extends ProxyResource { + databases?: string[]; readonly location?: string; - tags?: { - [propertyName: string]: string; - }; - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + partnerServers?: PartnerInfo[]; readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; readonly replicationRole?: FailoverGroupReplicationRole; readonly replicationState?: string; - partnerServers?: PartnerInfo[]; - databases?: string[]; -}; + tags?: { + [propertyName: string]: string; + }; +} // @public export interface FailoverGroupListResult { @@ -1980,10 +2145,10 @@ export interface FailoverGroupUpdate { } // @public -export type FirewallRule = ProxyResourceWithWritableName & { - startIpAddress?: string; +export interface FirewallRule extends ProxyResourceWithWritableName { endIpAddress?: string; -}; + startIpAddress?: string; +} // @public export interface FirewallRuleList { @@ -2074,12 +2239,12 @@ export interface GeoBackupPoliciesListByDatabaseOptionalParams extends coreClien export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; // @public -export type GeoBackupPolicy = ProxyResource & { +export interface GeoBackupPolicy extends ProxyResource { readonly kind?: string; readonly location?: string; state: GeoBackupPolicyState; readonly storageType?: string; -}; +} // @public export interface GeoBackupPolicyListResult { @@ -2116,29 +2281,29 @@ export interface ImportExportExtensionsOperationListResult { } // @public -export type ImportExportExtensionsOperationResult = ProxyResource & { +export interface ImportExportExtensionsOperationResult extends ProxyResource { + readonly databaseName?: string; + readonly errorMessage?: string; + readonly lastModifiedTime?: string; readonly requestId?: string; readonly requestType?: string; - readonly lastModifiedTime?: string; readonly serverName?: string; - readonly databaseName?: string; readonly status?: string; - readonly errorMessage?: string; -}; +} // @public -export type ImportExportOperationResult = ProxyResource & { - readonly requestId?: string; - readonly requestType?: string; - readonly queuedTime?: string; - readonly lastModifiedTime?: string; +export interface ImportExportOperationResult extends ProxyResource { readonly blobUri?: string; - readonly serverName?: string; readonly databaseName?: string; - readonly status?: string; readonly errorMessage?: string; + readonly lastModifiedTime?: string; readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; -}; + readonly queuedTime?: string; + readonly requestId?: string; + readonly requestType?: string; + readonly serverName?: string; + readonly status?: string; +} // @public export interface ImportNewDatabaseDefinition { @@ -2156,14 +2321,14 @@ export interface ImportNewDatabaseDefinition { } // @public -export type InstanceFailoverGroup = ProxyResource & { - readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; +export interface InstanceFailoverGroup extends ProxyResource { + managedInstancePairs?: ManagedInstancePairInfo[]; + partnerRegions?: PartnerRegionInfo[]; readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; + readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; readonly replicationRole?: InstanceFailoverGroupReplicationRole; readonly replicationState?: string; - partnerRegions?: PartnerRegionInfo[]; - managedInstancePairs?: ManagedInstancePairInfo[]; -}; +} // @public export interface InstanceFailoverGroupListResult { @@ -2254,12 +2419,12 @@ export interface InstanceFailoverGroupsListByLocationOptionalParams extends core export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; // @public -export type InstancePool = TrackedResource & { +export interface InstancePool extends TrackedResource { + licenseType?: InstancePoolLicenseType; sku?: Sku; subnetId?: string; vCores?: number; - licenseType?: InstancePoolLicenseType; -}; +} // @public export interface InstancePoolEditionCapability { @@ -2375,22 +2540,74 @@ export interface InstancePoolVcoresCapability { readonly value?: number; } +// @public +export interface IPv6FirewallRule extends ProxyResourceWithWritableName { + endIPv6Address?: string; + startIPv6Address?: string; +} + +// @public +export interface IPv6FirewallRuleListResult { + readonly nextLink?: string; + readonly value?: IPv6FirewallRule[]; +} + +// @public +export interface IPv6FirewallRules { + createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: IPv6FirewallRule, options?: IPv6FirewallRulesCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: IPv6FirewallRulesDeleteOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: IPv6FirewallRulesGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: IPv6FirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; + +// @public +export interface IPv6FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; + +// @public +export interface IPv6FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; + +// @public +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; + // @public export type IsRetryable = "Yes" | "No"; // @public -export type Job = ProxyResource & { +export interface Job extends ProxyResource { description?: string; - readonly version?: number; schedule?: JobSchedule; -}; + readonly version?: number; +} // @public -export type JobAgent = TrackedResource & { - sku?: Sku; +export interface JobAgent extends TrackedResource { databaseId?: string; + sku?: Sku; readonly state?: JobAgentState; -}; +} // @public export interface JobAgentListResult { @@ -2466,10 +2683,10 @@ export interface JobAgentUpdate { } // @public -export type JobCredential = ProxyResource & { - username?: string; +export interface JobCredential extends ProxyResource { password?: string; -}; + username?: string; +} // @public export interface JobCredentialListResult { @@ -2518,21 +2735,21 @@ export interface JobCredentialsListByAgentOptionalParams extends coreClient.Oper export type JobCredentialsListByAgentResponse = JobCredentialListResult; // @public -export type JobExecution = ProxyResource & { - readonly jobVersion?: number; - readonly stepName?: string; - readonly stepId?: number; - readonly jobExecutionId?: string; - readonly lifecycle?: JobExecutionLifecycle; - readonly provisioningState?: ProvisioningState; +export interface JobExecution extends ProxyResource { readonly createTime?: Date; - readonly startTime?: Date; - readonly endTime?: Date; currentAttempts?: number; readonly currentAttemptStartTime?: Date; - readonly lastMessage?: string; + readonly endTime?: Date; + readonly jobExecutionId?: string; + readonly jobVersion?: number; + readonly lastMessage?: string; + readonly lifecycle?: JobExecutionLifecycle; + readonly provisioningState?: ProvisioningState; + readonly startTime?: Date; + readonly stepId?: number; + readonly stepName?: string; readonly target?: JobExecutionTarget; -}; +} // @public export type JobExecutionLifecycle = string; @@ -2706,14 +2923,14 @@ export interface JobsListByAgentOptionalParams extends coreClient.OperationOptio export type JobsListByAgentResponse = JobListResult; // @public -export type JobStep = ProxyResource & { - stepId?: number; - targetGroup?: string; - credential?: string; +export interface JobStep extends ProxyResource { action?: JobStepAction; - output?: JobStepOutput; + credential?: string; executionOptions?: JobStepExecutionOptions; -}; + output?: JobStepOutput; + stepId?: number; + targetGroup?: string; +} // @public export interface JobStepAction { @@ -2944,9 +3161,9 @@ export interface JobTargetExecutionsListByStepOptionalParams extends coreClient. export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; // @public -export type JobTargetGroup = ProxyResource & { +export interface JobTargetGroup extends ProxyResource { members?: JobTarget[]; -}; +} // @public export interface JobTargetGroupListResult { @@ -3001,7 +3218,8 @@ export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; export type JobTargetType = string; // @public -export type JobVersion = ProxyResource & {}; +export interface JobVersion extends ProxyResource { +} // @public export interface JobVersionListResult { @@ -3038,1291 +3256,871 @@ export type JobVersionsListByJobResponse = JobVersionListResult; // @public export enum KnownAdministratorName { - // (undocumented) ActiveDirectory = "ActiveDirectory" } // @public export enum KnownAdministratorType { - // (undocumented) ActiveDirectory = "ActiveDirectory" } +// @public +export enum KnownAdvancedThreatProtectionName { + Default = "Default" +} + // @public export enum KnownAggregationFunctionType { - // (undocumented) Avg = "avg", - // (undocumented) Max = "max", - // (undocumented) Min = "min", - // (undocumented) Stdev = "stdev", - // (undocumented) Sum = "sum" } // @public export enum KnownAuthenticationName { - // (undocumented) Default = "Default" } // @public export enum KnownBackupStorageRedundancy { - // (undocumented) Geo = "Geo", - // (undocumented) GeoZone = "GeoZone", - // (undocumented) Local = "Local", - // (undocumented) Zone = "Zone" } // @public export enum KnownCapabilityGroup { - // (undocumented) SupportedEditions = "supportedEditions", - // (undocumented) SupportedElasticPoolEditions = "supportedElasticPoolEditions", - // (undocumented) SupportedInstancePoolEditions = "supportedInstancePoolEditions", - // (undocumented) SupportedManagedInstanceEditions = "supportedManagedInstanceEditions", - // (undocumented) SupportedManagedInstanceVersions = "supportedManagedInstanceVersions" } // @public export enum KnownCatalogCollationType { - // (undocumented) DatabaseDefault = "DATABASE_DEFAULT", - // (undocumented) SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } // @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 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) Copy = "Copy", - // (undocumented) Default = "Default", - // (undocumented) OnlineSecondary = "OnlineSecondary", - // (undocumented) PointInTimeRestore = "PointInTimeRestore", - // (undocumented) Recovery = "Recovery", - // (undocumented) Restore = "Restore", - // (undocumented) RestoreExternalBackup = "RestoreExternalBackup", - // (undocumented) RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", - // (undocumented) RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", - // (undocumented) Secondary = "Secondary" } // @public export enum KnownDatabaseIdentityType { - // (undocumented) None = "None", - // (undocumented) UserAssigned = "UserAssigned" } // @public export enum KnownDatabaseLicenseType { - // (undocumented) BasePrice = "BasePrice", - // (undocumented) LicenseIncluded = "LicenseIncluded" } // @public export enum KnownDatabaseReadScale { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownDatabaseState { - // (undocumented) All = "All", - // (undocumented) Deleted = "Deleted", - // (undocumented) Live = "Live" } // @public export enum KnownDatabaseStatus { - // (undocumented) AutoClosed = "AutoClosed", - // (undocumented) Copying = "Copying", - // (undocumented) Creating = "Creating", - // (undocumented) Disabled = "Disabled", - // (undocumented) EmergencyMode = "EmergencyMode", - // (undocumented) Inaccessible = "Inaccessible", - // (undocumented) Offline = "Offline", - // (undocumented) OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", - // (undocumented) OfflineSecondary = "OfflineSecondary", - // (undocumented) Online = "Online", - // (undocumented) OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", - // (undocumented) Paused = "Paused", - // (undocumented) Pausing = "Pausing", - // (undocumented) Recovering = "Recovering", - // (undocumented) RecoveryPending = "RecoveryPending", - // (undocumented) Restoring = "Restoring", - // (undocumented) Resuming = "Resuming", - // (undocumented) Scaling = "Scaling", - // (undocumented) Shutdown = "Shutdown", - // (undocumented) Standby = "Standby", - // (undocumented) Starting = "Starting", - // (undocumented) Stopped = "Stopped", - // (undocumented) Stopping = "Stopping", - // (undocumented) Suspect = "Suspect" } // @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 KnownDiffBackupIntervalInHours { - // (undocumented) Twelve = 12, - // (undocumented) TwentyFour = 24 } // @public -export enum KnownDnsRefreshConfigurationPropertiesStatus { - // (undocumented) +export enum KnownDNSRefreshOperationStatus { Failed = "Failed", - // (undocumented) + InProgress = "InProgress", Succeeded = "Succeeded" } +// @public +export enum KnownDtcName { + Current = "current" +} + // @public export enum KnownElasticPoolLicenseType { - // (undocumented) BasePrice = "BasePrice", - // (undocumented) LicenseIncluded = "LicenseIncluded" } // @public export enum KnownElasticPoolState { - // (undocumented) Creating = "Creating", - // (undocumented) Disabled = "Disabled", - // (undocumented) Ready = "Ready" } // @public export enum KnownEncryptionProtectorName { - // (undocumented) Current = "current" } -// @public -export enum KnownEnum60 { - // (undocumented) - All = "All", - // (undocumented) - Error = "Error", - // (undocumented) - Success = "Success", - // (undocumented) - Warning = "Warning" -} - // @public export enum KnownFailoverGroupReplicationRole { - // (undocumented) Primary = "Primary", - // (undocumented) Secondary = "Secondary" } // @public export enum KnownGeoBackupPolicyName { - // (undocumented) Default = "Default" } // @public export enum KnownIdentityType { - // (undocumented) None = "None", - // (undocumented) SystemAssigned = "SystemAssigned", - // (undocumented) SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", - // (undocumented) UserAssigned = "UserAssigned" } // @public export enum KnownInstanceFailoverGroupReplicationRole { - // (undocumented) Primary = "Primary", - // (undocumented) Secondary = "Secondary" } // @public export enum KnownInstancePoolLicenseType { - // (undocumented) BasePrice = "BasePrice", - // (undocumented) LicenseIncluded = "LicenseIncluded" } // @public export enum KnownJobAgentState { - // (undocumented) Creating = "Creating", - // (undocumented) Deleting = "Deleting", - // (undocumented) Disabled = "Disabled", - // (undocumented) Ready = "Ready", - // (undocumented) Updating = "Updating" } // @public export enum KnownJobExecutionLifecycle { - // (undocumented) Canceled = "Canceled", - // (undocumented) Created = "Created", - // (undocumented) Failed = "Failed", - // (undocumented) InProgress = "InProgress", - // (undocumented) Skipped = "Skipped", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) SucceededWithSkipped = "SucceededWithSkipped", - // (undocumented) TimedOut = "TimedOut", - // (undocumented) WaitingForChildJobExecutions = "WaitingForChildJobExecutions", - // (undocumented) WaitingForRetry = "WaitingForRetry" } // @public export enum KnownJobStepActionSource { - // (undocumented) Inline = "Inline" } // @public export enum KnownJobStepActionType { - // (undocumented) TSql = "TSql" } // @public export enum KnownJobStepOutputType { - // (undocumented) SqlDatabase = "SqlDatabase" } // @public export enum KnownJobTargetType { - // (undocumented) SqlDatabase = "SqlDatabase", - // (undocumented) SqlElasticPool = "SqlElasticPool", - // (undocumented) SqlServer = "SqlServer", - // (undocumented) SqlShardMap = "SqlShardMap", - // (undocumented) TargetGroup = "TargetGroup" } // @public export enum KnownLedgerDigestUploadsName { - // (undocumented) Current = "current" } // @public export enum KnownLogSizeUnit { - // (undocumented) Gigabytes = "Gigabytes", - // (undocumented) Megabytes = "Megabytes", - // (undocumented) Percent = "Percent", - // (undocumented) Petabytes = "Petabytes", - // (undocumented) Terabytes = "Terabytes" } // @public export enum KnownLongTermRetentionPolicyName { - // (undocumented) Default = "default" } // @public export enum KnownManagedDatabaseCreateMode { - // (undocumented) Default = "Default", - // (undocumented) PointInTimeRestore = "PointInTimeRestore", - // (undocumented) Recovery = "Recovery", - // (undocumented) RestoreExternalBackup = "RestoreExternalBackup", - // (undocumented) RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" } // @public export enum KnownManagedDatabaseStatus { - // (undocumented) Creating = "Creating", - // (undocumented) Inaccessible = "Inaccessible", - // (undocumented) Offline = "Offline", - // (undocumented) Online = "Online", - // (undocumented) Restoring = "Restoring", - // (undocumented) Shutdown = "Shutdown", - // (undocumented) Updating = "Updating" } // @public export enum KnownManagedInstanceAdministratorType { - // (undocumented) ActiveDirectory = "ActiveDirectory" } // @public export enum KnownManagedInstanceLicenseType { - // (undocumented) BasePrice = "BasePrice", - // (undocumented) LicenseIncluded = "LicenseIncluded" } // @public export enum KnownManagedInstanceLongTermRetentionPolicyName { - // (undocumented) Default = "default" } // @public export enum KnownManagedInstancePropertiesProvisioningState { - // (undocumented) Accepted = "Accepted", - // (undocumented) Canceled = "Canceled", - // (undocumented) Created = "Created", - // (undocumented) Creating = "Creating", - // (undocumented) Deleted = "Deleted", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) NotSpecified = "NotSpecified", - // (undocumented) Registering = "Registering", - // (undocumented) Running = "Running", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) TimedOut = "TimedOut", - // (undocumented) Unknown = "Unknown", - // (undocumented) Unrecognized = "Unrecognized", - // (undocumented) Updating = "Updating" } // @public export enum KnownManagedInstanceProxyOverride { - // (undocumented) Default = "Default", - // (undocumented) Proxy = "Proxy", - // (undocumented) Redirect = "Redirect" } // @public export enum KnownManagedServerCreateMode { - // (undocumented) Default = "Default", - // (undocumented) PointInTimeRestore = "PointInTimeRestore" } // @public export enum KnownManagedShortTermRetentionPolicyName { - // (undocumented) Default = "default" } // @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 KnownMaxSizeUnit { - // (undocumented) Gigabytes = "Gigabytes", - // (undocumented) Megabytes = "Megabytes", - // (undocumented) Petabytes = "Petabytes", - // (undocumented) Terabytes = "Terabytes" } // @public export enum KnownMetricType { - // (undocumented) Cpu = "cpu", - // (undocumented) Dtu = "dtu", - // (undocumented) Duration = "duration", - // (undocumented) Io = "io", - // (undocumented) LogIo = "logIo" } +// @public +export enum KnownMoveOperationMode { + Copy = "Copy", + Move = "Move" +} + // @public export enum KnownOperationMode { - // (undocumented) PolybaseImport = "PolybaseImport" } // @public export enum KnownOperationOrigin { - // (undocumented) System = "system", - // (undocumented) User = "user" } // @public export enum KnownPauseDelayTimeUnit { - // (undocumented) Minutes = "Minutes" } // @public export enum KnownPerformanceLevelUnit { - // (undocumented) DTU = "DTU", - // (undocumented) VCores = "VCores" } // @public export enum KnownPrimaryAggregationType { - // (undocumented) Average = "Average", - // (undocumented) Count = "Count", - // (undocumented) Maximum = "Maximum", - // (undocumented) Minimum = "Minimum", - // (undocumented) None = "None", - // (undocumented) Total = "Total" } // @public export enum KnownPrincipalType { - // (undocumented) Application = "Application", - // (undocumented) Group = "Group", - // (undocumented) User = "User" } // @public export enum KnownPrivateEndpointProvisioningState { - // (undocumented) Approving = "Approving", - // (undocumented) Dropping = "Dropping", - // (undocumented) Failed = "Failed", - // (undocumented) Ready = "Ready", - // (undocumented) Rejecting = "Rejecting" } // @public export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - // (undocumented) None = "None" } // @public export enum KnownPrivateLinkServiceConnectionStateStatus { - // (undocumented) Approved = "Approved", - // (undocumented) Disconnected = "Disconnected", - // (undocumented) Pending = "Pending", - // (undocumented) Rejected = "Rejected" } // @public export enum KnownProvisioningState { - // (undocumented) Canceled = "Canceled", - // (undocumented) Created = "Created", - // (undocumented) Failed = "Failed", - // (undocumented) InProgress = "InProgress", - // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownQueryMetricUnitType { - // (undocumented) Count = "count", - // (undocumented) KB = "KB", - // (undocumented) Microseconds = "microseconds", - // (undocumented) Percentage = "percentage" } // @public export enum KnownQueryTimeGrainType { - // (undocumented) P1D = "P1D", - // (undocumented) PT1H = "PT1H" } // @public export enum KnownReadOnlyEndpointFailoverPolicy { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownReadWriteEndpointFailoverPolicy { - // (undocumented) Automatic = "Automatic", - // (undocumented) Manual = "Manual" } // @public export enum KnownRecommendedActionCurrentState { - // (undocumented) Active = "Active", - // (undocumented) Error = "Error", - // (undocumented) Executing = "Executing", - // (undocumented) Expired = "Expired", - // (undocumented) Ignored = "Ignored", - // (undocumented) Monitoring = "Monitoring", - // (undocumented) Pending = "Pending", - // (undocumented) PendingRevert = "PendingRevert", - // (undocumented) Resolved = "Resolved", - // (undocumented) RevertCancelled = "RevertCancelled", - // (undocumented) Reverted = "Reverted", - // (undocumented) Reverting = "Reverting", - // (undocumented) Success = "Success", - // (undocumented) Verifying = "Verifying" } // @public export enum KnownReplicationLinkType { - // (undocumented) GEO = "GEO", - // (undocumented) Named = "NAMED" } +// @public +export enum KnownReplicationMode { + Async = "Async", + Sync = "Sync" +} + // @public export enum KnownReplicationState { - // (undocumented) CatchUP = "CATCH_UP", - // (undocumented) Pending = "PENDING", - // (undocumented) Seeding = "SEEDING", - // (undocumented) Suspended = "SUSPENDED" } // @public export enum KnownReplicaType { - // (undocumented) Primary = "Primary", - // (undocumented) ReadableSecondary = "ReadableSecondary" } // @public export enum KnownRestoreDetailsName { - // (undocumented) Default = "Default" } // @public export enum KnownSampleName { - // (undocumented) AdventureWorksLT = "AdventureWorksLT", - // (undocumented) WideWorldImportersFull = "WideWorldImportersFull", - // (undocumented) WideWorldImportersStd = "WideWorldImportersStd" } // @public export enum KnownSecondaryType { - // (undocumented) Geo = "Geo", - // (undocumented) Named = "Named" } // @public export enum KnownSecurityAlertPolicyName { - // (undocumented) Default = "Default" } // @public export enum KnownServerConnectionType { - // (undocumented) Default = "Default", - // (undocumented) Proxy = "Proxy", - // (undocumented) Redirect = "Redirect" } // @public export enum KnownServerKeyType { - // (undocumented) AzureKeyVault = "AzureKeyVault", - // (undocumented) ServiceManaged = "ServiceManaged" } // @public export enum KnownServerNetworkAccessFlag { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownServerTrustGroupPropertiesTrustScopesItem { - // (undocumented) GlobalTransactions = "GlobalTransactions", - // (undocumented) ServiceBroker = "ServiceBroker" } // @public export enum KnownServerWorkspaceFeature { - // (undocumented) Connected = "Connected", - // (undocumented) Disconnected = "Disconnected" } // @public export enum KnownServiceObjectiveName { - // (undocumented) Basic = "Basic", - // (undocumented) DS100 = "DS100", - // (undocumented) DS1000 = "DS1000", - // (undocumented) DS1200 = "DS1200", - // (undocumented) DS1500 = "DS1500", - // (undocumented) DS200 = "DS200", - // (undocumented) DS2000 = "DS2000", - // (undocumented) DS300 = "DS300", - // (undocumented) DS400 = "DS400", - // (undocumented) DS500 = "DS500", - // (undocumented) DS600 = "DS600", - // (undocumented) DW100 = "DW100", - // (undocumented) DW1000 = "DW1000", - // (undocumented) DW10000C = "DW10000c", - // (undocumented) DW1000C = "DW1000c", - // (undocumented) DW1200 = "DW1200", - // (undocumented) DW1500 = "DW1500", - // (undocumented) DW15000C = "DW15000c", - // (undocumented) DW1500C = "DW1500c", - // (undocumented) DW200 = "DW200", - // (undocumented) DW2000 = "DW2000", - // (undocumented) DW2000C = "DW2000c", - // (undocumented) DW2500C = "DW2500c", - // (undocumented) DW300 = "DW300", - // (undocumented) DW3000 = "DW3000", - // (undocumented) DW30000C = "DW30000c", - // (undocumented) DW3000C = "DW3000c", - // (undocumented) DW400 = "DW400", - // (undocumented) DW500 = "DW500", - // (undocumented) DW5000C = "DW5000c", - // (undocumented) DW600 = "DW600", - // (undocumented) DW6000 = "DW6000", - // (undocumented) DW6000C = "DW6000c", - // (undocumented) DW7500C = "DW7500c", - // (undocumented) ElasticPool = "ElasticPool", - // (undocumented) Free = "Free", - // (undocumented) P1 = "P1", - // (undocumented) P11 = "P11", - // (undocumented) P15 = "P15", - // (undocumented) P2 = "P2", - // (undocumented) P3 = "P3", - // (undocumented) P4 = "P4", - // (undocumented) P6 = "P6", - // (undocumented) PRS1 = "PRS1", - // (undocumented) PRS2 = "PRS2", - // (undocumented) PRS4 = "PRS4", - // (undocumented) PRS6 = "PRS6", - // (undocumented) S0 = "S0", - // (undocumented) S1 = "S1", - // (undocumented) S12 = "S12", - // (undocumented) S2 = "S2", - // (undocumented) S3 = "S3", - // (undocumented) S4 = "S4", - // (undocumented) S6 = "S6", - // (undocumented) S7 = "S7", - // (undocumented) S9 = "S9", - // (undocumented) System = "System", - // (undocumented) System0 = "System0", - // (undocumented) System1 = "System1", - // (undocumented) System2 = "System2", - // (undocumented) System2L = "System2L", - // (undocumented) System3 = "System3", - // (undocumented) System3L = "System3L", - // (undocumented) System4 = "System4", - // (undocumented) System4L = "System4L" } // @public export enum KnownServicePrincipalType { - // (undocumented) None = "None", - // (undocumented) SystemAssigned = "SystemAssigned" } // @public export enum KnownShortTermRetentionPolicyName { - // (undocumented) Default = "default" } // @public export enum KnownSqlAgentConfigurationPropertiesState { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownStorageCapabilityStorageAccountType { - // (undocumented) GRS = "GRS", - // (undocumented) LRS = "LRS", - // (undocumented) ZRS = "ZRS" } // @public export enum KnownStorageKeyType { - // (undocumented) SharedAccessKey = "SharedAccessKey", - // (undocumented) StorageAccessKey = "StorageAccessKey" } // @public export enum KnownSyncAgentState { - // (undocumented) NeverConnected = "NeverConnected", - // (undocumented) Offline = "Offline", - // (undocumented) Online = "Online" } // @public export enum KnownSyncConflictResolutionPolicy { - // (undocumented) HubWin = "HubWin", - // (undocumented) MemberWin = "MemberWin" } // @public export enum KnownSyncDirection { - // (undocumented) Bidirectional = "Bidirectional", - // (undocumented) OneWayHubToMember = "OneWayHubToMember", - // (undocumented) OneWayMemberToHub = "OneWayMemberToHub" } // @public export enum KnownSyncGroupLogType { - // (undocumented) All = "All", - // (undocumented) Error = "Error", - // (undocumented) Success = "Success", - // (undocumented) Warning = "Warning" } // @public export enum KnownSyncGroupState { - // (undocumented) Error = "Error", - // (undocumented) Good = "Good", - // (undocumented) NotReady = "NotReady", - // (undocumented) Progressing = "Progressing", - // (undocumented) + Warning = "Warning" +} + +// @public +export enum KnownSyncGroupsType { + All = "All", + Error = "Error", + Success = "Success", Warning = "Warning" } // @public export enum KnownSyncMemberDbType { - // (undocumented) AzureSqlDatabase = "AzureSqlDatabase", - // (undocumented) SqlServerDatabase = "SqlServerDatabase" } // @public export enum KnownSyncMemberState { - // (undocumented) DeProvisioned = "DeProvisioned", - // (undocumented) DeProvisionFailed = "DeProvisionFailed", - // (undocumented) DeProvisioning = "DeProvisioning", - // (undocumented) DisabledBackupRestore = "DisabledBackupRestore", - // (undocumented) DisabledTombstoneCleanup = "DisabledTombstoneCleanup", - // (undocumented) Provisioned = "Provisioned", - // (undocumented) ProvisionFailed = "ProvisionFailed", - // (undocumented) Provisioning = "Provisioning", - // (undocumented) ReprovisionFailed = "ReprovisionFailed", - // (undocumented) Reprovisioning = "Reprovisioning", - // (undocumented) SyncCancelled = "SyncCancelled", - // (undocumented) SyncCancelling = "SyncCancelling", - // (undocumented) SyncFailed = "SyncFailed", - // (undocumented) SyncInProgress = "SyncInProgress", - // (undocumented) SyncSucceeded = "SyncSucceeded", - // (undocumented) SyncSucceededWithWarnings = "SyncSucceededWithWarnings", - // (undocumented) UnProvisioned = "UnProvisioned", - // (undocumented) UnReprovisioned = "UnReprovisioned" } // @public export enum KnownTableTemporalType { - // (undocumented) HistoryTable = "HistoryTable", - // (undocumented) NonTemporalTable = "NonTemporalTable", - // (undocumented) SystemVersionedTemporalTable = "SystemVersionedTemporalTable" } // @public export enum KnownTransparentDataEncryptionName { - // (undocumented) Current = "current" } // @public export enum KnownUnitDefinitionType { - // (undocumented) Bytes = "Bytes", - // (undocumented) BytesPerSecond = "BytesPerSecond", - // (undocumented) Count = "Count", - // (undocumented) CountPerSecond = "CountPerSecond", - // (undocumented) Percent = "Percent", - // (undocumented) Seconds = "Seconds" } // @public export enum KnownUnitType { - // (undocumented) Bytes = "bytes", - // (undocumented) BytesPerSecond = "bytesPerSecond", - // (undocumented) Count = "count", - // (undocumented) CountPerSecond = "countPerSecond", - // (undocumented) Percent = "percent", - // (undocumented) Seconds = "seconds" } // @public export enum KnownUpsertManagedServerOperationStepStatus { - // (undocumented) Canceled = "Canceled", - // (undocumented) Completed = "Completed", - // (undocumented) Failed = "Failed", - // (undocumented) InProgress = "InProgress", - // (undocumented) NotStarted = "NotStarted", - // (undocumented) SlowedDown = "SlowedDown" } // @public export enum KnownVirtualNetworkRuleState { - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Initializing = "Initializing", - // (undocumented) InProgress = "InProgress", - // (undocumented) Ready = "Ready", - // (undocumented) Unknown = "Unknown" } // @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 type LedgerDigestUploads = ProxyResource & { +export interface LedgerDigestUploads extends ProxyResource { digestStorageEndpoint?: string; readonly state?: LedgerDigestUploadsState; -}; +} // @public export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { @@ -4402,9 +4200,9 @@ export interface LocationCapabilities { } // @public -export type LogicalDatabaseTransparentDataEncryption = ProxyResource & { +export interface LogicalDatabaseTransparentDataEncryption extends ProxyResource { state?: TransparentDataEncryptionState; -}; +} // @public export interface LogicalDatabaseTransparentDataEncryptionListResult { @@ -4412,6 +4210,12 @@ export interface LogicalDatabaseTransparentDataEncryptionListResult { readonly value?: LogicalDatabaseTransparentDataEncryption[]; } +// @public +export interface LogicalServerAdvancedThreatProtectionListResult { + readonly nextLink?: string; + readonly value?: ServerAdvancedThreatProtection[]; +} + // @public export interface LogicalServerSecurityAlertPolicyListResult { readonly nextLink?: string; @@ -4428,16 +4232,16 @@ export interface LogSizeCapability { export type LogSizeUnit = string; // @public -export type LongTermRetentionBackup = ProxyResource & { - readonly serverName?: string; - readonly serverCreateTime?: Date; - readonly databaseName?: string; - readonly databaseDeletionTime?: Date; - readonly backupTime?: Date; +export interface LongTermRetentionBackup extends ProxyResource { readonly backupExpirationTime?: Date; readonly backupStorageRedundancy?: BackupStorageRedundancy; + readonly backupTime?: Date; + readonly databaseDeletionTime?: Date; + readonly databaseName?: string; requestedBackupStorageRedundancy?: BackupStorageRedundancy; -}; + readonly serverCreateTime?: Date; + readonly serverName?: string; +} // @public export interface LongTermRetentionBackupListResult { @@ -4446,15 +4250,15 @@ export interface LongTermRetentionBackupListResult { } // @public -export type LongTermRetentionBackupOperationResult = ProxyResource & { - readonly requestId?: string; - readonly operationType?: string; +export interface LongTermRetentionBackupOperationResult extends ProxyResource { readonly fromBackupResourceId?: string; - readonly toBackupResourceId?: string; - readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; - readonly status?: string; readonly message?: string; -}; + readonly operationType?: string; + readonly requestId?: string; + readonly status?: string; + readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; + readonly toBackupResourceId?: string; +} // @public export interface LongTermRetentionBackups { @@ -4839,12 +4643,12 @@ export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends c export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; // @public -export type LongTermRetentionPolicy = ProxyResource & { - weeklyRetention?: string; +export interface LongTermRetentionPolicy extends ProxyResource { monthlyRetention?: string; - yearlyRetention?: string; + weeklyRetention?: string; weekOfYear?: number; -}; + yearlyRetention?: string; +} // @public export interface LongTermRetentionPolicyListResult { @@ -4864,15 +4668,15 @@ export interface MaintenanceConfigurationCapability { } // @public -export type MaintenanceWindowOptions = ProxyResource & { +export interface MaintenanceWindowOptions extends ProxyResource { + allowMultipleMaintenanceWindowsPerCycle?: boolean; + defaultDurationInMinutes?: number; isEnabled?: boolean; maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; - minDurationInMinutes?: number; - defaultDurationInMinutes?: number; minCycles?: number; + minDurationInMinutes?: number; timeGranularityInMinutes?: number; - allowMultipleMaintenanceWindowsPerCycle?: boolean; -}; +} // @public export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions { @@ -4887,9 +4691,10 @@ export interface MaintenanceWindowOptionsOperations { } // @public -export type MaintenanceWindows = ProxyResource & { +export interface MaintenanceWindows extends ProxyResource { + // (undocumented) timeRanges?: MaintenanceWindowTimeRange[]; -}; +} // @public export interface MaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { @@ -4965,9 +4770,9 @@ export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams ext export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; // @public -export type ManagedBackupShortTermRetentionPolicy = ProxyResource & { +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { retentionDays?: number; -}; +} // @public export interface ManagedBackupShortTermRetentionPolicyListResult { @@ -4976,25 +4781,73 @@ export interface ManagedBackupShortTermRetentionPolicyListResult { } // @public -export type ManagedDatabase = TrackedResource & { +export interface ManagedDatabase extends TrackedResource { + autoCompleteRestore?: boolean; + catalogCollation?: CatalogCollationType; collation?: string; - readonly status?: ManagedDatabaseStatus; + createMode?: ManagedDatabaseCreateMode; readonly creationDate?: Date; + readonly defaultSecondaryLocation?: string; readonly earliestRestorePoint?: Date; + readonly failoverGroupId?: string; + lastBackupName?: string; + longTermRetentionBackupResourceId?: string; + recoverableDatabaseId?: string; + restorableDroppedDatabaseId?: string; restorePointInTime?: Date; - readonly defaultSecondaryLocation?: string; - catalogCollation?: CatalogCollationType; - createMode?: ManagedDatabaseCreateMode; - storageContainerUri?: string; sourceDatabaseId?: string; - restorableDroppedDatabaseId?: string; + readonly status?: ManagedDatabaseStatus; storageContainerSasToken?: string; - readonly failoverGroupId?: string; - recoverableDatabaseId?: string; - longTermRetentionBackupResourceId?: string; - autoCompleteRestore?: boolean; - lastBackupName?: string; -}; + storageContainerUri?: string; +} + +// @public +export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { + readonly creationTime?: Date; + state?: AdvancedThreatProtectionState; + readonly systemData?: SystemData; +} + +// @public +export interface ManagedDatabaseAdvancedThreatProtectionListResult { + readonly nextLink?: string; + readonly value?: ManagedDatabaseAdvancedThreatProtection[]; +} + +// @public +export interface ManagedDatabaseAdvancedThreatProtectionSettings { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedDatabaseAdvancedThreatProtection, options?: ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; + +// @public +export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; + +// @public +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; + +// @public +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; // @public export interface ManagedDatabaseColumns { @@ -5059,6 +4912,63 @@ export interface ManagedDatabaseListResult { readonly value?: ManagedDatabase[]; } +// @public +export interface ManagedDatabaseMoveOperationListResult { + readonly nextLink?: string; + readonly value?: ManagedDatabaseMoveOperationResult[]; +} + +// @public +export interface ManagedDatabaseMoveOperationResult extends ProxyResource { + readonly errorCode?: number; + readonly errorDescription?: string; + readonly errorSeverity?: number; + readonly isCancellable?: boolean; + readonly isUserError?: boolean; + readonly operation?: string; + readonly operationFriendlyName?: string; + readonly operationMode?: MoveOperationMode; + readonly sourceDatabaseName?: string; + readonly sourceManagedInstanceId?: string; + readonly sourceManagedInstanceName?: string; + readonly startTime?: Date; + readonly state?: ManagementOperationState; + readonly targetDatabaseName?: string; + readonly targetManagedInstanceId?: string; + readonly targetManagedInstanceName?: string; +} + +// @public +export interface ManagedDatabaseMoveOperations { + get(resourceGroupName: string, locationName: string, operationId: string, options?: ManagedDatabaseMoveOperationsGetOptionalParams): Promise; + listByLocation(resourceGroupName: string, locationName: string, options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedDatabaseMoveOperationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; + +// @public +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions { + filter?: string; + onlyLatestPerDatabase?: boolean; +} + +// @public +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; + +// @public +export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams extends coreClient.OperationOptions { + filter?: string; + onlyLatestPerDatabase?: boolean; +} + +// @public +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; + // @public export interface ManagedDatabaseQueries { get(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: ManagedDatabaseQueriesGetOptionalParams): Promise; @@ -5114,18 +5024,18 @@ export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClie export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; // @public -export type ManagedDatabaseRestoreDetailsResult = ProxyResource & { - readonly status?: string; +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { + readonly blockReason?: string; readonly currentRestoringFileName?: string; - readonly lastRestoredFileName?: string; - readonly lastRestoredFileTime?: Date; - readonly percentCompleted?: number; - readonly unrestorableFiles?: string[]; - readonly numberOfFilesDetected?: number; + readonly lastRestoredFileName?: string; + readonly lastRestoredFileTime?: Date; readonly lastUploadedFileName?: string; readonly lastUploadedFileTime?: Date; - readonly blockReason?: string; -}; + readonly numberOfFilesDetected?: number; + readonly percentCompleted?: number; + readonly status?: string; + readonly unrestorableFiles?: string[]; +} // @public export interface ManagedDatabases { @@ -5228,16 +5138,16 @@ export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParam export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; // @public -export type ManagedDatabaseSecurityAlertPolicy = ProxyResource & { - state?: SecurityAlertPolicyState; +export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { + readonly creationTime?: Date; disabledAlerts?: string[]; - emailAddresses?: string[]; emailAccountAdmins?: boolean; - storageEndpoint?: string; - storageAccountAccessKey?: string; + emailAddresses?: string[]; retentionDays?: number; - readonly creationTime?: Date; -}; + state?: SecurityAlertPolicyState; + storageAccountAccessKey?: string; + storageEndpoint?: string; +} // @public export interface ManagedDatabaseSecurityAlertPolicyListResult { @@ -5604,47 +5514,47 @@ export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalPa export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; // @public -export type ManagedInstance = TrackedResource & { - identity?: ResourceIdentity; - sku?: Sku; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; - managedInstanceCreateMode?: ManagedServerCreateMode; - readonly fullyQualifiedDomainName?: string; +export interface ManagedInstance extends TrackedResource { administratorLogin?: string; administratorLoginPassword?: string; - subnetId?: string; - readonly state?: string; - licenseType?: ManagedInstanceLicenseType; - vCores?: number; - storageSizeInGB?: number; + administrators?: ManagedInstanceExternalAdministrator; collation?: string; + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; readonly dnsZone?: string; dnsZonePartner?: string; - publicDataEndpointEnabled?: boolean; - sourceManagedInstanceId?: string; - restorePointInTime?: Date; - proxyOverride?: ManagedInstanceProxyOverride; - timezoneId?: string; + readonly fullyQualifiedDomainName?: string; + identity?: ResourceIdentity; instancePoolId?: string; + keyId?: string; + licenseType?: ManagedInstanceLicenseType; maintenanceConfigurationId?: string; - readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + managedInstanceCreateMode?: ManagedServerCreateMode; minimalTlsVersion?: string; - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - zoneRedundant?: boolean; primaryUserAssignedIdentityId?: string; - keyId?: string; - administrators?: ManagedInstanceExternalAdministrator; + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + proxyOverride?: ManagedInstanceProxyOverride; + publicDataEndpointEnabled?: boolean; + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + restorePointInTime?: Date; servicePrincipal?: ServicePrincipal; -}; + sku?: Sku; + sourceManagedInstanceId?: string; + readonly state?: string; + storageSizeInGB?: number; + subnetId?: string; + timezoneId?: string; + vCores?: number; + zoneRedundant?: boolean; +} // @public -export type ManagedInstanceAdministrator = ProxyResource & { +export interface ManagedInstanceAdministrator extends ProxyResource { administratorType?: ManagedInstanceAdministratorType; login?: string; sid?: string; tenantId?: string; -}; +} // @public export interface ManagedInstanceAdministratorListResult { @@ -5702,9 +5612,60 @@ export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanc export type ManagedInstanceAdministratorType = string; // @public -export type ManagedInstanceAzureADOnlyAuthentication = ProxyResource & { +export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { + readonly creationTime?: Date; + state?: AdvancedThreatProtectionState; + readonly systemData?: SystemData; +} + +// @public +export interface ManagedInstanceAdvancedThreatProtectionListResult { + readonly nextLink?: string; + readonly value?: ManagedInstanceAdvancedThreatProtection[]; +} + +// @public +export interface ManagedInstanceAdvancedThreatProtectionSettings { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedInstanceAdvancedThreatProtection, options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise, ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ManagedInstanceAdvancedThreatProtection, options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; + +// @public +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; + +// @public +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; + +// @public +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; + +// @public +export interface ManagedInstanceAzureADOnlyAuthentication extends ProxyResource { azureADOnlyAuthentication?: boolean; -}; +} // @public export interface ManagedInstanceAzureADOnlyAuthentications { @@ -5758,6 +5719,75 @@ export interface ManagedInstanceAzureADOnlyAuthListResult { readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; } +// @public +export interface ManagedInstanceDtc extends ProxyResource { + dtcEnabled?: boolean; + readonly dtcHostNameDnsSuffix?: string; + externalDnsSuffixSearchList?: string[]; + readonly provisioningState?: ProvisioningState; + securitySettings?: ManagedInstanceDtcSecuritySettings; +} + +// @public +export interface ManagedInstanceDtcListResult { + readonly nextLink?: string; + readonly value?: ManagedInstanceDtc[]; +} + +// @public +export interface ManagedInstanceDtcs { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, dtcName: DtcName, parameters: ManagedInstanceDtc, options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams): Promise, ManagedInstanceDtcsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, dtcName: DtcName, parameters: ManagedInstanceDtc, options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, dtcName: DtcName, options?: ManagedInstanceDtcsGetOptionalParams): Promise; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; + +// @public +export interface ManagedInstanceDtcSecuritySettings { + snaLu6Point2TransactionsEnabled?: boolean; + transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; + xaTransactionsDefaultTimeout?: number; + xaTransactionsEnabled?: boolean; + xaTransactionsMaximumTimeout?: number; +} + +// @public +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; + +// @public +export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; + +// @public +export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; + +// @public +export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { + allowInboundEnabled?: boolean; + allowOutboundEnabled?: boolean; + authentication?: string; +} + // @public export interface ManagedInstanceEditionCapability { readonly name?: string; @@ -5769,14 +5799,14 @@ export interface ManagedInstanceEditionCapability { } // @public -export type ManagedInstanceEncryptionProtector = ProxyResource & { +export interface ManagedInstanceEncryptionProtector extends ProxyResource { + autoRotationEnabled?: boolean; readonly kind?: string; serverKeyName?: string; serverKeyType?: ServerKeyType; - readonly uri?: string; readonly thumbprint?: string; - autoRotationEnabled?: boolean; -}; + readonly uri?: string; +} // @public export interface ManagedInstanceEncryptionProtectorListResult { @@ -5851,14 +5881,14 @@ export interface ManagedInstanceFamilyCapability { } // @public -export type ManagedInstanceKey = ProxyResource & { +export interface ManagedInstanceKey extends ProxyResource { + readonly autoRotationEnabled?: boolean; + readonly creationDate?: Date; readonly kind?: string; serverKeyType?: ServerKeyType; - uri?: string; readonly thumbprint?: string; - readonly creationDate?: Date; - readonly autoRotationEnabled?: boolean; -}; + uri?: string; +} // @public export interface ManagedInstanceKeyListResult { @@ -5924,15 +5954,15 @@ export interface ManagedInstanceListResult { } // @public -export type ManagedInstanceLongTermRetentionBackup = ProxyResource & { - readonly managedInstanceName?: string; - readonly managedInstanceCreateTime?: Date; - readonly databaseName?: string; - readonly databaseDeletionTime?: Date; - readonly backupTime?: Date; +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { readonly backupExpirationTime?: Date; readonly backupStorageRedundancy?: BackupStorageRedundancy; -}; + readonly backupTime?: Date; + readonly databaseDeletionTime?: Date; + readonly databaseName?: string; + readonly managedInstanceCreateTime?: Date; + readonly managedInstanceName?: string; +} // @public export interface ManagedInstanceLongTermRetentionBackupListResult { @@ -5979,12 +6009,12 @@ export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalP export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; // @public -export type ManagedInstanceLongTermRetentionPolicy = ProxyResource & { - weeklyRetention?: string; +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { monthlyRetention?: string; - yearlyRetention?: string; + weeklyRetention?: string; weekOfYear?: number; -}; + yearlyRetention?: string; +} // @public export interface ManagedInstanceLongTermRetentionPolicyListResult { @@ -6003,23 +6033,23 @@ export interface ManagedInstanceMaintenanceConfigurationCapability { } // @public -export type ManagedInstanceOperation = ProxyResource & { - readonly managedInstanceName?: string; - readonly operation?: string; - readonly operationFriendlyName?: string; - readonly percentComplete?: number; - readonly startTime?: Date; - readonly state?: ManagementOperationState; +export interface ManagedInstanceOperation extends ProxyResource { + readonly description?: string; readonly errorCode?: number; readonly errorDescription?: string; readonly errorSeverity?: number; - readonly isUserError?: boolean; readonly estimatedCompletionTime?: Date; - readonly description?: string; readonly isCancellable?: boolean; + readonly isUserError?: boolean; + readonly managedInstanceName?: string; + readonly operation?: string; + readonly operationFriendlyName?: string; readonly operationParameters?: ManagedInstanceOperationParametersPair; readonly operationSteps?: ManagedInstanceOperationSteps; -}; + readonly percentComplete?: number; + readonly startTime?: Date; + readonly state?: ManagementOperationState; +} // @public export interface ManagedInstanceOperationListResult { @@ -6085,11 +6115,11 @@ export interface ManagedInstancePecProperty { } // @public -export type ManagedInstancePrivateEndpointConnection = ProxyResource & { +export interface ManagedInstancePrivateEndpointConnection extends ProxyResource { privateEndpoint?: ManagedInstancePrivateEndpointProperty; privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; readonly provisioningState?: string; -}; +} // @public export interface ManagedInstancePrivateEndpointConnectionListResult { @@ -6156,9 +6186,9 @@ export interface ManagedInstancePrivateEndpointProperty { } // @public -export type ManagedInstancePrivateLink = ProxyResource & { +export interface ManagedInstancePrivateLink extends ProxyResource { readonly properties?: ManagedInstancePrivateLinkProperties; -}; +} // @public export interface ManagedInstancePrivateLinkListResult { @@ -6213,9 +6243,9 @@ export type ManagedInstancePropertiesProvisioningState = string; export type ManagedInstanceProxyOverride = string; // @public -export type ManagedInstanceQuery = ProxyResource & { +export interface ManagedInstanceQuery extends ProxyResource { queryText?: string; -}; +} // @public export interface ManagedInstanceQueryStatistics { @@ -6428,12 +6458,12 @@ export interface ManagedInstanceVersionCapability { } // @public -export type ManagedInstanceVulnerabilityAssessment = ProxyResource & { +export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; + storageAccountAccessKey?: string; storageContainerPath?: string; storageContainerSasKey?: string; - storageAccountAccessKey?: string; - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -}; +} // @public export interface ManagedInstanceVulnerabilityAssessmentListResult { @@ -6468,70 +6498,149 @@ export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extend export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; // @public -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions { +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; + +// @public +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; + +// @public +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams): Promise; + listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; + +// @public +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; + +// @public +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; + +// @public +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; + +// @public +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; + +// @public +export type ManagedServerCreateMode = string; + +// @public +export interface ManagedServerDnsAlias extends ProxyResource { + readonly azureDnsRecord?: string; + readonly publicAzureDnsRecord?: string; } // @public -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; - -// @public -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams extends coreClient.OperationOptions { +export interface ManagedServerDnsAliasAcquisition { + oldManagedServerDnsAliasResourceId: string; } // @public -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +export interface ManagedServerDnsAliasCreation { + createDnsRecord?: boolean; +} // @public -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; - beginUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams): Promise; - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams): Promise; - listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams): PagedAsyncIterableIterator; +export interface ManagedServerDnsAliases { + beginAcquire(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasAcquisition, options?: ManagedServerDnsAliasesAcquireOptionalParams): Promise, ManagedServerDnsAliasesAcquireResponse>>; + beginAcquireAndWait(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasAcquisition, options?: ManagedServerDnsAliasesAcquireOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasCreation, options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams): Promise, ManagedServerDnsAliasesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, parameters: ManagedServerDnsAliasCreation, options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, options?: ManagedServerDnsAliasesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, options?: ManagedServerDnsAliasesDeleteOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, dnsAliasName: string, options?: ManagedServerDnsAliasesGetOptionalParams): Promise; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; // @public -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; // @public -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions { +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions { +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; + +// @public +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; // @public -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions { } // @public -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; // @public -export type ManagedServerCreateMode = string; +export interface ManagedServerDnsAliasListResult { + readonly nextLink?: string; + readonly value?: ManagedServerDnsAlias[]; +} // @public export interface ManagedServerSecurityAlertPolicies { @@ -6572,17 +6681,17 @@ export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; // @public -export type ManagedServerSecurityAlertPolicy = ProxyResource & { - readonly systemData?: SystemData; - state?: SecurityAlertsPolicyState; +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { + readonly creationTime?: Date; disabledAlerts?: string[]; - emailAddresses?: string[]; emailAccountAdmins?: boolean; - storageEndpoint?: string; - storageAccountAccessKey?: string; + emailAddresses?: string[]; retentionDays?: number; - readonly creationTime?: Date; -}; + state?: SecurityAlertsPolicyState; + storageAccountAccessKey?: string; + storageEndpoint?: string; + readonly systemData?: SystemData; +} // @public export interface ManagedServerSecurityAlertPolicyListResult { @@ -6594,9 +6703,9 @@ export interface ManagedServerSecurityAlertPolicyListResult { export type ManagedShortTermRetentionPolicyName = string; // @public -export type ManagedTransparentDataEncryption = ProxyResource & { +export interface ManagedTransparentDataEncryption extends ProxyResource { state?: TransparentDataEncryptionState; -}; +} // @public export interface ManagedTransparentDataEncryptionListResult { @@ -6687,6 +6796,9 @@ export interface MinCapacityCapability { readonly value?: number; } +// @public +export type MoveOperationMode = string; + // @public export interface Name { localizedValue?: string; @@ -6742,38 +6854,6 @@ export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } -// @public -export type OperationsHealth = ProxyResource & { - readonly namePropertiesName?: string; - readonly health?: string; - readonly description?: string; -}; - -// @public -export interface OperationsHealthListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult; - -// @public -export interface OperationsHealthListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsHealthListByLocationResponse = OperationsHealthListResult; - -// @public -export interface OperationsHealthListResult { - readonly nextLink?: string; - readonly value?: OperationsHealth[]; -} - -// @public -export interface OperationsHealthOperations { - listByLocation(locationName: string, options?: OperationsHealthListByLocationOptionalParams): PagedAsyncIterableIterator; -} - // @public export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { } @@ -6789,9 +6869,9 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption export type OperationsListResponse = OperationListResult; // @public -export type OutboundFirewallRule = ProxyResource & { +export interface OutboundFirewallRule extends ProxyResource { readonly provisioningState?: string; -}; +} // @public export interface OutboundFirewallRuleListResult { @@ -6877,11 +6957,11 @@ export type PrimaryAggregationType = string; export type PrincipalType = string; // @public -export type PrivateEndpointConnection = ProxyResource & { +export interface PrivateEndpointConnection extends ProxyResource { privateEndpoint?: PrivateEndpointProperty; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; readonly provisioningState?: PrivateEndpointProvisioningState; -}; +} // @public export interface PrivateEndpointConnectionListResult { @@ -6958,9 +7038,9 @@ export interface PrivateEndpointProperty { export type PrivateEndpointProvisioningState = string; // @public -export type PrivateLinkResource = ProxyResource & { +export interface PrivateLinkResource extends ProxyResource { readonly properties?: PrivateLinkResourceProperties; -}; +} // @public export interface PrivateLinkResourceListResult { @@ -7019,10 +7099,12 @@ export type PrivateLinkServiceConnectionStateStatus = string; export type ProvisioningState = string; // @public -export type ProxyResource = Resource & {}; +export interface ProxyResource extends Resource { +} // @public -export type ProxyResourceWithWritableName = ResourceWithWritableName & {}; +export interface ProxyResourceWithWritableName extends ResourceWithWritableName { +} // @public export interface QueryMetricInterval { @@ -7049,13 +7131,13 @@ export interface QueryMetricProperties { export type QueryMetricUnitType = string; // @public (undocumented) -export type QueryStatistics = ProxyResource & { +export interface QueryStatistics extends ProxyResource { readonly databaseName?: string; - readonly queryId?: string; - readonly startTime?: string; readonly endTime?: string; intervals?: QueryMetricInterval[]; -}; + readonly queryId?: string; + readonly startTime?: string; +} // @public export interface QueryStatisticsProperties { @@ -7083,35 +7165,35 @@ export interface ReadScaleCapability { export type ReadWriteEndpointFailoverPolicy = string; // @public -export type RecommendedAction = ProxyResource & { +export interface RecommendedAction extends ProxyResource { + readonly details?: { + [propertyName: string]: Record; + }; + readonly errorDetails?: RecommendedActionErrorInfo; + readonly estimatedImpact?: RecommendedActionImpactRecord[]; + readonly executeActionDuration?: string; + readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; + readonly executeActionInitiatedTime?: Date; + readonly executeActionStartTime?: Date; + readonly implementationDetails?: RecommendedActionImplementationInfo; + readonly isArchivedAction?: boolean; + readonly isExecutableAction?: boolean; + readonly isRevertableAction?: boolean; readonly kind?: string; + readonly lastRefresh?: Date; + readonly linkedObjects?: string[]; readonly location?: string; + readonly observedImpact?: RecommendedActionImpactRecord[]; readonly recommendationReason?: string; - readonly validSince?: Date; - readonly lastRefresh?: Date; - state?: RecommendedActionStateInfo; - readonly isExecutableAction?: boolean; - readonly isRevertableAction?: boolean; - readonly isArchivedAction?: boolean; - readonly executeActionStartTime?: Date; - readonly executeActionDuration?: string; - readonly revertActionStartTime?: Date; readonly revertActionDuration?: string; - readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; - readonly executeActionInitiatedTime?: Date; readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; readonly revertActionInitiatedTime?: Date; + readonly revertActionStartTime?: Date; readonly score?: number; - readonly implementationDetails?: RecommendedActionImplementationInfo; - readonly errorDetails?: RecommendedActionErrorInfo; - readonly estimatedImpact?: RecommendedActionImpactRecord[]; - readonly observedImpact?: RecommendedActionImpactRecord[]; + state?: RecommendedActionStateInfo; readonly timeSeries?: RecommendedActionMetricInfo[]; - readonly linkedObjects?: string[]; - readonly details?: { - [propertyName: string]: Record; - }; -}; + readonly validSince?: Date; +} // @public export type RecommendedActionCurrentState = string; @@ -7166,12 +7248,13 @@ export interface RecommendedSensitivityLabelsUpdateOptionalParams extends coreCl } // @public -export type RecommendedSensitivityLabelUpdate = ProxyResource & { +export interface RecommendedSensitivityLabelUpdate extends ProxyResource { + column?: string; + // (undocumented) op?: RecommendedSensitivityLabelUpdateKind; schema?: string; table?: string; - column?: string; -}; +} // @public export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; @@ -7183,12 +7266,12 @@ export interface RecommendedSensitivityLabelUpdateList { } // @public -export type RecoverableDatabase = ProxyResource & { +export interface RecoverableDatabase extends ProxyResource { readonly edition?: string; - readonly serviceLevelObjective?: string; readonly elasticPoolName?: string; readonly lastAvailableBackupDate?: Date; -}; + readonly serviceLevelObjective?: string; +} // @public export interface RecoverableDatabaseListResult { @@ -7216,9 +7299,9 @@ export interface RecoverableDatabasesListByServerOptionalParams extends coreClie export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; // @public -export type RecoverableManagedDatabase = ProxyResource & { +export interface RecoverableManagedDatabase extends ProxyResource { readonly lastAvailableBackupDate?: string; -}; +} // @public export interface RecoverableManagedDatabaseListResult { @@ -7254,19 +7337,19 @@ export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; // @public -export type ReplicationLink = ProxyResource & { - readonly partnerServer?: string; +export interface ReplicationLink extends ProxyResource { + readonly isTerminationAllowed?: boolean; + readonly linkType?: ReplicationLinkType; readonly partnerDatabase?: string; readonly partnerLocation?: string; - readonly role?: ReplicationRole; readonly partnerRole?: ReplicationRole; - readonly replicationMode?: string; - readonly startTime?: Date; + readonly partnerServer?: string; readonly percentComplete?: number; + readonly replicationMode?: string; readonly replicationState?: ReplicationState; - readonly isTerminationAllowed?: boolean; - readonly linkType?: ReplicationLinkType; -}; + readonly role?: ReplicationRole; + readonly startTime?: Date; +} // @public export interface ReplicationLinkListResult { @@ -7276,12 +7359,10 @@ export interface ReplicationLinkListResult { // @public export interface ReplicationLinks { - beginFailover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams): Promise, void>>; - beginFailoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams): Promise, void>>; - beginFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams): Promise; - beginFailoverAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams): Promise; - beginUnlink(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, parameters: UnlinkParameters, options?: ReplicationLinksUnlinkOptionalParams): Promise, void>>; - beginUnlinkAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, parameters: UnlinkParameters, options?: ReplicationLinksUnlinkOptionalParams): Promise; + beginFailover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams): Promise, ReplicationLinksFailoverResponse>>; + beginFailoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams): Promise, ReplicationLinksFailoverAllowDataLossResponse>>; + beginFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams): Promise; + beginFailoverAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams): Promise; delete(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksDeleteOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: ReplicationLinksListByDatabaseOptionalParams): PagedAsyncIterableIterator; @@ -7298,12 +7379,18 @@ export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends cor updateIntervalInMs?: number; } +// @public +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; + // @public export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ReplicationLinksFailoverResponse = ReplicationLink; + // @public export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions { } @@ -7340,13 +7427,10 @@ export interface ReplicationLinksListByServerOptionalParams extends coreClient.O export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; // @public -export interface ReplicationLinksUnlinkOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type ReplicationLinkType = string; // @public -export type ReplicationLinkType = string; +export type ReplicationMode = string; // @public export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy"; @@ -7387,19 +7471,19 @@ export interface ResourceWithWritableName { } // @public -export type RestorableDroppedDatabase = ProxyResource & { - sku?: Sku; +export interface RestorableDroppedDatabase extends ProxyResource { + readonly backupStorageRedundancy?: BackupStorageRedundancy; + readonly creationDate?: Date; + readonly databaseName?: string; + readonly deletionDate?: Date; + readonly earliestRestoreDate?: Date; location?: string; + readonly maxSizeBytes?: number; + sku?: Sku; tags?: { [propertyName: string]: string; }; - readonly databaseName?: string; - readonly maxSizeBytes?: number; - readonly creationDate?: Date; - readonly deletionDate?: Date; - readonly earliestRestoreDate?: Date; - readonly backupStorageRedundancy?: BackupStorageRedundancy; -}; +} // @public export interface RestorableDroppedDatabaseListResult { @@ -7435,12 +7519,12 @@ export interface RestorableDroppedDatabasesListByServerOptionalParams extends co export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; // @public -export type RestorableDroppedManagedDatabase = TrackedResource & { - readonly databaseName?: string; +export interface RestorableDroppedManagedDatabase extends TrackedResource { readonly creationDate?: Date; + readonly databaseName?: string; readonly deletionDate?: Date; readonly earliestRestoreDate?: Date; -}; +} // @public export interface RestorableDroppedManagedDatabaseListResult { @@ -7479,13 +7563,13 @@ export type RestorableDroppedManagedDatabasesListByInstanceResponse = Restorable export type RestoreDetailsName = string; // @public -export type RestorePoint = ProxyResource & { - readonly location?: string; - readonly restorePointType?: RestorePointType; +export interface RestorePoint extends ProxyResource { readonly earliestRestoreDate?: Date; + readonly location?: string; readonly restorePointCreationDate?: Date; readonly restorePointLabel?: string; -}; + readonly restorePointType?: RestorePointType; +} // @public export interface RestorePointListResult { @@ -7555,17 +7639,17 @@ export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; // @public -export type SecurityEvent = ProxyResource & { - readonly eventTime?: Date; - readonly securityEventType?: SecurityEventType; - readonly subscription?: string; - readonly server?: string; - readonly database?: string; - readonly clientIp?: string; +export interface SecurityEvent extends ProxyResource { readonly applicationName?: string; + readonly clientIp?: string; + readonly database?: string; + readonly eventTime?: Date; readonly principalName?: string; readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; -}; + readonly securityEventType?: SecurityEventType; + readonly server?: string; + readonly subscription?: string; +} // @public export interface SecurityEventCollection { @@ -7594,18 +7678,19 @@ export interface SecurityEventSqlInjectionAdditionalProperties { export type SecurityEventType = "Undefined" | "SqlInjectionVulnerability" | "SqlInjectionExploit"; // @public -export type SensitivityLabel = ProxyResource & { - readonly managedBy?: string; - readonly schemaName?: string; - readonly tableName?: string; +export interface SensitivityLabel extends ProxyResource { readonly columnName?: string; - labelName?: string; - labelId?: string; informationType?: string; informationTypeId?: string; readonly isDisabled?: boolean; + labelId?: string; + labelName?: string; + readonly managedBy?: string; + // (undocumented) rank?: SensitivityLabelRank; -}; + readonly schemaName?: string; + readonly tableName?: string; +} // @public export interface SensitivityLabelListResult { @@ -7708,42 +7793,88 @@ export interface SensitivityLabelsUpdateOptionalParams extends coreClient.Operat } // @public -export type SensitivityLabelUpdate = ProxyResource & { +export interface SensitivityLabelUpdate extends ProxyResource { + column?: string; + // (undocumented) op?: SensitivityLabelUpdateKind; schema?: string; - table?: string; - column?: string; sensitivityLabel?: SensitivityLabel; -}; + table?: string; +} + +// @public +export type SensitivityLabelUpdateKind = "set" | "remove"; + +// @public +export interface SensitivityLabelUpdateList { + // (undocumented) + operations?: SensitivityLabelUpdate[]; +} + +// @public +export interface Server extends TrackedResource { + administratorLogin?: string; + administratorLoginPassword?: string; + administrators?: ServerExternalAdministrator; + federatedClientId?: string; + readonly fullyQualifiedDomainName?: string; + identity?: ResourceIdentity; + keyId?: string; + readonly kind?: string; + minimalTlsVersion?: string; + primaryUserAssignedIdentityId?: string; + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + publicNetworkAccess?: ServerNetworkAccessFlag; + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; + readonly state?: string; + version?: string; + readonly workspaceFeature?: ServerWorkspaceFeature; +} + +// @public +export interface ServerAdvancedThreatProtection extends ProxyResource { + readonly creationTime?: Date; + state?: AdvancedThreatProtectionState; + readonly systemData?: SystemData; +} + +// @public +export interface ServerAdvancedThreatProtectionSettings { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ServerAdvancedThreatProtection, options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise, ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, parameters: ServerAdvancedThreatProtection, options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, advancedThreatProtectionName: AdvancedThreatProtectionName, options?: ServerAdvancedThreatProtectionSettingsGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; + +// @public +export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; + +// @public +export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams extends coreClient.OperationOptions { +} // @public -export type SensitivityLabelUpdateKind = "set" | "remove"; +export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; // @public -export interface SensitivityLabelUpdateList { - // (undocumented) - operations?: SensitivityLabelUpdate[]; +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams extends coreClient.OperationOptions { } // @public -export type Server = TrackedResource & { - identity?: ResourceIdentity; - readonly kind?: string; - administratorLogin?: string; - administratorLoginPassword?: string; - version?: string; - readonly state?: string; - readonly fullyQualifiedDomainName?: string; - readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; - minimalTlsVersion?: string; - publicNetworkAccess?: ServerNetworkAccessFlag; - readonly workspaceFeature?: ServerWorkspaceFeature; - primaryUserAssignedIdentityId?: string; - federatedClientId?: string; - keyId?: string; - administrators?: ServerExternalAdministrator; - restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; -}; +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; // @public export interface ServerAdvisors { @@ -7775,13 +7906,13 @@ export interface ServerAdvisorsUpdateOptionalParams extends coreClient.Operation export type ServerAdvisorsUpdateResponse = Advisor; // @public -export type ServerAutomaticTuning = ProxyResource & { - desiredState?: AutomaticTuningServerMode; +export interface ServerAutomaticTuning extends ProxyResource { readonly actualState?: AutomaticTuningServerMode; + desiredState?: AutomaticTuningServerMode; options?: { [propertyName: string]: AutomaticTuningServerOptions; }; -}; +} // @public export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions { @@ -7804,13 +7935,13 @@ export interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.Op export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; // @public -export type ServerAzureADAdministrator = ProxyResource & { +export interface ServerAzureADAdministrator extends ProxyResource { administratorType?: AdministratorType; + readonly azureADOnlyAuthentication?: boolean; login?: string; sid?: string; tenantId?: string; - readonly azureADOnlyAuthentication?: boolean; -}; +} // @public export interface ServerAzureADAdministrators { @@ -7859,9 +7990,9 @@ export interface ServerAzureADAdministratorsListByServerOptionalParams extends c export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; // @public -export type ServerAzureADOnlyAuthentication = ProxyResource & { +export interface ServerAzureADOnlyAuthentication extends ProxyResource { azureADOnlyAuthentication?: boolean; -}; +} // @public export interface ServerAzureADOnlyAuthentications { @@ -7948,18 +8079,19 @@ export interface ServerBlobAuditingPoliciesListByServerOptionalParams extends co export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; // @public -export type ServerBlobAuditingPolicy = ProxyResource & { - isDevopsAuditEnabled?: boolean; - retentionDays?: number; +export interface ServerBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; - isStorageSecondaryKeyInUse?: boolean; isAzureMonitorTargetEnabled?: boolean; + isDevopsAuditEnabled?: boolean; + isManagedIdentityInUse?: boolean; + isStorageSecondaryKeyInUse?: boolean; queueDelayMs?: number; + retentionDays?: number; state?: BlobAuditingPolicyState; - storageEndpoint?: string; storageAccountAccessKey?: string; storageAccountSubscriptionId?: string; -}; + storageEndpoint?: string; +} // @public export interface ServerBlobAuditingPolicyListResult { @@ -7968,12 +8100,12 @@ export interface ServerBlobAuditingPolicyListResult { } // @public -export type ServerCommunicationLink = ProxyResource & { - readonly location?: string; +export interface ServerCommunicationLink extends ProxyResource { readonly kind?: string; - readonly state?: string; + readonly location?: string; partnerServer?: string; -}; + readonly state?: string; +} // @public export interface ServerCommunicationLinkListResult { @@ -8055,11 +8187,11 @@ export interface ServerConnectionPoliciesListByServerOptionalParams extends core export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; // @public -export type ServerConnectionPolicy = ProxyResource & { - readonly location?: string; - readonly kind?: string; +export interface ServerConnectionPolicy extends ProxyResource { connectionType?: ServerConnectionType; -}; + readonly kind?: string; + readonly location?: string; +} // @public export interface ServerConnectionPolicyListResult { @@ -8071,14 +8203,14 @@ export interface ServerConnectionPolicyListResult { export type ServerConnectionType = string; // @public -export type ServerDevOpsAuditingSettings = ProxyResource & { - readonly systemData?: SystemData; +export interface ServerDevOpsAuditingSettings extends ProxyResource { isAzureMonitorTargetEnabled?: boolean; state?: BlobAuditingPolicyState; - storageEndpoint?: string; storageAccountAccessKey?: string; storageAccountSubscriptionId?: string; -}; + storageEndpoint?: string; + readonly systemData?: SystemData; +} // @public export interface ServerDevOpsAuditSettings { @@ -8125,9 +8257,9 @@ export interface ServerDevOpsAuditSettingsListResult { } // @public -export type ServerDnsAlias = ProxyResource & { +export interface ServerDnsAlias extends ProxyResource { readonly azureDnsRecord?: string; -}; +} // @public export interface ServerDnsAliasAcquisition { @@ -8213,16 +8345,16 @@ export interface ServerInfo { } // @public -export type ServerKey = ProxyResource & { +export interface ServerKey extends ProxyResource { + readonly autoRotationEnabled?: boolean; + readonly creationDate?: Date; readonly kind?: string; readonly location?: string; - readonly subregion?: string; serverKeyType?: ServerKeyType; - uri?: string; + readonly subregion?: string; readonly thumbprint?: string; - readonly creationDate?: Date; - readonly autoRotationEnabled?: boolean; -}; + uri?: string; +} // @public export interface ServerKeyListResult { @@ -8289,21 +8421,21 @@ export interface ServerListResult { export type ServerNetworkAccessFlag = string; // @public -export type ServerOperation = ProxyResource & { +export interface ServerOperation extends ProxyResource { + readonly description?: string; + readonly errorCode?: number; + readonly errorDescription?: string; + readonly errorSeverity?: number; + readonly estimatedCompletionTime?: Date; + readonly isCancellable?: boolean; + readonly isUserError?: boolean; 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 ServerOperationListResult { @@ -8413,17 +8545,17 @@ export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends c export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; // @public -export type ServerSecurityAlertPolicy = ProxyResource & { - readonly systemData?: SystemData; - state?: SecurityAlertsPolicyState; +export interface ServerSecurityAlertPolicy extends ProxyResource { + readonly creationTime?: Date; disabledAlerts?: string[]; - emailAddresses?: string[]; emailAccountAdmins?: boolean; - storageEndpoint?: string; - storageAccountAccessKey?: string; + emailAddresses?: string[]; retentionDays?: number; - readonly creationTime?: Date; -}; + state?: SecurityAlertsPolicyState; + storageAccountAccessKey?: string; + storageEndpoint?: string; + readonly systemData?: SystemData; +} // @public export interface ServersGetOptionalParams extends coreClient.OperationOptions { @@ -8484,10 +8616,69 @@ export interface ServersUpdateOptionalParams extends coreClient.OperationOptions export type ServersUpdateResponse = Server; // @public -export type ServerTrustGroup = ProxyResource & { +export interface ServerTrustCertificate extends ProxyResource { + readonly certificateName?: string; + publicBlob?: string; + readonly thumbprint?: string; +} + +// @public +export interface ServerTrustCertificates { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, certificateName: string, parameters: ServerTrustCertificate, options?: ServerTrustCertificatesCreateOrUpdateOptionalParams): Promise, ServerTrustCertificatesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, certificateName: string, parameters: ServerTrustCertificate, options?: ServerTrustCertificatesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesDeleteOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, certificateName: string, options?: ServerTrustCertificatesGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ServerTrustCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; + +// @public +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; + +// @public +export interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; + +// @public +export interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; + +// @public +export interface ServerTrustCertificatesListResult { + readonly nextLink?: string; + readonly value?: ServerTrustCertificate[]; +} + +// @public +export interface ServerTrustGroup extends ProxyResource { groupMembers?: ServerInfo[]; trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; -}; +} // @public export interface ServerTrustGroupListResult { @@ -8619,12 +8810,12 @@ export interface ServerVersionCapability { } // @public -export type ServerVulnerabilityAssessment = ProxyResource & { +export interface ServerVulnerabilityAssessment extends ProxyResource { + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; + storageAccountAccessKey?: string; storageContainerPath?: string; storageContainerSasKey?: string; - storageAccountAccessKey?: string; - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -}; +} // @public export interface ServerVulnerabilityAssessmentListResult { @@ -8676,13 +8867,13 @@ export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabi export type ServerWorkspaceFeature = string; // @public -export type ServiceObjective = ProxyResource & { - readonly serviceObjectiveName?: string; - readonly isDefault?: boolean; - readonly isSystem?: boolean; +export interface ServiceObjective extends ProxyResource { readonly description?: string; readonly enabled?: boolean; -}; + readonly isDefault?: boolean; + readonly isSystem?: boolean; + readonly serviceObjectiveName?: string; +} // @public export interface ServiceObjectiveCapability { @@ -8767,9 +8958,9 @@ export interface SqlAgent { } // @public -export type SqlAgentConfiguration = ProxyResource & { +export interface SqlAgentConfiguration extends ProxyResource { state?: SqlAgentConfigurationPropertiesState; -}; +} // @public export type SqlAgentConfigurationPropertiesState = string; @@ -8798,6 +8989,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) capabilities: Capabilities; // (undocumented) + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; + // (undocumented) databaseAdvisors: DatabaseAdvisors; // (undocumented) databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; @@ -8836,6 +9029,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) deletedServers: DeletedServers; // (undocumented) + distributedAvailabilityGroups: DistributedAvailabilityGroups; + // (undocumented) elasticPoolActivities: ElasticPoolActivities; // (undocumented) elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; @@ -8846,6 +9041,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) encryptionProtectors: EncryptionProtectors; // (undocumented) + endpointCertificates: EndpointCertificates; + // (undocumented) extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; // (undocumented) extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; @@ -8860,6 +9057,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) instancePools: InstancePools; // (undocumented) + iPv6FirewallRules: IPv6FirewallRules; + // (undocumented) jobAgents: JobAgents; // (undocumented) jobCredentials: JobCredentials; @@ -8892,8 +9091,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedBackupShortTermRetentionPolicies: ManagedBackupShortTermRetentionPolicies; // (undocumented) + managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; + // (undocumented) managedDatabaseColumns: ManagedDatabaseColumns; // (undocumented) + managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; + // (undocumented) managedDatabaseQueries: ManagedDatabaseQueries; // (undocumented) managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; @@ -8922,8 +9125,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedInstanceAdministrators: ManagedInstanceAdministrators; // (undocumented) + managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; + // (undocumented) managedInstanceAzureADOnlyAuthentications: ManagedInstanceAzureADOnlyAuthentications; // (undocumented) + managedInstanceDtcs: ManagedInstanceDtcs; + // (undocumented) managedInstanceEncryptionProtectors: ManagedInstanceEncryptionProtectors; // (undocumented) managedInstanceKeys: ManagedInstanceKeys; @@ -8944,12 +9151,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; // (undocumented) + managedServerDnsAliases: ManagedServerDnsAliases; + // (undocumented) managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; // (undocumented) operations: Operations; // (undocumented) - operationsHealthOperations: OperationsHealthOperations; - // (undocumented) outboundFirewallRules: OutboundFirewallRules; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -8972,6 +9179,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) sensitivityLabels: SensitivityLabels; // (undocumented) + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; + // (undocumented) serverAdvisors: ServerAdvisors; // (undocumented) serverAutomaticTuningOperations: ServerAutomaticTuningOperations; @@ -8998,6 +9207,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverSecurityAlertPolicies: ServerSecurityAlertPolicies; // (undocumented) + serverTrustCertificates: ServerTrustCertificates; + // (undocumented) serverTrustGroups: ServerTrustGroups; // (undocumented) serverUsages: ServerUsages; @@ -9055,12 +9266,12 @@ export type StorageCapabilityStorageAccountType = string; export type StorageKeyType = string; // @public -export type SubscriptionUsage = ProxyResource & { - readonly displayName?: string; +export interface SubscriptionUsage extends ProxyResource { readonly currentValue?: number; + readonly displayName?: string; readonly limit?: number; readonly unit?: string; -}; +} // @public export interface SubscriptionUsageListResult { @@ -9096,15 +9307,15 @@ export interface SubscriptionUsagesListByLocationOptionalParams extends coreClie export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; // @public -export type SyncAgent = ProxyResource & { - readonly namePropertiesName?: string; - syncDatabaseId?: string; +export interface SyncAgent extends ProxyResource { + readonly expiryTime?: Date; + readonly isUpToDate?: boolean; readonly lastAliveTime?: Date; + readonly namePropertiesName?: string; readonly state?: SyncAgentState; - readonly isUpToDate?: boolean; - readonly expiryTime?: Date; + syncDatabaseId?: string; readonly version?: string; -}; +} // @public export interface SyncAgentKeyProperties { @@ -9112,14 +9323,14 @@ export interface SyncAgentKeyProperties { } // @public -export type SyncAgentLinkedDatabase = ProxyResource & { - readonly databaseType?: SyncMemberDbType; +export interface SyncAgentLinkedDatabase extends ProxyResource { readonly databaseId?: string; + readonly databaseName?: string; + readonly databaseType?: SyncMemberDbType; readonly description?: string; readonly serverName?: string; - readonly databaseName?: string; readonly userName?: string; -}; +} // @public export interface SyncAgentLinkedDatabaseListResult { @@ -9255,21 +9466,21 @@ export interface SyncFullSchemaTableColumn { } // @public -export type SyncGroup = ProxyResource & { - sku?: Sku; +export interface SyncGroup extends ProxyResource { + conflictLoggingRetentionInDays?: number; + conflictResolutionPolicy?: SyncConflictResolutionPolicy; + enableConflictLogging?: boolean; + hubDatabasePassword?: string; + hubDatabaseUserName?: string; interval?: number; readonly lastSyncTime?: Date; - conflictResolutionPolicy?: SyncConflictResolutionPolicy; + readonly privateEndpointName?: string; + schema?: SyncGroupSchema; + sku?: Sku; syncDatabaseId?: string; - hubDatabaseUserName?: string; - hubDatabasePassword?: string; readonly syncState?: SyncGroupState; - schema?: SyncGroupSchema; - enableConflictLogging?: boolean; - conflictLoggingRetentionInDays?: number; usePrivateLinkConnection?: boolean; - readonly privateEndpointName?: string; -}; +} // @public export interface SyncGroupListResult { @@ -9310,7 +9521,7 @@ export interface SyncGroups { get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SyncGroupsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsListHubSchemasOptionalParams): PagedAsyncIterableIterator; - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: Enum60, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator; + listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator; listSyncDatabaseIds(locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams): PagedAsyncIterableIterator; triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsTriggerSyncOptionalParams): Promise; } @@ -9431,6 +9642,9 @@ export type SyncGroupState = string; export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions { } +// @public +export type SyncGroupsType = string; + // @public export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -9441,20 +9655,20 @@ export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOpti export type SyncGroupsUpdateResponse = SyncGroup; // @public -export type SyncMember = ProxyResource & { +export interface SyncMember extends ProxyResource { + databaseName?: string; databaseType?: SyncMemberDbType; - syncAgentId?: string; - sqlServerDatabaseId?: string; - syncMemberAzureDatabaseResourceId?: string; - usePrivateLinkConnection?: boolean; + password?: string; readonly privateEndpointName?: string; serverName?: string; - databaseName?: string; - userName?: string; - password?: string; + sqlServerDatabaseId?: string; + syncAgentId?: string; syncDirection?: SyncDirection; + syncMemberAzureDatabaseResourceId?: string; readonly syncState?: SyncMemberState; -}; + usePrivateLinkConnection?: boolean; + userName?: string; +} // @public export type SyncMemberDbType = string; @@ -9562,10 +9776,10 @@ export interface SystemData { export type TableTemporalType = string; // @public -export type TdeCertificate = ProxyResource & { - privateBlob?: string; +export interface TdeCertificate extends ProxyResource { certPassword?: string; -}; + privateBlob?: string; +} // @public export interface TdeCertificates { @@ -9580,10 +9794,10 @@ export interface TdeCertificatesCreateOptionalParams extends coreClient.Operatio } // @public -export type TimeZone = ProxyResource & { - readonly timeZoneId?: string; +export interface TimeZone extends ProxyResource { readonly displayName?: string; -}; + readonly timeZoneId?: string; +} // @public export interface TimeZoneListResult { @@ -9636,12 +9850,12 @@ export interface TopQueriesListResult { } // @public -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { location: string; tags?: { [propertyName: string]: string; }; -}; +} // @public export type TransparentDataEncryptionName = string; @@ -9690,20 +9904,15 @@ export type UnitDefinitionType = string; // @public export type UnitType = string; -// @public -export interface UnlinkParameters { - forcedTermination?: boolean; -} - // @public export interface UpdateLongTermRetentionBackupParameters { requestedBackupStorageRedundancy?: BackupStorageRedundancy; } // @public -export type UpdateManagedInstanceDnsServersOperation = ProxyResource & { - readonly status?: DnsRefreshConfigurationPropertiesStatus; -}; +export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { + readonly status?: DNSRefreshOperationStatus; +} // @public (undocumented) export interface UpsertManagedServerOperationParameters { @@ -9775,12 +9984,11 @@ export interface UserIdentity { } // @public -export type VirtualCluster = TrackedResource & { - readonly subnetId?: string; - family?: string; +export interface VirtualCluster extends TrackedResource { readonly childResources?: string[]; - maintenanceConfigurationId?: string; -}; + readonly subnetId?: string; + version?: string; +} // @public export interface VirtualClusterListResult { @@ -9794,10 +10002,11 @@ export interface VirtualClusters { beginDeleteAndWait(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, virtualClusterName: string, parameters: VirtualClusterUpdate, options?: VirtualClustersUpdateOptionalParams): Promise, VirtualClustersUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, virtualClusterName: string, parameters: VirtualClusterUpdate, options?: VirtualClustersUpdateOptionalParams): Promise; + beginUpdateDnsServers(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersUpdateDnsServersOptionalParams): Promise, VirtualClustersUpdateDnsServersResponse>>; + beginUpdateDnsServersAndWait(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersUpdateDnsServersOptionalParams): Promise; get(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersGetOptionalParams): Promise; list(options?: VirtualClustersListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: VirtualClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - updateDnsServers(resourceGroupName: string, virtualClusterName: string, options?: VirtualClustersUpdateDnsServersOptionalParams): Promise; } // @public @@ -9843,10 +10052,12 @@ export type VirtualClustersListResponse = VirtualClusterListResult; // @public export interface VirtualClustersUpdateDnsServersOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type VirtualClustersUpdateDnsServersResponse = UpdateManagedInstanceDnsServersOperation; +export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; // @public export interface VirtualClustersUpdateOptionalParams extends coreClient.OperationOptions { @@ -9860,20 +10071,19 @@ export type VirtualClustersUpdateResponse = VirtualCluster; // @public export interface VirtualClusterUpdate { readonly childResources?: string[]; - family?: string; - maintenanceConfigurationId?: string; readonly subnetId?: string; tags?: { [propertyName: string]: string; }; + version?: string; } // @public -export type VirtualNetworkRule = ProxyResource & { - virtualNetworkSubnetId?: string; +export interface VirtualNetworkRule extends ProxyResource { ignoreMissingVnetServiceEndpoint?: boolean; readonly state?: VirtualNetworkRuleState; -}; + virtualNetworkSubnetId?: string; +} // @public export interface VirtualNetworkRuleListResult { @@ -9950,16 +10160,16 @@ export interface VulnerabilityAssessmentScanError { } // @public -export type VulnerabilityAssessmentScanRecord = ProxyResource & { - readonly scanId?: string; - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; - readonly state?: VulnerabilityAssessmentScanState; - readonly startTime?: Date; +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { readonly endTime?: Date; readonly errors?: VulnerabilityAssessmentScanError[]; - readonly storageContainerPath?: string; readonly numberOfFailedSecurityChecks?: number; -}; + readonly scanId?: string; + readonly startTime?: Date; + readonly state?: VulnerabilityAssessmentScanState; + readonly storageContainerPath?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; +} // @public export interface VulnerabilityAssessmentScanRecordListResult { @@ -9974,14 +10184,14 @@ export type VulnerabilityAssessmentScanState = string; export type VulnerabilityAssessmentScanTriggerType = string; // @public -export type WorkloadClassifier = ProxyResource & { - memberName?: string; - label?: string; +export interface WorkloadClassifier extends ProxyResource { context?: string; - startTime?: string; endTime?: string; importance?: string; -}; + label?: string; + memberName?: string; + startTime?: string; +} // @public export interface WorkloadClassifierListResult { @@ -10036,14 +10246,14 @@ export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends co export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; // @public -export type WorkloadGroup = ProxyResource & { - minResourcePercent?: number; +export interface WorkloadGroup extends ProxyResource { + importance?: string; maxResourcePercent?: number; - minResourcePercentPerRequest?: number; maxResourcePercentPerRequest?: number; - importance?: string; + minResourcePercent?: number; + minResourcePercentPerRequest?: number; queryExecutionTimeout?: number; -}; +} // @public export interface WorkloadGroupListResult { diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index cc2348c4c4e2..b0957cb853e3 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -182,12 +182,6 @@ export interface MetricAvailability { readonly timeGrain?: string; } -/** Represents the parameters for Unlink Replication Link request. */ -export interface UnlinkParameters { - /** Determines whether link will be terminated in a forced or a friendly way. */ - forcedTermination?: boolean; -} - /** A list of server communication links. */ export interface ServerCommunicationLinkListResult { /** The list of server communication links. */ @@ -257,62 +251,6 @@ export interface ServerUsage { readonly nextResetTime?: Date; } -/** A list of database extended auditing settings. */ -export interface ExtendedDatabaseBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; - /** - * 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 list of server extended auditing settings. */ -export interface ExtendedServerBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ExtendedServerBlobAuditingPolicy[]; - /** - * 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 list of server auditing settings. */ -export interface ServerBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ServerBlobAuditingPolicy[]; - /** - * 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 list of database auditing settings. */ -export interface DatabaseBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DatabaseBlobAuditingPolicy[]; - /** - * 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; -} - /** Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ export interface RecommendedActionStateInfo { /** Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action. */ @@ -608,60 +546,6 @@ export interface ElasticPoolOperationListResult { readonly nextLink?: string; } -/** The result of an elastic pool list request. */ -export interface ElasticPoolListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ElasticPool[]; - /** - * 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; -} - -/** An ARM Resource SKU. */ -export interface Sku { - /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ - name: string; - /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ - tier?: string; - /** Size of the particular SKU */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** Capacity of the particular SKU. */ - capacity?: number; -} - -/** Per database settings of an elastic pool. */ -export interface ElasticPoolPerDatabaseSettings { - /** The minimum capacity all databases are guaranteed. */ - minCapacity?: number; - /** The maximum capacity any one database can consume. */ - maxCapacity?: number; -} - -/** An elastic pool update. */ -export interface ElasticPoolUpdate { - /** An ARM Resource SKU. */ - sku?: Sku; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The storage limit for the database elastic pool in bytes. */ - maxSizeBytes?: number; - /** The per database settings for the elastic pool. */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this elastic pool. */ - licenseType?: ElasticPoolLicenseType; - /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ - maintenanceConfigurationId?: string; -} - /** A list of server encryption protectors. */ export interface EncryptionProtectorListResult { /** @@ -814,6 +698,20 @@ export interface InstanceFailoverGroupListResult { readonly nextLink?: string; } +/** An ARM Resource SKU. */ +export interface Sku { + /** The name of the SKU, typically, a letter + Number code, e.g. P3. */ + name: string; + /** The tier or edition of the particular SKU, e.g. Basic, Premium. */ + tier?: string; + /** Size of the particular SKU */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** Capacity of the particular SKU. */ + capacity?: number; +} + /** An update to an Instance pool. */ export interface InstancePoolUpdate { /** Resource tags. */ @@ -2031,30 +1929,6 @@ export interface SecurityEventSqlInjectionAdditionalProperties { readonly errorMessage?: string; } -/** A list of sensitivity labels. */ -export interface SensitivityLabelListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SensitivityLabel[]; - /** - * 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 list of sensitivity label update operations. */ -export interface SensitivityLabelUpdateList { - operations?: SensitivityLabelUpdate[]; -} - -/** A list of recommended sensitivity label update operations. */ -export interface RecommendedSensitivityLabelUpdateList { - operations?: RecommendedSensitivityLabelUpdate[]; -} - /** A list of managed transparent data encryptions */ export interface ManagedTransparentDataEncryptionListResult { /** @@ -2361,20 +2235,6 @@ export interface OperationDisplay { readonly description?: string; } -/** A list of service health statuses in a location. */ -export interface OperationsHealthListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: OperationsHealth[]; - /** - * 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; -} - /** Properties of a private endpoint connection. */ export interface PrivateEndpointConnectionProperties { /** Private endpoint which the connection belongs to. */ @@ -2931,40 +2791,6 @@ export interface TimeZoneListResult { readonly nextLink?: string; } -/** A list of virtual clusters. */ -export interface VirtualClusterListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: VirtualCluster[]; - /** - * 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; -} - -/** An update request for an Azure SQL Database virtual cluster. */ -export interface VirtualClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** - * Subnet resource ID for the virtual cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subnetId?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** - * List of resources in this virtual cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly childResources?: string[]; - /** Specifies maintenance configuration id to apply to this virtual cluster. */ - maintenanceConfigurationId?: string; -} - /** A list of virtual network rules. */ export interface VirtualNetworkRuleListResult { /** @@ -3105,20 +2931,6 @@ export interface OutboundFirewallRuleListResult { readonly nextLink?: string; } -/** A list of replication links. */ -export interface ReplicationLinkListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ReplicationLink[]; - /** - * 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 list of servers. */ export interface ServerListResult { /** @@ -3412,8 +3224,6 @@ export interface DatabaseIdentity { readonly tenantId?: string; /** The resource ids of the user assigned identities to use */ userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; - /** Resources delegated to the database - Internal Use Only */ - delegatedResources?: { [propertyName: string]: Delegation }; } /** Azure Active Directory identity configuration for a resource. */ @@ -3430,18 +3240,7 @@ export interface DatabaseUserIdentity { readonly clientId?: string; } -/** Delegated Resource Properties - Internal Use Only */ -export interface Delegation { - /** The resource id of the source resource - Internal Use Only */ - resourceId?: string; - /** - * AAD tenant guid of the source resource identity - Internal Use Only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; -} - -/** A database resource. */ +/** A database update resource. */ export interface DatabaseUpdate { /** The name and tier of the SKU. */ sku?: Sku; @@ -3542,9 +3341,9 @@ export interface DatabaseUpdate { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; - /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. */ + /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ readScale?: DatabaseReadScale; - /** The number of secondary replicas associated with the database that are used to provide high availability. */ + /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ highAvailabilityReplicaCount?: number; /** The secondary type of the database if it is a secondary. Valid values are Geo and Named. */ secondaryType?: SecondaryType; @@ -3585,18 +3384,10 @@ export interface DatabaseUpdate { readonly isInfraEncryptionEnabled?: boolean; /** The Client id used for cross tenant per database CMK scenario */ federatedClientId?: string; - /** The Primary Delegated Identity Client id used for per database CMK - for internal use only */ - primaryDelegatedIdentityClientId?: 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 import operation for existing database. */ -export interface ImportExistingDatabaseDefinition { +/** Contains the information necessary to perform export database operation. */ +export interface ExportDatabaseDefinition { /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ @@ -3613,8 +3404,8 @@ export interface ImportExistingDatabaseDefinition { networkIsolation?: NetworkIsolationSettings; } -/** Contains the information necessary to perform export database operation. */ -export interface ExportDatabaseDefinition { +/** Contains the information necessary to perform import operation for existing database. */ +export interface ImportExistingDatabaseDefinition { /** Storage key type. */ storageKeyType: StorageKeyType; /** Storage key. */ @@ -3631,6 +3422,12 @@ export interface ExportDatabaseDefinition { networkIsolation?: NetworkIsolationSettings; } +/** 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 long term retention backup copy operation. */ export interface CopyLongTermRetentionBackupParameters { /** The subscription that owns the target server */ @@ -3933,982 +3730,892 @@ export interface ServerConnectionPolicyListResult { readonly nextLink?: string; } -/** A Slo Usage Metric. */ -export interface SloUsageMetric { - /** - * The serviceLevelObjective for SLO usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceLevelObjective?: ServiceObjectiveName; +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * The serviceLevelObjectiveId for SLO usage metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjectiveId?: string; + readonly value?: DistributedAvailabilityGroup[]; /** - * Gets or sets inRangeTimeRatio for SLO usage metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inRangeTimeRatio?: number; + readonly nextLink?: string; } -/** The impact of an operation, both in absolute and relative terms. */ -export interface OperationImpact { +/** A list of server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** - * The name of the impact dimension. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: ServerTrustCertificate[]; /** - * The unit in which estimated impact to dimension is measured. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly nextLink?: string; +} + +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * The absolute impact to dimension. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueAbsolute?: number; + readonly value?: ElasticPool[]; /** - * The relative impact to dimension (null if not applicable) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueRelative?: number; + readonly nextLink?: string; } -/** The properties that are supported in the $filter operation. */ -export interface SecurityEventsFilterParameters { - /** Filter on the event time. */ - eventTime?: Date; - /** Whether to show server records or not. */ - showServerRecords?: boolean; +/** Per database settings of an elastic pool. */ +export interface ElasticPoolPerDatabaseSettings { + /** The minimum capacity all databases are guaranteed. */ + minCapacity?: number; + /** The maximum capacity any one database can consume. */ + maxCapacity?: number; } -/** ARM proxy resource. */ -export type ProxyResource = Resource & {}; - -/** ARM tracked top level resource. */ -export type TrackedResource = Resource & { - /** Resource location. */ - location: string; +/** An elastic pool update. */ +export interface ElasticPoolUpdate { + /** An ARM Resource SKU. */ + sku?: Sku; /** Resource tags. */ tags?: { [propertyName: string]: string }; -}; - -/** ARM proxy resource. */ -export type ProxyResourceWithWritableName = ResourceWithWritableName & {}; + /** The storage limit for the database elastic pool in bytes. */ + maxSizeBytes?: number; + /** The per database settings for the elastic pool. */ + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this elastic pool. */ + licenseType?: ElasticPoolLicenseType; + /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ + maintenanceConfigurationId?: string; + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools. */ + highAvailabilityReplicaCount?: number; +} -/** A recoverable database */ -export type RecoverableDatabase = ProxyResource & { +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { /** - * The edition of the database + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly edition?: string; + readonly value?: IPv6FirewallRule[]; /** - * The service level objective name of the database + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjective?: string; + readonly nextLink?: string; +} + +/** A list of endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { /** - * The elastic pool name of the database + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly value?: EndpointCertificate[]; /** - * The last available backup date of the database (ISO8601 format) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: Date; -}; + readonly nextLink?: string; +} -/** Represents a database data masking policy. */ -export type DataMaskingPolicy = ProxyResource & { +/** A list of replication links. */ +export interface ReplicationLinkListResult { /** - * The location of the data masking policy. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly value?: ReplicationLink[]; /** - * The kind of data masking policy. Metadata, used for Azure portal. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: 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; + readonly nextLink?: string; +} + +/** A list of sensitivity labels. */ +export interface SensitivityLabelListResult { /** - * The list of the application principals. This is a legacy parameter and is no longer used. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationPrincipals?: string; + readonly value?: SensitivityLabel[]; /** - * The masking level. This is a legacy parameter and is no longer used. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maskingLevel?: string; -}; + readonly nextLink?: string; +} -/** Represents a database data masking rule. */ -export type DataMaskingRule = ProxyResource & { - /** - * 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; +/** A list of sensitivity label update operations. */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; +} + +/** A list of recommended sensitivity label update operations. */ +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; +} + +/** A list of server auditing settings. */ +export interface ServerBlobAuditingPolicyListResult { /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly value?: ServerBlobAuditingPolicy[]; /** - * The rule Id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; -}; + readonly nextLink?: string; +} -/** A database geo backup policy. */ -export type GeoBackupPolicy = ProxyResource & { - /** - * 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; +/** A list of database auditing settings. */ +export interface DatabaseBlobAuditingPolicyListResult { /** - * Backup policy location. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** The state of the geo backup policy. */ - state: GeoBackupPolicyState; + readonly value?: DatabaseBlobAuditingPolicy[]; /** - * The storage type of the geo backup policy. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageType?: string; -}; + readonly nextLink?: string; +} -/** Server communication link. */ -export type ServerCommunicationLink = ProxyResource & { +/** A list of database extended auditing settings. */ +export interface ExtendedDatabaseBlobAuditingPolicyListResult { /** - * Communication link location. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; /** - * Communication link kind. This property is used for Azure Portal metadata. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly nextLink?: string; +} + +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { /** - * The state. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; - /** The name of the partner server. */ - partnerServer?: string; -}; - -/** Represents a database service objective. */ -export type ServiceObjective = ProxyResource & { + readonly value?: ExtendedServerBlobAuditingPolicy[]; /** - * The name for the service objective. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceObjectiveName?: string; + readonly nextLink?: string; +} + +/** A list of the database's Advanced Threat Protection configurations. */ +export interface DatabaseAdvancedThreatProtectionListResult { /** - * Gets whether the service level objective is the default service objective. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefault?: boolean; + readonly value?: DatabaseAdvancedThreatProtection[]; /** - * Gets whether the service level objective is a system service objective. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isSystem?: boolean; + readonly nextLink?: string; +} + +/** A list of the server's Advanced Threat Protection configurations. */ +export interface LogicalServerAdvancedThreatProtectionListResult { /** - * The description for the service level objective. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly value?: ServerAdvancedThreatProtection[]; /** - * Gets whether the service level objective is enabled. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly enabled?: boolean; -}; + readonly nextLink?: string; +} -/** Represents the activity on an elastic pool. */ -export type ElasticPoolActivity = ProxyResource & { - /** The geo-location where the resource lives */ - location?: string; +/** A list of managed server DNS aliases. */ +export interface ManagedServerDnsAliasListResult { /** - * The time the operation finished (ISO8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly value?: ManagedServerDnsAlias[]; /** - * The error code if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly nextLink?: string; +} + +/** A managed server dns alias creation request. */ +export interface ManagedServerDnsAliasCreation { + /** Whether or not DNS record should be created for this alias. */ + createDnsRecord?: boolean; +} + +/** A managed server DNS alias acquisition request. */ +export interface ManagedServerDnsAliasAcquisition { + /** The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. */ + oldManagedServerDnsAliasResourceId: string; +} + +/** A list of the managed database's Advanced Threat Protection settings. */ +export interface ManagedDatabaseAdvancedThreatProtectionListResult { /** - * The error message if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly value?: ManagedDatabaseAdvancedThreatProtection[]; /** - * The error severity if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly nextLink?: string; +} + +/** A list of the managed instance's Advanced Threat Protection settings. */ +export interface ManagedInstanceAdvancedThreatProtectionListResult { /** - * The operation name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly value?: ManagedInstanceAdvancedThreatProtection[]; /** - * The unique operation ID. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationId?: string; + readonly nextLink?: string; +} + +/** List of managed database move operations. */ +export interface ManagedDatabaseMoveOperationListResult { /** - * The percentage complete if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly value?: ManagedDatabaseMoveOperationResult[]; /** - * The requested max DTU per database if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuMax?: number; + readonly nextLink?: string; +} + +/** A list of managed instance's DTCs. */ +export interface ManagedInstanceDtcListResult { /** - * The requested min DTU per database if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuMin?: number; + readonly value?: ManagedInstanceDtc[]; /** - * The requested DTU for the pool if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDtu?: number; + readonly nextLink?: string; +} + +/** The Security Settings of managed instance DTC. */ +export interface ManagedInstanceDtcSecuritySettings { + /** Transaction Manager communication settings of managed instance DTC. */ + transactionManagerCommunicationSettings?: ManagedInstanceDtcTransactionManagerCommunicationSettings; + /** Allow XA Transactions to managed instance DTC. */ + xaTransactionsEnabled?: boolean; + /** Allow SNA LU 6.2 Transactions to managed instance DTC. */ + snaLu6Point2TransactionsEnabled?: boolean; + /** Default timeout for XA Transactions (in seconds). */ + xaTransactionsDefaultTimeout?: number; + /** Maximum timeout for XA Transactions (in seconds). */ + xaTransactionsMaximumTimeout?: number; +} + +/** The Transaction Manager Communication Settings of managed instance DTC. */ +export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { + /** Allow Inbound traffic to managed instance DTC. */ + allowInboundEnabled?: boolean; + /** Allow Outbound traffic of managed instance DTC. */ + allowOutboundEnabled?: boolean; + /** Authentication type of managed instance DTC. */ + authentication?: string; +} + +/** A list of virtual clusters. */ +export interface VirtualClusterListResult { /** - * The requested name for the elastic pool if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly value?: VirtualCluster[]; /** - * The requested storage limit for the pool in GB if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedStorageLimitInGB?: number; + readonly nextLink?: string; +} + +/** An update request for virtual cluster. */ +export interface VirtualClusterUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * The name of the elastic pool. + * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; /** - * The name of the server the elastic pool is in. + * List of resources in this virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly childResources?: string[]; +} + +/** A Slo Usage Metric. */ +export interface SloUsageMetric { /** - * The time the operation started (ISO8601 format). + * The serviceLevelObjective for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly serviceLevelObjective?: ServiceObjectiveName; /** - * The current state of the operation. + * The serviceLevelObjectiveId for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly serviceLevelObjectiveId?: string; /** - * The requested storage limit in MB. + * Gets or sets inRangeTimeRatio for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedStorageLimitInMB?: number; + readonly inRangeTimeRatio?: number; +} + +/** The impact of an operation, both in absolute and relative terms. */ +export interface OperationImpact { /** - * The requested per database DTU guarantee. + * The name of the impact dimension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuGuarantee?: number; + readonly name?: string; /** - * The requested per database DTU cap. + * The unit in which estimated impact to dimension is measured. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuCap?: number; + readonly unit?: string; /** - * The requested DTU guarantee. + * The absolute impact to dimension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDtuGuarantee?: number; -}; + readonly changeValueAbsolute?: number; + /** + * The relative impact to dimension (null if not applicable) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly changeValueRelative?: number; +} -/** Represents the activity on an elastic pool. */ -export type ElasticPoolDatabaseActivity = ProxyResource & { - /** The geo-location where the resource lives */ - location?: string; +/** The properties that are supported in the $filter operation. */ +export interface SecurityEventsFilterParameters { + /** Filter on the event time. */ + eventTime?: Date; + /** Whether to show server records or not. */ + showServerRecords?: boolean; +} + +/** ARM proxy resource. */ +export interface ProxyResource extends Resource {} + +/** ARM tracked top level resource. */ +export interface TrackedResource extends Resource { + /** Resource location. */ + location: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** ARM proxy resource. */ +export interface ProxyResourceWithWritableName + extends ResourceWithWritableName {} + +/** A recoverable database */ +export interface RecoverableDatabase extends ProxyResource { /** - * The database name. + * The edition of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly edition?: string; /** - * The time the operation finished (ISO8601 format). + * The service level objective name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly serviceLevelObjective?: string; /** - * The error code if available. + * The elastic pool name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly elasticPoolName?: string; /** - * The error message if available. + * 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 errorMessage?: string; + readonly lastAvailableBackupDate?: Date; +} + +/** Represents a database data masking policy. */ +export interface DataMaskingPolicy extends ProxyResource { /** - * The error severity if available. + * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly location?: string; /** - * The operation name. + * 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 operation?: string; + readonly kind?: 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; /** - * The unique operation ID. + * 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 operationId?: string; + readonly applicationPrincipals?: string; /** - * The percentage complete if available. + * 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 percentComplete?: number; + readonly maskingLevel?: string; +} + +/** Represents a database data masking rule. */ +export interface DataMaskingRule extends ProxyResource { /** - * The name for the elastic pool the database is moving into if available. + * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly location?: string; /** - * The name of the current elastic pool the database is in if available. + * 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 currentElasticPoolName?: string; + readonly kind?: string; /** - * The name of the current service objective if available. + * The rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjective?: 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; +} + +/** A database geo backup policy. */ +export interface GeoBackupPolicy extends ProxyResource { /** - * The name of the requested service objective if available. + * 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 requestedServiceObjective?: string; + readonly kind?: string; /** - * The name of the server the elastic pool is in. + * Backup policy location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly location?: string; + /** The state of the geo backup policy. */ + state: GeoBackupPolicyState; /** - * The time the operation started (ISO8601 format). + * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly storageType?: string; +} + +/** Server communication link. */ +export interface ServerCommunicationLink extends ProxyResource { /** - * The current state of the operation. + * Communication link location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** + * Communication link kind. This property is used for Azure Portal metadata. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * The state. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: string; -}; + /** The name of the partner server. */ + partnerServer?: string; +} -/** An extended database blob auditing policy. */ -export type ExtendedDatabaseBlobAuditingPolicy = ProxyResource & { - /** Specifies condition of where clause when creating an audit. */ - predicateExpression?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; +/** Represents a database service objective. */ +export interface ServiceObjective extends ProxyResource { /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * The name for the service objective. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly serviceObjectiveName?: string; /** - * 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) - * + * Gets whether the service level objective is the default service objective. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly isDefault?: 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. + * Gets whether the service level objective is a system service objective. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies the state of the audit. 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; + readonly isSystem?: boolean; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The description for the service level objective. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -}; + readonly description?: string; + /** + * Gets whether the service level objective is enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enabled?: boolean; +} -/** An extended server blob auditing policy. */ -export type ExtendedServerBlobAuditingPolicy = ProxyResource & { +/** Represents the activity on an elastic pool. */ +export interface ElasticPoolActivity extends ProxyResource { + /** The geo-location where the resource lives */ + location?: string; /** - * 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) - * + * The time the operation finished (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies condition of where clause when creating an audit. */ - predicateExpression?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly endTime?: Date; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * The error code if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly errorCode?: number; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * The error message if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly errorMessage?: string; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * The error severity if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies the state of the audit. 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; + readonly errorSeverity?: number; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The operation name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -}; - -/** A server blob auditing policy. */ -export type ServerBlobAuditingPolicy = ProxyResource & { + readonly operation?: string; /** - * 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) - * + * The unique operation ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly operationId?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * The percentage complete if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly percentComplete?: number; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * The requested max DTU per database if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly requestedDatabaseDtuMax?: number; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * The requested min DTU per database if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies the state of the audit. 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; + readonly requestedDatabaseDtuMin?: number; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The requested DTU for the pool if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -}; - -/** A database blob auditing policy. */ -export type DatabaseBlobAuditingPolicy = ProxyResource & { + readonly requestedDtu?: number; /** - * Resource kind. + * The requested name for the elastic pool if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly requestedElasticPoolName?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * The requested storage limit for the pool in GB if available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly requestedStorageLimitInGB?: number; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * The name of the elastic pool. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly elasticPoolName?: string; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * The name of the server the elastic pool is in. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - queueDelayMs?: number; - /** Specifies the state of the audit. 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; + readonly serverName?: string; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The time the operation started (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -}; - -/** Database, Server or Elastic Pool Recommended Action. */ -export type RecommendedAction = ProxyResource & { + readonly startTime?: Date; /** - * Resource kind. + * The current state of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly state?: string; /** - * Resource location. + * The requested storage limit in MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly requestedStorageLimitInMB?: number; /** - * Gets the reason for recommending this action. e.g., DuplicateIndex + * The requested per database DTU guarantee. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly recommendationReason?: string; + readonly requestedDatabaseDtuGuarantee?: number; /** - * Gets the time since when this recommended action is valid. + * The requested per database DTU cap. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly validSince?: Date; + readonly requestedDatabaseDtuCap?: number; /** - * Gets time when this recommended action was last refreshed. + * The requested DTU guarantee. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRefresh?: Date; - /** Gets the info of the current state the recommended action is in. */ - state?: RecommendedActionStateInfo; + readonly requestedDtuGuarantee?: number; +} + +/** Represents the activity on an elastic pool. */ +export interface ElasticPoolDatabaseActivity extends ProxyResource { + /** The geo-location where the resource lives */ + location?: string; /** - * Gets if this recommended action is actionable by user + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isExecutableAction?: boolean; + readonly databaseName?: string; /** - * Gets if changes applied by this recommended action can be reverted by user + * The time the operation finished (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isRevertableAction?: boolean; + readonly endTime?: Date; /** - * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. + * The error code if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isArchivedAction?: boolean; + readonly errorCode?: number; /** - * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time + * The error message if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionStartTime?: Date; + readonly errorMessage?: string; /** - * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation + * The error severity if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionDuration?: string; + readonly errorSeverity?: number; /** - * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. + * The operation name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionStartTime?: Date; + readonly operation?: string; /** - * Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. + * The unique operation ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionDuration?: string; + readonly operationId?: string; /** - * Gets if approval for applying this recommended action was given by user/system. + * The percentage complete if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; + readonly percentComplete?: number; /** - * Gets the time when this recommended action was approved for execution. + * The name for the elastic pool the database is moving into if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionInitiatedTime?: Date; + readonly requestedElasticPoolName?: string; /** - * Gets if approval for reverting this recommended action was given by user/system. + * The name of the current elastic pool the database is in if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; + readonly currentElasticPoolName?: string; /** - * Gets the time when this recommended action was approved for revert. + * The name of the current service objective if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionInitiatedTime?: Date; + readonly currentServiceObjective?: string; /** - * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact + * The name of the requested service objective if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly score?: number; + readonly requestedServiceObjective?: string; /** - * Gets the implementation details of this recommended action for user to apply it manually. + * The name of the server the elastic pool is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly implementationDetails?: RecommendedActionImplementationInfo; + readonly serverName?: string; /** - * Gets the error details if and why this recommended action is put to error state. + * The time the operation started (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDetails?: RecommendedActionErrorInfo; + readonly startTime?: Date; /** - * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change + * The current state of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedImpact?: RecommendedActionImpactRecord[]; + readonly state?: string; +} + +/** Database, Server or Elastic Pool Recommended Action. */ +export interface RecommendedAction extends ProxyResource { /** - * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly observedImpact?: RecommendedActionImpactRecord[]; + readonly kind?: string; /** - * Gets the time series info of metrics for this recommended action e.g., CPU consumption time series + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** + * Gets the reason for recommending this action. e.g., DuplicateIndex + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly recommendationReason?: string; + /** + * Gets the time since when this recommended action is valid. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly validSince?: Date; + /** + * Gets time when this recommended action was last refreshed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastRefresh?: Date; + /** Gets the info of the current state the recommended action is in. */ + state?: RecommendedActionStateInfo; + /** + * Gets if this recommended action is actionable by user + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isExecutableAction?: boolean; + /** + * Gets if changes applied by this recommended action can be reverted by user + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isRevertableAction?: boolean; + /** + * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isArchivedAction?: boolean; + /** + * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly executeActionStartTime?: Date; + /** + * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly executeActionDuration?: string; + /** + * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revertActionStartTime?: Date; + /** + * Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revertActionDuration?: string; + /** + * Gets if approval for applying this recommended action was given by user/system. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; + /** + * Gets the time when this recommended action was approved for execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly executeActionInitiatedTime?: Date; + /** + * Gets if approval for reverting this recommended action was given by user/system. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; + /** + * Gets the time when this recommended action was approved for revert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revertActionInitiatedTime?: Date; + /** + * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly score?: number; + /** + * Gets the implementation details of this recommended action for user to apply it manually. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly implementationDetails?: RecommendedActionImplementationInfo; + /** + * Gets the error details if and why this recommended action is put to error state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorDetails?: RecommendedActionErrorInfo; + /** + * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly estimatedImpact?: RecommendedActionImpactRecord[]; + /** + * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly observedImpact?: RecommendedActionImpactRecord[]; + /** + * Gets the time series info of metrics for this recommended action e.g., CPU consumption time series * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeSeries?: RecommendedActionMetricInfo[]; @@ -4922,10 +4629,10 @@ export type RecommendedAction = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly details?: { [propertyName: string]: Record }; -}; +} /** Database, Server or Elastic Pool Advisor. */ -export type Advisor = ProxyResource & { +export interface Advisor extends ProxyResource { /** * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4963,10 +4670,10 @@ export type Advisor = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly recommendedActions?: RecommendedAction[]; -}; +} /** Database-level Automatic Tuning. */ -export type DatabaseAutomaticTuning = ProxyResource & { +export interface DatabaseAutomaticTuning extends ProxyResource { /** Automatic tuning desired state. */ desiredState?: AutomaticTuningMode; /** @@ -4976,10 +4683,10 @@ export type DatabaseAutomaticTuning = ProxyResource & { readonly actualState?: AutomaticTuningMode; /** Automatic tuning options definition. */ options?: { [propertyName: string]: AutomaticTuningOptions }; -}; +} /** A database column resource. */ -export type DatabaseColumn = ProxyResource & { +export interface DatabaseColumn extends ProxyResource { /** The column data type. */ columnType?: ColumnDataType; /** The table temporal type. */ @@ -4988,13 +4695,13 @@ export type DatabaseColumn = ProxyResource & { memoryOptimized?: boolean; /** Whether or not the column is computed. */ isComputed?: boolean; -}; +} /** A database schema resource. */ -export type DatabaseSchema = ProxyResource & {}; +export interface DatabaseSchema extends ProxyResource {} /** A database security alert policy. */ -export type DatabaseSecurityAlertPolicy = ProxyResource & { +export interface DatabaseSecurityAlertPolicy extends ProxyResource { /** * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5019,24 +4726,25 @@ export type DatabaseSecurityAlertPolicy = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; -}; +} /** A database table resource. */ -export type DatabaseTable = ProxyResource & { +export interface DatabaseTable extends ProxyResource { /** The table temporal type. */ temporalType?: TableTemporalType; /** Whether or not the table is memory optimized. */ memoryOptimized?: boolean; -}; +} /** A database vulnerability assessment rule baseline. */ -export type DatabaseVulnerabilityAssessmentRuleBaseline = ProxyResource & { +export interface DatabaseVulnerabilityAssessmentRuleBaseline + extends ProxyResource { /** The rule baseline result */ baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -}; +} /** A database vulnerability assessment. */ -export type DatabaseVulnerabilityAssessment = ProxyResource & { +export interface DatabaseVulnerabilityAssessment 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. */ @@ -5045,10 +4753,10 @@ export type DatabaseVulnerabilityAssessment = ProxyResource & { storageAccountAccessKey?: string; /** The recurring scans settings */ recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -}; +} /** A vulnerability assessment scan record. */ -export type VulnerabilityAssessmentScanRecord = ProxyResource & { +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5089,28 +4797,29 @@ export type VulnerabilityAssessmentScanRecord = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly numberOfFailedSecurityChecks?: number; -}; +} /** A database Vulnerability Assessment scan export resource. */ -export type DatabaseVulnerabilityAssessmentScansExport = ProxyResource & { +export interface DatabaseVulnerabilityAssessmentScansExport + 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; -}; +} /** User activities of a data warehouse */ -export type DataWarehouseUserActivities = ProxyResource & { +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; -}; +} /** A deleted server. */ -export type DeletedServer = ProxyResource & { +export interface DeletedServer extends ProxyResource { /** * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5131,10 +4840,10 @@ export type DeletedServer = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; -}; +} /** A elastic pool operation. */ -export type ElasticPoolOperation = ProxyResource & { +export interface ElasticPoolOperation extends ProxyResource { /** * The name of the elastic pool the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5205,10 +4914,10 @@ export type ElasticPoolOperation = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; -}; +} /** The server encryption protector. */ -export type EncryptionProtector = ProxyResource & { +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. @@ -5240,10 +4949,10 @@ export type EncryptionProtector = ProxyResource & { readonly thumbprint?: string; /** Key auto rotation opt-in flag. Either true or false. */ autoRotationEnabled?: boolean; -}; +} /** A failover group. */ -export type FailoverGroup = ProxyResource & { +export interface FailoverGroup extends ProxyResource { /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5269,10 +4978,10 @@ export type FailoverGroup = ProxyResource & { partnerServers?: PartnerInfo[]; /** List of databases in the failover group. */ databases?: string[]; -}; +} /** An instance failover group. */ -export type InstanceFailoverGroup = ProxyResource & { +export interface InstanceFailoverGroup extends ProxyResource { /** Read-write endpoint of the failover group instance. */ readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; /** Read-only endpoint of the failover group instance. */ @@ -5291,18 +5000,18 @@ export type InstanceFailoverGroup = ProxyResource & { partnerRegions?: PartnerRegionInfo[]; /** List of managed instance pairs in the failover group. */ managedInstancePairs?: ManagedInstancePairInfo[]; -}; +} /** A stored credential that can be used by a job to connect to target databases. */ -export type JobCredential = ProxyResource & { +export interface JobCredential extends ProxyResource { /** The credential user name. */ username?: string; /** The credential password. */ password?: string; -}; +} /** An execution of a job */ -export type JobExecution = ProxyResource & { +export interface JobExecution extends ProxyResource { /** * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5365,10 +5074,10 @@ export type JobExecution = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly target?: JobExecutionTarget; -}; +} /** A job. */ -export type Job = ProxyResource & { +export interface Job extends ProxyResource { /** User-defined description of the job. */ description?: string; /** @@ -5378,10 +5087,10 @@ export type Job = ProxyResource & { readonly version?: number; /** Schedule properties of the job. */ schedule?: JobSchedule; -}; +} /** A job step. */ -export type JobStep = ProxyResource & { +export interface JobStep extends ProxyResource { /** The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified. */ stepId?: number; /** The resource ID of the target group that the job step will be executed on. */ @@ -5394,19 +5103,19 @@ export type JobStep = ProxyResource & { output?: JobStepOutput; /** Execution options for the job step. */ executionOptions?: JobStepExecutionOptions; -}; +} /** A group of job targets. */ -export type JobTargetGroup = ProxyResource & { +export interface JobTargetGroup extends ProxyResource { /** Members of the target group. */ members?: JobTarget[]; -}; +} /** A job version. */ -export type JobVersion = ProxyResource & {}; +export interface JobVersion extends ProxyResource {} /** A long term retention policy. */ -export type LongTermRetentionPolicy = ProxyResource & { +export interface LongTermRetentionPolicy extends ProxyResource { /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ weeklyRetention?: string; /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ @@ -5415,10 +5124,10 @@ export type LongTermRetentionPolicy = ProxyResource & { yearlyRetention?: string; /** The week of year to take the yearly backup in an ISO 8601 format. */ weekOfYear?: number; -}; +} /** Maintenance window options. */ -export type MaintenanceWindowOptions = ProxyResource & { +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}. */ @@ -5433,26 +5142,26 @@ export type MaintenanceWindowOptions = ProxyResource & { timeGranularityInMinutes?: number; /** Whether we allow multiple maintenance windows per cycle. */ allowMultipleMaintenanceWindowsPerCycle?: boolean; -}; +} /** Maintenance windows. */ -export type MaintenanceWindows = ProxyResource & { +export interface MaintenanceWindows extends ProxyResource { timeRanges?: MaintenanceWindowTimeRange[]; -}; +} /** A short term retention policy. */ -export type ManagedBackupShortTermRetentionPolicy = ProxyResource & { +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ retentionDays?: number; -}; +} /** Database query. */ -export type ManagedInstanceQuery = ProxyResource & { +export interface ManagedInstanceQuery extends ProxyResource { /** Query text. */ queryText?: string; -}; +} -export type QueryStatistics = ProxyResource & { +export interface QueryStatistics extends ProxyResource { /** * Database name of the database in which this query was executed. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5475,10 +5184,10 @@ export type QueryStatistics = ProxyResource & { readonly endTime?: string; /** List of intervals with appropriate metric data */ intervals?: QueryMetricInterval[]; -}; +} /** A managed database restore details. */ -export type ManagedDatabaseRestoreDetailsResult = ProxyResource & { +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** * Restore status. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5529,10 +5238,10 @@ export type ManagedDatabaseRestoreDetailsResult = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly blockReason?: string; -}; +} /** A managed database security alert policy. */ -export type ManagedDatabaseSecurityAlertPolicy = ProxyResource & { +export interface ManagedDatabaseSecurityAlertPolicy 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 database. */ state?: SecurityAlertPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ @@ -5552,10 +5261,10 @@ export type ManagedDatabaseSecurityAlertPolicy = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; -}; +} /** A security event. */ -export type SecurityEvent = ProxyResource & { +export interface SecurityEvent extends ProxyResource { /** * The time when the security event occurred. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5601,78 +5310,16 @@ export type SecurityEvent = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; -}; - -/** A sensitivity label. */ -export type SensitivityLabel = ProxyResource & { - /** - * Resource that manages the sensitivity label. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedBy?: string; - /** - * 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; - rank?: SensitivityLabelRank; -}; - -/** 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 managed database transparent data encryption state. */ -export type ManagedTransparentDataEncryption = ProxyResource & { +export interface ManagedTransparentDataEncryption extends ProxyResource { /** Specifies the state of the transparent data encryption. */ state?: TransparentDataEncryptionState; -}; +} /** An Azure SQL managed instance administrator. */ -export type ManagedInstanceAdministrator = ProxyResource & { +export interface ManagedInstanceAdministrator extends ProxyResource { /** Type of the managed instance administrator. */ administratorType?: ManagedInstanceAdministratorType; /** Login name of the managed instance administrator. */ @@ -5681,16 +5328,17 @@ export type ManagedInstanceAdministrator = ProxyResource & { sid?: string; /** Tenant ID of the managed instance administrator. */ tenantId?: string; -}; +} /** Azure Active Directory only authentication. */ -export type ManagedInstanceAzureADOnlyAuthentication = ProxyResource & { +export interface ManagedInstanceAzureADOnlyAuthentication + extends ProxyResource { /** Azure Active Directory only Authentication enabled. */ azureADOnlyAuthentication?: boolean; -}; +} /** The managed instance encryption protector. */ -export type ManagedInstanceEncryptionProtector = ProxyResource & { +export interface ManagedInstanceEncryptionProtector 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. @@ -5712,10 +5360,10 @@ export type ManagedInstanceEncryptionProtector = ProxyResource & { readonly thumbprint?: string; /** Key auto rotation opt-in flag. Either true or false. */ autoRotationEnabled?: boolean; -}; +} /** A managed instance key. */ -export type ManagedInstanceKey = ProxyResource & { +export interface ManagedInstanceKey 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. @@ -5740,10 +5388,10 @@ export type ManagedInstanceKey = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly autoRotationEnabled?: boolean; -}; +} /** A long term retention policy. */ -export type ManagedInstanceLongTermRetentionPolicy = ProxyResource & { +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ weeklyRetention?: string; /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ @@ -5752,10 +5400,10 @@ export type ManagedInstanceLongTermRetentionPolicy = ProxyResource & { yearlyRetention?: string; /** The week of year to take the yearly backup in an ISO 8601 format. */ weekOfYear?: number; -}; +} /** A managed instance operation. */ -export type ManagedInstanceOperation = ProxyResource & { +export interface ManagedInstanceOperation extends ProxyResource { /** * The name of the managed instance the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5831,10 +5479,11 @@ export type ManagedInstanceOperation = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operationSteps?: ManagedInstanceOperationSteps; -}; +} /** A private endpoint connection */ -export type ManagedInstancePrivateEndpointConnection = ProxyResource & { +export interface ManagedInstancePrivateEndpointConnection + extends ProxyResource { /** Private endpoint which the connection belongs to. */ privateEndpoint?: ManagedInstancePrivateEndpointProperty; /** Connection State of the Private Endpoint Connection. */ @@ -5844,27 +5493,27 @@ export type ManagedInstancePrivateEndpointConnection = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; -}; +} /** A private link resource */ -export type ManagedInstancePrivateLink = ProxyResource & { +export interface ManagedInstancePrivateLink extends ProxyResource { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: ManagedInstancePrivateLinkProperties; -}; +} /** A TDE certificate that can be uploaded into a server. */ -export type TdeCertificate = ProxyResource & { +export interface TdeCertificate extends ProxyResource { /** The base64 encoded certificate private blob. */ privateBlob?: string; /** The certificate password. */ certPassword?: string; -}; +} /** A managed instance vulnerability assessment. */ -export type ManagedInstanceVulnerabilityAssessment = ProxyResource & { +export interface ManagedInstanceVulnerabilityAssessment 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 write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ @@ -5873,10 +5522,10 @@ export type ManagedInstanceVulnerabilityAssessment = ProxyResource & { storageAccountAccessKey?: string; /** The recurring scans settings */ recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -}; +} /** A managed server security alert policy. */ -export type ManagedServerSecurityAlertPolicy = ProxyResource & { +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5901,29 +5550,10 @@ export type ManagedServerSecurityAlertPolicy = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; -}; - -/** Operations health status in a location. */ -export type OperationsHealth = ProxyResource & { - /** - * Operation name for the service - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly namePropertiesName?: string; - /** - * Operation health status of the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly health?: string; - /** - * Health status description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -}; +} /** A private endpoint connection */ -export type PrivateEndpointConnection = ProxyResource & { +export interface PrivateEndpointConnection extends ProxyResource { /** Private endpoint which the connection belongs to. */ privateEndpoint?: PrivateEndpointProperty; /** Connection state of the private endpoint connection. */ @@ -5933,28 +5563,28 @@ export type PrivateEndpointConnection = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: PrivateEndpointProvisioningState; -}; +} /** A private link resource */ -export type PrivateLinkResource = ProxyResource & { +export interface PrivateLinkResource extends ProxyResource { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: PrivateLinkResourceProperties; -}; +} /** A recoverable managed database resource. */ -export type RecoverableManagedDatabase = ProxyResource & { +export interface RecoverableManagedDatabase extends ProxyResource { /** * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastAvailableBackupDate?: string; -}; +} /** Database restore points. */ -export type RestorePoint = ProxyResource & { +export interface RestorePoint extends ProxyResource { /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5980,10 +5610,10 @@ export type RestorePoint = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restorePointLabel?: string; -}; +} /** Server-level Automatic Tuning. */ -export type ServerAutomaticTuning = ProxyResource & { +export interface ServerAutomaticTuning extends ProxyResource { /** Automatic tuning desired state. */ desiredState?: AutomaticTuningServerMode; /** @@ -5993,10 +5623,10 @@ export type ServerAutomaticTuning = ProxyResource & { readonly actualState?: AutomaticTuningServerMode; /** Automatic tuning options definition. */ options?: { [propertyName: string]: AutomaticTuningServerOptions }; -}; +} /** Azure Active Directory administrator. */ -export type ServerAzureADAdministrator = ProxyResource & { +export interface ServerAzureADAdministrator extends ProxyResource { /** Type of the sever administrator. */ administratorType?: AdministratorType; /** Login name of the server administrator. */ @@ -6010,16 +5640,16 @@ export type ServerAzureADAdministrator = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly azureADOnlyAuthentication?: boolean; -}; +} /** Azure Active Directory only authentication. */ -export type ServerAzureADOnlyAuthentication = ProxyResource & { +export interface ServerAzureADOnlyAuthentication extends ProxyResource { /** Azure Active Directory only Authentication enabled. */ azureADOnlyAuthentication?: boolean; -}; +} /** A server DevOps auditing settings. */ -export type ServerDevOpsAuditingSettings = ProxyResource & { +export interface ServerDevOpsAuditingSettings extends ProxyResource { /** * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6054,19 +5684,19 @@ export type ServerDevOpsAuditingSettings = ProxyResource & { storageAccountAccessKey?: string; /** Specifies the blob storage subscription Id. */ storageAccountSubscriptionId?: string; -}; +} /** A server DNS alias. */ -export type ServerDnsAlias = ProxyResource & { +export interface ServerDnsAlias extends ProxyResource { /** * The fully qualified DNS record for alias * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly azureDnsRecord?: string; -}; +} /** A server key. */ -export type ServerKey = ProxyResource & { +export interface ServerKey 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. @@ -6101,10 +5731,10 @@ export type ServerKey = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly autoRotationEnabled?: boolean; -}; +} /** A server operation. */ -export type ServerOperation = ProxyResource & { +export interface ServerOperation extends ProxyResource { /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6170,10 +5800,10 @@ export type ServerOperation = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; -}; +} /** A server security alert policy. */ -export type ServerSecurityAlertPolicy = ProxyResource & { +export interface ServerSecurityAlertPolicy extends ProxyResource { /** * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6198,18 +5828,18 @@ export type ServerSecurityAlertPolicy = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; -}; +} /** A server trust group. */ -export type ServerTrustGroup = ProxyResource & { +export interface ServerTrustGroup extends ProxyResource { /** Group members information for the server trust group. */ groupMembers?: ServerInfo[]; /** Trust scope of the server trust group. */ trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; -}; +} /** A server vulnerability assessment. */ -export type ServerVulnerabilityAssessment = ProxyResource & { +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 write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ @@ -6218,16 +5848,16 @@ export type ServerVulnerabilityAssessment = ProxyResource & { storageAccountAccessKey?: string; /** The recurring scans settings */ recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -}; +} /** A recoverable managed database resource. */ -export type SqlAgentConfiguration = ProxyResource & { +export interface SqlAgentConfiguration extends ProxyResource { /** The state of Sql Agent. */ state?: SqlAgentConfigurationPropertiesState; -}; +} /** Usage Metric of a Subscription in a Location. */ -export type SubscriptionUsage = ProxyResource & { +export interface SubscriptionUsage extends ProxyResource { /** * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6248,10 +5878,10 @@ export type SubscriptionUsage = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; -}; +} /** An Azure SQL Database sync agent. */ -export type SyncAgent = ProxyResource & { +export interface SyncAgent extends ProxyResource { /** * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6284,10 +5914,10 @@ export type SyncAgent = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: string; -}; +} /** An Azure SQL Database sync agent linked database. */ -export type SyncAgentLinkedDatabase = ProxyResource & { +export interface SyncAgentLinkedDatabase extends ProxyResource { /** * Type of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6318,10 +5948,10 @@ export type SyncAgentLinkedDatabase = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly userName?: string; -}; +} /** An Azure SQL Database sync group. */ -export type SyncGroup = ProxyResource & { +export interface SyncGroup extends ProxyResource { /** The name and capacity of the SKU. */ sku?: Sku; /** Sync interval of the sync group. */ @@ -6357,10 +5987,10 @@ export type SyncGroup = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointName?: string; -}; +} /** An Azure SQL Database sync member. */ -export type SyncMember = ProxyResource & { +export interface SyncMember extends ProxyResource { /** Database type of the sync member. */ databaseType?: SyncMemberDbType; /** ARM resource id of the sync agent in the sync member. */ @@ -6391,10 +6021,10 @@ export type SyncMember = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly syncState?: SyncMemberState; -}; +} /** Time Zone. */ -export type TimeZone = ProxyResource & { +export interface TimeZone extends ProxyResource { /** * The time zone id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6405,19 +6035,10 @@ export type TimeZone = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly displayName?: string; -}; - -/** A recoverable managed database resource. */ -export type UpdateManagedInstanceDnsServersOperation = ProxyResource & { - /** - * The status of the DNS refresh operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: DnsRefreshConfigurationPropertiesStatus; -}; +} /** A virtual network rule. */ -export type VirtualNetworkRule = ProxyResource & { +export interface VirtualNetworkRule extends ProxyResource { /** The ARM resource id of the virtual network subnet. */ virtualNetworkSubnetId?: string; /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ @@ -6427,10 +6048,10 @@ export type VirtualNetworkRule = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: VirtualNetworkRuleState; -}; +} /** Workload classifier operations for a data warehouse */ -export type WorkloadClassifier = ProxyResource & { +export interface WorkloadClassifier extends ProxyResource { /** The workload classifier member name. */ memberName?: string; /** The workload classifier label. */ @@ -6443,10 +6064,10 @@ export type WorkloadClassifier = ProxyResource & { endTime?: string; /** The workload classifier importance. */ importance?: string; -}; +} /** Workload group operations for a data warehouse */ -export type WorkloadGroup = ProxyResource & { +export interface WorkloadGroup extends ProxyResource { /** The workload group minimum percentage resource. */ minResourcePercent?: number; /** The workload group cap percentage resource. */ @@ -6459,24 +6080,25 @@ export type WorkloadGroup = ProxyResource & { importance?: string; /** The workload group query execution timeout. */ queryExecutionTimeout?: number; -}; +} /** A logical database transparent data encryption state. */ -export type LogicalDatabaseTransparentDataEncryption = ProxyResource & { +export interface LogicalDatabaseTransparentDataEncryption + extends ProxyResource { /** Specifies the state of the transparent data encryption. */ state?: TransparentDataEncryptionState; -}; +} /** A short term retention policy. */ -export type BackupShortTermRetentionPolicy = ProxyResource & { +export interface BackupShortTermRetentionPolicy extends ProxyResource { /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ retentionDays?: number; /** The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases. */ diffBackupIntervalInHours?: DiffBackupIntervalInHours; -}; +} /** An export managed database operation result resource. */ -export type DatabaseExtensions = ProxyResource & { +export interface DatabaseExtensions extends ProxyResource { /** Operation Mode. */ operationMode?: OperationMode; /** Storage key type. */ @@ -6485,10 +6107,10 @@ export type DatabaseExtensions = ProxyResource & { storageKey?: string; /** Storage Uri. */ storageUri?: string; -}; +} /** An Extension operation result resource. */ -export type ImportExportExtensionsOperationResult = ProxyResource & { +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6524,10 +6146,10 @@ export type ImportExportExtensionsOperationResult = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; -}; +} /** A database operation. */ -export type DatabaseOperation = ProxyResource & { +export interface DatabaseOperation extends ProxyResource { /** * The name of the database the operation is being performed on. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6598,10 +6220,10 @@ export type DatabaseOperation = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; -}; +} /** Usage metric of a database. */ -export type DatabaseUsage = ProxyResource & { +export interface DatabaseUsage extends ProxyResource { /** * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6622,10 +6244,10 @@ export type DatabaseUsage = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly unit?: string; -}; +} /** Azure SQL Database ledger digest upload settings. */ -export type LedgerDigestUploads = ProxyResource & { +export interface LedgerDigestUploads extends ProxyResource { /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ digestStorageEndpoint?: string; /** @@ -6633,83 +6255,24 @@ export type LedgerDigestUploads = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: LedgerDigestUploadsState; -}; +} /** An Azure SQL DB Server Outbound Firewall Rule. */ -export type OutboundFirewallRule = ProxyResource & { +export interface OutboundFirewallRule extends ProxyResource { /** * The state of the outbound rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; -}; +} -/** A replication link. */ -export type ReplicationLink = ProxyResource & { +/** An ImportExport operation result resource. */ +export interface ImportExportOperationResult extends ProxyResource { /** - * Resource partner server. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerServer?: string; - /** - * Resource partner database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerDatabase?: string; - /** - * Resource partner location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerLocation?: string; - /** - * Local replication role. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly role?: ReplicationRole; - /** - * Partner replication role. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerRole?: ReplicationRole; - /** - * Replication mode. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationMode?: string; - /** - * Time at which the link was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * Seeding completion percentage for the link. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly percentComplete?: number; - /** - * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationState?: ReplicationState; - /** - * Whether the user is currently allowed to terminate the link. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isTerminationAllowed?: boolean; - /** - * Link type (GEO, NAMED). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly linkType?: ReplicationLinkType; -}; - -/** An ImportExport operation result resource. */ -export type ImportExportOperationResult = ProxyResource & { - /** - * Request Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestId?: string; + readonly requestId?: string; /** * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6755,10 +6318,10 @@ export type ImportExportOperationResult = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; -}; +} /** A LongTermRetentionBackup operation result resource. */ -export type LongTermRetentionBackupOperationResult = ProxyResource & { +export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6794,10 +6357,10 @@ export type LongTermRetentionBackupOperationResult = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; -}; +} /** A long term retention backup. */ -export type LongTermRetentionBackup = ProxyResource & { +export interface LongTermRetentionBackup extends ProxyResource { /** * The server name that the backup database belong to. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6835,10 +6398,10 @@ export type LongTermRetentionBackup = ProxyResource & { readonly backupStorageRedundancy?: BackupStorageRedundancy; /** The storage redundancy type of the backup */ requestedBackupStorageRedundancy?: BackupStorageRedundancy; -}; +} /** A long term retention backup for a managed database. */ -export type ManagedInstanceLongTermRetentionBackup = ProxyResource & { +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** * The managed instance that the backup database belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6874,10 +6437,10 @@ export type ManagedInstanceLongTermRetentionBackup = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupStorageRedundancy?: BackupStorageRedundancy; -}; +} /** A restorable dropped database resource. */ -export type RestorableDroppedDatabase = ProxyResource & { +export interface RestorableDroppedDatabase extends ProxyResource { /** The name and tier of the SKU. */ sku?: Sku; /** Resource location. */ @@ -6914,10 +6477,10 @@ export type RestorableDroppedDatabase = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupStorageRedundancy?: BackupStorageRedundancy; -}; +} /** A server connection policy */ -export type ServerConnectionPolicy = ProxyResource & { +export interface ServerConnectionPolicy extends ProxyResource { /** * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6930,2806 +6493,4690 @@ export type ServerConnectionPolicy = ProxyResource & { readonly kind?: string; /** The server connection type. */ connectionType?: ServerConnectionType; -}; +} -/** An elastic pool. */ -export type ElasticPool = TrackedResource & { +/** Distributed availability group between box and Sql Managed Instance. */ +export interface DistributedAvailabilityGroup extends ProxyResource { + /** The name of the target database */ + targetDatabase?: string; + /** The source endpoint */ + sourceEndpoint?: string; + /** The primary availability group name */ + primaryAvailabilityGroupName?: string; + /** The secondary availability group name */ + secondaryAvailabilityGroupName?: string; + /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */ + replicationMode?: ReplicationMode; /** - * The elastic pool SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: - * - * ```azurecli - * az sql elastic-pool list-editions -l -o table - * ```` - * + * The distributed availability group id + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly distributedAvailabilityGroupId?: string; /** - * Kind of elastic pool. This is metadata used for the Azure portal experience. + * The source replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly sourceReplicaId?: string; /** - * The state of the elastic pool. + * The target replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ElasticPoolState; + readonly targetReplicaId?: string; /** - * The creation date of the elastic pool (ISO8601 format). + * The link state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; - /** The storage limit for the database elastic pool in bytes. */ - maxSizeBytes?: number; - /** The per database settings for the elastic pool. */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this elastic pool. */ - licenseType?: ElasticPoolLicenseType; - /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ - maintenanceConfigurationId?: string; -}; - -/** An Azure SQL instance pool. */ -export type InstancePool = TrackedResource & { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the subnet to place this instance pool in. */ - subnetId?: string; - /** Count of vCores belonging to this instance pool. */ - vCores?: number; - /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ - licenseType?: InstancePoolLicenseType; -}; - -/** An Azure SQL job agent. */ -export type JobAgent = TrackedResource & { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the database to store job metadata in. */ - databaseId?: string; + readonly linkState?: string; /** - * The state of the job agent. + * The last hardened lsn * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: JobAgentState; -}; + readonly lastHardenedLsn?: string; +} -/** A managed database resource. */ -export type ManagedDatabase = TrackedResource & { - /** Collation of the managed database. */ - collation?: string; +/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ +export interface ServerTrustCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; /** - * Status of the database. + * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly thumbprint?: string; /** - * Creation date of the database. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly certificateName?: string; +} + +/** Certificate used on an endpoint on the Managed Instance. */ +export interface EndpointCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; +} + +/** A replication link. */ +export interface ReplicationLink extends ProxyResource { /** - * Earliest restore point in time for point in time restore. + * Resource partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestorePoint?: Date; - /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; + readonly partnerServer?: string; /** - * Geo paired region. + * Resource partner database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ - createMode?: ManagedDatabaseCreateMode; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ - storageContainerUri?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token. */ - storageContainerSasToken?: string; + readonly partnerDatabase?: string; /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Resource partner location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly failoverGroupId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The name of the Long Term Retention backup to be used for restore of this managed database. */ - longTermRetentionBackupResourceId?: string; - /** Whether to auto complete restore of this managed database. */ - autoCompleteRestore?: boolean; - /** Last backup file name for restore of this managed database. */ - lastBackupName?: string; -}; - -/** An Azure SQL virtual cluster. */ -export type VirtualCluster = TrackedResource & { + readonly partnerLocation?: string; /** - * Subnet resource ID for the virtual cluster. + * Local replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; + readonly role?: ReplicationRole; /** - * List of resources in this virtual cluster. + * Partner replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; - /** Specifies maintenance configuration id to apply to this virtual cluster. */ - maintenanceConfigurationId?: string; -}; - -/** An Azure SQL Database server. */ -export type Server = TrackedResource & { - /** The Azure Active Directory identity of the server. */ - identity?: ResourceIdentity; + readonly partnerRole?: ReplicationRole; /** - * Kind of sql server. This is metadata used for the Azure portal experience. + * Replication mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** Administrator username for the server. Once created it cannot be changed. */ - administratorLogin?: string; - /** The administrator login password (required for server creation). */ - administratorLoginPassword?: string; - /** The version of the server. */ - version?: string; + readonly replicationMode?: string; /** - * The state of the server. + * Time at which the link was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly startTime?: Date; /** - * The fully qualified domain name of the server. + * Seeding completion percentage for the link. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; + readonly percentComplete?: number; /** - * List of private endpoint connections on a server + * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; - /** Minimal TLS version. Allowed values: '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; - /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - publicNetworkAccess?: ServerNetworkAccessFlag; + readonly replicationState?: ReplicationState; /** - * Whether or not existing server has a workspace created and if it allows connection from workspace + * Whether the user is currently allowed to terminate the link. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceFeature?: ServerWorkspaceFeature; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** The Client id used for cross tenant CMK scenario */ - federatedClientId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory identity of the server. */ - administrators?: ServerExternalAdministrator; - /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; -}; + readonly isTerminationAllowed?: boolean; + /** + * Link type (GEO, NAMED). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkType?: ReplicationLinkType; +} -/** A database resource. */ -export type Database = TrackedResource & { +/** A sensitivity label. */ +export interface SensitivityLabel extends ProxyResource { /** - * The database SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: - * - * ```azurecli - * az sql db list-editions -l -o table - * ```` - * - * ```powershell - * Get-AzSqlServerServiceObjective -Location - * ```` - * + * Resource that manages the sensitivity label. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly managedBy?: string; /** - * Kind of database. This is metadata used for the Azure portal experience. + * The schema name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly schemaName?: string; /** - * Resource that manages the database. + * The table name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedBy?: string; - /** The Azure Active Directory identity of the database. */ - identity?: DatabaseIdentity; + readonly tableName?: string; /** - * Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. - * - * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. + * 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; + rank?: SensitivityLabelRank; +} + +/** A sensitivity label update operation. */ +export interface SensitivityLabelUpdate extends 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 interface RecommendedSensitivityLabelUpdate extends 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 server blob auditing policy. */ +export interface ServerBlobAuditingPolicy extends ProxyResource { + /** + * 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 * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. * - * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. + * 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 * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. + * 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) * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. */ - createMode?: CreateMode; - /** The collation of the database. */ - collation?: string; - /** The max size of the database expressed in bytes. */ - maxSizeBytes?: number; - /** The name of the sample schema to apply when creating this database. */ - sampleName?: SampleName; - /** The resource identifier of the elastic pool containing this database. */ - elasticPoolId?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The status of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly status?: DatabaseStatus; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The ID of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly databaseId?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * The creation date of the database (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly creationDate?: Date; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. 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; /** - * The current service level objective name of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly currentServiceObjectiveName?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A database blob auditing policy. */ +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * The requested service level objective name of the database. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly kind?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The default secondary region for this database. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly defaultSecondaryLocation?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Failover Group resource identifier that this database belongs to. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly failoverGroupId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Specifies the time that the database was deleted. */ - sourceDatabaseDeletionDate?: Date; - /** The resource identifier of the recovery point associated with create operation of this database. */ - recoveryServicesRecoveryPointId?: string; - /** The resource identifier of the long term retention backup associated with create operation of this database. */ - longTermRetentionBackupResourceId?: string; - /** The resource identifier of the recoverable database associated with create operation of this database. */ - recoverableDatabaseId?: string; - /** The resource identifier of the restorable dropped database associated with create operation of this database. */ - restorableDroppedDatabaseId?: string; - /** Collation of the metadata catalog. */ - catalogCollation?: CatalogCollationType; - /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ - zoneRedundant?: boolean; - /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ - licenseType?: DatabaseLicenseType; - /** - * The max log size for this database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxLogSizeBytes?: number; - /** - * This records the earliest start date and time that restore is available for this database (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly earliestRestoreDate?: Date; - /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. */ - readScale?: DatabaseReadScale; - /** The number of secondary replicas associated with the database that are used to provide high availability. */ - highAvailabilityReplicaCount?: number; - /** The secondary type of the database if it is a secondary. Valid values are Geo and Named. */ - secondaryType?: SecondaryType; - /** - * The name and tier of the SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly currentSku?: Sku; - /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ - autoPauseDelay?: number; - /** - * The storage account type used to store backups for this database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this database. */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Minimal capacity that database will always have allocated, if not paused */ - minCapacity?: number; - /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly pausedDate?: Date; + isAzureMonitorTargetEnabled?: boolean; /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly resumedDate?: Date; - /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ - maintenanceConfigurationId?: string; - /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ - isLedgerOn?: boolean; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. 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; /** - * Infra encryption is enabled for this database. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly isInfraEncryptionEnabled?: boolean; - /** The Client id used for cross tenant per database CMK scenario */ - federatedClientId?: string; - /** The Primary Delegated Identity Client id used for per database CMK - for internal use only */ - primaryDelegatedIdentityClientId?: string; -}; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} -/** An Azure SQL managed instance. */ -export type ManagedInstance = TrackedResource & { - /** The Azure Active Directory identity of the managed instance. */ - identity?: ResourceIdentity; - /** Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 */ - sku?: Sku; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; +/** An extended database blob auditing policy. */ +export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Specifies the mode of database creation. + * Specifies the Actions-Groups and Actions to audit. * - * Default: Regular instance creation. + * 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: * - * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. + * 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 + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_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) */ - managedInstanceCreateMode?: ManagedServerCreateMode; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The fully qualified domain name of the managed instance. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly fullyQualifiedDomainName?: string; - /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ - administratorLogin?: string; - /** The administrator login password (required for managed instance creation). */ - administratorLoginPassword?: string; - /** Subnet resource ID for the managed instance. */ - subnetId?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * The state of the managed instance. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly state?: string; - /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ - licenseType?: ManagedInstanceLicenseType; - /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ - vCores?: number; - /** Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. */ - storageSizeInGB?: number; - /** Collation of the managed instance. */ - collation?: string; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. 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; /** - * The Dns Zone that the managed instance is in. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly dnsZone?: string; - /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ - dnsZonePartner?: string; - /** Whether or not the public data endpoint is enabled. */ - publicDataEndpointEnabled?: boolean; - /** The resource identifier of the source managed instance associated with create operation of this instance. */ - sourceManagedInstanceId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Connection type used for connecting to the instance. */ - proxyOverride?: ManagedInstanceProxyOverride; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** An extended server blob auditing policy. */ +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + * 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) + * */ - timezoneId?: string; - /** The Id of the instance pool this managed server belongs to. */ - instancePoolId?: string; - /** Specifies maintenance configuration id to apply to this managed instance. */ - maintenanceConfigurationId?: string; + isDevopsAuditEnabled?: boolean; + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * List of private endpoint connections on a managed instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_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 whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; - /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; - /** Whether or not the multi-az is enabled. */ - zoneRedundant?: boolean; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the server. */ - administrators?: ManagedInstanceExternalAdministrator; - /** The managed instance's service principal. */ - servicePrincipal?: ServicePrincipal; -}; + 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; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. 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; + /** + * 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 blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} -/** A restorable dropped managed database resource. */ -export type RestorableDroppedManagedDatabase = TrackedResource & { +/** A database Advanced Threat Protection. */ +export interface DatabaseAdvancedThreatProtection extends ProxyResource { /** - * The name of the database. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The creation date of the database (ISO8601 format). + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly creationTime?: Date; +} + +/** A server Advanced Threat Protection. */ +export interface ServerAdvancedThreatProtection extends ProxyResource { /** - * The deletion date of the database (ISO8601 format). + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The earliest restore date of the database (ISO8601 format). + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; -}; - -/** A server firewall rule. */ -export type FirewallRule = ProxyResourceWithWritableName & { - /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ - startIpAddress?: string; - /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. */ - endIpAddress?: string; -}; - -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { - Default = "Default" -} - -/** - * 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 GeoBackupPolicyName = string; - -/** Known values of {@link UnitType} that the service accepts. */ -export enum KnownUnitType { - Count = "count", - Bytes = "bytes", - Seconds = "seconds", - Percent = "percent", - CountPerSecond = "countPerSecond", - BytesPerSecond = "bytesPerSecond" + readonly creationTime?: Date; } -/** - * Defines values for UnitType. \ - * {@link KnownUnitType} can be used interchangeably with UnitType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **count** \ - * **bytes** \ - * **seconds** \ - * **percent** \ - * **countPerSecond** \ - * **bytesPerSecond** - */ -export type UnitType = string; - -/** Known values of {@link PrimaryAggregationType} that the service accepts. */ -export enum KnownPrimaryAggregationType { - None = "None", - Average = "Average", - Count = "Count", - Minimum = "Minimum", - Maximum = "Maximum", - Total = "Total" +/** A managed server DNS alias. */ +export interface ManagedServerDnsAlias extends ProxyResource { + /** + * The fully qualified DNS record for managed server alias + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly azureDnsRecord?: string; + /** + * The fully qualified public DNS record for managed server alias + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicAzureDnsRecord?: string; } -/** - * Defines values for PrimaryAggregationType. \ - * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Average** \ - * **Count** \ - * **Minimum** \ - * **Maximum** \ - * **Total** - */ -export type PrimaryAggregationType = string; - -/** Known values of {@link UnitDefinitionType} that the service accepts. */ -export enum KnownUnitDefinitionType { - Count = "Count", - Bytes = "Bytes", - Seconds = "Seconds", - Percent = "Percent", - CountPerSecond = "CountPerSecond", - BytesPerSecond = "BytesPerSecond" +/** A managed database Advanced Threat Protection. */ +export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { + /** + * SystemData of AdvancedThreatProtectionResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; + /** + * 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; } -/** - * Defines values for UnitDefinitionType. \ - * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Count** \ - * **Bytes** \ - * **Seconds** \ - * **Percent** \ - * **CountPerSecond** \ - * **BytesPerSecond** - */ -export type UnitDefinitionType = string; - -/** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ -export enum KnownRecommendedActionCurrentState { - Active = "Active", - Pending = "Pending", - Executing = "Executing", - Verifying = "Verifying", - PendingRevert = "PendingRevert", - RevertCancelled = "RevertCancelled", - Reverting = "Reverting", - Reverted = "Reverted", - Ignored = "Ignored", - Expired = "Expired", - Monitoring = "Monitoring", - Resolved = "Resolved", - Success = "Success", - Error = "Error" +/** A managed instance Advanced Threat Protection. */ +export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { + /** + * SystemData of AdvancedThreatProtectionResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; + /** + * 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; } -/** - * Defines values for RecommendedActionCurrentState. \ - * {@link KnownRecommendedActionCurrentState} can be used interchangeably with RecommendedActionCurrentState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Active** \ - * **Pending** \ - * **Executing** \ - * **Verifying** \ - * **PendingRevert** \ - * **RevertCancelled** \ - * **Reverting** \ - * **Reverted** \ - * **Ignored** \ - * **Expired** \ - * **Monitoring** \ - * **Resolved** \ - * **Success** \ - * **Error** - */ -export type RecommendedActionCurrentState = 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" +/** A managed database move operation. */ +export interface ManagedDatabaseMoveOperationResult extends ProxyResource { + /** + * 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 operation start time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The operation state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ManagementOperationState; + /** + * Operation mode. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationMode?: MoveOperationMode; + /** + * Source Managed Instance name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceManagedInstanceName?: string; + /** + * Target Managed Instance name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetManagedInstanceName?: string; + /** + * Source Managed Instance resource id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceManagedInstanceId?: string; + /** + * Target Managed instance resource id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetManagedInstanceId?: string; + /** + * Source database name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceDatabaseName?: string; + /** + * Target database name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetDatabaseName?: string; + /** + * Is move operation cancellable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isCancellable?: boolean; + /** + * 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; } -/** - * 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 TableTemporalType} that the service accepts. */ -export enum KnownTableTemporalType { - NonTemporalTable = "NonTemporalTable", - HistoryTable = "HistoryTable", - SystemVersionedTemporalTable = "SystemVersionedTemporalTable" +/** SQL Managed Instance DTC */ +export interface ManagedInstanceDtc extends ProxyResource { + /** Active status of managed instance DTC. */ + dtcEnabled?: boolean; + /** Security settings of managed instance DTC. */ + securitySettings?: ManagedInstanceDtcSecuritySettings; + /** External dns suffix search list of managed instance DTC. */ + externalDnsSuffixSearchList?: string[]; + /** + * Host name dns suffix of managed instance DTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dtcHostNameDnsSuffix?: string; + /** + * Provisioning state of managed instance DTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; } -/** - * Defines values for TableTemporalType. \ - * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NonTemporalTable** \ - * **HistoryTable** \ - * **SystemVersionedTemporalTable** - */ -export type TableTemporalType = string; - -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { - Default = "Default" +/** A refresh DNS servers operation. */ +export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { + /** + * The status of the DNS refresh operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: DNSRefreshOperationStatus; } -/** - * 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 SecurityAlertPolicyName = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - User = "User", - Application = "Application", - ManagedIdentity = "ManagedIdentity", - Key = "Key" +/** An Azure SQL instance pool. */ +export interface InstancePool extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the subnet to place this instance pool in. */ + subnetId?: string; + /** Count of vCores belonging to this instance pool. */ + vCores?: number; + /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ + licenseType?: InstancePoolLicenseType; } -/** - * 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 CreatedByType = string; - -/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ -export enum KnownVulnerabilityAssessmentName { - Default = "default" +/** An Azure SQL job agent. */ +export interface JobAgent extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the database to store job metadata in. */ + databaseId?: string; + /** + * The state of the job agent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: JobAgentState; } -/** - * 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 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 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 VulnerabilityAssessmentScanState = string; - -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - Current = "current" -} - -/** - * 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 DataWarehouseUserActivityName = string; - -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - Creating = "Creating", - Ready = "Ready", - Disabled = "Disabled" -} - -/** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Ready** \ - * **Disabled** - */ -export type ElasticPoolState = string; - -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" -} - -/** - * Defines values for ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** - */ -export type ElasticPoolLicenseType = string; - -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - ServiceManaged = "ServiceManaged", - AzureKeyVault = "AzureKeyVault" -} - -/** - * 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 ServerKeyType = string; - -/** Known values of {@link EncryptionProtectorName} that the service accepts. */ -export enum KnownEncryptionProtectorName { - Current = "current" -} - -/** - * 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 EncryptionProtectorName = string; - -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - Manual = "Manual", - Automatic = "Automatic" -} - -/** - * Defines values for ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual** \ - * **Automatic** - */ -export type ReadWriteEndpointFailoverPolicy = string; - -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { - Disabled = "Disabled", - Enabled = "Enabled" +/** A managed database resource. */ +export interface ManagedDatabase extends TrackedResource { + /** Collation of the managed database. */ + collation?: string; + /** + * Status of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: ManagedDatabaseStatus; + /** + * Creation date of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * Earliest restore point in time for point in time restore. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestorePoint?: Date; + /** Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** + * Geo paired region. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultSecondaryLocation?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). */ + createMode?: ManagedDatabaseCreateMode; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored. */ + storageContainerUri?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; + /** + * Instance Failover Group resource identifier that this managed database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The name of the Long Term Retention backup to be used for restore of this managed database. */ + longTermRetentionBackupResourceId?: string; + /** Whether to auto complete restore of this managed database. */ + autoCompleteRestore?: boolean; + /** Last backup file name for restore of this managed database. */ + lastBackupName?: string; } -/** - * Defines values for ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **Enabled** - */ -export type ReadOnlyEndpointFailoverPolicy = string; - -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - Primary = "Primary", - Secondary = "Secondary" +/** An Azure SQL Database server. */ +export interface Server extends TrackedResource { + /** The Azure Active Directory identity of the server. */ + identity?: ResourceIdentity; + /** + * Kind of sql server. 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; + /** Administrator username for the server. Once created it cannot be changed. */ + administratorLogin?: string; + /** The administrator login password (required for server creation). */ + administratorLoginPassword?: string; + /** The version of the server. */ + version?: string; + /** + * The state of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: string; + /** + * The fully qualified domain name of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedDomainName?: string; + /** + * List of private endpoint connections on a server + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** Minimal TLS version. Allowed values: '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + publicNetworkAccess?: ServerNetworkAccessFlag; + /** + * Whether or not existing server has a workspace created and if it allows connection from workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceFeature?: ServerWorkspaceFeature; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** The Client id used for cross tenant CMK scenario */ + federatedClientId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory identity of the server. */ + administrators?: ServerExternalAdministrator; + /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; } -/** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary** \ - * **Secondary** - */ -export type FailoverGroupReplicationRole = string; - -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - Primary = "Primary", - Secondary = "Secondary" +/** A database resource. */ +export interface Database extends TrackedResource { + /** + * The database SKU. + * + * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + * + * ```azurecli + * az sql db list-editions -l -o table + * ```` + * + * ```powershell + * Get-AzSqlServerServiceObjective -Location + * ```` + * + */ + sku?: Sku; + /** + * Kind of database. 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 that manages the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedBy?: string; + /** The Azure Active Directory identity of the database. */ + identity?: DatabaseIdentity; + /** + * Specifies the mode of database creation. + * + * Default: regular database creation. + * + * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. + * + * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. + * + * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. + * + * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. + * + * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. + * + * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. + * + * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. + */ + createMode?: CreateMode; + /** The collation of the database. */ + collation?: string; + /** The max size of the database expressed in bytes. */ + maxSizeBytes?: number; + /** The name of the sample schema to apply when creating this database. */ + sampleName?: SampleName; + /** The resource identifier of the elastic pool containing this database. */ + elasticPoolId?: string; + /** The resource identifier of the source database associated with create operation of this database. */ + sourceDatabaseId?: string; + /** + * The status of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: DatabaseStatus; + /** + * The ID of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseId?: string; + /** + * The creation date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * The current service level objective name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentServiceObjectiveName?: string; + /** + * The requested service level objective name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requestedServiceObjectiveName?: string; + /** + * The default secondary region for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultSecondaryLocation?: string; + /** + * Failover Group resource identifier that this database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failoverGroupId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Specifies the time that the database was deleted. */ + sourceDatabaseDeletionDate?: Date; + /** The resource identifier of the recovery point associated with create operation of this database. */ + recoveryServicesRecoveryPointId?: string; + /** The resource identifier of the long term retention backup associated with create operation of this database. */ + longTermRetentionBackupResourceId?: string; + /** The resource identifier of the recoverable database associated with create operation of this database. */ + recoverableDatabaseId?: string; + /** The resource identifier of the restorable dropped database associated with create operation of this database. */ + restorableDroppedDatabaseId?: string; + /** Collation of the metadata catalog. */ + catalogCollation?: CatalogCollationType; + /** Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. */ + licenseType?: DatabaseLicenseType; + /** + * The max log size for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maxLogSizeBytes?: number; + /** + * This records the earliest start date and time that restore is available for this database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestoreDate?: Date; + /** The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. */ + readScale?: DatabaseReadScale; + /** The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool. */ + highAvailabilityReplicaCount?: number; + /** The secondary type of the database if it is a secondary. Valid values are Geo and Named. */ + secondaryType?: SecondaryType; + /** + * The name and tier of the SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentSku?: Sku; + /** Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled */ + autoPauseDelay?: number; + /** + * The storage account type used to store backups for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this database. */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Minimal capacity that database will always have allocated, if not paused */ + minCapacity?: number; + /** + * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly pausedDate?: Date; + /** + * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resumedDate?: Date; + /** Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur. */ + maintenanceConfigurationId?: string; + /** Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created. */ + isLedgerOn?: boolean; + /** + * Infra encryption is enabled for this database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isInfraEncryptionEnabled?: boolean; + /** The Client id used for cross tenant per database CMK scenario */ + federatedClientId?: string; + /** + * The resource identifier of the source associated with the create operation of this database. + * + * When sourceResourceId is specified, sourceDatabaseId, recoverableDatabaseId, restorableDroppedDatabaseId and sourceDatabaseDeletionDate must not be specified and CreateMode must be PointInTimeRestore, Restore or Recover. + * + * When createMode is PointInTimeRestore, sourceResourceId must be the resource ID of an existing database or existing sql pool, and restorePointInTime must be specified. + * + * When createMode is Restore, sourceResourceId must be the resource ID of restorable dropped database or restorable dropped sql pool. + * + * When createMode is Recover, sourceResourceId must be the resource ID of recoverable database or recoverable sql pool. + * + * This property allows to restore across subscriptions which is only supported for DataWarehouse edition. + * + * When source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant + */ + sourceResourceId?: string; +} + +/** An Azure SQL managed instance. */ +export interface ManagedInstance extends TrackedResource { + /** The Azure Active Directory identity of the managed instance. */ + identity?: ResourceIdentity; + /** Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 */ + sku?: Sku; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + /** + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. + */ + managedInstanceCreateMode?: ManagedServerCreateMode; + /** + * The fully qualified domain name of the managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedDomainName?: string; + /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ + administratorLogin?: string; + /** The administrator login password (required for managed instance creation). */ + administratorLoginPassword?: string; + /** Subnet resource ID for the managed instance. */ + subnetId?: string; + /** + * The state of the managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: string; + /** The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). */ + licenseType?: ManagedInstanceLicenseType; + /** The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ + vCores?: number; + /** Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. */ + storageSizeInGB?: number; + /** Collation of the managed instance. */ + collation?: string; + /** + * The Dns Zone that the managed instance is in. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dnsZone?: string; + /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ + dnsZonePartner?: string; + /** Whether or not the public data endpoint is enabled. */ + publicDataEndpointEnabled?: boolean; + /** The resource identifier of the source managed instance associated with create operation of this instance. */ + sourceManagedInstanceId?: string; + /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ + restorePointInTime?: Date; + /** Connection type used for connecting to the instance. */ + proxyOverride?: ManagedInstanceProxyOverride; + /** + * Id of the timezone. Allowed values are timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. + * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + */ + timezoneId?: string; + /** The Id of the instance pool this managed server belongs to. */ + instancePoolId?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; + /** + * List of private endpoint connections on a managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** + * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Whether or not the multi-az is enabled. */ + zoneRedundant?: boolean; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the server. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; +} + +/** A restorable dropped managed database resource. */ +export interface RestorableDroppedManagedDatabase extends TrackedResource { + /** + * The name of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseName?: string; + /** + * The creation date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** + * The deletion date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deletionDate?: Date; + /** + * The earliest restore date of the database (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestoreDate?: Date; +} + +/** An elastic pool. */ +export interface ElasticPool extends TrackedResource { + /** + * The elastic pool SKU. + * + * The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: + * + * ```azurecli + * az sql elastic-pool list-editions -l -o table + * ```` + * + */ + sku?: Sku; + /** + * Kind of elastic pool. 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; + /** + * The state of the elastic pool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ElasticPoolState; + /** + * The creation date of the elastic pool (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationDate?: Date; + /** The storage limit for the database elastic pool in bytes. */ + maxSizeBytes?: number; + /** The per database settings for the elastic pool. */ + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + /** Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. */ + zoneRedundant?: boolean; + /** The license type to apply for this elastic pool. */ + licenseType?: ElasticPoolLicenseType; + /** Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur. */ + maintenanceConfigurationId?: string; + /** The number of secondary replicas associated with the elastic pool that are used to provide high availability. */ + highAvailabilityReplicaCount?: number; +} + +/** An Azure SQL virtual cluster. */ +export interface VirtualCluster extends TrackedResource { + /** + * Subnet resource ID for the virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; + /** + * List of resources in this virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly childResources?: string[]; +} + +/** A server firewall rule. */ +export interface FirewallRule extends ProxyResourceWithWritableName { + /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ + startIpAddress?: string; + /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. */ + endIpAddress?: string; +} + +/** An IPv6 server firewall rule. */ +export interface IPv6FirewallRule extends ProxyResourceWithWritableName { + /** The start IP address of the firewall rule. Must be IPv6 format. */ + startIPv6Address?: string; + /** The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. */ + endIPv6Address?: string; +} + +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + /** Default */ + Default = "Default" +} + +/** + * 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 GeoBackupPolicyName = string; + +/** Known values of {@link UnitType} that the service accepts. */ +export enum KnownUnitType { + /** Count */ + Count = "count", + /** Bytes */ + Bytes = "bytes", + /** Seconds */ + Seconds = "seconds", + /** Percent */ + Percent = "percent", + /** CountPerSecond */ + CountPerSecond = "countPerSecond", + /** BytesPerSecond */ + BytesPerSecond = "bytesPerSecond" +} + +/** + * Defines values for UnitType. \ + * {@link KnownUnitType} can be used interchangeably with UnitType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **count** \ + * **bytes** \ + * **seconds** \ + * **percent** \ + * **countPerSecond** \ + * **bytesPerSecond** + */ +export type UnitType = string; + +/** Known values of {@link PrimaryAggregationType} that the service accepts. */ +export enum KnownPrimaryAggregationType { + /** None */ + None = "None", + /** Average */ + Average = "Average", + /** Count */ + Count = "Count", + /** Minimum */ + Minimum = "Minimum", + /** Maximum */ + Maximum = "Maximum", + /** Total */ + Total = "Total" +} + +/** + * Defines values for PrimaryAggregationType. \ + * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Average** \ + * **Count** \ + * **Minimum** \ + * **Maximum** \ + * **Total** + */ +export type PrimaryAggregationType = string; + +/** Known values of {@link UnitDefinitionType} that the service accepts. */ +export enum KnownUnitDefinitionType { + /** Count */ + Count = "Count", + /** Bytes */ + Bytes = "Bytes", + /** Seconds */ + Seconds = "Seconds", + /** Percent */ + Percent = "Percent", + /** CountPerSecond */ + CountPerSecond = "CountPerSecond", + /** BytesPerSecond */ + BytesPerSecond = "BytesPerSecond" +} + +/** + * Defines values for UnitDefinitionType. \ + * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** \ + * **Bytes** \ + * **Seconds** \ + * **Percent** \ + * **CountPerSecond** \ + * **BytesPerSecond** + */ +export type UnitDefinitionType = string; + +/** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ +export enum KnownRecommendedActionCurrentState { + /** Active */ + Active = "Active", + /** Pending */ + Pending = "Pending", + /** Executing */ + Executing = "Executing", + /** Verifying */ + Verifying = "Verifying", + /** PendingRevert */ + PendingRevert = "PendingRevert", + /** RevertCancelled */ + RevertCancelled = "RevertCancelled", + /** Reverting */ + Reverting = "Reverting", + /** Reverted */ + Reverted = "Reverted", + /** Ignored */ + Ignored = "Ignored", + /** Expired */ + Expired = "Expired", + /** Monitoring */ + Monitoring = "Monitoring", + /** Resolved */ + Resolved = "Resolved", + /** Success */ + Success = "Success", + /** Error */ + Error = "Error" +} + +/** + * Defines values for RecommendedActionCurrentState. \ + * {@link KnownRecommendedActionCurrentState} can be used interchangeably with RecommendedActionCurrentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Active** \ + * **Pending** \ + * **Executing** \ + * **Verifying** \ + * **PendingRevert** \ + * **RevertCancelled** \ + * **Reverting** \ + * **Reverted** \ + * **Ignored** \ + * **Expired** \ + * **Monitoring** \ + * **Resolved** \ + * **Success** \ + * **Error** + */ +export type RecommendedActionCurrentState = string; + +/** Known values of {@link ColumnDataType} that the service accepts. */ +export enum KnownColumnDataType { + /** Image */ + Image = "image", + /** Text */ + Text = "text", + /** Uniqueidentifier */ + Uniqueidentifier = "uniqueidentifier", + /** Date */ + Date = "date", + /** Time */ + Time = "time", + /** Datetime2 */ + Datetime2 = "datetime2", + /** Datetimeoffset */ + Datetimeoffset = "datetimeoffset", + /** Tinyint */ + Tinyint = "tinyint", + /** Smallint */ + Smallint = "smallint", + /** Int */ + Int = "int", + /** Smalldatetime */ + Smalldatetime = "smalldatetime", + /** Real */ + Real = "real", + /** Money */ + Money = "money", + /** Datetime */ + Datetime = "datetime", + /** Float */ + Float = "float", + /** SqlVariant */ + SqlVariant = "sql_variant", + /** Ntext */ + Ntext = "ntext", + /** Bit */ + Bit = "bit", + /** Decimal */ + Decimal = "decimal", + /** Numeric */ + Numeric = "numeric", + /** Smallmoney */ + Smallmoney = "smallmoney", + /** Bigint */ + Bigint = "bigint", + /** Hierarchyid */ + Hierarchyid = "hierarchyid", + /** Geometry */ + Geometry = "geometry", + /** Geography */ + Geography = "geography", + /** Varbinary */ + Varbinary = "varbinary", + /** Varchar */ + Varchar = "varchar", + /** Binary */ + Binary = "binary", + /** Char */ + Char = "char", + /** Timestamp */ + Timestamp = "timestamp", + /** Nvarchar */ + Nvarchar = "nvarchar", + /** Nchar */ + Nchar = "nchar", + /** Xml */ + Xml = "xml", + /** Sysname */ + 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 TableTemporalType} that the service accepts. */ +export enum KnownTableTemporalType { + /** NonTemporalTable */ + NonTemporalTable = "NonTemporalTable", + /** HistoryTable */ + HistoryTable = "HistoryTable", + /** SystemVersionedTemporalTable */ + SystemVersionedTemporalTable = "SystemVersionedTemporalTable" +} + +/** + * Defines values for TableTemporalType. \ + * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NonTemporalTable** \ + * **HistoryTable** \ + * **SystemVersionedTemporalTable** + */ +export type TableTemporalType = string; + +/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ +export enum KnownSecurityAlertPolicyName { + /** Default */ + Default = "Default" +} + +/** + * 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 SecurityAlertPolicyName = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * 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 CreatedByType = string; + +/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ +export enum KnownVulnerabilityAssessmentName { + /** Default */ + 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 = "OnDemand", + /** Recurring */ + 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 VulnerabilityAssessmentScanTriggerType = string; + +/** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanState { + /** Passed */ + Passed = "Passed", + /** Failed */ + Failed = "Failed", + /** FailedToRun */ + FailedToRun = "FailedToRun", + /** InProgress */ + InProgress = "InProgress" +} + +/** + * 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 VulnerabilityAssessmentScanState = string; + +/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ +export enum KnownDataWarehouseUserActivityName { + /** Current */ + Current = "current" +} + +/** + * 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 DataWarehouseUserActivityName = string; + +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + /** ServiceManaged */ + ServiceManaged = "ServiceManaged", + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" +} + +/** + * 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 ServerKeyType = string; + +/** Known values of {@link EncryptionProtectorName} that the service accepts. */ +export enum KnownEncryptionProtectorName { + /** Current */ + Current = "current" +} + +/** + * 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 EncryptionProtectorName = string; + +/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadWriteEndpointFailoverPolicy { + /** Manual */ + Manual = "Manual", + /** Automatic */ + Automatic = "Automatic" +} + +/** + * Defines values for ReadWriteEndpointFailoverPolicy. \ + * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Manual** \ + * **Automatic** + */ +export type ReadWriteEndpointFailoverPolicy = string; + +/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadOnlyEndpointFailoverPolicy { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * Defines values for ReadOnlyEndpointFailoverPolicy. \ + * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type ReadOnlyEndpointFailoverPolicy = string; + +/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" +} + +/** + * Defines values for FailoverGroupReplicationRole. \ + * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type FailoverGroupReplicationRole = string; + +/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ +export enum KnownInstanceFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" +} + +/** + * Defines values for InstanceFailoverGroupReplicationRole. \ + * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type InstanceFailoverGroupReplicationRole = string; + +/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" +} + +/** + * Defines values for InstancePoolLicenseType. \ + * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **LicenseIncluded** \ + * **BasePrice** + */ +export type InstancePoolLicenseType = string; + +/** Known values of {@link JobAgentState} that the service accepts. */ +export enum KnownJobAgentState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for JobAgentState. \ + * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Ready** \ + * **Updating** \ + * **Deleting** \ + * **Disabled** + */ +export type JobAgentState = string; + +/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ +export enum KnownJobExecutionLifecycle { + /** Created */ + Created = "Created", + /** InProgress */ + InProgress = "InProgress", + /** WaitingForChildJobExecutions */ + WaitingForChildJobExecutions = "WaitingForChildJobExecutions", + /** WaitingForRetry */ + WaitingForRetry = "WaitingForRetry", + /** Succeeded */ + Succeeded = "Succeeded", + /** SucceededWithSkipped */ + SucceededWithSkipped = "SucceededWithSkipped", + /** Failed */ + Failed = "Failed", + /** TimedOut */ + TimedOut = "TimedOut", + /** Canceled */ + Canceled = "Canceled", + /** Skipped */ + Skipped = "Skipped" +} + +/** + * Defines values for JobExecutionLifecycle. \ + * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Created** \ + * **InProgress** \ + * **WaitingForChildJobExecutions** \ + * **WaitingForRetry** \ + * **Succeeded** \ + * **SucceededWithSkipped** \ + * **Failed** \ + * **TimedOut** \ + * **Canceled** \ + * **Skipped** + */ +export type JobExecutionLifecycle = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Created */ + Created = "Created", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * 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 + * **Created** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ProvisioningState = string; + +/** Known values of {@link JobTargetType} that the service accepts. */ +export enum KnownJobTargetType { + /** TargetGroup */ + TargetGroup = "TargetGroup", + /** SqlDatabase */ + SqlDatabase = "SqlDatabase", + /** SqlElasticPool */ + SqlElasticPool = "SqlElasticPool", + /** SqlShardMap */ + SqlShardMap = "SqlShardMap", + /** SqlServer */ + SqlServer = "SqlServer" +} + +/** + * Defines values for JobTargetType. \ + * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TargetGroup** \ + * **SqlDatabase** \ + * **SqlElasticPool** \ + * **SqlShardMap** \ + * **SqlServer** + */ +export type JobTargetType = string; + +/** Known values of {@link JobStepActionType} that the service accepts. */ +export enum KnownJobStepActionType { + /** TSql */ + TSql = "TSql" +} + +/** + * Defines values for JobStepActionType. \ + * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TSql** + */ +export type JobStepActionType = string; + +/** Known values of {@link JobStepActionSource} that the service accepts. */ +export enum KnownJobStepActionSource { + /** Inline */ + Inline = "Inline" +} + +/** + * Defines values for JobStepActionSource. \ + * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inline** + */ +export type JobStepActionSource = string; + +/** Known values of {@link JobStepOutputType} that the service accepts. */ +export enum KnownJobStepOutputType { + /** SqlDatabase */ + SqlDatabase = "SqlDatabase" +} + +/** + * Defines values for JobStepOutputType. \ + * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SqlDatabase** + */ +export type JobStepOutputType = string; + +/** Known values of {@link CapabilityGroup} that the service accepts. */ +export enum KnownCapabilityGroup { + /** SupportedEditions */ + SupportedEditions = "supportedEditions", + /** SupportedElasticPoolEditions */ + SupportedElasticPoolEditions = "supportedElasticPoolEditions", + /** SupportedManagedInstanceVersions */ + SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", + /** SupportedInstancePoolEditions */ + SupportedInstancePoolEditions = "supportedInstancePoolEditions", + /** SupportedManagedInstanceEditions */ + SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" +} + +/** + * Defines values for CapabilityGroup. \ + * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **supportedEditions** \ + * **supportedElasticPoolEditions** \ + * **supportedManagedInstanceVersions** \ + * **supportedInstancePoolEditions** \ + * **supportedManagedInstanceEditions** + */ +export type CapabilityGroup = string; + +/** Known values of {@link MaxSizeUnit} that the service accepts. */ +export enum KnownMaxSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes" +} + +/** + * Defines values for MaxSizeUnit. \ + * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** + */ +export type MaxSizeUnit = string; + +/** Known values of {@link LogSizeUnit} that the service accepts. */ +export enum KnownLogSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes", + /** Percent */ + Percent = "Percent" +} + +/** + * Defines values for LogSizeUnit. \ + * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** \ + * **Percent** + */ +export type LogSizeUnit = string; + +/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ +export enum KnownPerformanceLevelUnit { + /** DTU */ + DTU = "DTU", + /** VCores */ + VCores = "VCores" +} + +/** + * Defines values for PerformanceLevelUnit. \ + * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DTU** \ + * **VCores** + */ +export type PerformanceLevelUnit = string; + +/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ +export enum KnownPauseDelayTimeUnit { + /** Minutes */ + Minutes = "Minutes" +} + +/** + * Defines values for PauseDelayTimeUnit. \ + * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minutes** + */ +export type PauseDelayTimeUnit = string; + +/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ +export enum KnownStorageCapabilityStorageAccountType { + /** GRS */ + GRS = "GRS", + /** LRS */ + LRS = "LRS", + /** ZRS */ + ZRS = "ZRS" +} + +/** + * Defines values for StorageCapabilityStorageAccountType. \ + * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GRS** \ + * **LRS** \ + * **ZRS** + */ +export type StorageCapabilityStorageAccountType = string; + +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for LongTermRetentionPolicyName. \ + * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type LongTermRetentionPolicyName = string; + +/** Known values of {@link DayOfWeek} that the service accepts. */ +export enum KnownDayOfWeek { + /** Sunday */ + Sunday = "Sunday", + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + 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 ManagedShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedShortTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ManagedShortTermRetentionPolicyName. \ + * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ManagedShortTermRetentionPolicyName = string; + +/** Known values of {@link QueryTimeGrainType} that the service accepts. */ +export enum KnownQueryTimeGrainType { + /** PT1H */ + PT1H = "PT1H", + /** P1D */ + P1D = "P1D" +} + +/** + * Defines values for QueryTimeGrainType. \ + * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PT1H** \ + * **P1D** + */ +export type QueryTimeGrainType = string; + +/** Known values of {@link QueryMetricUnitType} that the service accepts. */ +export enum KnownQueryMetricUnitType { + /** Percentage */ + Percentage = "percentage", + /** KB */ + KB = "KB", + /** Microseconds */ + Microseconds = "microseconds", + /** Count */ + Count = "count" +} + +/** + * Defines values for QueryMetricUnitType. \ + * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **percentage** \ + * **KB** \ + * **microseconds** \ + * **count** + */ +export type QueryMetricUnitType = string; + +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { + /** Default */ + Default = "Default" +} + +/** + * Defines values for RestoreDetailsName. \ + * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type RestoreDetailsName = string; + +/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ +export enum KnownManagedDatabaseStatus { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** Shutdown */ + Shutdown = "Shutdown", + /** Creating */ + Creating = "Creating", + /** Inaccessible */ + Inaccessible = "Inaccessible", + /** Restoring */ + Restoring = "Restoring", + /** Updating */ + Updating = "Updating" +} + +/** + * Defines values for ManagedDatabaseStatus. \ + * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** + */ +export type ManagedDatabaseStatus = string; + +/** Known values of {@link CatalogCollationType} that the service accepts. */ +export enum KnownCatalogCollationType { + /** DatabaseDefault */ + DatabaseDefault = "DATABASE_DEFAULT", + /** SQLLatin1GeneralCP1CIAS */ + SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" +} + +/** + * Defines values for CatalogCollationType. \ + * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** + */ +export type CatalogCollationType = string; + +/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ +export enum KnownManagedDatabaseCreateMode { + /** Default */ + Default = "Default", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" +} + +/** + * Defines values for ManagedDatabaseCreateMode. \ + * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **RestoreExternalBackup** \ + * **PointInTimeRestore** \ + * **Recovery** \ + * **RestoreLongTermRetentionBackup** + */ +export type ManagedDatabaseCreateMode = string; + +/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { + /** Current */ + 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 ManagedInstanceAdministratorType} that the service accepts. */ +export enum KnownManagedInstanceAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" +} + +/** + * Defines values for ManagedInstanceAdministratorType. \ + * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ActiveDirectory** + */ +export type ManagedInstanceAdministratorType = string; + +/** Known values of {@link AdministratorName} that the service accepts. */ +export enum KnownAdministratorName { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" +} + +/** + * Defines values for AdministratorName. \ + * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ActiveDirectory** + */ +export type AdministratorName = string; + +/** Known values of {@link AuthenticationName} that the service accepts. */ +export enum KnownAuthenticationName { + /** Default */ + Default = "Default" +} + +/** + * Defines values for AuthenticationName. \ + * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type AuthenticationName = string; + +/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedInstanceLongTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ + * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ManagedInstanceLongTermRetentionPolicyName = string; + +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + /** Pending */ + Pending = "Pending", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** CancelInProgress */ + CancelInProgress = "CancelInProgress", + /** Cancelled */ + 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 UpsertManagedServerOperationStepStatus} that the service accepts. */ +export enum KnownUpsertManagedServerOperationStepStatus { + /** NotStarted */ + NotStarted = "NotStarted", + /** InProgress */ + InProgress = "InProgress", + /** SlowedDown */ + SlowedDown = "SlowedDown", + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for UpsertManagedServerOperationStepStatus. \ + * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **InProgress** \ + * **SlowedDown** \ + * **Completed** \ + * **Failed** \ + * **Canceled** + */ +export type UpsertManagedServerOperationStepStatus = string; + +/** Known values of {@link OperationOrigin} that the service accepts. */ +export enum KnownOperationOrigin { + /** User */ + User = "user", + /** System */ + System = "system" +} + +/** + * Defines values for OperationOrigin. \ + * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** + */ +export type OperationOrigin = string; + +/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateStatus { + /** Approved */ + Approved = "Approved", + /** Pending */ + Pending = "Pending", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected" +} + +/** + * Defines values for PrivateLinkServiceConnectionStateStatus. \ + * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** + */ +export type PrivateLinkServiceConnectionStateStatus = string; + +/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateActionsRequire { + /** None */ + None = "None" +} + +/** + * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ + * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** + */ +export type PrivateLinkServiceConnectionStateActionsRequire = string; + +/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointProvisioningState { + /** Approving */ + Approving = "Approving", + /** Ready */ + Ready = "Ready", + /** Dropping */ + Dropping = "Dropping", + /** Failed */ + Failed = "Failed", + /** Rejecting */ + Rejecting = "Rejecting" +} + +/** + * Defines values for PrivateEndpointProvisioningState. \ + * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Approving** \ + * **Ready** \ + * **Dropping** \ + * **Failed** \ + * **Rejecting** + */ +export type PrivateEndpointProvisioningState = string; + +/** Known values of {@link AdministratorType} that the service accepts. */ +export enum KnownAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" +} + +/** + * Defines values for AdministratorType. \ + * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ActiveDirectory** + */ +export type AdministratorType = string; + +/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ +export enum KnownServerTrustGroupPropertiesTrustScopesItem { + /** GlobalTransactions */ + GlobalTransactions = "GlobalTransactions", + /** ServiceBroker */ + ServiceBroker = "ServiceBroker" +} + +/** + * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ + * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GlobalTransactions** \ + * **ServiceBroker** + */ +export type ServerTrustGroupPropertiesTrustScopesItem = string; + +/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ +export enum KnownSqlAgentConfigurationPropertiesState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for SqlAgentConfigurationPropertiesState. \ + * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type SqlAgentConfigurationPropertiesState = string; + +/** Known values of {@link SyncAgentState} that the service accepts. */ +export enum KnownSyncAgentState { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** NeverConnected */ + NeverConnected = "NeverConnected" +} + +/** + * Defines values for SyncAgentState. \ + * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Online** \ + * **Offline** \ + * **NeverConnected** + */ +export type SyncAgentState = string; + +/** Known values of {@link SyncMemberDbType} that the service accepts. */ +export enum KnownSyncMemberDbType { + /** AzureSqlDatabase */ + AzureSqlDatabase = "AzureSqlDatabase", + /** SqlServerDatabase */ + SqlServerDatabase = "SqlServerDatabase" +} + +/** + * Defines values for SyncMemberDbType. \ + * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureSqlDatabase** \ + * **SqlServerDatabase** + */ +export type SyncMemberDbType = string; + +/** Known values of {@link SyncGroupsType} that the service accepts. */ +export enum KnownSyncGroupsType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" +} + +/** + * Defines values for SyncGroupsType. \ + * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** + */ +export type SyncGroupsType = string; + +/** Known values of {@link SyncGroupLogType} that the service accepts. */ +export enum KnownSyncGroupLogType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" +} + +/** + * Defines values for SyncGroupLogType. \ + * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** + */ +export type SyncGroupLogType = string; + +/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ +export enum KnownSyncConflictResolutionPolicy { + /** HubWin */ + HubWin = "HubWin", + /** MemberWin */ + MemberWin = "MemberWin" +} + +/** + * Defines values for SyncConflictResolutionPolicy. \ + * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HubWin** \ + * **MemberWin** + */ +export type SyncConflictResolutionPolicy = string; + +/** Known values of {@link SyncGroupState} that the service accepts. */ +export enum KnownSyncGroupState { + /** NotReady */ + NotReady = "NotReady", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Progressing */ + Progressing = "Progressing", + /** Good */ + Good = "Good" } /** - * Defines values for InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * Defines values for SyncGroupState. \ + * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **Secondary** + * **NotReady** \ + * **Error** \ + * **Warning** \ + * **Progressing** \ + * **Good** */ -export type InstanceFailoverGroupReplicationRole = string; +export type SyncGroupState = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + /** Bidirectional */ + Bidirectional = "Bidirectional", + /** OneWayMemberToHub */ + OneWayMemberToHub = "OneWayMemberToHub", + /** OneWayHubToMember */ + OneWayHubToMember = "OneWayHubToMember" } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * Defines values for SyncDirection. \ + * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** + * **Bidirectional** \ + * **OneWayMemberToHub** \ + * **OneWayHubToMember** */ -export type InstancePoolLicenseType = string; +export type SyncDirection = string; -/** Known values of {@link JobAgentState} that the service accepts. */ -export enum KnownJobAgentState { - Creating = "Creating", +/** Known values of {@link SyncMemberState} that the service accepts. */ +export enum KnownSyncMemberState { + /** SyncInProgress */ + SyncInProgress = "SyncInProgress", + /** SyncSucceeded */ + SyncSucceeded = "SyncSucceeded", + /** SyncFailed */ + SyncFailed = "SyncFailed", + /** DisabledTombstoneCleanup */ + DisabledTombstoneCleanup = "DisabledTombstoneCleanup", + /** DisabledBackupRestore */ + DisabledBackupRestore = "DisabledBackupRestore", + /** SyncSucceededWithWarnings */ + SyncSucceededWithWarnings = "SyncSucceededWithWarnings", + /** SyncCancelling */ + SyncCancelling = "SyncCancelling", + /** SyncCancelled */ + SyncCancelled = "SyncCancelled", + /** UnProvisioned */ + UnProvisioned = "UnProvisioned", + /** Provisioning */ + Provisioning = "Provisioning", + /** Provisioned */ + Provisioned = "Provisioned", + /** ProvisionFailed */ + ProvisionFailed = "ProvisionFailed", + /** DeProvisioning */ + DeProvisioning = "DeProvisioning", + /** DeProvisioned */ + DeProvisioned = "DeProvisioned", + /** DeProvisionFailed */ + DeProvisionFailed = "DeProvisionFailed", + /** Reprovisioning */ + Reprovisioning = "Reprovisioning", + /** ReprovisionFailed */ + ReprovisionFailed = "ReprovisionFailed", + /** UnReprovisioned */ + UnReprovisioned = "UnReprovisioned" +} + +/** + * Defines values for SyncMemberState. \ + * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SyncInProgress** \ + * **SyncSucceeded** \ + * **SyncFailed** \ + * **DisabledTombstoneCleanup** \ + * **DisabledBackupRestore** \ + * **SyncSucceededWithWarnings** \ + * **SyncCancelling** \ + * **SyncCancelled** \ + * **UnProvisioned** \ + * **Provisioning** \ + * **Provisioned** \ + * **ProvisionFailed** \ + * **DeProvisioning** \ + * **DeProvisioned** \ + * **DeProvisionFailed** \ + * **Reprovisioning** \ + * **ReprovisionFailed** \ + * **UnReprovisioned** + */ +export type SyncMemberState = string; + +/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ +export enum KnownVirtualNetworkRuleState { + /** Initializing */ + Initializing = "Initializing", + /** InProgress */ + InProgress = "InProgress", + /** Ready */ Ready = "Ready", - Updating = "Updating", + /** Failed */ + Failed = "Failed", + /** Deleting */ Deleting = "Deleting", - Disabled = "Disabled" + /** Unknown */ + Unknown = "Unknown" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * Defines values for VirtualNetworkRuleState. \ + * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ + * **Initializing** \ + * **InProgress** \ * **Ready** \ - * **Updating** \ + * **Failed** \ * **Deleting** \ + * **Unknown** + */ +export type VirtualNetworkRuleState = string; + +/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownShortTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ShortTermRetentionPolicyName. \ + * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ShortTermRetentionPolicyName = string; + +/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ +export enum KnownDiffBackupIntervalInHours { + /** Twelve */ + Twelve = 12, + /** TwentyFour */ + TwentyFour = 24 +} + +/** + * Defines values for DiffBackupIntervalInHours. \ + * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **12** \ + * **24** + */ +export type DiffBackupIntervalInHours = number; + +/** Known values of {@link OperationMode} that the service accepts. */ +export enum KnownOperationMode { + /** PolybaseImport */ + PolybaseImport = "PolybaseImport" +} + +/** + * Defines values for OperationMode. \ + * {@link KnownOperationMode} can be used interchangeably with OperationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PolybaseImport** + */ +export type OperationMode = string; + +/** Known values of {@link StorageKeyType} that the service accepts. */ +export enum KnownStorageKeyType { + /** SharedAccessKey */ + SharedAccessKey = "SharedAccessKey", + /** StorageAccessKey */ + StorageAccessKey = "StorageAccessKey" +} + +/** + * Defines values for StorageKeyType. \ + * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SharedAccessKey** \ + * **StorageAccessKey** + */ +export type StorageKeyType = string; + +/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ +export enum KnownLedgerDigestUploadsName { + /** Current */ + Current = "current" +} + +/** + * Defines values for LedgerDigestUploadsName. \ + * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** + */ +export type LedgerDigestUploadsName = string; + +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +} + +/** + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** + */ +export type IdentityType = string; + +/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ +export enum KnownServerNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for ServerNetworkAccessFlag. \ + * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ * **Disabled** */ -export type JobAgentState = string; +export type ServerNetworkAccessFlag = string; -/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ -export enum KnownJobExecutionLifecycle { - Created = "Created", - InProgress = "InProgress", - WaitingForChildJobExecutions = "WaitingForChildJobExecutions", - WaitingForRetry = "WaitingForRetry", - Succeeded = "Succeeded", - SucceededWithSkipped = "SucceededWithSkipped", - Failed = "Failed", - TimedOut = "TimedOut", - Canceled = "Canceled", - Skipped = "Skipped" +/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ +export enum KnownServerWorkspaceFeature { + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected" +} + +/** + * Defines values for ServerWorkspaceFeature. \ + * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Connected** \ + * **Disconnected** + */ +export type ServerWorkspaceFeature = string; + +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + /** User */ + User = "User", + /** Group */ + Group = "Group", + /** Application */ + Application = "Application" +} + +/** + * 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 + * **User** \ + * **Group** \ + * **Application** + */ +export type PrincipalType = string; + +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + /** None */ + None = "None", + /** UserAssigned */ + UserAssigned = "UserAssigned" } /** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * Defines values for DatabaseIdentityType. \ + * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Created** \ - * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ - * **Succeeded** \ - * **SucceededWithSkipped** \ - * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** + * **None** \ + * **UserAssigned** */ -export type JobExecutionLifecycle = string; +export type DatabaseIdentityType = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - Created = "Created", - InProgress = "InProgress", - Succeeded = "Succeeded", - Failed = "Failed", - Canceled = "Canceled" +/** Known values of {@link CreateMode} that the service accepts. */ +export enum KnownCreateMode { + /** Default */ + Default = "Default", + /** Copy */ + Copy = "Copy", + /** Secondary */ + Secondary = "Secondary", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Restore */ + Restore = "Restore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** RestoreExternalBackupSecondary */ + RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", + /** OnlineSecondary */ + OnlineSecondary = "OnlineSecondary" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Created** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Default** \ + * **Copy** \ + * **Secondary** \ + * **PointInTimeRestore** \ + * **Restore** \ + * **Recovery** \ + * **RestoreExternalBackup** \ + * **RestoreExternalBackupSecondary** \ + * **RestoreLongTermRetentionBackup** \ + * **OnlineSecondary** */ -export type ProvisioningState = string; +export type CreateMode = string; -/** Known values of {@link JobTargetType} that the service accepts. */ -export enum KnownJobTargetType { - TargetGroup = "TargetGroup", - SqlDatabase = "SqlDatabase", - SqlElasticPool = "SqlElasticPool", - SqlShardMap = "SqlShardMap", - SqlServer = "SqlServer" +/** Known values of {@link SampleName} that the service accepts. */ +export enum KnownSampleName { + /** AdventureWorksLT */ + AdventureWorksLT = "AdventureWorksLT", + /** WideWorldImportersStd */ + WideWorldImportersStd = "WideWorldImportersStd", + /** WideWorldImportersFull */ + WideWorldImportersFull = "WideWorldImportersFull" } /** - * Defines values for JobTargetType. \ - * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * Defines values for SampleName. \ + * {@link KnownSampleName} can be used interchangeably with SampleName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TargetGroup** \ - * **SqlDatabase** \ - * **SqlElasticPool** \ - * **SqlShardMap** \ - * **SqlServer** + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** */ -export type JobTargetType = string; +export type SampleName = string; -/** Known values of {@link JobStepActionType} that the service accepts. */ -export enum KnownJobStepActionType { - TSql = "TSql" +/** Known values of {@link DatabaseStatus} that the service accepts. */ +export enum KnownDatabaseStatus { + /** Online */ + Online = "Online", + /** Restoring */ + Restoring = "Restoring", + /** RecoveryPending */ + RecoveryPending = "RecoveryPending", + /** Recovering */ + Recovering = "Recovering", + /** Suspect */ + Suspect = "Suspect", + /** Offline */ + Offline = "Offline", + /** Standby */ + Standby = "Standby", + /** Shutdown */ + Shutdown = "Shutdown", + /** EmergencyMode */ + EmergencyMode = "EmergencyMode", + /** AutoClosed */ + AutoClosed = "AutoClosed", + /** Copying */ + Copying = "Copying", + /** Creating */ + Creating = "Creating", + /** Inaccessible */ + Inaccessible = "Inaccessible", + /** OfflineSecondary */ + OfflineSecondary = "OfflineSecondary", + /** Pausing */ + Pausing = "Pausing", + /** Paused */ + Paused = "Paused", + /** Resuming */ + Resuming = "Resuming", + /** Scaling */ + Scaling = "Scaling", + /** OfflineChangingDwPerformanceTiers */ + OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", + /** OnlineChangingDwPerformanceTiers */ + OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", + /** Disabled */ + Disabled = "Disabled", + /** Stopping */ + Stopping = "Stopping", + /** Stopped */ + Stopped = "Stopped", + /** Starting */ + Starting = "Starting" } /** - * Defines values for JobStepActionType. \ - * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * Defines values for DatabaseStatus. \ + * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TSql** + * **Online** \ + * **Restoring** \ + * **RecoveryPending** \ + * **Recovering** \ + * **Suspect** \ + * **Offline** \ + * **Standby** \ + * **Shutdown** \ + * **EmergencyMode** \ + * **AutoClosed** \ + * **Copying** \ + * **Creating** \ + * **Inaccessible** \ + * **OfflineSecondary** \ + * **Pausing** \ + * **Paused** \ + * **Resuming** \ + * **Scaling** \ + * **OfflineChangingDwPerformanceTiers** \ + * **OnlineChangingDwPerformanceTiers** \ + * **Disabled** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** */ -export type JobStepActionType = string; +export type DatabaseStatus = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - Inline = "Inline" +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * Defines values for DatabaseLicenseType. \ + * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Inline** + * **LicenseIncluded** \ + * **BasePrice** */ -export type JobStepActionSource = string; +export type DatabaseLicenseType = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - SqlDatabase = "SqlDatabase" +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * Defines values for DatabaseReadScale. \ + * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SqlDatabase** + * **Enabled** \ + * **Disabled** */ -export type JobStepOutputType = string; +export type DatabaseReadScale = string; -/** Known values of {@link CapabilityGroup} that the service accepts. */ -export enum KnownCapabilityGroup { - SupportedEditions = "supportedEditions", - SupportedElasticPoolEditions = "supportedElasticPoolEditions", - SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", - SupportedInstancePoolEditions = "supportedInstancePoolEditions", - SupportedManagedInstanceEditions = "supportedManagedInstanceEditions" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + /** Geo */ + Geo = "Geo", + /** Named */ + Named = "Named" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * Defines values for SecondaryType. \ + * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Geo** \ + * **Named** */ -export type CapabilityGroup = string; +export type SecondaryType = string; -/** Known values of {@link MaxSizeUnit} that the service accepts. */ -export enum KnownMaxSizeUnit { - Megabytes = "Megabytes", - Gigabytes = "Gigabytes", - Terabytes = "Terabytes", - Petabytes = "Petabytes" +/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ +export enum KnownBackupStorageRedundancy { + /** Geo */ + Geo = "Geo", + /** Local */ + Local = "Local", + /** Zone */ + Zone = "Zone", + /** GeoZone */ + GeoZone = "GeoZone" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * Defines values for BackupStorageRedundancy. \ + * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **Geo** \ + * **Local** \ + * **Zone** \ + * **GeoZone** */ -export type MaxSizeUnit = string; +export type BackupStorageRedundancy = string; -/** Known values of {@link LogSizeUnit} that the service accepts. */ -export enum KnownLogSizeUnit { - Megabytes = "Megabytes", - Gigabytes = "Gigabytes", - Terabytes = "Terabytes", - Petabytes = "Petabytes", - Percent = "Percent" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + /** Primary */ + Primary = "Primary", + /** ReadableSecondary */ + ReadableSecondary = "ReadableSecondary" +} + +/** + * Defines values for ReplicaType. \ + * {@link KnownReplicaType} can be used interchangeably with ReplicaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **ReadableSecondary** + */ +export type ReplicaType = string; + +/** Known values of {@link DatabaseState} that the service accepts. */ +export enum KnownDatabaseState { + /** All */ + All = "All", + /** Live */ + Live = "Live", + /** Deleted */ + Deleted = "Deleted" } /** - * Defines values for LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * Defines values for DatabaseState. \ + * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **All** \ + * **Live** \ + * **Deleted** */ -export type LogSizeUnit = string; +export type DatabaseState = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - DTU = "DTU", - VCores = "VCores" +/** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ +export enum KnownManagedInstancePropertiesProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Updating */ + Updating = "Updating", + /** Unknown */ + Unknown = "Unknown", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Accepted */ + Accepted = "Accepted", + /** Created */ + Created = "Created", + /** Deleted */ + Deleted = "Deleted", + /** Unrecognized */ + Unrecognized = "Unrecognized", + /** Running */ + Running = "Running", + /** Canceled */ + Canceled = "Canceled", + /** NotSpecified */ + NotSpecified = "NotSpecified", + /** Registering */ + Registering = "Registering", + /** TimedOut */ + TimedOut = "TimedOut" } /** - * Defines values for PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * Defines values for ManagedInstancePropertiesProvisioningState. \ + * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DTU** \ - * **VCores** + * **Creating** \ + * **Deleting** \ + * **Updating** \ + * **Unknown** \ + * **Succeeded** \ + * **Failed** \ + * **Accepted** \ + * **Created** \ + * **Deleted** \ + * **Unrecognized** \ + * **Running** \ + * **Canceled** \ + * **NotSpecified** \ + * **Registering** \ + * **TimedOut** */ -export type PerformanceLevelUnit = string; +export type ManagedInstancePropertiesProvisioningState = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - Minutes = "Minutes" +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { + /** Default */ + Default = "Default", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore" } /** - * Defines values for PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * Defines values for ManagedServerCreateMode. \ + * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Minutes** + * **Default** \ + * **PointInTimeRestore** */ -export type PauseDelayTimeUnit = string; +export type ManagedServerCreateMode = string; -/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ -export enum KnownStorageCapabilityStorageAccountType { - GRS = "GRS", - LRS = "LRS", - ZRS = "ZRS" +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * Defines values for ManagedInstanceLicenseType. \ + * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GRS** \ - * **LRS** \ - * **ZRS** + * **LicenseIncluded** \ + * **BasePrice** */ -export type StorageCapabilityStorageAccountType = string; +export type ManagedInstanceLicenseType = string; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - Default = "default" +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + /** Proxy */ + Proxy = "Proxy", + /** Redirect */ + Redirect = "Redirect", + /** Default */ + Default = "Default" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * Defines values for ManagedInstanceProxyOverride. \ + * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type LongTermRetentionPolicyName = string; +export type ManagedInstanceProxyOverride = 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" +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned" } /** - * Defines values for DayOfWeek. \ - * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * Defines values for ServicePrincipalType. \ + * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Sunday** \ - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** + * **None** \ + * **SystemAssigned** */ -export type DayOfWeek = string; +export type ServicePrincipalType = string; -/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedShortTermRetentionPolicyName { - Default = "default" +/** Known values of {@link AggregationFunctionType} that the service accepts. */ +export enum KnownAggregationFunctionType { + /** Avg */ + Avg = "avg", + /** Min */ + Min = "min", + /** Max */ + Max = "max", + /** Stdev */ + Stdev = "stdev", + /** Sum */ + Sum = "sum" } /** - * Defines values for ManagedShortTermRetentionPolicyName. \ - * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * Defines values for AggregationFunctionType. \ + * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **avg** \ + * **min** \ + * **max** \ + * **stdev** \ + * **sum** */ -export type ManagedShortTermRetentionPolicyName = string; +export type AggregationFunctionType = string; -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - PT1H = "PT1H", - P1D = "P1D" +/** Known values of {@link MetricType} that the service accepts. */ +export enum KnownMetricType { + /** Cpu */ + Cpu = "cpu", + /** Io */ + Io = "io", + /** LogIo */ + LogIo = "logIo", + /** Duration */ + Duration = "duration", + /** Dtu */ + Dtu = "dtu" } /** - * Defines values for QueryTimeGrainType. \ - * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * Defines values for MetricType. \ + * {@link KnownMetricType} can be used interchangeably with MetricType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PT1H** \ - * **P1D** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type QueryTimeGrainType = string; +export type MetricType = string; -/** Known values of {@link QueryMetricUnitType} that the service accepts. */ -export enum KnownQueryMetricUnitType { - Percentage = "percentage", - KB = "KB", - Microseconds = "microseconds", - Count = "count" +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for QueryMetricUnitType. \ - * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * 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 - * **percentage** \ - * **KB** \ - * **microseconds** \ - * **count** + * **default** */ -export type QueryMetricUnitType = string; +export type ConnectionPolicyName = string; -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { - Default = "Default" +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { + /** Default */ + Default = "Default", + /** Redirect */ + Redirect = "Redirect", + /** Proxy */ + Proxy = "Proxy" } /** - * Defines values for RestoreDetailsName. \ - * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * Defines values for ServerConnectionType. \ + * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Default** \ + * **Redirect** \ + * **Proxy** */ -export type RestoreDetailsName = string; +export type ServerConnectionType = string; -/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ -export enum KnownManagedDatabaseStatus { - Online = "Online", - Offline = "Offline", - Shutdown = "Shutdown", - Creating = "Creating", - Inaccessible = "Inaccessible", - Restoring = "Restoring", - Updating = "Updating" +/** Known values of {@link ReplicationMode} that the service accepts. */ +export enum KnownReplicationMode { + /** Async */ + Async = "Async", + /** Sync */ + Sync = "Sync" } /** - * Defines values for ManagedDatabaseStatus. \ - * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * Defines values for ReplicationMode. \ + * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Online** \ - * **Offline** \ - * **Shutdown** \ - * **Creating** \ - * **Inaccessible** \ - * **Restoring** \ - * **Updating** + * **Async** \ + * **Sync** */ -export type ManagedDatabaseStatus = string; +export type ReplicationMode = string; -/** Known values of {@link CatalogCollationType} that the service accepts. */ -export enum KnownCatalogCollationType { - DatabaseDefault = "DATABASE_DEFAULT", - SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for CatalogCollationType. \ - * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * Defines values for ElasticPoolState. \ + * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DATABASE_DEFAULT** \ - * **SQL_Latin1_General_CP1_CI_AS** + * **Creating** \ + * **Ready** \ + * **Disabled** */ -export type CatalogCollationType = string; +export type ElasticPoolState = string; -/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ -export enum KnownManagedDatabaseCreateMode { - Default = "Default", - RestoreExternalBackup = "RestoreExternalBackup", - PointInTimeRestore = "PointInTimeRestore", - Recovery = "Recovery", - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" +/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ +export enum KnownElasticPoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for ManagedDatabaseCreateMode. \ - * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * Defines values for ElasticPoolLicenseType. \ + * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **RestoreExternalBackup** \ - * **PointInTimeRestore** \ - * **Recovery** \ - * **RestoreLongTermRetentionBackup** + * **LicenseIncluded** \ + * **BasePrice** */ -export type ManagedDatabaseCreateMode = string; +export type ElasticPoolLicenseType = string; -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - Current = "current" +/** Known values of {@link ReplicationState} that the service accepts. */ +export enum KnownReplicationState { + /** Pending */ + Pending = "PENDING", + /** Seeding */ + Seeding = "SEEDING", + /** CatchUP */ + CatchUP = "CATCH_UP", + /** Suspended */ + Suspended = "SUSPENDED" } /** - * Defines values for TransparentDataEncryptionName. \ - * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, + * 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 - * **current** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type TransparentDataEncryptionName = string; +export type ReplicationState = string; -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + /** GEO */ + GEO = "GEO", + /** Named */ + Named = "NAMED" } /** - * Defines values for ManagedInstanceAdministratorType. \ - * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * Defines values for ReplicationLinkType. \ + * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **GEO** \ + * **NAMED** */ -export type ManagedInstanceAdministratorType = string; +export type ReplicationLinkType = string; -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ +export enum KnownAdvancedThreatProtectionName { + /** Default */ + Default = "Default" } /** - * Defines values for AdministratorName. \ - * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * Defines values for AdvancedThreatProtectionName. \ + * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **Default** */ -export type AdministratorName = string; +export type AdvancedThreatProtectionName = string; -/** Known values of {@link AuthenticationName} that the service accepts. */ -export enum KnownAuthenticationName { - Default = "Default" +/** Known values of {@link MoveOperationMode} that the service accepts. */ +export enum KnownMoveOperationMode { + /** Move */ + Move = "Move", + /** Copy */ + Copy = "Copy" } /** - * Defines values for AuthenticationName. \ - * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, + * Defines values for MoveOperationMode. \ + * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Move** \ + * **Copy** */ -export type AuthenticationName = string; +export type MoveOperationMode = string; -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - Default = "default" +/** Known values of {@link DtcName} that the service accepts. */ +export enum KnownDtcName { + /** Current */ + Current = "current" } /** - * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ - * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * Defines values for DtcName. \ + * {@link KnownDtcName} can be used interchangeably with DtcName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **current** */ -export type ManagedInstanceLongTermRetentionPolicyName = string; +export type DtcName = string; -/** Known values of {@link ManagementOperationState} that the service accepts. */ -export enum KnownManagementOperationState { - Pending = "Pending", - InProgress = "InProgress", +/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ +export enum KnownDNSRefreshOperationStatus { + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", - CancelInProgress = "CancelInProgress", - Cancelled = "Cancelled" + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for ManagementOperationState. \ - * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * Defines values for DNSRefreshOperationStatus. \ + * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **InProgress** \ * **Succeeded** \ * **Failed** \ - * **CancelInProgress** \ - * **Cancelled** + * **InProgress** */ -export type ManagementOperationState = string; +export type DNSRefreshOperationStatus = string; -/** Known values of {@link UpsertManagedServerOperationStepStatus} that the service accepts. */ -export enum KnownUpsertManagedServerOperationStepStatus { - NotStarted = "NotStarted", - InProgress = "InProgress", - SlowedDown = "SlowedDown", - Completed = "Completed", - Failed = "Failed", - Canceled = "Canceled" +/** Known values of {@link ServiceObjectiveName} that the service accepts. */ +export enum KnownServiceObjectiveName { + /** System */ + System = "System", + /** System0 */ + System0 = "System0", + /** System1 */ + System1 = "System1", + /** System2 */ + System2 = "System2", + /** System3 */ + System3 = "System3", + /** System4 */ + System4 = "System4", + /** System2L */ + System2L = "System2L", + /** System3L */ + System3L = "System3L", + /** System4L */ + System4L = "System4L", + /** Free */ + Free = "Free", + /** Basic */ + Basic = "Basic", + /** S0 */ + S0 = "S0", + /** S1 */ + S1 = "S1", + /** S2 */ + S2 = "S2", + /** S3 */ + S3 = "S3", + /** S4 */ + S4 = "S4", + /** S6 */ + S6 = "S6", + /** S7 */ + S7 = "S7", + /** S9 */ + S9 = "S9", + /** S12 */ + S12 = "S12", + /** P1 */ + P1 = "P1", + /** P2 */ + P2 = "P2", + /** P3 */ + P3 = "P3", + /** P4 */ + P4 = "P4", + /** P6 */ + P6 = "P6", + /** P11 */ + P11 = "P11", + /** P15 */ + P15 = "P15", + /** PRS1 */ + PRS1 = "PRS1", + /** PRS2 */ + PRS2 = "PRS2", + /** PRS4 */ + PRS4 = "PRS4", + /** PRS6 */ + PRS6 = "PRS6", + /** DW100 */ + DW100 = "DW100", + /** DW200 */ + DW200 = "DW200", + /** DW300 */ + DW300 = "DW300", + /** DW400 */ + DW400 = "DW400", + /** DW500 */ + DW500 = "DW500", + /** DW600 */ + DW600 = "DW600", + /** DW1000 */ + DW1000 = "DW1000", + /** DW1200 */ + DW1200 = "DW1200", + /** DW1000C */ + DW1000C = "DW1000c", + /** DW1500 */ + DW1500 = "DW1500", + /** DW1500C */ + DW1500C = "DW1500c", + /** DW2000 */ + DW2000 = "DW2000", + /** DW2000C */ + DW2000C = "DW2000c", + /** DW3000 */ + DW3000 = "DW3000", + /** DW2500C */ + DW2500C = "DW2500c", + /** DW3000C */ + DW3000C = "DW3000c", + /** DW6000 */ + DW6000 = "DW6000", + /** DW5000C */ + DW5000C = "DW5000c", + /** DW6000C */ + DW6000C = "DW6000c", + /** DW7500C */ + DW7500C = "DW7500c", + /** DW10000C */ + DW10000C = "DW10000c", + /** DW15000C */ + DW15000C = "DW15000c", + /** DW30000C */ + DW30000C = "DW30000c", + /** DS100 */ + DS100 = "DS100", + /** DS200 */ + DS200 = "DS200", + /** DS300 */ + DS300 = "DS300", + /** DS400 */ + DS400 = "DS400", + /** DS500 */ + DS500 = "DS500", + /** DS600 */ + DS600 = "DS600", + /** DS1000 */ + DS1000 = "DS1000", + /** DS1200 */ + DS1200 = "DS1200", + /** DS1500 */ + DS1500 = "DS1500", + /** DS2000 */ + DS2000 = "DS2000", + /** ElasticPool */ + ElasticPool = "ElasticPool" } /** - * Defines values for UpsertManagedServerOperationStepStatus. \ - * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, + * Defines values for ServiceObjectiveName. \ + * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotStarted** \ - * **InProgress** \ - * **SlowedDown** \ - * **Completed** \ - * **Failed** \ - * **Canceled** + * **System** \ + * **System0** \ + * **System1** \ + * **System2** \ + * **System3** \ + * **System4** \ + * **System2L** \ + * **System3L** \ + * **System4L** \ + * **Free** \ + * **Basic** \ + * **S0** \ + * **S1** \ + * **S2** \ + * **S3** \ + * **S4** \ + * **S6** \ + * **S7** \ + * **S9** \ + * **S12** \ + * **P1** \ + * **P2** \ + * **P3** \ + * **P4** \ + * **P6** \ + * **P11** \ + * **P15** \ + * **PRS1** \ + * **PRS2** \ + * **PRS4** \ + * **PRS6** \ + * **DW100** \ + * **DW200** \ + * **DW300** \ + * **DW400** \ + * **DW500** \ + * **DW600** \ + * **DW1000** \ + * **DW1200** \ + * **DW1000c** \ + * **DW1500** \ + * **DW1500c** \ + * **DW2000** \ + * **DW2000c** \ + * **DW3000** \ + * **DW2500c** \ + * **DW3000c** \ + * **DW6000** \ + * **DW5000c** \ + * **DW6000c** \ + * **DW7500c** \ + * **DW10000c** \ + * **DW15000c** \ + * **DW30000c** \ + * **DS100** \ + * **DS200** \ + * **DS300** \ + * **DS400** \ + * **DS500** \ + * **DS600** \ + * **DS1000** \ + * **DS1200** \ + * **DS1500** \ + * **DS2000** \ + * **ElasticPool** */ -export type UpsertManagedServerOperationStepStatus = string; +export type ServiceObjectiveName = string; +/** 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 GeoBackupPolicyState. */ +export type GeoBackupPolicyState = "Disabled" | "Enabled"; +/** Defines values for AdvisorStatus. */ +export type AdvisorStatus = + | "GA" + | "PublicPreview" + | "LimitedPublicPreview" + | "PrivatePreview"; +/** Defines values for AutoExecuteStatus. */ +export type AutoExecuteStatus = "Enabled" | "Disabled" | "Default"; +/** Defines values for AutoExecuteStatusInheritedFrom. */ +export type AutoExecuteStatusInheritedFrom = + | "Default" + | "Subscription" + | "Server" + | "ElasticPool" + | "Database"; +/** Defines values for RecommendedActionInitiatedBy. */ +export type RecommendedActionInitiatedBy = "User" | "System"; +/** Defines values for ImplementationMethod. */ +export type ImplementationMethod = "TSql" | "AzurePowerShell"; +/** Defines values for IsRetryable. */ +export type IsRetryable = "Yes" | "No"; +/** Defines values for AutomaticTuningMode. */ +export type AutomaticTuningMode = "Inherit" | "Custom" | "Auto" | "Unspecified"; +/** Defines values for AutomaticTuningOptionModeDesired. */ +export type AutomaticTuningOptionModeDesired = "Off" | "On" | "Default"; +/** Defines values for AutomaticTuningOptionModeActual. */ +export type AutomaticTuningOptionModeActual = "Off" | "On"; +/** Defines values for AutomaticTuningDisabledReason. */ +export type AutomaticTuningDisabledReason = + | "Default" + | "Disabled" + | "AutoConfigured" + | "InheritedFromServer" + | "QueryStoreOff" + | "QueryStoreReadOnly" + | "NotSupported"; +/** Defines values for SecurityAlertsPolicyState. */ +export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; +/** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ +export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; +/** Defines values for JobScheduleType. */ +export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for JobTargetGroupMembershipType. */ +export type JobTargetGroupMembershipType = "Include" | "Exclude"; +/** Defines values for CapabilityStatus. */ +export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; +/** Defines values for SecurityAlertPolicyState. */ +export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; +/** Defines values for SecurityEventType. */ +export type SecurityEventType = + | "Undefined" + | "SqlInjectionVulnerability" + | "SqlInjectionExploit"; +/** Defines values for TransparentDataEncryptionState. */ +export type TransparentDataEncryptionState = "Enabled" | "Disabled"; +/** Defines values for RestorePointType. */ +export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +/** Defines values for AutomaticTuningServerMode. */ +export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; +/** Defines values for AutomaticTuningServerReason. */ +export type AutomaticTuningServerReason = + | "Default" + | "Disabled" + | "AutoConfigured"; +/** Defines values for BlobAuditingPolicyState. */ +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; +/** Defines values for LedgerDigestUploadsState. */ +export type LedgerDigestUploadsState = "Enabled" | "Disabled"; +/** Defines values for CheckNameAvailabilityReason. */ +export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; +/** Defines values for ReplicationRole. */ +export type ReplicationRole = + | "Primary" + | "Secondary" + | "NonReadableSecondary" + | "Source" + | "Copy"; +/** Defines values for SensitivityLabelSource. */ +export type SensitivityLabelSource = "current" | "recommended"; +/** 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 AdvancedThreatProtectionState. */ +export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - User = "user", - System = "system" -} +/** Optional parameters. */ +export interface RecoverableDatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for OperationOrigin. \ - * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** - */ -export type OperationOrigin = string; +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; -/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateStatus { - Approved = "Approved", - Pending = "Pending", - Rejected = "Rejected", - Disconnected = "Disconnected" -} +/** Optional parameters. */ +export interface RecoverableDatabasesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for PrivateLinkServiceConnectionStateStatus. \ - * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** - */ -export type PrivateLinkServiceConnectionStateStatus = string; +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; -/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - None = "None" -} +/** Optional parameters. */ +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ - * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** - */ -export type PrivateLinkServiceConnectionStateActionsRequire = string; +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; -/** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointProvisioningState { - Approving = "Approving", - Ready = "Ready", - Dropping = "Dropping", - Failed = "Failed", - Rejecting = "Rejecting" -} +/** Optional parameters. */ +export interface DataMaskingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for PrivateEndpointProvisioningState. \ - * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Approving** \ - * **Ready** \ - * **Dropping** \ - * **Failed** \ - * **Rejecting** - */ -export type PrivateEndpointProvisioningState = string; +/** Contains response data for the get operation. */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - ActiveDirectory = "ActiveDirectory" -} +/** Optional parameters. */ +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for AdministratorType. \ - * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ActiveDirectory** - */ -export type AdministratorType = string; +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; -/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ -export enum KnownServerTrustGroupPropertiesTrustScopesItem { - GlobalTransactions = "GlobalTransactions", - ServiceBroker = "ServiceBroker" -} +/** Optional parameters. */ +export interface DataMaskingRulesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ - * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **GlobalTransactions** \ - * **ServiceBroker** - */ -export type ServerTrustGroupPropertiesTrustScopesItem = string; +/** Contains response data for the listByDatabase operation. */ +export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - Enabled = "Enabled", - Disabled = "Disabled" -} +/** Optional parameters. */ +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for SqlAgentConfigurationPropertiesState. \ - * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type SqlAgentConfigurationPropertiesState = string; +/** Contains response data for the createOrUpdate operation. */ +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; + +/** Optional parameters. */ +export interface GeoBackupPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SyncAgentState} that the service accepts. */ -export enum KnownSyncAgentState { - Online = "Online", - Offline = "Offline", - NeverConnected = "NeverConnected" -} +/** Contains response data for the get operation. */ +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; -/** - * Defines values for SyncAgentState. \ - * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Online** \ - * **Offline** \ - * **NeverConnected** - */ -export type SyncAgentState = string; +/** Optional parameters. */ +export interface GeoBackupPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - AzureSqlDatabase = "AzureSqlDatabase", - SqlServerDatabase = "SqlServerDatabase" -} +/** Contains response data for the listByDatabase operation. */ +export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; -/** - * Defines values for SyncMemberDbType. \ - * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureSqlDatabase** \ - * **SqlServerDatabase** - */ -export type SyncMemberDbType = string; +/** Optional parameters. */ +export interface DatabasesListMetricsOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link Enum60} that the service accepts. */ -export enum KnownEnum60 { - All = "All", - Error = "Error", - Warning = "Warning", - Success = "Success" -} +/** Contains response data for the listMetrics operation. */ +export type DatabasesListMetricsResponse = MetricListResult; -/** - * Defines values for Enum60. \ - * {@link KnownEnum60} can be used interchangeably with Enum60, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** - */ -export type Enum60 = string; +/** Optional parameters. */ +export interface DatabasesListMetricDefinitionsOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SyncGroupLogType} that the service accepts. */ -export enum KnownSyncGroupLogType { - All = "All", - Error = "Error", - Warning = "Warning", - Success = "Success" +/** Contains response data for the listMetricDefinitions operation. */ +export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; + +/** Optional parameters. */ +export interface DatabasesListByServerOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; } -/** - * Defines values for SyncGroupLogType. \ - * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** - */ -export type SyncGroupLogType = string; +/** Contains response data for the listByServer operation. */ +export type DatabasesListByServerResponse = DatabaseListResult; -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - HubWin = "HubWin", - MemberWin = "MemberWin" -} +/** Optional parameters. */ +export interface DatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for SyncConflictResolutionPolicy. \ - * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **HubWin** \ - * **MemberWin** - */ -export type SyncConflictResolutionPolicy = string; +/** Contains response data for the get operation. */ +export type DatabasesGetResponse = Database; -/** Known values of {@link SyncGroupState} that the service accepts. */ -export enum KnownSyncGroupState { - NotReady = "NotReady", - Error = "Error", - Warning = "Warning", - Progressing = "Progressing", - Good = "Good" +/** Optional parameters. */ +export interface DatabasesCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for SyncGroupState. \ - * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotReady** \ - * **Error** \ - * **Warning** \ - * **Progressing** \ - * **Good** - */ -export type SyncGroupState = string; +/** Contains response data for the createOrUpdate operation. */ +export type DatabasesCreateOrUpdateResponse = Database; -/** Known values of {@link SyncDirection} that the service accepts. */ -export enum KnownSyncDirection { - Bidirectional = "Bidirectional", - OneWayMemberToHub = "OneWayMemberToHub", - OneWayHubToMember = "OneWayHubToMember" +/** Optional parameters. */ +export interface DatabasesDeleteOptionalParams + 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; } -/** - * Defines values for SyncDirection. \ - * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Bidirectional** \ - * **OneWayMemberToHub** \ - * **OneWayHubToMember** - */ -export type SyncDirection = string; - -/** Known values of {@link SyncMemberState} that the service accepts. */ -export enum KnownSyncMemberState { - SyncInProgress = "SyncInProgress", - SyncSucceeded = "SyncSucceeded", - SyncFailed = "SyncFailed", - DisabledTombstoneCleanup = "DisabledTombstoneCleanup", - DisabledBackupRestore = "DisabledBackupRestore", - SyncSucceededWithWarnings = "SyncSucceededWithWarnings", - SyncCancelling = "SyncCancelling", - SyncCancelled = "SyncCancelled", - UnProvisioned = "UnProvisioned", - Provisioning = "Provisioning", - Provisioned = "Provisioned", - ProvisionFailed = "ProvisionFailed", - DeProvisioning = "DeProvisioning", - DeProvisioned = "DeProvisioned", - DeProvisionFailed = "DeProvisionFailed", - Reprovisioning = "Reprovisioning", - ReprovisionFailed = "ReprovisionFailed", - UnReprovisioned = "UnReprovisioned" +/** Optional parameters. */ +export interface DatabasesUpdateOptionalParams + 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; } -/** - * Defines values for SyncMemberState. \ - * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SyncInProgress** \ - * **SyncSucceeded** \ - * **SyncFailed** \ - * **DisabledTombstoneCleanup** \ - * **DisabledBackupRestore** \ - * **SyncSucceededWithWarnings** \ - * **SyncCancelling** \ - * **SyncCancelled** \ - * **UnProvisioned** \ - * **Provisioning** \ - * **Provisioned** \ - * **ProvisionFailed** \ - * **DeProvisioning** \ - * **DeProvisioned** \ - * **DeProvisionFailed** \ - * **Reprovisioning** \ - * **ReprovisionFailed** \ - * **UnReprovisioned** - */ -export type SyncMemberState = string; +/** Contains response data for the update operation. */ +export type DatabasesUpdateResponse = Database; -/** Known values of {@link DnsRefreshConfigurationPropertiesStatus} that the service accepts. */ -export enum KnownDnsRefreshConfigurationPropertiesStatus { - Succeeded = "Succeeded", - Failed = "Failed" +/** Optional parameters. */ +export interface DatabasesExportOptionalParams + 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; } -/** - * Defines values for DnsRefreshConfigurationPropertiesStatus. \ - * {@link KnownDnsRefreshConfigurationPropertiesStatus} can be used interchangeably with DnsRefreshConfigurationPropertiesStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** - */ -export type DnsRefreshConfigurationPropertiesStatus = string; +/** Contains response data for the export operation. */ +export type DatabasesExportResponse = ImportExportOperationResult; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - Initializing = "Initializing", - InProgress = "InProgress", - Ready = "Ready", - Failed = "Failed", - Deleting = "Deleting", - Unknown = "Unknown" +/** Optional parameters. */ +export interface DatabasesFailoverOptionalParams + extends coreClient.OperationOptions { + /** The type of replica to be failed over. */ + replicaType?: ReplicaType; + /** 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; } -/** - * Defines values for VirtualNetworkRuleState. \ - * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Initializing** \ - * **InProgress** \ - * **Ready** \ - * **Failed** \ - * **Deleting** \ - * **Unknown** - */ -export type VirtualNetworkRuleState = string; - -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - Default = "default" +/** Optional parameters. */ +export interface DatabasesImportOptionalParams + 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; } -/** - * Defines values for ShortTermRetentionPolicyName. \ - * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type ShortTermRetentionPolicyName = string; +/** Contains response data for the import operation. */ +export type DatabasesImportResponse = ImportExportOperationResult; -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - Twelve = 12, - TwentyFour = 24 +/** Optional parameters. */ +export interface DatabasesRenameOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabasesPauseOptionalParams + 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; } -/** - * Defines values for DiffBackupIntervalInHours. \ - * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **12** \ - * **24** - */ -export type DiffBackupIntervalInHours = number; +/** Contains response data for the pause operation. */ +export type DatabasesPauseResponse = Database; -/** Known values of {@link OperationMode} that the service accepts. */ -export enum KnownOperationMode { - PolybaseImport = "PolybaseImport" +/** Optional parameters. */ +export interface DatabasesResumeOptionalParams + 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; } -/** - * Defines values for OperationMode. \ - * {@link KnownOperationMode} can be used interchangeably with OperationMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PolybaseImport** - */ -export type OperationMode = string; +/** Contains response data for the resume operation. */ +export type DatabasesResumeResponse = Database; -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - SharedAccessKey = "SharedAccessKey", - StorageAccessKey = "StorageAccessKey" +/** Optional parameters. */ +export interface DatabasesUpgradeDataWarehouseOptionalParams + 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; } -/** - * Defines values for StorageKeyType. \ - * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SharedAccessKey** \ - * **StorageAccessKey** - */ -export type StorageKeyType = string; +/** Optional parameters. */ +export interface DatabasesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ -export enum KnownLedgerDigestUploadsName { - Current = "current" -} +/** Contains response data for the listByElasticPool operation. */ +export type DatabasesListByElasticPoolResponse = DatabaseListResult; -/** - * Defines values for LedgerDigestUploadsName. \ - * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **current** - */ -export type LedgerDigestUploadsName = string; +/** Optional parameters. */ +export interface DatabasesListInaccessibleByServerOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ReplicationState} that the service accepts. */ -export enum KnownReplicationState { - Pending = "PENDING", - Seeding = "SEEDING", - CatchUP = "CATCH_UP", - Suspended = "SUSPENDED" +/** Contains response data for the listInaccessibleByServer operation. */ +export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; + +/** Optional parameters. */ +export interface DatabasesListByServerNextOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; } -/** - * 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; +/** Contains response data for the listByServerNext operation. */ +export type DatabasesListByServerNextResponse = DatabaseListResult; -/** Known values of {@link ReplicationLinkType} that the service accepts. */ -export enum KnownReplicationLinkType { - GEO = "GEO", - Named = "NAMED" -} +/** Optional parameters. */ +export interface DatabasesListByElasticPoolNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ReplicationLinkType. \ - * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **GEO** \ - * **NAMED** - */ -export type ReplicationLinkType = string; +/** Contains response data for the listByElasticPoolNext operation. */ +export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - UserAssigned = "UserAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" -} +/** Optional parameters. */ +export interface DatabasesListInaccessibleByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** - */ -export type IdentityType = string; +/** Contains response data for the listInaccessibleByServerNext operation. */ +export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - Enabled = "Enabled", - Disabled = "Disabled" -} +/** Optional parameters. */ +export interface ElasticPoolsListMetricsOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ServerNetworkAccessFlag. \ - * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ServerNetworkAccessFlag = string; +/** Contains response data for the listMetrics operation. */ +export type ElasticPoolsListMetricsResponse = MetricListResult; -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - Connected = "Connected", - Disconnected = "Disconnected" +/** Optional parameters. */ +export interface ElasticPoolsListMetricDefinitionsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listMetricDefinitions operation. */ +export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; + +/** Optional parameters. */ +export interface ElasticPoolsListByServerOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; } -/** - * Defines values for ServerWorkspaceFeature. \ - * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Connected** \ - * **Disconnected** - */ -export type ServerWorkspaceFeature = string; +/** Contains response data for the listByServer operation. */ +export type ElasticPoolsListByServerResponse = ElasticPoolListResult; -/** Known values of {@link PrincipalType} that the service accepts. */ -export enum KnownPrincipalType { - User = "User", - Group = "Group", - Application = "Application" +/** Optional parameters. */ +export interface ElasticPoolsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ElasticPoolsGetResponse = ElasticPool; + +/** Optional parameters. */ +export interface ElasticPoolsCreateOrUpdateOptionalParams + 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; } -/** - * 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 - * **User** \ - * **Group** \ - * **Application** - */ -export type PrincipalType = string; +/** Contains response data for the createOrUpdate operation. */ +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; + +/** Optional parameters. */ +export interface ElasticPoolsDeleteOptionalParams + 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; +} -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { - None = "None", - UserAssigned = "UserAssigned" +/** Optional parameters. */ +export interface ElasticPoolsUpdateOptionalParams + 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; } -/** - * Defines values for DatabaseIdentityType. \ - * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **UserAssigned** - */ -export type DatabaseIdentityType = string; +/** Contains response data for the update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; -/** Known values of {@link CreateMode} that the service accepts. */ -export enum KnownCreateMode { - Default = "Default", - Copy = "Copy", - Secondary = "Secondary", - PointInTimeRestore = "PointInTimeRestore", - Restore = "Restore", - Recovery = "Recovery", - RestoreExternalBackup = "RestoreExternalBackup", - RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", - OnlineSecondary = "OnlineSecondary" +/** Optional parameters. */ +export interface ElasticPoolsFailoverOptionalParams + 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; } -/** - * 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** \ - * **Copy** \ - * **Secondary** \ - * **PointInTimeRestore** \ - * **Restore** \ - * **Recovery** \ - * **RestoreExternalBackup** \ - * **RestoreExternalBackupSecondary** \ - * **RestoreLongTermRetentionBackup** \ - * **OnlineSecondary** - */ -export type CreateMode = string; - -/** Known values of {@link SampleName} that the service accepts. */ -export enum KnownSampleName { - AdventureWorksLT = "AdventureWorksLT", - WideWorldImportersStd = "WideWorldImportersStd", - WideWorldImportersFull = "WideWorldImportersFull" +/** Optional parameters. */ +export interface ElasticPoolsListByServerNextOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; } -/** - * Defines values for SampleName. \ - * {@link KnownSampleName} can be used interchangeably with SampleName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AdventureWorksLT** \ - * **WideWorldImportersStd** \ - * **WideWorldImportersFull** - */ -export type SampleName = string; +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; -/** Known values of {@link DatabaseStatus} that the service accepts. */ -export enum KnownDatabaseStatus { - Online = "Online", - Restoring = "Restoring", - RecoveryPending = "RecoveryPending", - Recovering = "Recovering", - Suspect = "Suspect", - Offline = "Offline", - Standby = "Standby", - Shutdown = "Shutdown", - EmergencyMode = "EmergencyMode", - AutoClosed = "AutoClosed", - Copying = "Copying", - Creating = "Creating", - Inaccessible = "Inaccessible", - OfflineSecondary = "OfflineSecondary", - Pausing = "Pausing", - Paused = "Paused", - Resuming = "Resuming", - Scaling = "Scaling", - OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers", - OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers", - Disabled = "Disabled", - Stopping = "Stopping", - Stopped = "Stopped", - Starting = "Starting" -} +/** Optional parameters. */ +export interface ServerCommunicationLinksDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for DatabaseStatus. \ - * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Online** \ - * **Restoring** \ - * **RecoveryPending** \ - * **Recovering** \ - * **Suspect** \ - * **Offline** \ - * **Standby** \ - * **Shutdown** \ - * **EmergencyMode** \ - * **AutoClosed** \ - * **Copying** \ - * **Creating** \ - * **Inaccessible** \ - * **OfflineSecondary** \ - * **Pausing** \ - * **Paused** \ - * **Resuming** \ - * **Scaling** \ - * **OfflineChangingDwPerformanceTiers** \ - * **OnlineChangingDwPerformanceTiers** \ - * **Disabled** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** - */ -export type DatabaseStatus = string; +/** Optional parameters. */ +export interface ServerCommunicationLinksGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" +/** Contains response data for the get operation. */ +export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; + +/** Optional parameters. */ +export interface ServerCommunicationLinksCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for DatabaseLicenseType. \ - * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** - */ -export type DatabaseLicenseType = string; +/** Contains response data for the createOrUpdate operation. */ +export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { - Enabled = "Enabled", - Disabled = "Disabled" -} +/** Optional parameters. */ +export interface ServerCommunicationLinksListByServerOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for DatabaseReadScale. \ - * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type DatabaseReadScale = string; +/** Contains response data for the listByServer operation. */ +export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; -/** Known values of {@link SecondaryType} that the service accepts. */ -export enum KnownSecondaryType { - Geo = "Geo", - Named = "Named" -} +/** Optional parameters. */ +export interface ServiceObjectivesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for SecondaryType. \ - * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Geo** \ - * **Named** - */ -export type SecondaryType = string; +/** Contains response data for the get operation. */ +export type ServiceObjectivesGetResponse = ServiceObjective; -/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ -export enum KnownBackupStorageRedundancy { - Geo = "Geo", - Local = "Local", - Zone = "Zone", - GeoZone = "GeoZone" -} +/** Optional parameters. */ +export interface ServiceObjectivesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for BackupStorageRedundancy. \ - * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Geo** \ - * **Local** \ - * **Zone** \ - * **GeoZone** - */ -export type BackupStorageRedundancy = string; +/** Contains response data for the listByServer operation. */ +export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - Primary = "Primary", - ReadableSecondary = "ReadableSecondary" -} +/** Optional parameters. */ +export interface ElasticPoolActivitiesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ReplicaType. \ - * {@link KnownReplicaType} can be used interchangeably with ReplicaType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary** \ - * **ReadableSecondary** - */ -export type ReplicaType = string; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; + +/** Optional parameters. */ +export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DatabaseState} that the service accepts. */ -export enum KnownDatabaseState { - All = "All", - Live = "Live", - Deleted = "Deleted" -} +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; -/** - * Defines values for DatabaseState. \ - * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **All** \ - * **Live** \ - * **Deleted** - */ -export type DatabaseState = string; +/** Optional parameters. */ +export interface ServerUsagesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ManagedInstancePropertiesProvisioningState} that the service accepts. */ -export enum KnownManagedInstancePropertiesProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Updating = "Updating", - Unknown = "Unknown", - Succeeded = "Succeeded", - Failed = "Failed", - Accepted = "Accepted", - Created = "Created", - Deleted = "Deleted", - Unrecognized = "Unrecognized", - Running = "Running", - Canceled = "Canceled", - NotSpecified = "NotSpecified", - Registering = "Registering", - TimedOut = "TimedOut" +/** Contains response data for the listByServer operation. */ +export type ServerUsagesListByServerResponse = ServerUsageListResult; + +/** Optional parameters. */ +export interface DatabaseAdvisorsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; } -/** - * Defines values for ManagedInstancePropertiesProvisioningState. \ - * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Unknown** \ - * **Succeeded** \ - * **Failed** \ - * **Accepted** \ - * **Created** \ - * **Deleted** \ - * **Unrecognized** \ - * **Running** \ - * **Canceled** \ - * **NotSpecified** \ - * **Registering** \ - * **TimedOut** - */ -export type ManagedInstancePropertiesProvisioningState = string; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { - Default = "Default", - PointInTimeRestore = "PointInTimeRestore" -} +/** Optional parameters. */ +export interface DatabaseAdvisorsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ManagedServerCreateMode. \ - * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **PointInTimeRestore** - */ -export type ManagedServerCreateMode = string; +/** Contains response data for the get operation. */ +export type DatabaseAdvisorsGetResponse = Advisor; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - LicenseIncluded = "LicenseIncluded", - BasePrice = "BasePrice" -} +/** Optional parameters. */ +export interface DatabaseAdvisorsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ManagedInstanceLicenseType. \ - * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** - */ -export type ManagedInstanceLicenseType = string; +/** Contains response data for the update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - Proxy = "Proxy", - Redirect = "Redirect", - Default = "Default" -} +/** Optional parameters. */ +export interface DatabaseAutomaticTuningGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ManagedInstanceProxyOverride. \ - * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Proxy** \ - * **Redirect** \ - * **Default** - */ -export type ManagedInstanceProxyOverride = string; +/** Contains response data for the get operation. */ +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - None = "None", - SystemAssigned = "SystemAssigned" -} +/** Optional parameters. */ +export interface DatabaseAutomaticTuningUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ServicePrincipalType. \ - * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** - */ -export type ServicePrincipalType = string; +/** Contains response data for the update operation. */ +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; -/** Known values of {@link AggregationFunctionType} that the service accepts. */ -export enum KnownAggregationFunctionType { - Avg = "avg", - Min = "min", - Max = "max", - Stdev = "stdev", - Sum = "sum" +/** Optional parameters. */ +export interface DatabaseColumnsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } -/** - * Defines values for AggregationFunctionType. \ - * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **avg** \ - * **min** \ - * **max** \ - * **stdev** \ - * **sum** - */ -export type AggregationFunctionType = string; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; -/** Known values of {@link MetricType} that the service accepts. */ -export enum KnownMetricType { - Cpu = "cpu", - Io = "io", - LogIo = "logIo", - Duration = "duration", - Dtu = "dtu" +/** Optional parameters. */ +export interface DatabaseColumnsListByTableOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** - * Defines values for MetricType. \ - * {@link KnownMetricType} can be used interchangeably with MetricType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **cpu** \ - * **io** \ - * **logIo** \ - * **duration** \ - * **dtu** - */ -export type MetricType = string; +/** Contains response data for the listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { - Default = "default" -} +/** Optional parameters. */ +export interface DatabaseColumnsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type DatabaseColumnsGetResponse = DatabaseColumn; -/** Known values of {@link ServerConnectionType} that the service accepts. */ -export enum KnownServerConnectionType { - Default = "Default", - Redirect = "Redirect", - Proxy = "Proxy" +/** Optional parameters. */ +export interface DatabaseColumnsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions { + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } -/** - * Defines values for ServerConnectionType. \ - * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **Redirect** \ - * **Proxy** - */ -export type ServerConnectionType = string; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; -/** Known values of {@link ServiceObjectiveName} that the service accepts. */ -export enum KnownServiceObjectiveName { - System = "System", - System0 = "System0", - System1 = "System1", - System2 = "System2", - System3 = "System3", - System4 = "System4", - System2L = "System2L", - System3L = "System3L", - System4L = "System4L", - Free = "Free", - Basic = "Basic", - S0 = "S0", - S1 = "S1", - S2 = "S2", - S3 = "S3", - S4 = "S4", - S6 = "S6", - S7 = "S7", - S9 = "S9", - S12 = "S12", - P1 = "P1", - P2 = "P2", - P3 = "P3", - P4 = "P4", - P6 = "P6", - P11 = "P11", - P15 = "P15", - PRS1 = "PRS1", - PRS2 = "PRS2", - PRS4 = "PRS4", - PRS6 = "PRS6", - DW100 = "DW100", - DW200 = "DW200", - DW300 = "DW300", - DW400 = "DW400", - DW500 = "DW500", - DW600 = "DW600", - DW1000 = "DW1000", - DW1200 = "DW1200", - DW1000C = "DW1000c", - DW1500 = "DW1500", - DW1500C = "DW1500c", - DW2000 = "DW2000", - DW2000C = "DW2000c", - DW3000 = "DW3000", - DW2500C = "DW2500c", - DW3000C = "DW3000c", - DW6000 = "DW6000", - DW5000C = "DW5000c", - DW6000C = "DW6000c", - DW7500C = "DW7500c", - DW10000C = "DW10000c", - DW15000C = "DW15000c", - DW30000C = "DW30000c", - DS100 = "DS100", - DS200 = "DS200", - DS300 = "DS300", - DS400 = "DS400", - DS500 = "DS500", - DS600 = "DS600", - DS1000 = "DS1000", - DS1200 = "DS1200", - DS1500 = "DS1500", - DS2000 = "DS2000", - ElasticPool = "ElasticPool" +/** Optional parameters. */ +export interface DatabaseColumnsListByTableNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** - * Defines values for ServiceObjectiveName. \ - * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **System** \ - * **System0** \ - * **System1** \ - * **System2** \ - * **System3** \ - * **System4** \ - * **System2L** \ - * **System3L** \ - * **System4L** \ - * **Free** \ - * **Basic** \ - * **S0** \ - * **S1** \ - * **S2** \ - * **S3** \ - * **S4** \ - * **S6** \ - * **S7** \ - * **S9** \ - * **S12** \ - * **P1** \ - * **P2** \ - * **P3** \ - * **P4** \ - * **P6** \ - * **P11** \ - * **P15** \ - * **PRS1** \ - * **PRS2** \ - * **PRS4** \ - * **PRS6** \ - * **DW100** \ - * **DW200** \ - * **DW300** \ - * **DW400** \ - * **DW500** \ - * **DW600** \ - * **DW1000** \ - * **DW1200** \ - * **DW1000c** \ - * **DW1500** \ - * **DW1500c** \ - * **DW2000** \ - * **DW2000c** \ - * **DW3000** \ - * **DW2500c** \ - * **DW3000c** \ - * **DW6000** \ - * **DW5000c** \ - * **DW6000c** \ - * **DW7500c** \ - * **DW10000c** \ - * **DW15000c** \ - * **DW30000c** \ - * **DS100** \ - * **DS200** \ - * **DS300** \ - * **DS400** \ - * **DS500** \ - * **DS600** \ - * **DS1000** \ - * **DS1200** \ - * **DS1500** \ - * **DS2000** \ - * **ElasticPool** - */ -export type ServiceObjectiveName = string; -/** 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 GeoBackupPolicyState. */ -export type GeoBackupPolicyState = "Disabled" | "Enabled"; -/** Defines values for BlobAuditingPolicyState. */ -export type BlobAuditingPolicyState = "Enabled" | "Disabled"; -/** Defines values for AdvisorStatus. */ -export type AdvisorStatus = - | "GA" - | "PublicPreview" - | "LimitedPublicPreview" - | "PrivatePreview"; -/** Defines values for AutoExecuteStatus. */ -export type AutoExecuteStatus = "Enabled" | "Disabled" | "Default"; -/** Defines values for AutoExecuteStatusInheritedFrom. */ -export type AutoExecuteStatusInheritedFrom = - | "Default" - | "Subscription" - | "Server" - | "ElasticPool" - | "Database"; -/** Defines values for RecommendedActionInitiatedBy. */ -export type RecommendedActionInitiatedBy = "User" | "System"; -/** Defines values for ImplementationMethod. */ -export type ImplementationMethod = "TSql" | "AzurePowerShell"; -/** Defines values for IsRetryable. */ -export type IsRetryable = "Yes" | "No"; -/** Defines values for AutomaticTuningMode. */ -export type AutomaticTuningMode = "Inherit" | "Custom" | "Auto" | "Unspecified"; -/** Defines values for AutomaticTuningOptionModeDesired. */ -export type AutomaticTuningOptionModeDesired = "Off" | "On" | "Default"; -/** Defines values for AutomaticTuningOptionModeActual. */ -export type AutomaticTuningOptionModeActual = "Off" | "On"; -/** Defines values for AutomaticTuningDisabledReason. */ -export type AutomaticTuningDisabledReason = - | "Default" - | "Disabled" - | "AutoConfigured" - | "InheritedFromServer" - | "QueryStoreOff" - | "QueryStoreReadOnly" - | "NotSupported"; -/** Defines values for SecurityAlertsPolicyState. */ -export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; -/** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ -export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; -/** Defines values for JobScheduleType. */ -export type JobScheduleType = "Once" | "Recurring"; -/** Defines values for JobTargetGroupMembershipType. */ -export type JobTargetGroupMembershipType = "Include" | "Exclude"; -/** Defines values for CapabilityStatus. */ -export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; -/** Defines values for SecurityAlertPolicyState. */ -export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; -/** Defines values for SecurityEventType. */ -export type SecurityEventType = - | "Undefined" - | "SqlInjectionVulnerability" - | "SqlInjectionExploit"; -/** Defines values for SensitivityLabelSource. */ -export type SensitivityLabelSource = "current" | "recommended"; -/** 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 TransparentDataEncryptionState. */ -export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -/** Defines values for RestorePointType. */ -export type RestorePointType = "CONTINUOUS" | "DISCRETE"; -/** Defines values for AutomaticTuningServerMode. */ -export type AutomaticTuningServerMode = "Custom" | "Auto" | "Unspecified"; -/** Defines values for AutomaticTuningServerReason. */ -export type AutomaticTuningServerReason = - | "Default" - | "Disabled" - | "AutoConfigured"; -/** Defines values for LedgerDigestUploadsState. */ -export type LedgerDigestUploadsState = "Enabled" | "Disabled"; -/** Defines values for ReplicationRole. */ -export type ReplicationRole = - | "Primary" - | "Secondary" - | "NonReadableSecondary" - | "Source" - | "Copy"; -/** Defines values for CheckNameAvailabilityReason. */ -export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; +/** Contains response data for the listByTableNext operation. */ +export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseAdvisor operation. */ +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; /** Optional parameters. */ -export interface RecoverableDatabasesGetOptionalParams +export interface DatabaseRecommendedActionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase; +export type DatabaseRecommendedActionsGetResponse = RecommendedAction; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface DatabaseRecommendedActionsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; +/** Contains response data for the update operation. */ +export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams +export interface DatabaseSchemasListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; + +/** Optional parameters. */ +export interface DatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +/** Contains response data for the get operation. */ +export type DatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface DataMaskingPoliciesGetOptionalParams +export interface DatabaseSchemasListByDatabaseNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DataMaskingRulesListByDatabaseOptionalParams +export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesCreateOrUpdateOptionalParams +export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesGetOptionalParams +export interface DatabaseTablesListBySchemaOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listBySchema operation. */ +export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; + +/** Optional parameters. */ +export interface DatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; +export type DatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface GeoBackupPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface DatabaseTablesListBySchemaNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface DatabasesListMetricsOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type DatabasesListMetricsResponse = MetricListResult; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabasesListMetricDefinitionsOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabasesListByServerOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; -} - -/** Contains response data for the listByServer operation. */ -export type DatabasesListByServerResponse = DatabaseListResult; +export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabasesGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabasesGetResponse = Database; +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabasesCreateOrUpdateOptionalParams - 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; -} +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DatabasesCreateOrUpdateResponse = Database; +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabasesDeleteOptionalParams - 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; -} +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabasesUpdateOptionalParams - 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; -} +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabasesUpdateResponse = Database; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolOptionalParams +export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabasesFailoverOptionalParams +export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; /** 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. */ @@ -9737,63 +11184,77 @@ export interface DatabasesFailoverOptionalParams } /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerOptionalParams +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServer operation. */ -export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabasesPauseOptionalParams - 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; -} +export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the pause operation. */ -export type DatabasesPauseResponse = Database; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface DatabasesResumeOptionalParams - 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; -} +export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the resume operation. */ -export type DatabasesResumeResponse = Database; +/** Contains response data for the export operation. */ +export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface DatabasesUpgradeDataWarehouseOptionalParams - 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; -} +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabasesRenameOptionalParams +export interface DataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; + /** Optional parameters. */ -export interface DatabasesImportOptionalParams - 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; -} +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the import operation. */ -export type DatabasesImportResponse = ImportExportOperationResult; +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ -export interface DatabasesExportOptionalParams +export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; + +/** Optional parameters. */ +export interface DeletedServersListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DeletedServersListResponse = DeletedServerListResult; + +/** Optional parameters. */ +export interface DeletedServersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DeletedServersGetResponse = DeletedServer; + +/** Optional parameters. */ +export interface DeletedServersListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type DeletedServersListByLocationResponse = DeletedServerListResult; + +/** Optional parameters. */ +export interface DeletedServersRecoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9801,65 +11262,57 @@ export interface DatabasesExportOptionalParams resumeFrom?: string; } -/** Contains response data for the export operation. */ -export type DatabasesExportResponse = ImportExportOperationResult; +/** Contains response data for the recover operation. */ +export type DeletedServersRecoverResponse = DeletedServer; /** Optional parameters. */ -export interface DatabasesListByServerNextOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; -} +export interface DeletedServersListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult; +/** Contains response data for the listNext operation. */ +export type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolNextOptionalParams +export interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; +/** Contains response data for the listByLocationNext operation. */ +export type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerNextOptionalParams +export interface ElasticPoolOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServerNext operation. */ -export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; - /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface ElasticPoolOperationsListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams +export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface ElasticPoolsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; -} +export interface EncryptionProtectorsListByServerOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface EncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ElasticPoolsGetResponse = ElasticPool; +export type EncryptionProtectorsGetResponse = EncryptionProtector; /** Optional parameters. */ -export interface ElasticPoolsCreateOrUpdateOptionalParams +export interface EncryptionProtectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9868,10 +11321,10 @@ export interface ElasticPoolsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; /** Optional parameters. */ -export interface ElasticPoolsDeleteOptionalParams +export interface EncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9880,7 +11333,21 @@ export interface ElasticPoolsDeleteOptionalParams } /** Optional parameters. */ -export interface ElasticPoolsUpdateOptionalParams +export interface EncryptionProtectorsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; + +/** Optional parameters. */ +export interface FailoverGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type FailoverGroupsGetResponse = FailoverGroup; + +/** Optional parameters. */ +export interface FailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9888,11 +11355,11 @@ export interface ElasticPoolsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool; +/** Contains response data for the createOrUpdate operation. */ +export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface ElasticPoolsFailoverOptionalParams +export interface FailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9901,30 +11368,26 @@ export interface ElasticPoolsFailoverOptionalParams } /** Optional parameters. */ -export interface ElasticPoolsListByServerNextOptionalParams +export interface FailoverGroupsUpdateOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; + /** 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 listByServerNext operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; +/** Contains response data for the update operation. */ +export type FailoverGroupsUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams +export interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ReplicationLinksFailoverOptionalParams - 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 listByServer operation. */ +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams +export interface FailoverGroupsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9932,8 +11395,11 @@ export interface ReplicationLinksFailoverAllowDataLossOptionalParams resumeFrom?: string; } +/** Contains response data for the failover operation. */ +export type FailoverGroupsFailoverResponse = FailoverGroup; + /** Optional parameters. */ -export interface ReplicationLinksUnlinkOptionalParams +export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9941,54 +11407,64 @@ export interface ReplicationLinksUnlinkOptionalParams resumeFrom?: string; } +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; + /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams +export interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; +/** Contains response data for the listByServerNext operation. */ +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface ReplicationLinksGetOptionalParams +export interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ReplicationLinksGetResponse = ReplicationLink; +export type FirewallRulesGetResponse = FirewallRule; /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the createOrUpdate operation. */ +export type FirewallRulesCreateOrUpdateResponse = FirewallRule; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams +export interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +/** Optional parameters. */ +export interface FirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface FirewallRulesReplaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; /** Optional parameters. */ -export interface ServerCommunicationLinksDeleteOptionalParams +export interface FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; + /** Optional parameters. */ -export interface ServerCommunicationLinksGetOptionalParams +export interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9997,87 +11473,64 @@ export interface ServerCommunicationLinksCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; - -/** Optional parameters. */ -export interface ServerCommunicationLinksListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; - -/** Optional parameters. */ -export interface ServiceObjectivesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServiceObjectivesGetResponse = ServiceObjective; - -/** Optional parameters. */ -export interface ServiceObjectivesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; - -/** Optional parameters. */ -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; - -/** Optional parameters. */ -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ServerUsagesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult; +export interface InstanceFailoverGroupsDeleteOptionalParams + 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 ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface InstanceFailoverGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +/** Contains response data for the listByLocation operation. */ +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface InstanceFailoverGroupsFailoverOptionalParams + 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 ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +/** Contains response data for the failover operation. */ +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams + 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 listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface InstancePoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type InstancePoolsGetResponse = InstancePool; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface InstancePoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10086,31 +11539,19 @@ export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; - -/** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; - -/** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; +export type InstancePoolsCreateOrUpdateResponse = InstancePool; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +export interface InstancePoolsDeleteOptionalParams + 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 ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface InstancePoolsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10118,479 +11559,547 @@ export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +/** Contains response data for the update operation. */ +export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface InstancePoolsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +/** Contains response data for the list operation. */ +export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams +export interface InstancePoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; +/** Contains response data for the listByResourceGroupNext operation. */ +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface InstancePoolsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +/** Contains response data for the listNext operation. */ +export type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type JobAgentsListByServerResponse = JobAgentListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface JobAgentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the get operation. */ +export type JobAgentsGetResponse = JobAgent; /** Optional parameters. */ -export interface DatabaseAdvisorsListByDatabaseOptionalParams +export interface JobAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: 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 listByDatabase operation. */ -export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; +/** Contains response data for the createOrUpdate operation. */ +export type JobAgentsCreateOrUpdateResponse = JobAgent; /** Optional parameters. */ -export interface DatabaseAdvisorsGetOptionalParams +export interface JobAgentsDeleteOptionalParams + 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 JobAgentsUpdateOptionalParams + 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 JobAgentsUpdateResponse = JobAgent; + +/** Optional parameters. */ +export interface JobAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAdvisorsGetResponse = Advisor; +/** Contains response data for the listByServerNext operation. */ +export type JobAgentsListByServerNextResponse = JobAgentListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams +export interface JobCredentialsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listByAgent operation. */ +export type JobCredentialsListByAgentResponse = JobCredentialListResult; /** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams +export interface JobCredentialsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; +export type JobCredentialsGetResponse = JobCredential; /** Optional parameters. */ -export interface DatabaseAutomaticTuningUpdateOptionalParams +export interface JobCredentialsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; +/** Contains response data for the createOrUpdate operation. */ +export type JobCredentialsCreateOrUpdateResponse = JobCredential; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; -} +export interface JobCredentialsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Optional parameters. */ +export interface JobCredentialsListByAgentNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAgentNext operation. */ +export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByTableOptionalParams +export interface JobExecutionsListByAgentOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the listByTable operation. */ -export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; +/** Contains response data for the listByAgent operation. */ +export type JobExecutionsListByAgentResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseColumnsGetOptionalParams +export interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; - /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams +export interface JobExecutionsCreateOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: 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 listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the create operation. */ +export type JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams +export interface JobExecutionsListByJobOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; - -/** Optional parameters. */ -export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseAdvisor operation. */ -export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; +/** Contains response data for the listByJob operation. */ +export type JobExecutionsListByJobResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsGetOptionalParams +export interface JobExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseRecommendedActionsGetResponse = RecommendedAction; +export type JobExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface JobExecutionsCreateOrUpdateOptionalParams + 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 DatabaseRecommendedActionsUpdateResponse = RecommendedAction; +/** Contains response data for the createOrUpdate operation. */ +export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobExecutionsListByJobNextOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface JobsListByAgentOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaOptionalParams +export interface JobStepExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the listBySchema operation. */ -export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseTablesGetOptionalParams +export interface JobStepExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseTablesGetResponse = DatabaseTable; +export type JobStepExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaNextOptionalParams +export interface JobStepExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the listBySchemaNext operation. */ -export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface JobStepsGetByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByJob operation. */ +export type JobStepsListByJobResponse = JobStepListResult; + /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsGetOptionalParams +export interface JobStepsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +export type JobStepsGetResponse = JobStep; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface JobStepsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +export type JobStepsCreateOrUpdateResponse = JobStep; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams +export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface JobStepsListByVersionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface JobStepsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface JobTargetExecutionsListByJobExecutionOptionalParams 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 number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the export operation. */ -export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; - -/** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; - -/** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; - -/** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DeletedServersListOptionalParams - extends coreClient.OperationOptions {} +export interface JobTargetExecutionsListByStepOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DeletedServersGetOptionalParams +export interface JobTargetExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DeletedServersGetResponse = DeletedServer; +export type JobTargetExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams - extends coreClient.OperationOptions {} +export interface JobTargetExecutionsListByJobExecutionNextOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams 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 number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DeletedServersListNextOptionalParams +export interface JobTargetGroupsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; +/** Contains response data for the listByAgent operation. */ +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams +export interface JobTargetGroupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; +/** Contains response data for the get operation. */ +export type JobTargetGroupsGetResponse = JobTargetGroup; /** Optional parameters. */ -export interface ElasticPoolOperationsCancelOptionalParams +export interface JobTargetGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; + /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams +export interface JobTargetGroupsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; - /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams +export interface JobTargetGroupsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface EncryptionProtectorsListByServerOptionalParams +export interface JobVersionsListByJobOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; +/** Contains response data for the listByJob operation. */ +export type JobVersionsListByJobResponse = JobVersionListResult; /** Optional parameters. */ -export interface EncryptionProtectorsGetOptionalParams +export interface JobVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EncryptionProtectorsGetResponse = EncryptionProtector; +export type JobVersionsGetResponse = JobVersion; /** Optional parameters. */ -export interface EncryptionProtectorsCreateOrUpdateOptionalParams - 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; -} +export interface JobVersionsListByJobNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; +/** Contains response data for the listByJobNext operation. */ +export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface EncryptionProtectorsRevalidateOptionalParams +export interface CapabilitiesListByLocationOptionalParams 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; + /** If specified, restricts the response to only include the selected item. */ + include?: CapabilityGroup; } -/** Optional parameters. */ -export interface EncryptionProtectorsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; /** Optional parameters. */ -export interface FailoverGroupsGetOptionalParams +export interface LongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FailoverGroupsGetResponse = FailoverGroup; +export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface FailoverGroupsCreateOrUpdateOptionalParams +export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10599,115 +12108,49 @@ export interface FailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; - -/** Optional parameters. */ -export interface FailoverGroupsDeleteOptionalParams - 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 FailoverGroupsUpdateOptionalParams - 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 FailoverGroupsUpdateResponse = FailoverGroup; +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; - -/** Optional parameters. */ -export interface FailoverGroupsFailoverOptionalParams - 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 failover operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup; - -/** Optional parameters. */ -export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams - 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 forceFailoverAllowDataLoss operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface FailoverGroupsListByServerNextOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface FirewallRulesGetOptionalParams +export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FirewallRulesGetResponse = FirewallRule; - -/** Optional parameters. */ -export interface FirewallRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule; - -/** Optional parameters. */ -export interface FirewallRulesDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface FirewallRulesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult; +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Optional parameters. */ -export interface FirewallRulesReplaceOptionalParams +export interface MaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the replace operation. */ -export type FirewallRulesReplaceResponse = FirewallRule; +/** Contains response data for the get operation. */ +export type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Optional parameters. */ -export interface FirewallRulesListByServerNextOptionalParams +export interface MaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; - /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10716,10 +12159,10 @@ export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10727,128 +12170,144 @@ export interface InstanceFailoverGroupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; + /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsFailoverOptionalParams - 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; -} +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the failover operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams 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; + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; - -/** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; - -/** Optional parameters. */ -export interface InstancePoolsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type InstancePoolsGetResponse = InstancePool; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface InstancePoolsCreateOrUpdateOptionalParams +export interface ManagedDatabaseColumnsListByTableOptionalParams 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; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type InstancePoolsCreateOrUpdateResponse = InstancePool; +/** Contains response data for the listByTable operation. */ +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseColumnsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface InstancePoolsDeleteOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams 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; + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; + /** Optional parameters. */ -export interface InstancePoolsUpdateOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams 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; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the update operation. */ -export type InstancePoolsUpdateResponse = InstancePool; +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; /** Optional parameters. */ -export interface InstancePoolsListOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseQueriesListByQueryOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. */ + interval?: QueryTimeGrainType; +} -/** Contains response data for the list operation. */ -export type InstancePoolsListResponse = InstancePoolListResult; +/** Contains response data for the listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. */ + interval?: QueryTimeGrainType; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; +/** Contains response data for the listByQueryNext operation. */ +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface InstancePoolsListNextOptionalParams +export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** Optional parameters. */ -export interface JobAgentsListByServerOptionalParams +export interface ManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type JobAgentsListByServerResponse = JobAgentListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobAgentsGetOptionalParams +export interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobAgentsGetResponse = JobAgent; +export type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ -export interface JobAgentsCreateOrUpdateOptionalParams +export interface ManagedDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10857,10 +12316,10 @@ export interface JobAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type JobAgentsCreateOrUpdateResponse = JobAgent; +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface JobAgentsDeleteOptionalParams +export interface ManagedDatabasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10869,7 +12328,7 @@ export interface JobAgentsDeleteOptionalParams } /** Optional parameters. */ -export interface JobAgentsUpdateOptionalParams +export interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10878,75 +12337,10 @@ export interface JobAgentsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type JobAgentsUpdateResponse = JobAgent; - -/** Optional parameters. */ -export interface JobAgentsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type JobAgentsListByServerNextResponse = JobAgentListResult; - -/** Optional parameters. */ -export interface JobCredentialsListByAgentOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgent operation. */ -export type JobCredentialsListByAgentResponse = JobCredentialListResult; - -/** Optional parameters. */ -export interface JobCredentialsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JobCredentialsGetResponse = JobCredential; - -/** Optional parameters. */ -export interface JobCredentialsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type JobCredentialsCreateOrUpdateResponse = JobCredential; - -/** Optional parameters. */ -export interface JobCredentialsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface JobCredentialsListByAgentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgentNext operation. */ -export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; - -/** Optional parameters. */ -export interface JobExecutionsListByAgentOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} - -/** Contains response data for the listByAgent operation. */ -export type JobExecutionsListByAgentResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobExecutionsCancelOptionalParams - extends coreClient.OperationOptions {} +export type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface JobExecutionsCreateOptionalParams +export interface ManagedDatabasesCompleteRestoreOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10954,395 +12348,272 @@ export interface JobExecutionsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type JobExecutionsCreateResponse = JobExecution; +/** Optional parameters. */ +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobExecutionsListByJobOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedDatabasesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobExecutionsListByJobResponse = JobExecutionListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobExecutionsGetOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobExecutionsGetResponse = JobExecution; +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface JobExecutionsCreateOrUpdateOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseOptionalParams 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; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedDatabaseSchemasGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface JobsListByAgentOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobsListByAgentResponse = JobListResult; - -/** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} - /** Contains response data for the get operation. */ -export type JobsGetResponse = Job; +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = Job; +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface JobsListByAgentNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; /** The number of elements to return from the collection. */ top?: number; } -/** Contains response data for the listByJobExecution operation. */ -export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobStepExecutionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JobStepExecutionsGetResponse = JobExecution; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionNextOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { /** The number of elements in the collection to skip. */ skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; /** The number of elements to return from the collection. */ top?: number; } -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; /** Optional parameters. */ -export interface JobStepsListByVersionOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseTablesListBySchemaOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByVersion operation. */ -export type JobStepsListByVersionResponse = JobStepListResult; +/** Contains response data for the listBySchema operation. */ +export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface JobStepsGetByVersionOptionalParams +export interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByVersion operation. */ -export type JobStepsGetByVersionResponse = JobStep; +/** Contains response data for the get operation. */ +export type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface JobStepsListByJobOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByJob operation. */ -export type JobStepsListByJobResponse = JobStepListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface JobStepsGetOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepsGetResponse = JobStep; +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface JobStepsCreateOrUpdateOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type JobStepsCreateOrUpdateResponse = JobStep; +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface JobStepsDeleteOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; + /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface JobStepsListByJobNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobStepsListByJobNextResponse = JobStepListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecution operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} - -/** Contains response data for the listByStep operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobTargetExecutionsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution; - -/** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionNextOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} - -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface JobTargetGroupsListByAgentOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; - /** Optional parameters. */ -export interface JobTargetGroupsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobTargetGroupsGetResponse = JobTargetGroup; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface JobTargetGroupsCreateOrUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface JobTargetGroupsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + 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 JobTargetGroupsListByAgentNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface JobVersionsListByJobOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface JobVersionsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobVersionsGetResponse = JobVersion; +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface JobVersionsListByJobNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11351,49 +12622,45 @@ export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; +export interface ManagedInstanceAdministratorsDeleteOptionalParams + 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 MaintenanceWindowOptionsGetOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; - -/** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams + 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 ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11401,11 +12668,22 @@ export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalPa resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Optional parameters. */ +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; + +/** Optional parameters. */ +export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11413,165 +12691,154 @@ export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ManagedInstanceEncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseOptionalParams +export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: 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 listByDatabase operation. */ -export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; + +/** Optional parameters. */ +export interface ManagedInstanceKeysListByInstanceOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } -/** Contains response data for the listByTable operation. */ -export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams +export interface ManagedInstanceKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Array of Get3ItemsItem */ - schema?: string[]; - /** Array of Get4ItemsItem */ - table?: string[]; - /** Array of Get5ItemsItem */ - column?: string[]; - /** Array of Get6ItemsItem */ - orderBy?: string[]; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: 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 listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams +export interface ManagedInstanceKeysDeleteOptionalParams + 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 ManagedInstanceKeysListByInstanceNextOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; } -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. */ - interval?: QueryTimeGrainType; + /** 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 listByQuery operation. */ -export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams - extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. */ - interval?: QueryTimeGrainType; -} +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the listByDatabase operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams +export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams +export interface ManagedInstanceOperationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams - 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; -} +export interface ManagedInstanceOperationsCancelOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +/** Optional parameters. */ +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams - 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; -} +export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11579,11 +12846,11 @@ export interface ManagedDatabasesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11592,304 +12859,266 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstance operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams +export interface ManagedInstanceTdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: 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 listByDatabaseNext operation. */ -export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; - /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Optional parameters. */ +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; +/** Contains response data for the get operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements to return from the collection. */ - top?: number; + /** 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 listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams + 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 ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +/** Contains response data for the update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams +export interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; + /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: 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 listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; -} - -/** Contains response data for the listRecommendedByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; -} +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listBySchema operation. */ -export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaNextOptionalParams +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: 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 listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; +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; +} /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams +export interface PrivateEndpointConnectionsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByServer operation. */ +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams +export interface PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listByServerNext operation. */ +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface PrivateLinkResourcesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface PrivateLinkResourcesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams +export interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByInstanceNext operation. */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface RestorePointsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +export type RestorePointsListByDatabaseResponse = RestorePointListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11897,50 +13126,74 @@ export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptional resumeFrom?: string; } +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the get operation. */ +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams +export interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Optional parameters. */ +export interface RestorePointsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams +export interface ServerAdvisorsListByServerOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByServer operation. */ +export type ServerAdvisorsListByServerResponse = Advisor[]; + +/** Optional parameters. */ +export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the get operation. */ +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; + +/** Optional parameters. */ +export interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11949,10 +13202,10 @@ export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsDeleteOptionalParams +export interface ServerAzureADAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11961,21 +13214,28 @@ export interface ManagedInstanceAdministratorsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams +export interface ServerAzureADAdministratorsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface ServerAzureADAdministratorsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; + +/** Optional parameters. */ +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11984,10 +13244,10 @@ export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptional } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11996,44 +13256,28 @@ export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; - -/** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; - -/** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - 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 listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams +export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12042,34 +13286,31 @@ export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams +export interface ServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12078,10 +13319,10 @@ export interface ManagedInstanceKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12090,24 +13331,14 @@ export interface ManagedInstanceKeysDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12115,57 +13346,32 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; - -/** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams +export interface ServerDnsAliasesListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; + /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams +export interface ServerKeysListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByServer operation. */ +export type ServerKeysListByServerResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface ServerKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +export type ServerKeysGetResponse = ServerKey; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12174,10 +13380,10 @@ export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptional } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; +export type ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface ServerKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12186,42 +13392,35 @@ export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams +export interface ServerKeysListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams +export interface ServerOperationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByServer operation. */ +export type ServerOperationsListByServerResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams +export interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams +export interface ServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; - -/** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12229,47 +13428,32 @@ export interface ManagedInstanceTdeCertificatesCreateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams +export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByServer operation. */ +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams +export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams +export interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12278,10 +13462,10 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie } /** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ServerTrustGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12289,93 +13473,110 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Optional parameters. */ +export interface ServerTrustGroupsListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams +export interface ServerTrustGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams +export interface ServerTrustGroupsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams - 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; -} +export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface SqlAgentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface SqlAgentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface OperationsHealthListByLocationOptionalParams +export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type OperationsHealthListByLocationResponse = OperationsHealthListResult; +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; + +/** Optional parameters. */ +export interface SubscriptionUsagesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface OperationsHealthListByLocationNextOptionalParams +export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult; +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface SyncAgentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface SyncAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12384,10 +13585,10 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12396,229 +13597,168 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerOptionalParams +export interface SyncAgentsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerOptionalParams +export interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface PrivateLinkResourcesGetOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerNextOptionalParams +export interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; - -/** Optional parameters. */ -export interface RecoverableManagedDatabasesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; - -/** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; - -/** Optional parameters. */ -export interface RestorePointsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult; - -/** Optional parameters. */ -export interface RestorePointsCreateOptionalParams - 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 RestorePointsCreateResponse = RestorePoint; - -/** Optional parameters. */ -export interface RestorePointsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint; +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams +export interface SyncAgentsListLinkedDatabasesNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; + /** Optional parameters. */ -export interface RestorePointsListByDatabaseNextOptionalParams +export interface SyncGroupsListSyncDatabaseIdsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams +export interface SyncGroupsRefreshHubSchemaOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: 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 listCurrentByDatabase operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; - /** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; + /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface SyncGroupsListLogsOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; + /** The continuation token for this operation. */ + continuationToken?: string; } -/** Contains response data for the listRecommendedByDatabase operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface SyncGroupsCancelSyncOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams +export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface SyncGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; +export type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SyncGroupsCreateOrUpdateOptionalParams + 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 SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface SensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface SyncGroupsDeleteOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: 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 listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; - /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: 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 listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the update operation. */ +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams +export interface SyncGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ServerAdvisorsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the listByServer operation. */ -export type ServerAdvisorsListByServerResponse = Advisor[]; +/** Contains response data for the listByDatabase operation. */ +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ServerAdvisorsGetOptionalParams +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAdvisorsGetResponse = Advisor; +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ServerAdvisorsUpdateOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningGetOptionalParams - extends coreClient.OperationOptions {} +export interface SyncGroupsListLogsNextOptionalParams + extends coreClient.OperationOptions { + /** The continuation token for this operation. */ + continuationToken?: string; +} -/** Contains response data for the get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningUpdateOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsGetOptionalParams +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams +export interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12627,10 +13767,10 @@ export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; +export type SyncMembersCreateOrUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ServerAzureADAdministratorsDeleteOptionalParams +export interface SyncMembersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12639,28 +13779,33 @@ export interface ServerAzureADAdministratorsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface SyncMembersUpdateOptionalParams + 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 listByServer operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerNextOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsGetOptionalParams +export interface SyncMembersListMemberSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams +export interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12668,11 +13813,22 @@ export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; +/** Optional parameters. */ +export interface SyncMembersListBySyncGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; + +/** Optional parameters. */ +export interface TdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12681,28 +13837,35 @@ export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams } /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams +export interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams +export interface TimeZonesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; +/** Contains response data for the get operation. */ +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsGetOptionalParams +export interface TimeZonesListByLocationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocationNext operation. */ +export type TimeZonesListByLocationNextResponse = TimeZoneListResult; + +/** Optional parameters. */ +export interface VirtualNetworkRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12711,59 +13874,52 @@ export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerOptionalParams +export interface VirtualNetworkRulesDeleteOptionalParams + 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 VirtualNetworkRulesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams +export interface VirtualNetworkRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams +export interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; - -/** Optional parameters. */ -export interface ServerDnsAliasesCreateOrUpdateOptionalParams - 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 ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; +export type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ -export interface ServerDnsAliasesDeleteOptionalParams +export interface WorkloadClassifiersCreateOrUpdateOptionalParams 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 ServerDnsAliasesListByServerOptionalParams - extends coreClient.OperationOptions {} +} -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +/** Contains response data for the createOrUpdate operation. */ +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ -export interface ServerDnsAliasesAcquireOptionalParams +export interface WorkloadClassifiersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12771,32 +13927,29 @@ export interface ServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; - /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerKeysGetResponse = ServerKey; +export type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ -export interface ServerKeysCreateOrUpdateOptionalParams +export interface WorkloadGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12805,10 +13958,10 @@ export interface ServerKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey; +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams +export interface WorkloadGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12817,68 +13970,56 @@ export interface ServerKeysDeleteOptionalParams } /** Optional parameters. */ -export interface ServerKeysListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult; - -/** Optional parameters. */ -export interface ServerOperationsListByServerOptionalParams +export interface WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams +export interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams - 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; -} +export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface BackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerTrustGroupsCreateOrUpdateOptionalParams +export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12887,10 +14028,10 @@ export interface ServerTrustGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams +export interface BackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12898,110 +14039,94 @@ export interface ServerTrustGroupsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ServerTrustGroupsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; - -/** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; +/** Contains response data for the update operation. */ +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface DatabaseExtensionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; - /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface DatabaseExtensionsCreateOrUpdateOptionalParams + 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 ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerOptionalParams +export interface DatabaseExtensionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams +export interface DatabaseExtensionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface DatabaseOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; - /** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams +export interface DatabaseOperationsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams +export interface DatabaseOperationsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface DatabaseUsagesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface DatabaseUsagesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13010,10 +14135,17 @@ export interface SyncAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent; +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface SyncAgentsDeleteOptionalParams +export interface LedgerDigestUploadsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; + +/** Optional parameters. */ +export interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13021,50 +14153,37 @@ export interface SyncAgentsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface SyncAgentsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult; - -/** Optional parameters. */ -export interface SyncAgentsGenerateKeyOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the generateKey operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; - -/** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listLinkedDatabases operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface SyncAgentsListByServerNextOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesNextOptionalParams +export interface OutboundFirewallRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabasesNext operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the get operation. */ +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsOptionalParams - extends coreClient.OperationOptions {} +export interface OutboundFirewallRulesCreateOrUpdateOptionalParams + 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 listSyncDatabaseIds operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; +/** Contains response data for the createOrUpdate operation. */ +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface SyncGroupsRefreshHubSchemaOptionalParams +export interface OutboundFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13073,39 +14192,40 @@ export interface SyncGroupsRefreshHubSchemaOptionalParams } /** Optional parameters. */ -export interface SyncGroupsListHubSchemasOptionalParams +export interface OutboundFirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemas operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; - -/** Optional parameters. */ -export interface SyncGroupsListLogsOptionalParams - extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; -} - -/** Contains response data for the listLogs operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult; +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface SyncGroupsCancelSyncOptionalParams +export interface OutboundFirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; + /** Optional parameters. */ -export interface SyncGroupsTriggerSyncOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type ServersListByResourceGroupResponse = ServerListResult; /** Optional parameters. */ -export interface SyncGroupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ServersGetOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup; +export type ServersGetResponse = Server; /** Optional parameters. */ -export interface SyncGroupsCreateOrUpdateOptionalParams +export interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13114,10 +14234,10 @@ export interface SyncGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; +export type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ -export interface SyncGroupsDeleteOptionalParams +export interface ServersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13126,7 +14246,7 @@ export interface SyncGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface SyncGroupsUpdateOptionalParams +export interface ServersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13135,67 +14255,78 @@ export interface SyncGroupsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup; +export type ServersUpdateResponse = Server; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; +/** Contains response data for the list operation. */ +export type ServersListResponse = ServerListResult; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams - extends coreClient.OperationOptions {} +export interface ServersImportDatabaseOptionalParams + 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 listSyncDatabaseIdsNext operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; +/** Contains response data for the importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface SyncGroupsListHubSchemasNextOptionalParams +export interface ServersCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ -export interface SyncGroupsListLogsNextOptionalParams +export interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listLogsNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListNextOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; /** Optional parameters. */ -export interface SyncMembersGetOptionalParams - extends coreClient.OperationOptions {} +export interface UsagesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} -/** Contains response data for the get operation. */ -export type SyncMembersGetResponse = SyncMember; +/** Contains response data for the listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; /** Optional parameters. */ -export interface SyncMembersCreateOrUpdateOptionalParams +export interface UsagesListByInstancePoolNextOptionalParams 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 request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; } -/** Contains response data for the createOrUpdate operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface SyncMembersDeleteOptionalParams +export interface LongTermRetentionBackupsCopyOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13203,8 +14334,11 @@ export interface SyncMembersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; + /** Optional parameters. */ -export interface SyncMembersUpdateOptionalParams +export interface LongTermRetentionBackupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13213,24 +14347,17 @@ export interface SyncMembersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type SyncMembersUpdateResponse = SyncMember; - -/** Optional parameters. */ -export interface SyncMembersListBySyncGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySyncGroup operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasOptionalParams +export interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMemberSchemas operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the get operation. */ +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface SyncMembersRefreshMemberSchemaOptionalParams +export interface LongTermRetentionBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13239,21 +14366,43 @@ export interface SyncMembersRefreshMemberSchemaOptionalParams } /** Optional parameters. */ -export interface SyncMembersListBySyncGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listBySyncGroupNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listMemberSchemasNext operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TdeCertificatesCreateOptionalParams +export interface LongTermRetentionBackupsListByServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; + +/** Optional parameters. */ +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13261,99 +14410,154 @@ export interface TdeCertificatesCreateOptionalParams resumeFrom?: string; } +/** Contains response data for the copyByResourceGroup operation. */ +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; + /** Optional parameters. */ -export interface TimeZonesListByLocationOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + 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 listByLocation operation. */ -export type TimeZonesListByLocationResponse = TimeZoneListResult; +/** Contains response data for the updateByResourceGroup operation. */ +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface TimeZonesGetOptionalParams +export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TimeZonesGetResponse = TimeZone; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface TimeZonesListByLocationNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + 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 listByLocationNext operation. */ -export type TimeZonesListByLocationNextResponse = TimeZoneListResult; +/** Optional parameters. */ +export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the updateDnsServers operation. */ -export type VirtualClustersUpdateDnsServersResponse = UpdateManagedInstanceDnsServersOperation; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersListOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; +/** Contains response data for the listByResourceGroupServer operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByLocationNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersDeleteOptionalParams +export interface LongTermRetentionBackupsListByServerNextOptionalParams 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; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } +/** Contains response data for the listByServerNext operation. */ +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface VirtualClustersUpdateOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams 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; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersListNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listNext operation. */ -export type VirtualClustersListNextResponse = VirtualClusterListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; +/** Contains response data for the listByResourceGroupServerNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface VirtualNetworkRulesCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13361,41 +14565,51 @@ export interface VirtualNetworkRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; - /** Optional parameters. */ -export interface VirtualNetworkRulesDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams 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; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13403,111 +14617,156 @@ export interface WorkloadClassifiersCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; - /** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams 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; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; +/** Contains response data for the listByResourceGroupInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams 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; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the createOrUpdate operation. */ -export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; +/** Contains response data for the listByInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadGroupsDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams 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; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +/** Contains response data for the listByResourceGroupInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the get operation. */ -export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13516,10 +14775,10 @@ export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedInstancesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13527,94 +14786,154 @@ export interface BackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesUpdateOptionalParams + 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 listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the update operation. */ +export type ManagedInstancesUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; +export interface ManagedInstancesListByManagedInstanceOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. Default value is PT1H */ + interval?: QueryTimeGrainType; + /** How many 'top queries' to return. Default is 5. */ + numberOfQueries?: number; + /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ + databases?: string; + /** Aggregation function to be used, default value is 'sum' */ + aggregationFunction?: AggregationFunctionType; + /** Metric to be used for ranking top queries. Default is 'cpu' */ + observationMetric?: MetricType; +} -/** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -export interface DatabaseExtensionsCreateOrUpdateOptionalParams +export interface ManagedInstancesFailoverOptionalParams extends coreClient.OperationOptions { + /** The type of replica to be failed over. */ + replicaType?: ReplicaType; /** 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 DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; +/** Optional parameters. */ +export interface ManagedInstancesListByInstancePoolNextOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByInstancePoolNext operation. */ +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListNextOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; +/** Contains response data for the listNext operation. */ +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseNextOptionalParams +export interface ManagedInstancesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; + +/** Optional parameters. */ +export interface ManagedInstancesListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. Default value is PT1H */ + interval?: QueryTimeGrainType; + /** How many 'top queries' to return. Default is 5. */ + numberOfQueries?: number; + /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ + databases?: string; + /** Aggregation function to be used, default value is 'sum' */ + aggregationFunction?: AggregationFunctionType; + /** Metric to be used for ranking top queries. Default is 'cpu' */ + observationMetric?: MetricType; +} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; + +/** Optional parameters. */ +export interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; +/** Contains response data for the listByServer operation. */ +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface DatabaseOperationsCancelOptionalParams +export interface RestorableDroppedDatabasesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; + /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseOptionalParams +export interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; +/** Contains response data for the listByServerNext operation. */ +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +/** Contains response data for the listByInstance operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseOptionalParams +export interface RestorableDroppedManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; +/** Contains response data for the get operation. */ +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseNextOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsGetOptionalParams +export interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface LedgerDigestUploadsCreateOrUpdateOptionalParams +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13623,43 +14942,38 @@ export interface LedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseOptionalParams +export interface ServerConnectionPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByServer operation. */ +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsDisableOptionalParams - 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; -} +export interface ServerConnectionPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the disable operation. */ -export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; +/** Contains response data for the listByServerNext operation. */ +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseNextOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByInstance operation. */ +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesGetOptionalParams +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface OutboundFirewallRulesCreateOrUpdateOptionalParams +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13668,10 +14982,10 @@ export interface OutboundFirewallRulesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface OutboundFirewallRulesDeleteOptionalParams +export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13680,40 +14994,40 @@ export interface OutboundFirewallRulesDeleteOptionalParams } /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface DistributedAvailabilityGroupsUpdateOptionalParams + 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 listByServer operation. */ -export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; +/** Contains response data for the update operation. */ +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerNextOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServerTrustCertificatesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ServersListByResourceGroupResponse = ServerListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServerTrustCertificatesGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServersGetResponse = Server; +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13722,10 +15036,10 @@ export interface ServersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServersCreateOrUpdateResponse = Server; +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ServersDeleteOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13734,87 +15048,85 @@ export interface ServersDeleteOptionalParams } /** Optional parameters. */ -export interface ServersUpdateOptionalParams - 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; -} +export interface ServerTrustCertificatesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; + +/** Optional parameters. */ +export interface IPv6FirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; + +/** Optional parameters. */ +export interface IPv6FirewallRulesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; +/** Contains response data for the get operation. */ +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult; +/** Contains response data for the createOrUpdate operation. */ +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams - 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; -} +export interface IPv6FirewallRulesDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; +/** Optional parameters. */ +export interface IPv6FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams +export interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface EndpointCertificatesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +/** Contains response data for the get operation. */ +export type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ -export interface ServersListNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface EndpointCertificatesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { - /** Optional request parameter to include managed instance usages within the instance pool. */ - expandChildren?: boolean; -} +export interface ReplicationLinksListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePool operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult; +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolNextOptionalParams - extends coreClient.OperationOptions { - /** Optional request parameter to include managed instance usages within the instance pool. */ - expandChildren?: boolean; -} +export interface ReplicationLinksGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult; +/** Contains response data for the get operation. */ +export type ReplicationLinksGetResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyOptionalParams +export interface ReplicationLinksDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13822,11 +15134,11 @@ export interface LongTermRetentionBackupsCopyOptionalParams resumeFrom?: string; } -/** Contains response data for the copy operation. */ -export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the failover operation. */ +export type ReplicationLinksFailoverResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateOptionalParams +export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13834,218 +15146,214 @@ export interface LongTermRetentionBackupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the failoverAllowDataLoss operation. */ +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetOptionalParams +export interface ReplicationLinksListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ReplicationLinksListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ReplicationLinksListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteOptionalParams - 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; -} +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationOptionalParams +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerOptionalParams +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams 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; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams 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; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; - /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams 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; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface SensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface SensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface SensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface SensitivityLabelsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface SensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; +export interface SensitivityLabelsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + count?: boolean; } -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + skipToken?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface RecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams +export interface ServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams +export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14053,208 +15361,182 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; + /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface DatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams +export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams - 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; -} +export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + /** 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 listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams +export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: 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 listByInstancePool operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstancesListOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedInstancesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedServerDnsAliasesGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancesGetResponse = ManagedInstance; +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstancesCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14263,10 +15545,10 @@ export interface ManagedInstancesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstancesDeleteOptionalParams +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14275,7 +15557,7 @@ export interface ManagedInstancesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstancesUpdateOptionalParams +export interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14283,145 +15565,164 @@ export interface ManagedInstancesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance; +/** Contains response data for the acquire operation. */ +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceOptionalParams - extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. Default value is PT1H */ - interval?: QueryTimeGrainType; - /** How many 'top queries' to return. Default is 5. */ - numberOfQueries?: number; - /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ - databases?: string; - /** Aggregation function to be used, default value is 'sum' */ - aggregationFunction?: AggregationFunctionType; - /** Metric to be used for ranking top queries. Default is 'cpu' */ - observationMetric?: MetricType; -} +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedInstancesFailoverOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; + +/** Optional parameters. */ +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; /** 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 ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; + /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ + onlyLatestPerDatabase?: boolean; } -/** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByLocation operation. */ +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedDatabaseMoveOperationsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceNextOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. Default value is PT1H */ - interval?: QueryTimeGrainType; - /** How many 'top queries' to return. Default is 5. */ - numberOfQueries?: number; - /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ - databases?: string; - /** Aggregation function to be used, default value is 'sum' */ - aggregationFunction?: AggregationFunctionType; - /** Metric to be used for ranking top queries. Default is 'cpu' */ - observationMetric?: MetricType; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ + onlyLatestPerDatabase?: boolean; } -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesGetOptionalParams +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams + 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 listByServerNext operation. */ -export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesGetOptionalParams +export interface VirtualClustersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; +/** Contains response data for the list operation. */ +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams +export interface VirtualClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams +export interface VirtualClustersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams +export interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14429,22 +15730,43 @@ export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; +/** Optional parameters. */ +export interface VirtualClustersUpdateOptionalParams + 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 VirtualClustersUpdateResponse = VirtualCluster; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerOptionalParams +export interface VirtualClustersUpdateDnsServersOptionalParams + 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 updateDnsServers operation. */ +export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; + +/** Optional parameters. */ +export interface VirtualClustersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listNext operation. */ +export type VirtualClustersListNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface VirtualClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; /** Optional parameters. */ export interface SqlManagementClientOptionalParams diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 936dbed08279..506ec1265444 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -350,21 +350,6 @@ export const MetricAvailability: coreClient.CompositeMapper = { } }; -export const UnlinkParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UnlinkParameters", - modelProperties: { - forcedTermination: { - serializedName: "forcedTermination", - type: { - name: "Boolean" - } - } - } - } -}; - export const ServerCommunicationLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -532,122 +517,6 @@ export const ServerUsage: coreClient.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const RecommendedActionStateInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1245,10 +1114,10 @@ export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolListResult: coreClient.CompositeMapper = { +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolListResult", + className: "EncryptionProtectorListResult", modelProperties: { value: { serializedName: "value", @@ -1258,7 +1127,7 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "EncryptionProtector" } } } @@ -1274,79 +1143,78 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { } }; -export const Sku: coreClient.CompositeMapper = { +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "FailoverGroupReadWriteEndpoint", modelProperties: { - name: { - serializedName: "name", + failoverPolicy: { + serializedName: "failoverPolicy", required: true, type: { name: "String" } }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "String" + name: "Number" } - }, - family: { - serializedName: "family", + } + } + } +}; + +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } } } } }; -export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { +export const PartnerInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "PartnerInfo", modelProperties: { - minCapacity: { - serializedName: "minCapacity", + id: { + serializedName: "id", + required: true, type: { - name: "Number" + name: "String" } }, - maxCapacity: { - serializedName: "maxCapacity", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Number" + name: "String" + } + }, + replicationRole: { + serializedName: "replicationRole", + readOnly: true, + type: { + name: "String" } } } } }; -export const ElasticPoolUpdate: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolUpdate", + className: "FailoverGroupUpdate", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, tags: { serializedName: "tags", type: { @@ -1354,45 +1222,39 @@ export const ElasticPoolUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" + className: "FailoverGroupReadWriteEndpoint" } }, - licenseType: { - serializedName: "properties.licenseType", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + databases: { + serializedName: "properties.databases", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const EncryptionProtectorListResult: coreClient.CompositeMapper = { +export const FailoverGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "FailoverGroupListResult", modelProperties: { value: { serializedName: "value", @@ -1402,7 +1264,7 @@ export const EncryptionProtectorListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EncryptionProtector" + className: "FailoverGroup" } } } @@ -1418,147 +1280,10 @@ export const EncryptionProtectorListResult: coreClient.CompositeMapper = { } }; -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const ResourceWithWritableName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, - type: { - name: "String" - } - }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - type: { - name: "String" - } - } - } - } -}; - -export const PartnerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - replicationRole: { - serializedName: "replicationRole", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - databases: { - serializedName: "properties.databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const FailoverGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverGroup" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ResourceWithWritableName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceWithWritableName", + className: "ResourceWithWritableName", modelProperties: { id: { serializedName: "id", @@ -1743,6 +1468,46 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { } }; +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + export const InstancePoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4172,77 +3937,6 @@ export const SecurityEventSqlInjectionAdditionalProperties: coreClient.Composite } }; -export const SensitivityLabelListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabelUpdate" - } - } - } - } - } - } -}; - -export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate" - } - } - } - } - } - } -}; - export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4890,42 +4584,13 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const OperationsHealthListResult: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationsHealthListResult", + className: "PrivateEndpointConnectionProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationsHealth" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", + privateEndpoint: { + serializedName: "privateEndpoint", type: { name: "Composite", className: "PrivateEndpointProperty" @@ -6060,82 +5725,6 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { } }; -export const VirtualClusterListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualClusterListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualCluster" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualClusterUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualClusterUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - subnetId: { - serializedName: "properties.subnetId", - readOnly: true, - type: { - name: "String" - } - }, - family: { - serializedName: "properties.family", - type: { - name: "String" - } - }, - childResources: { - serializedName: "properties.childResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - } - } - } -}; - export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6426,35 +6015,6 @@ export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const ReplicationLinkListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReplicationLinkListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReplicationLink" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7086,13 +6646,6 @@ export const DatabaseIdentity: coreClient.CompositeMapper = { type: { name: "Composite", className: "DatabaseUserIdentity" } } } - }, - delegatedResources: { - serializedName: "delegatedResources", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "Delegation" } } - } } } } @@ -7121,28 +6674,6 @@ export const DatabaseUserIdentity: coreClient.CompositeMapper = { } }; -export const Delegation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Delegation", - modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid" - } - } - } - } -}; - export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7410,37 +6941,15 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Uuid" } - }, - primaryDelegatedIdentityClientId: { - serializedName: "properties.primaryDelegatedIdentityClientId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ResourceMoveDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceMoveDefinition", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } } } } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const ExportDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "ExportDatabaseDefinition", modelProperties: { storageKeyType: { serializedName: "storageKeyType", @@ -7494,10 +7003,10 @@ export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { } }; -export const ExportDatabaseDefinition: coreClient.CompositeMapper = { +export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportDatabaseDefinition", + className: "ImportExistingDatabaseDefinition", modelProperties: { storageKeyType: { serializedName: "storageKeyType", @@ -7551,6 +7060,22 @@ export const ExportDatabaseDefinition: coreClient.CompositeMapper = { } }; +export const ResourceMoveDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceMoveDefinition", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8199,77 +7724,891 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { } }; -export const SloUsageMetric: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SloUsageMetric", + className: "DistributedAvailabilityGroupsListResult", modelProperties: { - serviceLevelObjective: { - serializedName: "serviceLevelObjective", - readOnly: true, - type: { - name: "String" - } - }, - serviceLevelObjectiveId: { - serializedName: "serviceLevelObjectiveId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroup" + } + } } }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const OperationImpact: coreClient.CompositeMapper = { +export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationImpact", + className: "ServerTrustCertificatesListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerTrustCertificate" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - changeValueAbsolute: { - serializedName: "changeValueAbsolute", - readOnly: true, - type: { - name: "Number" - } - }, - changeValueRelative: { - serializedName: "changeValueRelative", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { +export const ElasticPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventsFilterParameters", + className: "ElasticPoolListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPool" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings", + modelProperties: { + minCapacity: { + serializedName: "minCapacity", + type: { + name: "Number" + } + }, + maxCapacity: { + serializedName: "maxCapacity", + type: { + name: "Number" + } + } + } + } +}; + +export const ElasticPoolUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolUpdate", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPv6FirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPv6FirewallRule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const EndpointCertificateListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointCertificateListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointCertificate" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationLinkListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationLinkListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationLink" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SensitivityLabelListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabelListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabelUpdate" + } + } + } + } + } + } +}; + +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdate" + } + } + } + } + } + } +}; + +export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedDatabaseBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedDatabaseBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseAdvancedThreatProtectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseAdvancedThreatProtection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalServerAdvancedThreatProtectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerDnsAlias" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasCreation", + modelProperties: { + createDnsRecord: { + defaultValue: true, + serializedName: "createDnsRecord", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAliasAcquisition", + modelProperties: { + oldManagedServerDnsAliasResourceId: { + serializedName: "oldManagedServerDnsAliasResourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseAdvancedThreatProtectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseAdvancedThreatProtection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseMoveOperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseMoveOperationResult" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceDtcListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceDtc" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings", + modelProperties: { + transactionManagerCommunicationSettings: { + serializedName: "transactionManagerCommunicationSettings", + type: { + name: "Composite", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" + } + }, + xaTransactionsEnabled: { + serializedName: "xaTransactionsEnabled", + type: { + name: "Boolean" + } + }, + snaLu6Point2TransactionsEnabled: { + serializedName: "snaLu6point2TransactionsEnabled", + type: { + name: "Boolean" + } + }, + xaTransactionsDefaultTimeout: { + serializedName: "xaTransactionsDefaultTimeout", + type: { + name: "Number" + } + }, + xaTransactionsMaximumTimeout: { + serializedName: "xaTransactionsMaximumTimeout", + type: { + name: "Number" + } + } + } + } +}; + +export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", + modelProperties: { + allowInboundEnabled: { + serializedName: "allowInboundEnabled", + type: { + name: "Boolean" + } + }, + allowOutboundEnabled: { + serializedName: "allowOutboundEnabled", + type: { + name: "Boolean" + } + }, + authentication: { + serializedName: "authentication", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualClusterListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualClusterListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualCluster" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualClusterUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualClusterUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + childResources: { + serializedName: "properties.childResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SloUsageMetric: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SloUsageMetric", + modelProperties: { + serviceLevelObjective: { + serializedName: "serviceLevelObjective", + readOnly: true, + type: { + name: "String" + } + }, + serviceLevelObjectiveId: { + serializedName: "serviceLevelObjectiveId", + readOnly: true, + type: { + name: "Uuid" + } + }, + inRangeTimeRatio: { + serializedName: "inRangeTimeRatio", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const OperationImpact: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationImpact", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + changeValueAbsolute: { + serializedName: "changeValueAbsolute", + readOnly: true, + type: { + name: "Number" + } + }, + changeValueRelative: { + serializedName: "changeValueRelative", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEventsFilterParameters", modelProperties: { eventTime: { serializedName: "eventTime", @@ -8822,203 +9161,499 @@ export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { name: "DateTime" } }, - errorCode: { - serializedName: "properties.errorCode", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, + type: { + name: "Number" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, + type: { + name: "String" + } + }, + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, + type: { + name: "Number" + } + }, + operation: { + serializedName: "properties.operation", + readOnly: true, + type: { + name: "String" + } + }, + operationId: { + serializedName: "properties.operationId", + readOnly: true, + type: { + name: "Uuid" + } + }, + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + requestedElasticPoolName: { + serializedName: "properties.requestedElasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + currentElasticPoolName: { + serializedName: "properties.currentElasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + currentServiceObjective: { + serializedName: "properties.currentServiceObjective", + readOnly: true, + type: { + name: "String" + } + }, + requestedServiceObjective: { + serializedName: "properties.requestedServiceObjective", + readOnly: true, + type: { + name: "String" + } + }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RecommendedAction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendedAction", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + recommendationReason: { + serializedName: "properties.recommendationReason", + readOnly: true, + type: { + name: "String" + } + }, + validSince: { + serializedName: "properties.validSince", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastRefresh: { + serializedName: "properties.lastRefresh", + readOnly: true, + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Composite", + className: "RecommendedActionStateInfo" + } + }, + isExecutableAction: { + serializedName: "properties.isExecutableAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + isRevertableAction: { + serializedName: "properties.isRevertableAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + isArchivedAction: { + serializedName: "properties.isArchivedAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + executeActionStartTime: { + serializedName: "properties.executeActionStartTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + executeActionDuration: { + serializedName: "properties.executeActionDuration", + readOnly: true, + type: { + name: "String" + } + }, + revertActionStartTime: { + serializedName: "properties.revertActionStartTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + revertActionDuration: { + serializedName: "properties.revertActionDuration", + readOnly: true, + type: { + name: "String" + } + }, + executeActionInitiatedBy: { + serializedName: "properties.executeActionInitiatedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["User", "System"] + } + }, + executeActionInitiatedTime: { + serializedName: "properties.executeActionInitiatedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + revertActionInitiatedBy: { + serializedName: "properties.revertActionInitiatedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["User", "System"] + } + }, + revertActionInitiatedTime: { + serializedName: "properties.revertActionInitiatedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + score: { + serializedName: "properties.score", readOnly: true, type: { name: "Number" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + implementationDetails: { + serializedName: "properties.implementationDetails", type: { - name: "String" + name: "Composite", + className: "RecommendedActionImplementationInfo" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + errorDetails: { + serializedName: "properties.errorDetails", + type: { + name: "Composite", + className: "RecommendedActionErrorInfo" + } + }, + estimatedImpact: { + serializedName: "properties.estimatedImpact", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - operation: { - serializedName: "properties.operation", + observedImpact: { + serializedName: "properties.observedImpact", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - operationId: { - serializedName: "properties.operationId", + timeSeries: { + serializedName: "properties.timeSeries", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionMetricInfo" + } + } } }, - percentComplete: { - serializedName: "properties.percentComplete", + linkedObjects: { + serializedName: "properties.linkedObjects", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", + details: { + serializedName: "properties.details", + readOnly: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + } +}; + +export const Advisor: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Advisor", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - currentElasticPoolName: { - serializedName: "properties.currentElasticPoolName", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - currentServiceObjective: { - serializedName: "properties.currentServiceObjective", + advisorStatus: { + serializedName: "properties.advisorStatus", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "GA", + "PublicPreview", + "LimitedPublicPreview", + "PrivatePreview" + ] } }, - requestedServiceObjective: { - serializedName: "properties.requestedServiceObjective", + autoExecuteStatus: { + serializedName: "properties.autoExecuteStatus", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled", "Default"] + } + }, + autoExecuteStatusInheritedFrom: { + serializedName: "properties.autoExecuteStatusInheritedFrom", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Default", + "Subscription", + "Server", + "ElasticPool", + "Database" + ] } }, - serverName: { - serializedName: "properties.serverName", + recommendationsStatus: { + serializedName: "properties.recommendationsStatus", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + lastChecked: { + serializedName: "properties.lastChecked", readOnly: true, type: { name: "DateTime" } }, - state: { - serializedName: "properties.state", + recommendedActions: { + serializedName: "properties.recommendedActions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedAction" + } + } } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "DatabaseAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } }, - retentionDays: { - serializedName: "properties.retentionDays", + actualState: { + serializedName: "properties.actualState", + readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + options: { + serializedName: "properties.options", type: { - name: "Sequence", - element: { - type: { - name: "String" - } + name: "Dictionary", + value: { + type: { name: "Composite", className: "AutomaticTuningOptions" } } } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const DatabaseColumn: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseColumn", + modelProperties: { + ...ProxyResource.type.modelProperties, + columnType: { + serializedName: "properties.columnType", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "String" + name: "Boolean" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + isComputed: { + serializedName: "properties.isComputed", type: { - name: "Uuid" + name: "Boolean" } } } } }; -export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const DatabaseSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "DatabaseSchema", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - predicateExpression: { - serializedName: "properties.predicateExpression", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { @@ -9028,31 +9663,23 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { name: "Boolean" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { @@ -9065,72 +9692,81 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Uuid" + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const DatabaseTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "DatabaseTable", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + temporalType: { + serializedName: "properties.temporalType", type: { - name: "Boolean" + name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "Number" + name: "Boolean" } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", + modelProperties: { + ...ProxyResource.type.modelProperties, + baselineResults: { + serializedName: "properties.baselineResults", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" } } } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } @@ -9141,129 +9777,204 @@ export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Uuid" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + 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: "String" + name: "Composite", + className: "VulnerabilityAssessmentScanError" } } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + storageContainerPath: { + serializedName: "properties.storageContainerPath", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, type: { - name: "Boolean" + name: "Number" } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentScansExport", + modelProperties: { + ...ProxyResource.type.modelProperties, + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", + readOnly: true, type: { name: "Number" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const DeletedServer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedServer", + modelProperties: { + ...ProxyResource.type.modelProperties, + version: { + serializedName: "properties.version", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + deletionTime: { + serializedName: "properties.deletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + originalId: { + serializedName: "properties.originalId", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const RecommendedAction: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedAction", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + elasticPoolName: { + serializedName: "properties.elasticPoolName", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - recommendationReason: { - serializedName: "properties.recommendationReason", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - validSince: { - serializedName: "properties.validSince", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - lastRefresh: { - serializedName: "properties.lastRefresh", + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" @@ -9271,517 +9982,659 @@ export const RecommendedAction: coreClient.CompositeMapper = { }, state: { serializedName: "properties.state", + readOnly: true, type: { - name: "Composite", - className: "RecommendedActionStateInfo" + name: "String" } }, - isExecutableAction: { - serializedName: "properties.isExecutableAction", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - isRevertableAction: { - serializedName: "properties.isRevertableAction", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isArchivedAction: { - serializedName: "properties.isArchivedAction", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, + type: { + name: "Number" + } + }, + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { name: "Boolean" } }, - executeActionStartTime: { - serializedName: "properties.executeActionStartTime", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { name: "DateTime" } }, - executeActionDuration: { - serializedName: "properties.executeActionDuration", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - revertActionStartTime: { - serializedName: "properties.revertActionStartTime", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } - }, - revertActionDuration: { - serializedName: "properties.revertActionDuration", + } + } + } +}; + +export const EncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - executeActionInitiatedBy: { - serializedName: "properties.executeActionInitiatedBy", + location: { + serializedName: "location", readOnly: true, type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "String" } }, - executeActionInitiatedTime: { - serializedName: "properties.executeActionInitiatedTime", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - revertActionInitiatedBy: { - serializedName: "properties.revertActionInitiatedBy", + serverKeyName: { + serializedName: "properties.serverKeyName", + type: { + name: "String" + } + }, + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", readOnly: true, type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "String" } }, - revertActionInitiatedTime: { - serializedName: "properties.revertActionInitiatedTime", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - score: { - serializedName: "properties.score", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const FailoverGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "Number" + name: "String" } }, - implementationDetails: { - serializedName: "properties.implementationDetails", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { name: "Composite", - className: "RecommendedActionImplementationInfo" + className: "FailoverGroupReadWriteEndpoint" } }, - errorDetails: { - serializedName: "properties.errorDetails", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { name: "Composite", - className: "RecommendedActionErrorInfo" + className: "FailoverGroupReadOnlyEndpoint" } }, - estimatedImpact: { - serializedName: "properties.estimatedImpact", + replicationRole: { + serializedName: "properties.replicationRole", + readOnly: true, + type: { + name: "String" + } + }, + replicationState: { + serializedName: "properties.replicationState", readOnly: true, + type: { + name: "String" + } + }, + partnerServers: { + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedActionImpactRecord" + className: "PartnerInfo" } } } }, - observedImpact: { - serializedName: "properties.observedImpact", - readOnly: true, + databases: { + serializedName: "properties.databases", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RecommendedActionImpactRecord" + name: "String" } } } + } + } + } +}; + +export const InstanceFailoverGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint" + } }, - timeSeries: { - serializedName: "properties.timeSeries", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint" + } + }, + replicationRole: { + serializedName: "properties.replicationRole", + readOnly: true, + type: { + name: "String" + } + }, + replicationState: { + serializedName: "properties.replicationState", readOnly: true, + type: { + name: "String" + } + }, + partnerRegions: { + serializedName: "properties.partnerRegions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedActionMetricInfo" + className: "PartnerRegionInfo" } } } }, - linkedObjects: { - serializedName: "properties.linkedObjects", - readOnly: true, + managedInstancePairs: { + serializedName: "properties.managedInstancePairs", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstancePairInfo" } } } + } + } + } +}; + +export const JobCredential: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobCredential", + modelProperties: { + ...ProxyResource.type.modelProperties, + username: { + serializedName: "properties.username", + type: { + name: "String" + } }, - details: { - serializedName: "properties.details", - readOnly: true, + password: { + serializedName: "properties.password", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const Advisor: coreClient.CompositeMapper = { +export const JobExecution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Advisor", + className: "JobExecution", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + jobVersion: { + serializedName: "properties.jobVersion", readOnly: true, type: { - name: "String" + name: "Number" } }, - location: { - serializedName: "location", + stepName: { + serializedName: "properties.stepName", readOnly: true, type: { name: "String" } }, - advisorStatus: { - serializedName: "properties.advisorStatus", + stepId: { + serializedName: "properties.stepId", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "GA", - "PublicPreview", - "LimitedPublicPreview", - "PrivatePreview" - ] + name: "Number" } }, - autoExecuteStatus: { - serializedName: "properties.autoExecuteStatus", + jobExecutionId: { + serializedName: "properties.jobExecutionId", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled", "Default"] + name: "Uuid" } }, - autoExecuteStatusInheritedFrom: { - serializedName: "properties.autoExecuteStatusInheritedFrom", + lifecycle: { + serializedName: "properties.lifecycle", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Default", - "Subscription", - "Server", - "ElasticPool", - "Database" - ] + name: "String" } }, - recommendationsStatus: { - serializedName: "properties.recommendationsStatus", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - lastChecked: { - serializedName: "properties.lastChecked", + createTime: { + serializedName: "properties.createTime", readOnly: true, type: { name: "DateTime" } }, - recommendedActions: { - serializedName: "properties.recommendedActions", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedAction" - } - } + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + currentAttempts: { + serializedName: "properties.currentAttempts", + type: { + name: "Number" + } + }, + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastMessage: { + serializedName: "properties.lastMessage", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "Composite", + className: "JobExecutionTarget" } } } } }; -export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { +export const Job: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAutomaticTuning", + className: "Job", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + description: { + defaultValue: "", + serializedName: "properties.description", type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "String" } }, - actualState: { - serializedName: "properties.actualState", + version: { + serializedName: "properties.version", readOnly: true, type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "Number" } }, - options: { - serializedName: "properties.options", + schedule: { + serializedName: "properties.schedule", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "AutomaticTuningOptions" } - } + name: "Composite", + className: "JobSchedule" } } } } }; -export const DatabaseColumn: coreClient.CompositeMapper = { +export const JobStep: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseColumn", + className: "JobStep", modelProperties: { ...ProxyResource.type.modelProperties, - columnType: { - serializedName: "properties.columnType", + stepId: { + serializedName: "properties.stepId", + type: { + name: "Number" + } + }, + targetGroup: { + serializedName: "properties.targetGroup", type: { name: "String" } }, - temporalType: { - serializedName: "properties.temporalType", + credential: { + serializedName: "properties.credential", type: { name: "String" } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + action: { + serializedName: "properties.action", type: { - name: "Boolean" + name: "Composite", + className: "JobStepAction" } }, - isComputed: { - serializedName: "properties.isComputed", + output: { + serializedName: "properties.output", type: { - name: "Boolean" + name: "Composite", + className: "JobStepOutput" + } + }, + executionOptions: { + serializedName: "properties.executionOptions", + type: { + name: "Composite", + className: "JobStepExecutionOptions" } } } } }; -export const DatabaseSchema: coreClient.CompositeMapper = { +export const JobTargetGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSchema", + className: "JobTargetGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + members: { + serializedName: "properties.members", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobTarget" + } + } + } + } + } + } +}; + +export const JobVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobVersion", modelProperties: { ...ProxyResource.type.modelProperties } } }; -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", + type: { + name: "String" + } + }, + monthlyRetention: { + serializedName: "properties.monthlyRetention", + type: { + name: "String" + } + }, + yearlyRetention: { + serializedName: "properties.yearlyRetention", + type: { + name: "String" + } + }, + weekOfYear: { + serializedName: "properties.weekOfYear", + type: { + name: "Number" + } + } + } + } +}; + +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "MaintenanceWindowOptions", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MaintenanceWindowTimeRange" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "Boolean" + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const DatabaseTable: coreClient.CompositeMapper = { +export const MaintenanceWindows: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseTable", + className: "MaintenanceWindows", modelProperties: { ...ProxyResource.type.modelProperties, - temporalType: { - serializedName: "properties.temporalType", - type: { - name: "String" - } - }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + timeRanges: { + serializedName: "properties.timeRanges", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } } } } }; -export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", + className: "ManagedBackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } + name: "Number" } } } } }; -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { +export const ManagedInstanceQuery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment", + className: "ManagedInstanceQuery", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + queryText: { + serializedName: "properties.queryText", type: { name: "String" } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } } } } }; -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const QueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "QueryStatistics", modelProperties: { ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", - readOnly: true, - type: { - name: "String" - } - }, - triggerType: { - serializedName: "properties.triggerType", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + queryId: { + serializedName: "properties.queryId", readOnly: true, type: { name: "String" @@ -9791,110 +10644,108 @@ export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { serializedName: "properties.startTime", readOnly: true, type: { - name: "DateTime" + name: "String" } }, endTime: { serializedName: "properties.endTime", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "properties.errors", - readOnly: true, + intervals: { + serializedName: "properties.intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError" + className: "QueryMetricInterval" } } } - }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - readOnly: true, - type: { - name: "String" - } - }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DataWarehouseUserActivities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataWarehouseUserActivities", - modelProperties: { - ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", + }, + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const DeletedServer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeletedServer", - modelProperties: { - ...ProxyResource.type.modelProperties, - version: { - serializedName: "properties.version", + }, + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", readOnly: true, type: { name: "String" } }, - deletionTime: { - serializedName: "properties.deletionTime", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", readOnly: true, type: { name: "DateTime" } }, - originalId: { - serializedName: "properties.originalId", + percentCompleted: { + serializedName: "properties.percentCompleted", + readOnly: true, + type: { + name: "Number" + } + }, + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", + readOnly: true, + type: { + name: "Number" + } + }, + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", + readOnly: true, + type: { + name: "String" + } + }, + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", + blockReason: { + serializedName: "properties.blockReason", readOnly: true, type: { name: "String" @@ -9904,169 +10755,214 @@ export const DeletedServer: coreClient.CompositeMapper = { } }; -export const ElasticPoolOperation: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperation", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + 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" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - serverName: { - serializedName: "properties.serverName", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - startTime: { - serializedName: "properties.startTime", + } + } + } +}; + +export const SecurityEvent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEvent", + modelProperties: { + ...ProxyResource.type.modelProperties, + eventTime: { + serializedName: "properties.eventTime", readOnly: true, type: { name: "DateTime" } }, - state: { - serializedName: "properties.state", + securityEventType: { + serializedName: "properties.securityEventType", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - errorCode: { - serializedName: "properties.errorCode", + subscription: { + serializedName: "properties.subscription", readOnly: true, type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", + server: { + serializedName: "properties.server", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + database: { + serializedName: "properties.database", readOnly: true, type: { - name: "Number" + name: "String" } }, - isUserError: { - serializedName: "properties.isUserError", + clientIp: { + serializedName: "properties.clientIp", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + applicationName: { + serializedName: "properties.applicationName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", + principalName: { + serializedName: "properties.principalName", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", type: { - name: "Boolean" + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "ManagedTransparentDataEncryption", 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, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - }, - serverKeyName: { - serializedName: "properties.serverKeyName", + } + } + } +}; + +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + login: { + serializedName: "properties.login", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "String" + name: "Uuid" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } - }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + } + } + } +}; + +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAzureADOnlyAuthentication", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { name: "Boolean" } @@ -10075,515 +10971,493 @@ export const EncryptionProtector: coreClient.CompositeMapper = { } }; -export const FailoverGroup: coreClient.CompositeMapper = { +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroup", + className: "ManagedInstanceEncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "String" } }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - replicationState: { - serializedName: "properties.replicationState", + uri: { + serializedName: "properties.uri", readOnly: true, type: { name: "String" } }, - partnerServers: { - serializedName: "properties.partnerServers", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } + name: "String" } }, - databases: { - serializedName: "properties.databases", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } } } } }; -export const InstanceFailoverGroup: coreClient.CompositeMapper = { +export const ManagedInstanceKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroup", + className: "ManagedInstanceKey", modelProperties: { ...ProxyResource.type.modelProperties, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" + name: "String" } }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + uri: { + serializedName: "properties.uri", type: { name: "String" } }, - replicationState: { - serializedName: "properties.replicationState", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - partnerRegions: { - serializedName: "properties.partnerRegions", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } + name: "DateTime" } }, - managedInstancePairs: { - serializedName: "properties.managedInstancePairs", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" - } - } + name: "Boolean" } } } } }; -export const JobCredential: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredential", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - password: { - serializedName: "properties.password", + monthlyRetention: { + serializedName: "properties.monthlyRetention", + type: { + name: "String" + } + }, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } + }, + weekOfYear: { + serializedName: "properties.weekOfYear", + type: { + name: "Number" + } } } } }; -export const JobExecution: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecution", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { - name: "Number" + name: "String" } }, - stepName: { - serializedName: "properties.stepName", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - stepId: { - serializedName: "properties.stepId", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { - name: "Number" + name: "String" } }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "Uuid" + name: "Number" } }, - lifecycle: { - serializedName: "properties.lifecycle", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, - type: { - name: "DateTime" - } - }, - currentAttempts: { - serializedName: "properties.currentAttempts", type: { name: "Number" } }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - lastMessage: { - serializedName: "properties.lastMessage", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - target: { - serializedName: "properties.target", - type: { - name: "Composite", - className: "JobExecutionTarget" - } - } - } - } -}; - -export const Job: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Job", - modelProperties: { - ...ProxyResource.type.modelProperties, description: { - defaultValue: "", serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - version: { - serializedName: "properties.version", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - schedule: { - serializedName: "properties.schedule", + operationParameters: { + serializedName: "properties.operationParameters", type: { name: "Composite", - className: "JobSchedule" + className: "ManagedInstanceOperationParametersPair" + } + }, + operationSteps: { + serializedName: "properties.operationSteps", + type: { + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const JobStep: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStep", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", - type: { - name: "Number" - } - }, - targetGroup: { - serializedName: "properties.targetGroup", - type: { - name: "String" - } - }, - credential: { - serializedName: "properties.credential", - type: { - name: "String" - } - }, - action: { - serializedName: "properties.action", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "JobStepAction" + className: "ManagedInstancePrivateEndpointProperty" } }, - output: { - serializedName: "properties.output", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "JobStepOutput" + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - executionOptions: { - serializedName: "properties.executionOptions", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "JobStepExecutionOptions" + name: "String" } } } } }; -export const JobTargetGroup: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroup", + className: "ManagedInstancePrivateLink", modelProperties: { ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" } } } } }; -export const JobVersion: coreClient.CompositeMapper = { +export const TdeCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobVersion", + className: "TdeCertificate", modelProperties: { - ...ProxyResource.type.modelProperties + ...ProxyResource.type.modelProperties, + privateBlob: { + serializedName: "properties.privateBlob", + type: { + name: "String" + } + }, + certPassword: { + serializedName: "properties.certPassword", + type: { + name: "String" + } + } } } }; -export const LongTermRetentionPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicy", + className: "ManagedInstanceVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Number" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowOptions", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + systemData: { + serializedName: "systemData", type: { - name: "Boolean" + name: "Composite", + className: "SystemData" } }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" + name: "String" } } } }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Number" + name: "Boolean" } }, - minCycles: { - serializedName: "properties.minCycles", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Number" + name: "String" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } } } } }; -export const MaintenanceWindows: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindows", + className: "PrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "PrivateLinkResourceProperties" } } } } }; -export const ManagedInstanceQuery: coreClient.CompositeMapper = { +export const RecoverableManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQuery", + className: "RecoverableManagedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, type: { name: "String" } @@ -10592,180 +11466,170 @@ export const ManagedInstanceQuery: coreClient.CompositeMapper = { } }; -export const QueryStatistics: coreClient.CompositeMapper = { +export const RestorePoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistics", + className: "RestorePoint", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - queryId: { - serializedName: "properties.queryId", + restorePointType: { + serializedName: "properties.restorePointType", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] } }, - startTime: { - serializedName: "properties.startTime", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - endTime: { - serializedName: "properties.endTime", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - intervals: { - serializedName: "properties.intervals", + restorePointLabel: { + serializedName: "properties.restorePointLabel", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricInterval" - } - } + name: "String" } } } } }; -export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { +export const ServerAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", + className: "ServerAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String" - } - }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", - readOnly: true, - type: { - name: "String" - } - }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", - readOnly: true, - type: { - name: "String" - } - }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", - readOnly: true, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - percentCompleted: { - serializedName: "properties.percentCompleted", + actualState: { + serializedName: "properties.actualState", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", - readOnly: true, + options: { + serializedName: "properties.options", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "String" + name: "Composite", + className: "AutomaticTuningServerOptions" } } } - }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", - readOnly: true, + } + } + } +}; + +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAzureADAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Number" + name: "String" } }, - lastUploadedFileName: { - serializedName: "properties.lastUploadedFileName", - readOnly: true, + login: { + serializedName: "properties.login", type: { name: "String" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "DateTime" + name: "Uuid" } }, - blockReason: { - serializedName: "properties.blockReason", + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", + className: "ServerAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Boolean" } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + } + } + } +}; + +export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDevOpsAuditingSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SystemData" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + state: { + serializedName: "properties.state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, storageEndpoint: { @@ -10780,491 +11644,418 @@ export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "DateTime" + name: "Uuid" } } } } }; -export const SecurityEvent: coreClient.CompositeMapper = { +export const ServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEvent", + className: "ServerDnsAlias", modelProperties: { ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - securityEventType: { - serializedName: "properties.securityEventType", + } + } + } +}; + +export const ServerKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerKey", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "String" } }, - subscription: { - serializedName: "properties.subscription", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - server: { - serializedName: "properties.server", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { name: "String" } }, - database: { - serializedName: "properties.database", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - clientIp: { - serializedName: "properties.clientIp", - readOnly: true, + uri: { + serializedName: "properties.uri", type: { name: "String" } }, - applicationName: { - serializedName: "properties.applicationName", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - principalName: { - serializedName: "properties.principalName", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" + name: "Boolean" } } } } }; -export const SensitivityLabel: coreClient.CompositeMapper = { +export const ServerOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "ServerOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedBy: { - serializedName: "managedBy", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - schemaName: { - serializedName: "properties.schemaName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - tableName: { - serializedName: "properties.tableName", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - columnName: { - serializedName: "properties.columnName", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - labelName: { - serializedName: "properties.labelName", - type: { - name: "String" - } - }, - labelId: { - serializedName: "properties.labelId", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - informationType: { - serializedName: "properties.informationType", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "String" + name: "Number" } }, - isDisabled: { - serializedName: "properties.isDisabled", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - rank: { - serializedName: "properties.rank", - type: { - name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] - } - } - } - } -}; - -export const SensitivityLabelUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdate", - modelProperties: { - ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "Enum", - allowedValues: ["set", "remove"] + name: "Number" } }, - schema: { - serializedName: "properties.schema", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - table: { - serializedName: "properties.table", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - column: { - serializedName: "properties.column", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "Composite", - className: "SensitivityLabel" + name: "Boolean" } } } } }; -export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate", + className: "ServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + systemData: { + serializedName: "systemData", type: { - name: "Enum", - allowedValues: ["enable", "disable"] + name: "Composite", + className: "SystemData" } }, - schema: { - serializedName: "properties.schema", + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - table: { - serializedName: "properties.table", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - column: { - serializedName: "properties.column", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedTransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Boolean" } - } - } - } -}; - -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - login: { - serializedName: "properties.login", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Uuid" + name: "Number" } }, - tenantId: { - serializedName: "properties.tenantId", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Uuid" + name: "DateTime" } } } } }; -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const ServerTrustGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", + className: "ServerTrustGroup", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + groupMembers: { + serializedName: "properties.groupMembers", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerInfo" + } + } + } + }, + trustScopes: { + serializedName: "properties.trustScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector", + className: "ServerVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - serverKeyName: { - serializedName: "properties.serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - serializedName: "properties.serverKeyType", + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Boolean" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const SqlAgentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "SqlAgentConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - serverKeyType: { - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + state: { + serializedName: "properties.state", type: { name: "String" } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", - readOnly: true, - type: { - name: "Boolean" - } } } } }; -export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + displayName: { + serializedName: "properties.displayName", + readOnly: true, type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + limit: { + serializedName: "properties.limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + unit: { + serializedName: "properties.unit", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const SyncAgent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "SyncAgent", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "properties.operation", + namePropertiesName: { + serializedName: "properties.name", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - startTime: { - serializedName: "properties.startTime", + lastAliveTime: { + serializedName: "properties.lastAliveTime", readOnly: true, type: { name: "DateTime" @@ -11277,39 +12068,49 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + isUpToDate: { + serializedName: "properties.isUpToDate", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - errorDescription: { - serializedName: "properties.errorDescription", + expiryTime: { + serializedName: "properties.expiryTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + version: { + serializedName: "properties.version", readOnly: true, type: { - name: "Number" + name: "String" } - }, - isUserError: { - serializedName: "properties.isUserError", + } + } + } +}; + +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + databaseId: { + serializedName: "properties.databaseId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, description: { @@ -11319,235 +12120,199 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - operationParameters: { - serializedName: "properties.operationParameters", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" + name: "String" } }, - operationSteps: { - serializedName: "properties.operationSteps", + userName: { + serializedName: "properties.userName", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "String" } } } } }; -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + className: "Sku" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + interval: { + serializedName: "properties.interval", type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + lastSyncTime: { + serializedName: "properties.lastSyncTime", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties" + name: "DateTime" } - } - } - } -}; - -export const TdeCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TdeCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - certPassword: { - serializedName: "properties.certPassword", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } - } - } - } -}; - -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + }, + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + syncState: { + serializedName: "properties.syncState", + readOnly: true, type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + schema: { + serializedName: "properties.schema", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "SyncGroupSchema" + } + }, + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", + type: { + name: "Boolean" + } + }, + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", + type: { + name: "Number" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, + type: { + name: "String" } } } } }; -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const SyncMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "SyncMember", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + databaseType: { + serializedName: "properties.databaseType", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + syncAgentId: { + serializedName: "properties.syncAgentId", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Uuid" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", + type: { + name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { name: "Boolean" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + serverName: { + serializedName: "properties.serverName", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + databaseName: { + serializedName: "properties.databaseName", type: { - name: "Number" + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + userName: { + serializedName: "properties.userName", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const OperationsHealth: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationsHealth", - modelProperties: { - ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", - readOnly: true, + }, + password: { + serializedName: "properties.password", type: { name: "String" } }, - health: { - serializedName: "properties.health", - readOnly: true, + syncDirection: { + serializedName: "properties.syncDirection", type: { name: "String" } }, - description: { - serializedName: "properties.description", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { name: "String" @@ -11557,28 +12322,21 @@ export const OperationsHealth: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const TimeZone: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "TimeZone", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + timeZoneId: { + serializedName: "properties.timeZoneId", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" @@ -11588,31 +12346,26 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const VirtualNetworkRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "VirtualNetworkRule", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", type: { - name: "Composite", - className: "PrivateLinkResourceProperties" + name: "String" } - } - } - } -}; - -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecoverableManagedDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", + }, + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" @@ -11622,203 +12375,163 @@ export const RecoverableManagedDatabase: coreClient.CompositeMapper = { } }; -export const RestorePoint: coreClient.CompositeMapper = { +export const WorkloadClassifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePoint", + className: "WorkloadClassifier", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + memberName: { + serializedName: "properties.memberName", type: { name: "String" } }, - restorePointType: { - serializedName: "properties.restorePointType", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] - } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + label: { + serializedName: "properties.label", type: { - name: "DateTime" + name: "String" } }, - restorePointCreationDate: { - serializedName: "properties.restorePointCreationDate", - readOnly: true, + context: { + serializedName: "properties.context", type: { - name: "DateTime" + name: "String" } }, - restorePointLabel: { - serializedName: "properties.restorePointLabel", - readOnly: true, + startTime: { + serializedName: "properties.startTime", type: { name: "String" } - } - } - } -}; - -export const ServerAutomaticTuning: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } }, - actualState: { - serializedName: "properties.actualState", - readOnly: true, + endTime: { + serializedName: "properties.endTime", type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] + name: "String" } }, - options: { - serializedName: "properties.options", + importance: { + serializedName: "properties.importance", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } + name: "String" } } } } }; -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { +export const WorkloadGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "WorkloadGroup", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + minResourcePercent: { + serializedName: "properties.minResourcePercent", type: { - name: "String" + name: "Number" } }, - login: { - serializedName: "properties.login", + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", type: { - name: "String" + name: "Number" } }, - sid: { - serializedName: "properties.sid", + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", type: { - name: "Uuid" + name: "Number" } }, - tenantId: { - serializedName: "properties.tenantId", + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "Uuid" + name: "Number" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", - readOnly: true, + importance: { + serializedName: "properties.importance", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAzureADOnlyAuthentication", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + }, + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", type: { - name: "Boolean" + name: "Number" } } } } }; -export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "LogicalDatabaseTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" + allowedValues: ["Enabled", "Disabled"] } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + } + } + } +}; + +export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", type: { - name: "Uuid" + name: "Number" } } } } }; -export const ServerDnsAlias: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDnsAlias", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", - readOnly: true, + operationMode: { + serializedName: "properties.operationMode", + type: { + name: "String" + } + }, + storageKeyType: { + serializedName: "properties.storageKeyType", + type: { + name: "String" + } + }, + storageKey: { + serializedName: "properties.storageKey", + type: { + name: "String" + } + }, + storageUri: { + serializedName: "properties.storageUri", type: { name: "String" } @@ -11827,76 +12540,78 @@ export const ServerDnsAlias: coreClient.CompositeMapper = { } }; -export const ServerKey: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKey", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - location: { - serializedName: "location", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, operation: { serializedName: "properties.operation", readOnly: true, @@ -11964,199 +12679,38 @@ export const ServerOperation: coreClient.CompositeMapper = { serializedName: "properties.isUserError", readOnly: true, type: { - name: "Boolean" - } - }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - description: { - serializedName: "properties.description", - readOnly: true, - type: { - name: "String" - } - }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["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 ServerTrustGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerTrustGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - groupMembers: { - serializedName: "properties.groupMembers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerInfo" - } - } - } - }, - trustScopes: { - serializedName: "properties.trustScopes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" + name: "Boolean" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const SqlAgentConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlAgentConfiguration", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const SubscriptionUsage: coreClient.CompositeMapper = { +export const DatabaseUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsage", + className: "DatabaseUsage", modelProperties: { ...ProxyResource.type.modelProperties, displayName: { @@ -12191,55 +12745,38 @@ export const SubscriptionUsage: coreClient.CompositeMapper = { } }; -export const SyncAgent: coreClient.CompositeMapper = { +export const LedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgent", + className: "LedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", - readOnly: true, - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { name: "String" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", - readOnly: true, - type: { - name: "DateTime" - } - }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } - }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, - type: { - name: "Boolean" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", - readOnly: true, - type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - }, - version: { - serializedName: "properties.version", + } + } + } +}; + +export const OutboundFirewallRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundFirewallRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -12249,28 +12786,42 @@ export const SyncAgent: coreClient.CompositeMapper = { } }; -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + requestId: { + serializedName: "properties.requestId", + readOnly: true, + type: { + name: "Uuid" + } + }, + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, + type: { + name: "String" + } + }, + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { name: "String" @@ -12290,226 +12841,283 @@ export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { name: "String" } }, - userName: { - serializedName: "properties.userName", + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } + } } } } }; -export const SyncGroup: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroup", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "Uuid" } }, - interval: { - serializedName: "properties.interval", + operationType: { + serializedName: "properties.operationType", + readOnly: true, type: { - name: "Number" + name: "String" } }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", + readOnly: true, type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", + readOnly: true, type: { name: "String" } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + message: { + serializedName: "properties.message", + readOnly: true, type: { name: "String" } - }, - syncState: { - serializedName: "properties.syncState", + } + } + } +}; + +export const LongTermRetentionBackup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionBackup", + modelProperties: { + ...ProxyResource.type.modelProperties, + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - schema: { - serializedName: "properties.schema", + serverCreateTime: { + serializedName: "properties.serverCreateTime", + readOnly: true, type: { - name: "Composite", - className: "SyncGroupSchema" + name: "DateTime" } }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } } } } }; -export const SyncMember: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMember", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { name: "String" } }, - syncAgentId: { - serializedName: "properties.syncAgentId", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - serverName: { - serializedName: "properties.serverName", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, type: { name: "String" } + } + } + } +}; + +export const RestorableDroppedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } }, - databaseName: { - serializedName: "properties.databaseName", + location: { + serializedName: "location", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - password: { - serializedName: "properties.password", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + readOnly: true, type: { - name: "String" + name: "Number" } }, - syncState: { - serializedName: "properties.syncState", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const TimeZone: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TimeZone", - modelProperties: { - ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", + }, + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - displayName: { - serializedName: "properties.displayName", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const UpdateManagedInstanceDnsServersOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateManagedInstanceDnsServersOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" @@ -12519,27 +13127,28 @@ export const UpdateManagedInstanceDnsServersOperation: coreClient.CompositeMappe } }; -export const VirtualNetworkRule: coreClient.CompositeMapper = { +export const ServerConnectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRule", + className: "ServerConnectionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + connectionType: { + serializedName: "properties.connectionType", type: { name: "String" } @@ -12548,221 +13157,219 @@ export const VirtualNetworkRule: coreClient.CompositeMapper = { } }; -export const WorkloadClassifier: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifier", + className: "DistributedAvailabilityGroup", modelProperties: { ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", - type: { - name: "String" - } - }, - label: { - serializedName: "properties.label", + targetDatabase: { + serializedName: "properties.targetDatabase", type: { name: "String" } }, - context: { - serializedName: "properties.context", + sourceEndpoint: { + serializedName: "properties.sourceEndpoint", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + primaryAvailabilityGroupName: { + serializedName: "properties.primaryAvailabilityGroupName", type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + secondaryAvailabilityGroupName: { + serializedName: "properties.secondaryAvailabilityGroupName", type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + replicationMode: { + serializedName: "properties.replicationMode", 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", + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", + sourceReplicaId: { + serializedName: "properties.sourceReplicaId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + targetReplicaId: { + serializedName: "properties.targetReplicaId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - importance: { - serializedName: "properties.importance", + linkState: { + serializedName: "properties.linkState", + readOnly: true, type: { name: "String" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + lastHardenedLsn: { + serializedName: "properties.lastHardenedLsn", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { +export const ServerTrustCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption", + className: "ServerTrustCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + publicBlob: { + serializedName: "properties.publicBlob", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + certificateName: { + serializedName: "properties.certificateName", + readOnly: true, + type: { + name: "String" } } } } }; -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const EndpointCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "EndpointCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + publicBlob: { + serializedName: "properties.publicBlob", type: { - name: "Number" + name: "String" } } } } }; -export const DatabaseExtensions: coreClient.CompositeMapper = { +export const ReplicationLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseExtensions", + className: "ReplicationLink", modelProperties: { ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", + partnerServer: { + serializedName: "properties.partnerServer", + readOnly: true, type: { name: "String" } }, - storageKeyType: { - serializedName: "properties.storageKeyType", + partnerDatabase: { + serializedName: "properties.partnerDatabase", + readOnly: true, type: { name: "String" } }, - storageKey: { - serializedName: "properties.storageKey", + partnerLocation: { + serializedName: "properties.partnerLocation", + readOnly: true, type: { name: "String" } }, - storageUri: { - serializedName: "properties.storageUri", + role: { + serializedName: "properties.role", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] } - } - } - } -}; - -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportExportExtensionsOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + }, + partnerRole: { + serializedName: "properties.partnerRole", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] } }, - requestType: { - serializedName: "properties.requestType", + replicationMode: { + serializedName: "properties.replicationMode", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - serverName: { - serializedName: "properties.serverName", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", + replicationState: { + serializedName: "properties.replicationState", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + isTerminationAllowed: { + serializedName: "properties.isTerminationAllowed", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - errorMessage: { - serializedName: "properties.errorMessage", + linkType: { + serializedName: "properties.linkType", readOnly: true, type: { name: "String" @@ -12772,144 +13379,151 @@ export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = } }; -export const DatabaseOperation: coreClient.CompositeMapper = { +export const SensitivityLabel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperation", + className: "SensitivityLabel", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + managedBy: { + serializedName: "managedBy", readOnly: true, type: { name: "String" } }, - operation: { - serializedName: "properties.operation", + schemaName: { + serializedName: "properties.schemaName", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + tableName: { + serializedName: "properties.tableName", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + columnName: { + serializedName: "properties.columnName", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + labelId: { + serializedName: "properties.labelId", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + informationType: { + serializedName: "properties.informationType", type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + informationTypeId: { + serializedName: "properties.informationTypeId", type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", + isDisabled: { + serializedName: "properties.isDisabled", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + rank: { + serializedName: "properties.rank", type: { - name: "Number" + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] + } + } + } + } +}; + +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabelUpdate", + modelProperties: { + ...ProxyResource.type.modelProperties, + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["set", "remove"] } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + table: { + serializedName: "properties.table", type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", type: { - name: "Boolean" + name: "Composite", + className: "SensitivityLabel" } } } } }; -export const DatabaseUsage: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsage", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + op: { + serializedName: "properties.op", type: { - name: "String" + name: "Enum", + allowedValues: ["enable", "disable"] } }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + table: { + serializedName: "properties.table", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "properties.unit", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } @@ -12918,350 +13532,419 @@ export const DatabaseUsage: coreClient.CompositeMapper = { } }; -export const LedgerDigestUploads: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploads", + className: "ServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", + type: { + name: "Boolean" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + }, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, state: { serializedName: "properties.state", - readOnly: true, type: { name: "Enum", allowedValues: ["Enabled", "Disabled"] } - } - } - } -}; - -export const OutboundFirewallRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundFirewallRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const ReplicationLink: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLink", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - partnerServer: { - serializedName: "properties.partnerServer", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - partnerDatabase: { - serializedName: "properties.partnerDatabase", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - partnerLocation: { - serializedName: "properties.partnerLocation", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - role: { - serializedName: "properties.role", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "Boolean" } }, - partnerRole: { - serializedName: "properties.partnerRole", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "Boolean" } }, - replicationMode: { - serializedName: "properties.replicationMode", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "DateTime" + name: "Boolean" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - isTerminationAllowed: { - serializedName: "properties.isTerminationAllowed", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Boolean" + name: "String" } }, - linkType: { - serializedName: "properties.linkType", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const ImportExportOperationResult: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportOperationResult", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { - name: "Uuid" + name: "String" } }, - requestType: { - serializedName: "properties.requestType", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - queuedTime: { - serializedName: "properties.queuedTime", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - blobUri: { - serializedName: "properties.blobUri", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - status: { - serializedName: "properties.status", - readOnly: true, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" - } - } + name: "Uuid" } } } } }; -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupOperationResult", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", + type: { + name: "Boolean" + } + }, + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Uuid" + name: "Boolean" } }, - operationType: { - serializedName: "properties.operationType", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - message: { - serializedName: "properties.message", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const LongTermRetentionBackup: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackup", + className: "DatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - serverCreateTime: { - serializedName: "properties.serverCreateTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - databaseName: { - serializedName: "properties.databaseName", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + } + } + } +}; + +export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "DateTime" + name: "Composite", + className: "SystemData" } }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { name: "DateTime" } - }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + } + } + } +}; + +export const ManagedServerDnsAlias: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAlias", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", readOnly: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + publicAzureDnsRecord: { + serializedName: "properties.publicAzureDnsRecord", + readOnly: true, type: { name: "String" } @@ -13270,228 +13953,247 @@ export const LongTermRetentionBackup: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", + className: "ManagedDatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", - readOnly: true, - type: { - name: "String" - } - }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "DateTime" + name: "Composite", + className: "SystemData" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { name: "DateTime" } - }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "DateTime" + name: "Composite", + className: "SystemData" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "ManagedDatabaseMoveOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - location: { - serializedName: "location", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "DateTime" } }, - databaseName: { - serializedName: "properties.databaseName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + operationMode: { + serializedName: "properties.operationMode", readOnly: true, type: { - name: "Number" + name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + sourceManagedInstanceName: { + serializedName: "properties.sourceManagedInstanceName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", + targetManagedInstanceName: { + serializedName: "properties.targetManagedInstanceName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + targetManagedInstanceId: { + serializedName: "properties.targetManagedInstanceId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerConnectionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerConnectionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + }, + sourceDatabaseName: { + serializedName: "properties.sourceDatabaseName", + readOnly: true, + type: { + name: "String" + } + }, + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", + readOnly: true, + type: { + name: "String" + } + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } + }, + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "String" + name: "Number" } }, - kind: { - serializedName: "kind", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { name: "String" } }, - connectionType: { - serializedName: "properties.connectionType", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "String" + name: "Number" + } + }, + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, + type: { + name: "Boolean" } } } } }; -export const ElasticPool: coreClient.CompositeMapper = { +export const ManagedInstanceDtc: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPool", + className: "ManagedInstanceDtc", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + dtcEnabled: { + serializedName: "properties.dtcEnabled", type: { - name: "Composite", - className: "Sku" + name: "Boolean" } }, - kind: { - serializedName: "kind", - readOnly: true, + securitySettings: { + serializedName: "properties.securitySettings", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings" } }, - state: { - serializedName: "properties.state", - readOnly: true, + externalDnsSuffixSearchList: { + serializedName: "properties.externalDnsSuffixSearchList", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - creationDate: { - serializedName: "properties.creationDate", + dtcHostNameDnsSuffix: { + serializedName: "properties.dtcHostNameDnsSuffix", readOnly: true, type: { - name: "DateTime" - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + } + } + } +}; + +export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateVirtualClusterDnsServersOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } @@ -13682,47 +14384,6 @@ export const ManagedDatabase: coreClient.CompositeMapper = { } }; -export const VirtualCluster: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualCluster", - modelProperties: { - ...TrackedResource.type.modelProperties, - subnetId: { - serializedName: "properties.subnetId", - readOnly: true, - type: { - name: "String" - } - }, - family: { - serializedName: "properties.family", - type: { - name: "String" - } - }, - childResources: { - serializedName: "properties.childResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - } - } - } -}; - export const Server: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14118,10 +14779,10 @@ export const Database: coreClient.CompositeMapper = { name: "Uuid" } }, - primaryDelegatedIdentityClientId: { - serializedName: "properties.primaryDelegatedIdentityClientId", + sourceResourceId: { + serializedName: "properties.sourceResourceId", type: { - name: "Uuid" + name: "String" } } } @@ -14378,6 +15039,116 @@ export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { } }; +export const ElasticPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + } + } + } +}; + +export const VirtualCluster: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualCluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + childResources: { + serializedName: "properties.childResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14399,3 +15170,25 @@ export const FirewallRule: coreClient.CompositeMapper = { } } }; + +export const IPv6FirewallRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPv6FirewallRule", + modelProperties: { + ...ProxyResourceWithWritableName.type.modelProperties, + startIPv6Address: { + serializedName: "properties.startIPv6Address", + type: { + name: "String" + } + }, + endIPv6Address: { + serializedName: "properties.endIPv6Address", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 05db327b8b26..d799aec6f05c 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -17,17 +17,12 @@ import { GeoBackupPolicy as GeoBackupPolicyMapper, Database as DatabaseMapper, DatabaseUpdate as DatabaseUpdateMapper, - ResourceMoveDefinition as ResourceMoveDefinitionMapper, - ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, ExportDatabaseDefinition as ExportDatabaseDefinitionMapper, + ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, + ResourceMoveDefinition as ResourceMoveDefinitionMapper, ElasticPool as ElasticPoolMapper, ElasticPoolUpdate as ElasticPoolUpdateMapper, - UnlinkParameters as UnlinkParametersMapper, ServerCommunicationLink as ServerCommunicationLinkMapper, - ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, - ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, - ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, - DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, Advisor as AdvisorMapper, DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, RecommendedAction as RecommendedActionMapper, @@ -55,9 +50,6 @@ import { ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, ManagedDatabaseSecurityAlertPolicy as ManagedDatabaseSecurityAlertPolicyMapper, - SensitivityLabel as SensitivityLabelMapper, - SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, - RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, ManagedTransparentDataEncryption as ManagedTransparentDataEncryptionMapper, ManagedInstanceAdministrator as ManagedInstanceAdministratorMapper, ManagedInstanceAzureADOnlyAuthentication as ManagedInstanceAzureADOnlyAuthenticationMapper, @@ -83,7 +75,6 @@ import { SyncAgent as SyncAgentMapper, SyncGroup as SyncGroupMapper, SyncMember as SyncMemberMapper, - VirtualClusterUpdate as VirtualClusterUpdateMapper, VirtualNetworkRule as VirtualNetworkRuleMapper, WorkloadClassifier as WorkloadClassifierMapper, WorkloadGroup as WorkloadGroupMapper, @@ -100,7 +91,25 @@ import { UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, ManagedInstance as ManagedInstanceMapper, ManagedInstanceUpdate as ManagedInstanceUpdateMapper, - ServerConnectionPolicy as ServerConnectionPolicyMapper + ServerConnectionPolicy as ServerConnectionPolicyMapper, + DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, + ServerTrustCertificate as ServerTrustCertificateMapper, + IPv6FirewallRule as IPv6FirewallRuleMapper, + SensitivityLabel as SensitivityLabelMapper, + SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, + RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, + ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, + DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, + ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, + ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, + DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, + ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, + ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, + ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, + ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, + ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, + ManagedInstanceDtc as ManagedInstanceDtcMapper, + VirtualClusterUpdate as VirtualClusterUpdateMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -287,15 +296,9 @@ export const parameters4: OperationParameter = { mapper: DatabaseUpdateMapper }; -export const elasticPoolName: OperationURLParameter = { - parameterPath: "elasticPoolName", - mapper: { - serializedName: "elasticPoolName", - required: true, - type: { - name: "String" - } - } +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: ExportDatabaseDefinitionMapper }; export const replicaType: OperationQueryParameter = { @@ -308,11 +311,6 @@ export const replicaType: OperationQueryParameter = { } }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper -}; - export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: ImportExistingDatabaseDefinitionMapper @@ -320,7 +318,18 @@ export const parameters6: OperationParameter = { export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ExportDatabaseDefinitionMapper + mapper: ResourceMoveDefinitionMapper +}; + +export const elasticPoolName: OperationURLParameter = { + parameterPath: "elasticPoolName", + mapper: { + serializedName: "elasticPoolName", + required: true, + type: { + name: "String" + } + } }; export const nextLink: OperationURLParameter = { @@ -348,7 +357,7 @@ export const skip: OperationQueryParameter = { export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2020-11-01-preview", + defaultValue: "2021-08-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -367,34 +376,6 @@ export const parameters9: OperationParameter = { mapper: ElasticPoolUpdateMapper }; -export const linkId: OperationURLParameter = { - parameterPath: "linkId", - mapper: { - serializedName: "linkId", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters10: OperationParameter = { - parameterPath: "parameters", - mapper: UnlinkParametersMapper -}; - -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-02-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const communicationLinkName: OperationURLParameter = { parameterPath: "communicationLinkName", mapper: { @@ -406,7 +387,7 @@ export const communicationLinkName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: ServerCommunicationLinkMapper }; @@ -422,42 +403,22 @@ export const serviceObjectiveName: OperationURLParameter = { } }; -export const blobAuditingPolicyName: OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", +export const expand: OperationQueryParameter = { + parameterPath: ["options", "expand"], mapper: { - defaultValue: "default", - isConstant: true, - serializedName: "blobAuditingPolicyName", + serializedName: "$expand", type: { name: "String" } } }; -export const parameters12: OperationParameter = { - parameterPath: "parameters", - mapper: ExtendedDatabaseBlobAuditingPolicyMapper -}; - -export const parameters13: OperationParameter = { - parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper -}; - -export const parameters14: OperationParameter = { - parameterPath: "parameters", - mapper: ServerBlobAuditingPolicyMapper -}; - -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseBlobAuditingPolicyMapper -}; - -export const expand: OperationQueryParameter = { - parameterPath: ["options", "expand"], +export const apiVersion3: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "$expand", + defaultValue: "2020-11-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } @@ -475,12 +436,12 @@ export const advisorName: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: AdvisorMapper }; -export const parameters17: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DatabaseAutomaticTuningMapper }; @@ -613,7 +574,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -629,7 +590,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -668,12 +629,12 @@ export const baselineName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper }; -export const parameters21: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: DatabaseVulnerabilityAssessmentMapper }; @@ -744,7 +705,7 @@ export const encryptionProtectorName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: EncryptionProtectorMapper }; @@ -760,12 +721,12 @@ export const failoverGroupName: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: FailoverGroupMapper }; -export const parameters24: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: FailoverGroupUpdateMapper }; @@ -781,17 +742,17 @@ export const firewallRuleName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: FirewallRuleMapper }; -export const parameters26: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: FirewallRuleListMapper }; -export const parameters27: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: InstanceFailoverGroupMapper }; @@ -807,12 +768,12 @@ export const instancePoolName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolMapper }; -export const parameters29: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolUpdateMapper }; @@ -828,12 +789,12 @@ export const jobAgentName: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: JobAgentMapper }; -export const parameters31: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: JobAgentUpdateMapper }; @@ -849,7 +810,7 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: JobCredentialMapper }; @@ -936,7 +897,7 @@ export const jobExecutionId: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: JobMapper }; @@ -963,7 +924,7 @@ export const jobVersion: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: JobStepMapper }; @@ -990,7 +951,7 @@ export const targetGroupName: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: JobTargetGroupMapper }; @@ -1016,7 +977,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: LongTermRetentionPolicyMapper }; @@ -1043,7 +1004,7 @@ export const maintenanceWindowName: OperationQueryParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: MaintenanceWindowsMapper }; @@ -1070,7 +1031,7 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: ManagedBackupShortTermRetentionPolicyMapper }; @@ -1127,97 +1088,26 @@ export const restoreDetailsName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseMapper }; -export const parameters40: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseUpdateMapper }; -export const parameters41: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: CompleteDatabaseRestoreDefinitionMapper }; -export const parameters42: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseSecurityAlertPolicyMapper }; -export const sensitivityLabelSource: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - serializedName: "sensitivityLabelSource", - required: true, - type: { - name: "Enum", - allowedValues: ["current", "recommended"] - } - } -}; - -export const parameters43: OperationParameter = { - parameterPath: "parameters", - mapper: SensitivityLabelMapper -}; - -export const sensitivityLabelSource1: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - defaultValue: "current", - isConstant: true, - serializedName: "sensitivityLabelSource", - type: { - name: "String" - } - } -}; - -export const sensitivityLabelSource2: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - defaultValue: "recommended", - isConstant: true, - serializedName: "sensitivityLabelSource", - type: { - name: "String" - } - } -}; - -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], - mapper: { - serializedName: "$count", - type: { - name: "Boolean" - } - } -}; - -export const parameters44: OperationParameter = { - parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper -}; - -export const includeDisabledRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includeDisabledRecommendations"], - mapper: { - serializedName: "includeDisabledRecommendations", - type: { - name: "Boolean" - } - } -}; - -export const parameters45: OperationParameter = { - parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper -}; - export const tdeName: OperationURLParameter = { parameterPath: "tdeName", mapper: { @@ -1229,7 +1119,7 @@ export const tdeName: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: ManagedTransparentDataEncryptionMapper }; @@ -1245,7 +1135,7 @@ export const administratorName: OperationURLParameter = { } }; -export const parameters47: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAdministratorMapper }; @@ -1261,12 +1151,12 @@ export const authenticationName: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAzureADOnlyAuthenticationMapper }; -export const parameters49: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceEncryptionProtectorMapper }; @@ -1282,7 +1172,7 @@ export const keyName: OperationURLParameter = { } }; -export const parameters50: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceKeyMapper }; @@ -1298,7 +1188,7 @@ export const policyName2: OperationURLParameter = { } }; -export const parameters51: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceLongTermRetentionPolicyMapper }; @@ -1314,7 +1204,7 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstancePrivateEndpointConnectionMapper }; @@ -1330,12 +1220,12 @@ export const groupName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: TdeCertificateMapper }; -export const parameters54: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceVulnerabilityAssessmentMapper }; @@ -1351,12 +1241,12 @@ export const restorableDroppedDatabaseId: OperationURLParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: ManagedServerSecurityAlertPolicyMapper }; -export const parameters56: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; @@ -1372,7 +1262,7 @@ export const recoverableDatabaseName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: CreateDatabaseRestorePointDefinitionMapper }; @@ -1388,17 +1278,17 @@ export const restorePointName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: ServerAutomaticTuningMapper }; -export const parameters59: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: ServerAzureADAdministratorMapper }; -export const parameters60: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: ServerAzureADOnlyAuthenticationMapper }; @@ -1414,7 +1304,7 @@ export const devOpsAuditingSettingsName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: ServerDevOpsAuditingSettingsMapper }; @@ -1430,17 +1320,17 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: ServerDnsAliasAcquisitionMapper }; -export const parameters63: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: ServerKeyMapper }; -export const parameters64: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: ServerSecurityAlertPolicyMapper }; @@ -1456,17 +1346,17 @@ export const serverTrustGroupName: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: ServerTrustGroupMapper }; -export const parameters66: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: ServerVulnerabilityAssessmentMapper }; -export const parameters67: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: SqlAgentConfigurationMapper }; @@ -1493,7 +1383,7 @@ export const syncAgentName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: SyncAgentMapper }; @@ -1552,7 +1442,7 @@ export const continuationToken: OperationQueryParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: SyncGroupMapper }; @@ -1568,7 +1458,7 @@ export const syncMemberName: OperationURLParameter = { } }; -export const parameters70: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: SyncMemberMapper }; @@ -1584,22 +1474,6 @@ export const timeZoneId: OperationURLParameter = { } }; -export const virtualClusterName: OperationURLParameter = { - parameterPath: "virtualClusterName", - mapper: { - serializedName: "virtualClusterName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters71: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualClusterUpdateMapper -}; - export const virtualNetworkRuleName: OperationURLParameter = { parameterPath: "virtualNetworkRuleName", mapper: { @@ -1611,7 +1485,7 @@ export const virtualNetworkRuleName: OperationURLParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkRuleMapper }; @@ -1638,17 +1512,29 @@ export const workloadClassifierName: OperationURLParameter = { } }; -export const parameters73: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: WorkloadClassifierMapper }; -export const parameters74: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: WorkloadGroupMapper }; -export const parameters75: OperationParameter = { +export const apiVersion4: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-02-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: LogicalDatabaseTransparentDataEncryptionMapper }; @@ -1664,7 +1550,7 @@ export const policyName3: OperationURLParameter = { } }; -export const parameters76: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: BackupShortTermRetentionPolicyMapper }; @@ -1680,7 +1566,7 @@ export const extensionName: OperationURLParameter = { } }; -export const parameters77: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: DatabaseExtensionsMapper }; @@ -1696,7 +1582,7 @@ export const ledgerDigestUploads: OperationURLParameter = { } }; -export const parameters78: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: LedgerDigestUploadsMapper }; @@ -1712,27 +1598,27 @@ export const outboundRuleFqdn: OperationURLParameter = { } }; -export const parameters79: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: OutboundFirewallRuleMapper }; -export const parameters80: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: ServerMapper }; -export const parameters81: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: ServerUpdateMapper }; -export const parameters82: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: ImportNewDatabaseDefinitionMapper }; -export const parameters83: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: CheckNameAvailabilityRequestMapper }; @@ -1747,7 +1633,7 @@ export const expandChildren: OperationQueryParameter = { } }; -export const parameters84: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: CopyLongTermRetentionBackupParametersMapper }; @@ -1785,7 +1671,7 @@ export const backupName: OperationURLParameter = { } }; -export const parameters85: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: UpdateLongTermRetentionBackupParametersMapper }; @@ -1810,12 +1696,12 @@ export const databaseState: OperationQueryParameter = { } }; -export const parameters86: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceMapper }; -export const parameters87: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceUpdateMapper }; @@ -1871,7 +1757,278 @@ export const connectionPolicyName: OperationURLParameter = { } }; -export const parameters88: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: ServerConnectionPolicyMapper }; + +export const apiVersion5: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-11-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const distributedAvailabilityGroupName: OperationURLParameter = { + parameterPath: "distributedAvailabilityGroupName", + mapper: { + serializedName: "distributedAvailabilityGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupMapper +}; + +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", + mapper: { + serializedName: "certificateName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters81: OperationParameter = { + parameterPath: "parameters", + mapper: ServerTrustCertificateMapper +}; + +export const parameters82: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const endpointType: OperationURLParameter = { + parameterPath: "endpointType", + mapper: { + serializedName: "endpointType", + required: true, + type: { + name: "String" + } + } +}; + +export const linkId: OperationURLParameter = { + parameterPath: "linkId", + mapper: { + serializedName: "linkId", + required: true, + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + serializedName: "sensitivityLabelSource", + required: true, + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } +}; + +export const parameters83: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelMapper +}; + +export const sensitivityLabelSource1: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "current", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource2: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "recommended", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "$count", + type: { + name: "Boolean" + } + } +}; + +export const parameters84: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelUpdateListMapper +}; + +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], + mapper: { + serializedName: "includeDisabledRecommendations", + type: { + name: "Boolean" + } + } +}; + +export const parameters85: OperationParameter = { + parameterPath: "parameters", + mapper: RecommendedSensitivityLabelUpdateListMapper +}; + +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", + mapper: { + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", + type: { + name: "String" + } + } +}; + +export const parameters86: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper +}; + +export const parameters87: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseBlobAuditingPolicyMapper +}; + +export const parameters88: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedDatabaseBlobAuditingPolicyMapper +}; + +export const parameters89: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedServerBlobAuditingPolicyMapper +}; + +export const advancedThreatProtectionName: OperationURLParameter = { + parameterPath: "advancedThreatProtectionName", + mapper: { + serializedName: "advancedThreatProtectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters90: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseAdvancedThreatProtectionMapper +}; + +export const parameters91: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAdvancedThreatProtectionMapper +}; + +export const parameters92: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasCreationMapper +}; + +export const parameters93: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasAcquisitionMapper +}; + +export const apiVersion6: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-02-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const parameters94: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseAdvancedThreatProtectionMapper +}; + +export const parameters95: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAdvancedThreatProtectionMapper +}; + +export const apiVersion7: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-05-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const dtcName: OperationURLParameter = { + parameterPath: "dtcName", + mapper: { + serializedName: "dtcName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters96: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceDtcMapper +}; + +export const virtualClusterName: OperationURLParameter = { + parameterPath: "virtualClusterName", + mapper: { + serializedName: "virtualClusterName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters97: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualClusterUpdateMapper +}; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index 57b252184276..5e4fa5bde3f2 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -425,7 +425,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,8 +456,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -489,8 +489,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -513,7 +513,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -533,7 +533,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts index 53f451b0be0f..fd1dde5eea32 100644 --- a/sdk/sql/arm-sql/src/operations/capabilities.ts +++ b/sdk/sql/arm-sql/src/operations/capabilities.ts @@ -56,7 +56,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.include], + queryParameters: [Parameters.apiVersion3, Parameters.include], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts index 5ba896e91b52..c6b850cf4635 100644 --- a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -201,7 +201,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -223,7 +223,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -243,7 +243,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..563f3c9f8530 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts @@ -0,0 +1,319 @@ +/* + * 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 { DatabaseAdvancedThreatProtectionSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + DatabaseAdvancedThreatProtection, + DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams, + DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams, + DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse, + AdvancedThreatProtectionName, + DatabaseAdvancedThreatProtectionSettingsGetOptionalParams, + DatabaseAdvancedThreatProtectionSettingsGetResponse, + DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse, + DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse +} from "../models"; + +/// +/** Class containing DatabaseAdvancedThreatProtectionSettings operations. */ +export class DatabaseAdvancedThreatProtectionSettingsImpl + implements DatabaseAdvancedThreatProtectionSettings { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseAdvancedThreatProtectionSettings class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of database's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + serverName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): AsyncIterableIterator { + let result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of database's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + advancedThreatProtectionName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The database Advanced Threat Protection state. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: DatabaseAdvancedThreatProtection, + options?: DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + advancedThreatProtectionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * ListByDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param options The options parameters. + */ + private _listByDatabaseNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + nextLink: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + ): Promise< + DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseAdvancedThreatProtection + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatabaseAdvancedThreatProtection + }, + 201: { + bodyMapper: Mappers.DatabaseAdvancedThreatProtection + }, + default: {} + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts index d53ea09563bc..a4249c7417a5 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts @@ -124,7 +124,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -145,7 +145,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -167,8 +167,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts index 40c5b9528916..379b637b528f 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts @@ -87,7 +87,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -108,8 +108,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters17, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts index ed3be063067d..4105a110c10b 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -16,11 +16,11 @@ import { DatabaseBlobAuditingPolicy, DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams, DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams, + DatabaseBlobAuditingPoliciesListByDatabaseResponse, DatabaseBlobAuditingPoliciesGetOptionalParams, DatabaseBlobAuditingPoliciesGetResponse, DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams, DatabaseBlobAuditingPoliciesCreateOrUpdateResponse, - DatabaseBlobAuditingPoliciesListByDatabaseResponse, DatabaseBlobAuditingPoliciesListByDatabaseNextResponse } from "../models"; @@ -120,64 +120,64 @@ export class DatabaseBlobAuditingPoliciesImpl } /** - * Gets a database's blob auditing policy. + * Lists auditing settings of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseBlobAuditingPoliciesGetOptionalParams - ): Promise { + options?: DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + listByDatabaseOperationSpec ); } /** - * Creates or updates a database's blob auditing policy. + * Gets a database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The database blob auditing policy. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DatabaseBlobAuditingPolicy, - options?: DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: DatabaseBlobAuditingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, databaseName, options }, + getOperationSpec ); } /** - * Lists auditing settings of a database. + * Creates or updates a database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param parameters The database blob auditing policy. * @param options The options parameters. */ - private _listByDatabase( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - ): Promise { + parameters: DatabaseBlobAuditingPolicy, + options?: DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + createOrUpdateOperationSpec ); } @@ -206,43 +206,38 @@ export class DatabaseBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy + bodyMapper: Mappers.DatabaseBlobAuditingPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName, - Parameters.blobAuditingPolicyName + Parameters.databaseName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DatabaseBlobAuditingPolicy }, - 201: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy - }, default: {} }, - requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -251,29 +246,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.databaseName, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicyListResult + bodyMapper: Mappers.DatabaseBlobAuditingPolicy + }, + 201: { + bodyMapper: Mappers.DatabaseBlobAuditingPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters87, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -285,7 +285,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts index 782b41a6da24..119353dfeeb3 100644 --- a/sdk/sql/arm-sql/src/operations/databaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/databaseColumns.ts @@ -374,7 +374,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.schema, Parameters.table, Parameters.column, @@ -401,7 +401,7 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -424,7 +424,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -448,7 +448,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.schema, Parameters.table, Parameters.column, @@ -475,7 +475,7 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts index f9bb253bde17..9916e7033aca 100644 --- a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -304,7 +304,7 @@ const getOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", httpMethod: "GET", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,8 +334,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters77, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -358,7 +358,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -378,7 +378,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseOperations.ts b/sdk/sql/arm-sql/src/operations/databaseOperations.ts index cda6e70350de..4fc761479596 100644 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseOperations.ts @@ -187,7 +187,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -208,7 +208,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -228,7 +228,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts index 821ad27ded44..cd1f17fe60a3 100644 --- a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts +++ b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts @@ -141,7 +141,7 @@ const listByDatabaseAdvisorOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -163,7 +163,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -186,8 +186,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters18, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts index 5c4fb897d8df..c28ce5bc59a4 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -193,7 +193,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -214,7 +214,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -235,7 +235,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index 5fce417708a6..a2b021c4e37d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -234,7 +234,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -259,8 +259,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -283,7 +283,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -303,7 +303,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts index 4a9fed118c7b..153661435834 100644 --- a/sdk/sql/arm-sql/src/operations/databaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -222,7 +222,7 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -244,7 +244,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -266,7 +266,7 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts index 5fda9176fb65..92a698788a7b 100644 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ b/sdk/sql/arm-sql/src/operations/databaseUsages.ts @@ -169,7 +169,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -189,7 +189,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index c4b1fc78813d..097c72b61f85 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,7 +161,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -185,8 +185,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -206,7 +206,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts index f9facc06946d..4725dbc6c803 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -367,7 +367,7 @@ const initiateScanOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -389,7 +389,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -411,7 +411,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -437,7 +437,7 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -459,7 +459,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts index 2deb11357277..69afd1560277 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -266,7 +266,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -291,8 +291,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -310,7 +310,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -331,7 +331,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -351,7 +351,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index 104ac72c261c..92bc63044be2 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -37,22 +37,22 @@ import { DatabaseUpdate, DatabasesUpdateOptionalParams, DatabasesUpdateResponse, - DatabasesListByElasticPoolResponse, + ExportDatabaseDefinition, + DatabasesExportOptionalParams, + DatabasesExportResponse, DatabasesFailoverOptionalParams, - DatabasesListInaccessibleByServerResponse, + ImportExistingDatabaseDefinition, + DatabasesImportOptionalParams, + DatabasesImportResponse, + ResourceMoveDefinition, + DatabasesRenameOptionalParams, DatabasesPauseOptionalParams, DatabasesPauseResponse, DatabasesResumeOptionalParams, DatabasesResumeResponse, DatabasesUpgradeDataWarehouseOptionalParams, - ResourceMoveDefinition, - DatabasesRenameOptionalParams, - ImportExistingDatabaseDefinition, - DatabasesImportOptionalParams, - DatabasesImportResponse, - ExportDatabaseDefinition, - DatabasesExportOptionalParams, - DatabasesExportResponse, + DatabasesListByElasticPoolResponse, + DatabasesListInaccessibleByServerResponse, DatabasesListByServerNextResponse, DatabasesListByElasticPoolNextResponse, DatabasesListInaccessibleByServerNextResponse @@ -810,43 +810,30 @@ export class DatabasesImpl implements Databases { } /** - * Gets a list of databases in an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: DatabasesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } - - /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - async beginFailover( + async beginExport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise, void>> { + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesExportResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -884,8 +871,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, options }, - failoverOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + exportOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -896,69 +883,49 @@ export class DatabasesImpl implements Databases { } /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - async beginFailoverAndWait( + async beginExportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise { - const poller = await this.beginFailover( + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise { + const poller = await this.beginExport( resourceGroupName, serverName, databaseName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a list of inaccessible databases in a logical server - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listInaccessibleByServer( - resourceGroupName: string, - serverName: string, - options?: DatabasesListInaccessibleByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listInaccessibleByServerOperationSpec - ); - } - - /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - async beginPause( + async beginFailover( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesPauseResponse - > - > { + options?: DatabasesFailoverOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -997,7 +964,7 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, { resourceGroupName, serverName, databaseName, options }, - pauseOperationSpec + failoverOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1008,20 +975,20 @@ export class DatabasesImpl implements Databases { } /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - async beginPauseAndWait( + async beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise { - const poller = await this.beginPause( + options?: DatabasesFailoverOptionalParams + ): Promise { + const poller = await this.beginFailover( resourceGroupName, serverName, databaseName, @@ -1031,28 +998,30 @@ export class DatabasesImpl implements Databases { } /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - async beginResume( + async beginImport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesResumeResponse + PollOperationState, + DatabasesImportResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1090,8 +1059,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, options }, - resumeOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + importOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1102,46 +1071,76 @@ export class DatabasesImpl implements Databases { } /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - async beginResumeAndWait( + async beginImportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams - ): Promise { - const poller = await this.beginResume( + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams + ): Promise { + const poller = await this.beginImport( resourceGroupName, serverName, databaseName, + parameters, options ); return poller.pollUntilDone(); } /** - * Upgrades a data warehouse. + * Renames a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to rename. + * @param parameters The resource move definition for renaming this database. * @param options The options parameters. */ - async beginUpgradeDataWarehouse( + rename( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise, void>> { + parameters: ResourceMoveDefinition, + options?: DatabasesRenameOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, parameters, options }, + renameOperationSpec + ); + } + + /** + * Pauses a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database to be paused. + * @param options The options parameters. + */ + async beginPause( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabasesPauseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesPauseResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1180,7 +1179,7 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, { resourceGroupName, serverName, databaseName, options }, - upgradeDataWarehouseOperationSpec + pauseOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1191,20 +1190,20 @@ export class DatabasesImpl implements Databases { } /** - * Upgrades a data warehouse. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to be paused. * @param options The options parameters. */ - async beginUpgradeDataWarehouseAndWait( + async beginPauseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise { - const poller = await this.beginUpgradeDataWarehouse( + options?: DatabasesPauseOptionalParams + ): Promise { + const poller = await this.beginPause( resourceGroupName, serverName, databaseName, @@ -1214,52 +1213,28 @@ export class DatabasesImpl implements Databases { } /** - * Renames a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. - * @param options The options parameters. - */ - rename( - resourceGroupName: string, - serverName: string, - databaseName: string, - parameters: ResourceMoveDefinition, - options?: DatabasesRenameOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - renameOperationSpec - ); - } - - /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - async beginImport( + async beginResume( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams + options?: DatabasesResumeOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesImportResponse + PollOperationState, + DatabasesResumeResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1297,8 +1272,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, parameters, options }, - importOperationSpec + { resourceGroupName, serverName, databaseName, options }, + resumeOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1309,56 +1284,46 @@ export class DatabasesImpl implements Databases { } /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - async beginImportAndWait( + async beginResumeAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams - ): Promise { - const poller = await this.beginImport( + options?: DatabasesResumeOptionalParams + ): Promise { + const poller = await this.beginResume( resourceGroupName, serverName, databaseName, - parameters, options ); return poller.pollUntilDone(); } /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - async beginExport( + async beginUpgradeDataWarehouse( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesExportResponse - > - > { + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -1396,8 +1361,8 @@ export class DatabasesImpl implements Databases { const lro = new LroImpl( sendOperation, - { resourceGroupName, serverName, databaseName, parameters, options }, - exportOperationSpec + { resourceGroupName, serverName, databaseName, options }, + upgradeDataWarehouseOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -1408,31 +1373,66 @@ export class DatabasesImpl implements Databases { } /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - async beginExportAndWait( + async beginUpgradeDataWarehouseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise { - const poller = await this.beginExport( + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise { + const poller = await this.beginUpgradeDataWarehouse( resourceGroupName, serverName, databaseName, - parameters, options ); return poller.pollUntilDone(); } + /** + * Gets a list of databases in an elastic pool. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param elasticPoolName The name of the elastic pool. + * @param options The options parameters. + */ + private _listByElasticPool( + resourceGroupName: string, + serverName: string, + elasticPoolName: string, + options?: DatabasesListByElasticPoolOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, elasticPoolName, options }, + listByElasticPoolOperationSpec + ); + } + + /** + * Gets a list of inaccessible databases in a logical server + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listInaccessibleByServer( + resourceGroupName: string, + serverName: string, + options?: DatabasesListInaccessibleByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listInaccessibleByServerOperationSpec + ); + } + /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1659,25 +1659,36 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { +const exportOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DatabaseListResult + bodyMapper: Mappers.ImportExportOperationResult + }, + 201: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 202: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 204: { + bodyMapper: Mappers.ImportExportOperationResult }, default: {} }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName + Parameters.databaseName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const failoverOperationSpec: coreClient.OperationSpec = { @@ -1695,24 +1706,54 @@ const failoverOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { +const importOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DatabaseListResult + bodyMapper: Mappers.ImportExportOperationResult + }, + 201: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 202: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 204: { + bodyMapper: Mappers.ImportExportOperationResult }, default: {} }, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.databaseName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const renameOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", serializer }; const pauseOperationSpec: coreClient.OperationSpec = { @@ -1790,86 +1831,45 @@ const upgradeDataWarehouseOperationSpec: coreClient.OperationSpec = { ], serializer }; -const renameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer -}; -const importOperationSpec: coreClient.OperationSpec = { +const listByElasticPoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 201: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 202: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 204: { - bodyMapper: Mappers.ImportExportOperationResult + bodyMapper: Mappers.DatabaseListResult }, default: {} }, - requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.elasticPoolName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const exportOperationSpec: coreClient.OperationSpec = { +const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 201: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 202: { - bodyMapper: Mappers.ImportExportOperationResult - }, - 204: { - bodyMapper: Mappers.ImportExportOperationResult + bodyMapper: Mappers.DatabaseListResult }, default: {} }, - requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.serverName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/sql/arm-sql/src/operations/deletedServers.ts b/sdk/sql/arm-sql/src/operations/deletedServers.ts index 5bc5ebdbf2e8..dccdcf3e6238 100644 --- a/sdk/sql/arm-sql/src/operations/deletedServers.ts +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -312,7 +312,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -327,7 +327,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -347,7 +347,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -375,7 +375,7 @@ const recoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -394,7 +394,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -412,7 +412,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts new file mode 100644 index 000000000000..01398d37fcfb --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -0,0 +1,627 @@ +/* + * 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 { DistributedAvailabilityGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + DistributedAvailabilityGroup, + DistributedAvailabilityGroupsListByInstanceNextOptionalParams, + DistributedAvailabilityGroupsListByInstanceOptionalParams, + DistributedAvailabilityGroupsListByInstanceResponse, + DistributedAvailabilityGroupsGetOptionalParams, + DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, + DistributedAvailabilityGroupsCreateOrUpdateResponse, + DistributedAvailabilityGroupsDeleteOptionalParams, + DistributedAvailabilityGroupsUpdateOptionalParams, + DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupsListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing DistributedAvailabilityGroups operations. */ +export class DistributedAvailabilityGroupsImpl + implements DistributedAvailabilityGroups { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DistributedAvailabilityGroups class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of a distributed availability groups in instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of a distributed availability groups in instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a distributed availability group info. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + options + }, + getOperationSpec + ); + } + + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsCreateOrUpdateResponse + > + > { + 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, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): 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, + managedInstanceName, + distributedAvailabilityGroupName, + options + }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsUpdateResponse + > + > { + 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, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + updateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: DistributedAvailabilityGroupsListByInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroupsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroupsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts index e917d7f7cb5f..657da1854f98 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -187,7 +187,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -208,7 +208,7 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -228,7 +228,7 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts index 17d238300950..ec4c9e8299a6 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -378,7 +378,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -398,7 +398,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -428,8 +428,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -446,7 +446,7 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -465,7 +465,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts new file mode 100644 index 000000000000..c2f13b89d837 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts @@ -0,0 +1,231 @@ +/* + * 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 { EndpointCertificates } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + EndpointCertificate, + EndpointCertificatesListByInstanceNextOptionalParams, + EndpointCertificatesListByInstanceOptionalParams, + EndpointCertificatesListByInstanceResponse, + EndpointCertificatesGetOptionalParams, + EndpointCertificatesGetResponse, + EndpointCertificatesListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing EndpointCertificates operations. */ +export class EndpointCertificatesImpl implements EndpointCertificates { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class EndpointCertificates class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * List certificates used on endpoints on the target instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * List certificates used on endpoints on the target instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a certificate used on the endpoint with the given id. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param endpointType Type of the endpoint whose certificate the customer is looking for. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + endpointType: string, + options?: EndpointCertificatesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, endpointType, options }, + getOperationSpec + ); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: EndpointCertificatesListByInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/endpointCertificates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificateListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/endpointCertificates/{endpointType}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificate + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.endpointType + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificateListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts index 679c3990472c..bf3dae097b14 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -16,11 +16,11 @@ import { ExtendedDatabaseBlobAuditingPolicy, ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams, ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams, + ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse, ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams, ExtendedDatabaseBlobAuditingPoliciesGetResponse, ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams, ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse, - ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse, ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse } from "../models"; @@ -120,64 +120,64 @@ export class ExtendedDatabaseBlobAuditingPoliciesImpl } /** - * Gets an extended database's blob auditing policy. + * Lists extended auditing settings of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams - ): Promise { + options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + listByDatabaseOperationSpec ); } /** - * Creates or updates an extended database's blob auditing policy. + * Gets an extended database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The extended database blob auditing policy. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExtendedDatabaseBlobAuditingPolicy, - options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, databaseName, options }, + getOperationSpec ); } /** - * Lists extended auditing settings of a database. + * Creates or updates an extended database's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param parameters The extended database blob auditing policy. * @param options The options parameters. */ - private _listByDatabase( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - ): Promise { + parameters: ExtendedDatabaseBlobAuditingPolicy, + options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, parameters, options }, + createOrUpdateOperationSpec ); } @@ -206,43 +206,38 @@ export class ExtendedDatabaseBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName, - Parameters.blobAuditingPolicyName + Parameters.databaseName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy }, - 201: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy - }, default: {} }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -251,29 +246,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.databaseName, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicyListResult + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy + }, + 201: { + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters88, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -285,7 +285,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index 514e96c62fd6..9a72dd4d3a6a 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -18,11 +18,11 @@ import { ExtendedServerBlobAuditingPolicy, ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams, ExtendedServerBlobAuditingPoliciesListByServerOptionalParams, + ExtendedServerBlobAuditingPoliciesListByServerResponse, ExtendedServerBlobAuditingPoliciesGetOptionalParams, ExtendedServerBlobAuditingPoliciesGetResponse, ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse, - ExtendedServerBlobAuditingPoliciesListByServerResponse, ExtendedServerBlobAuditingPoliciesListByServerNextResponse } from "../models"; @@ -112,6 +112,24 @@ export class ExtendedServerBlobAuditingPoliciesImpl } } + /** + * Lists extended auditing settings of a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ExtendedServerBlobAuditingPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets an extended server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -226,24 +244,6 @@ export class ExtendedServerBlobAuditingPoliciesImpl return poller.pollUntilDone(); } - /** - * Lists extended auditing settings of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ExtendedServerBlobAuditingPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -267,6 +267,26 @@ export class ExtendedServerBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", @@ -277,7 +297,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -307,8 +327,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -320,26 +340,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -349,7 +349,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index e852a9c27664..f2a5b7b7ea70 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -665,7 +665,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -695,8 +695,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -713,7 +713,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -742,8 +742,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -765,7 +765,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -794,7 +794,7 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -824,7 +824,7 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -844,7 +844,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts index 9a3f71674809..76991fbab37b 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -246,7 +246,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,8 +270,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters25, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -288,7 +288,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -308,7 +308,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -329,8 +329,8 @@ const replaceOperationSpec: coreClient.OperationSpec = { 202: {}, default: {} }, - requestBody: Parameters.parameters26, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -350,7 +350,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts new file mode 100644 index 000000000000..c7605f753079 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts @@ -0,0 +1,317 @@ +/* + * 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 { IPv6FirewallRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + IPv6FirewallRule, + IPv6FirewallRulesListByServerNextOptionalParams, + IPv6FirewallRulesListByServerOptionalParams, + IPv6FirewallRulesListByServerResponse, + IPv6FirewallRulesGetOptionalParams, + IPv6FirewallRulesGetResponse, + IPv6FirewallRulesCreateOrUpdateOptionalParams, + IPv6FirewallRulesCreateOrUpdateResponse, + IPv6FirewallRulesDeleteOptionalParams, + IPv6FirewallRulesListByServerNextResponse +} from "../models"; + +/// +/** Class containing IPv6FirewallRules operations. */ +export class IPv6FirewallRulesImpl implements IPv6FirewallRules { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class IPv6FirewallRules class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of IPv6 firewall rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + public listByServer( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServerPagingAll( + resourceGroupName, + serverName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByServerPagingPage( + resourceGroupName, + serverName, + options + ); + } + }; + } + + private async *listByServerPagingPage( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): AsyncIterableIterator { + let result = await this._listByServer( + resourceGroupName, + serverName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByServerPagingAll( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServerPagingPage( + resourceGroupName, + serverName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of IPv6 firewall rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + + /** + * Gets an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, firewallRuleName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param parameters The required parameters for creating or updating an IPv6 firewall rule. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + parameters: IPv6FirewallRule, + options?: IPv6FirewallRulesCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, firewallRuleName, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, firewallRuleName, options }, + deleteOperationSpec + ); + } + + /** + * ListByServerNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. + * @param options The options parameters. + */ + private _listByServerNext( + resourceGroupName: string, + serverName: string, + nextLink: string, + options?: IPv6FirewallRulesListByServerNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRule + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRule + }, + 201: { + bodyMapper: Mappers.IPv6FirewallRule + }, + default: {} + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName + ], + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IPv6FirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index 717bfce71bce..689058d7640b 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -12,16 +12,11 @@ export * from "./dataMaskingRules"; export * from "./geoBackupPolicies"; export * from "./databases"; export * from "./elasticPools"; -export * from "./replicationLinks"; export * from "./serverCommunicationLinks"; export * from "./serviceObjectives"; export * from "./elasticPoolActivities"; export * from "./elasticPoolDatabaseActivities"; export * from "./serverUsages"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; @@ -61,8 +56,6 @@ export * from "./managedDatabases"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; @@ -81,13 +74,10 @@ export * from "./managedInstanceVulnerabilityAssessments"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; export * from "./managedServerSecurityAlertPolicies"; export * from "./operations"; -export * from "./operationsHealthOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./recoverableManagedDatabases"; export * from "./restorePoints"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; @@ -106,7 +96,6 @@ export * from "./syncGroups"; export * from "./syncMembers"; export * from "./tdeCertificates"; export * from "./timeZones"; -export * from "./virtualClusters"; export * from "./virtualNetworkRules"; export * from "./workloadClassifiers"; export * from "./workloadGroups"; @@ -125,3 +114,24 @@ export * from "./managedInstances"; export * from "./restorableDroppedDatabases"; export * from "./restorableDroppedManagedDatabases"; export * from "./serverConnectionPolicies"; +export * from "./distributedAvailabilityGroups"; +export * from "./serverTrustCertificates"; +export * from "./iPv6FirewallRules"; +export * from "./endpointCertificates"; +export * from "./replicationLinks"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; +export * from "./databaseAdvancedThreatProtectionSettings"; +export * from "./serverAdvancedThreatProtectionSettings"; +export * from "./managedServerDnsAliases"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; +export * from "./managedDatabaseMoveOperations"; +export * from "./managedInstanceDtcs"; +export * from "./virtualClusters"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts index 7d44d03113c8..d785c3866e98 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -573,7 +573,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -603,8 +603,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -621,7 +621,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -641,7 +641,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -670,7 +670,7 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -700,7 +700,7 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -720,7 +720,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index cb2c24a09f25..f9c6756f0733 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -505,7 +505,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -534,8 +534,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -551,7 +551,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -579,8 +579,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -601,7 +601,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -619,7 +619,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -633,7 +633,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -652,7 +652,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 219772df3a2e..2e75d3069719 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -473,7 +473,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -493,7 +493,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -523,8 +523,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -541,7 +541,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -570,8 +570,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -592,7 +592,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts index 502b4685b606..b354606cce28 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -249,7 +249,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,7 +270,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,8 +295,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,7 +334,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index fb3a172cd62f..97388aa0b830 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -599,7 +599,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -622,7 +622,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -653,7 +653,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -677,7 +677,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -706,7 +706,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -738,7 +738,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -762,7 +762,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -792,7 +792,7 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index af4fee4bac7b..f3cffcc42c35 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -248,7 +248,7 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -278,7 +278,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -303,7 +303,7 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index a27ba21ed3af..9e4f021a9340 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -494,7 +494,7 @@ const listByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -517,7 +517,7 @@ const getByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -541,7 +541,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -563,7 +563,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -589,8 +589,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -609,7 +609,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -630,7 +630,7 @@ const listByVersionNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -653,7 +653,7 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 43da5d45e253..64a2671372d8 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -434,7 +434,7 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -466,7 +466,7 @@ const listByStepOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -497,7 +497,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -523,7 +523,7 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -555,7 +555,7 @@ const listByStepNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index 22a69530b9b1..29f0ea7ee55f 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -249,7 +249,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,7 +270,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,8 +295,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,7 +334,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index ac82870cf572..6d1ad8fc46e5 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -222,7 +222,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -244,7 +244,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -266,7 +266,7 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index 950a932940d7..6a40d7c4c727 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -249,7 +249,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -270,7 +270,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,8 +295,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -334,7 +334,7 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts index 74c7238bab64..61742d260190 100644 --- a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts @@ -425,7 +425,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,8 +456,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters78, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -480,7 +480,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -510,7 +510,7 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -531,7 +531,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index 02d70fe584e8..b52af6e8dbcd 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -1521,7 +1521,7 @@ const copyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -1554,7 +1554,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -1697,7 +1697,7 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -1731,7 +1731,7 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index bba7dc5afbf0..46d8b87f274c 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -310,7 +310,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -341,8 +341,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -365,7 +365,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -385,7 +385,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts index 49f87ea2e6a0..7d37a81d521e 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts @@ -71,7 +71,7 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.maintenanceWindowOptionsName ], urlParameters: [ diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts index e38d084a77b7..16ad79884bba 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts @@ -103,7 +103,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.maintenanceWindowName], + queryParameters: [Parameters.apiVersion3, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -119,8 +119,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", httpMethod: "PUT", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion2, Parameters.maintenanceWindowName], + requestBody: Parameters.parameters32, + queryParameters: [Parameters.apiVersion3, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts index 2ee76bbab81f..6eb3ff0d3e48 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -439,7 +439,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -470,8 +470,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -503,8 +503,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -527,7 +527,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -547,7 +547,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..f3fab135ef0b --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts @@ -0,0 +1,329 @@ +/* + * 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 { ManagedDatabaseAdvancedThreatProtectionSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + ManagedDatabaseAdvancedThreatProtection, + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams, + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams, + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse, + AdvancedThreatProtectionName, + ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams, + ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse, + ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse, + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse +} from "../models"; + +/// +/** Class containing ManagedDatabaseAdvancedThreatProtectionSettings operations. */ +export class ManagedDatabaseAdvancedThreatProtectionSettingsImpl + implements ManagedDatabaseAdvancedThreatProtectionSettings { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ManagedDatabaseAdvancedThreatProtectionSettings class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of managed database's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): AsyncIterableIterator { + let result = await this._listByDatabase( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + managedInstanceName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of managed database's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): Promise< + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a managed database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + advancedThreatProtectionName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a managed database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The managed database Advanced Threat Protection state. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ManagedDatabaseAdvancedThreatProtection, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + advancedThreatProtectionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * ListByDatabaseNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param options The options parameters. + */ + private _listByDatabaseNext( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + nextLink: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + ): Promise< + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + nextLink, + options + }, + listByDatabaseNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/advancedThreatProtectionSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseAdvancedThreatProtection + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseAdvancedThreatProtection + }, + 201: { + bodyMapper: Mappers.ManagedDatabaseAdvancedThreatProtection + }, + default: {} + }, + requestBody: Parameters.parameters94, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts index ccb6ebbb55bf..446b88fef3e0 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts @@ -380,7 +380,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.schema, Parameters.table, Parameters.column, @@ -407,7 +407,7 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -430,7 +430,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -454,7 +454,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.schema, Parameters.table, Parameters.column, @@ -481,7 +481,7 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts new file mode 100644 index 000000000000..636baa2e6ad2 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts @@ -0,0 +1,240 @@ +/* + * 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 { ManagedDatabaseMoveOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { + ManagedDatabaseMoveOperationResult, + ManagedDatabaseMoveOperationsListByLocationNextOptionalParams, + ManagedDatabaseMoveOperationsListByLocationOptionalParams, + ManagedDatabaseMoveOperationsListByLocationResponse, + ManagedDatabaseMoveOperationsGetOptionalParams, + ManagedDatabaseMoveOperationsGetResponse, + ManagedDatabaseMoveOperationsListByLocationNextResponse +} from "../models"; + +/// +/** Class containing ManagedDatabaseMoveOperations operations. */ +export class ManagedDatabaseMoveOperationsImpl + implements ManagedDatabaseMoveOperations { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ManagedDatabaseMoveOperations class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Lists managed database move operations. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param options The options parameters. + */ + public listByLocation( + resourceGroupName: string, + locationName: string, + options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByLocationPagingAll( + resourceGroupName, + locationName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByLocationPagingPage( + resourceGroupName, + locationName, + options + ); + } + }; + } + + private async *listByLocationPagingPage( + resourceGroupName: string, + locationName: string, + options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams + ): AsyncIterableIterator { + let result = await this._listByLocation( + resourceGroupName, + locationName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByLocationNext( + resourceGroupName, + locationName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByLocationPagingAll( + resourceGroupName: string, + locationName: string, + options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByLocationPagingPage( + resourceGroupName, + locationName, + options + )) { + yield* page; + } + } + + /** + * Lists managed database move operations. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param options The options parameters. + */ + private _listByLocation( + resourceGroupName: string, + locationName: string, + options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, locationName, options }, + listByLocationOperationSpec + ); + } + + /** + * Gets a managed database move operation. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param operationId + * @param options The options parameters. + */ + get( + resourceGroupName: string, + locationName: string, + operationId: string, + options?: ManagedDatabaseMoveOperationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, locationName, operationId, options }, + getOperationSpec + ); + } + + /** + * ListByLocationNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param nextLink The nextLink from the previous successful call to the ListByLocation method. + * @param options The options parameters. + */ + private _listByLocationNext( + resourceGroupName: string, + locationName: string, + nextLink: string, + options?: ManagedDatabaseMoveOperationsListByLocationNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, locationName, nextLink, options }, + listByLocationNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/managedDatabaseMoveOperationResults", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseMoveOperationListResult + }, + default: {} + }, + queryParameters: [ + Parameters.filter1, + Parameters.onlyLatestPerDatabase, + Parameters.apiVersion7 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/managedDatabaseMoveOperationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseMoveOperationResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.operationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByLocationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseMoveOperationListResult + }, + default: {} + }, + queryParameters: [ + Parameters.filter1, + Parameters.onlyLatestPerDatabase, + Parameters.apiVersion7 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts index 596212d4fc93..b232f7b99c06 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -225,7 +225,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -248,7 +248,7 @@ const listByQueryOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.startTime, Parameters.endTime, Parameters.interval @@ -274,7 +274,7 @@ const listByQueryNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.startTime, Parameters.endTime, Parameters.interval diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts index 41532e447838..c5aac6dbe861 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts @@ -65,8 +65,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 79ed9526a189..697b74c15874 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -71,7 +71,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts index f1eb5874523a..702552060448 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -205,7 +205,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -226,7 +226,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,7 +247,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index 77a9e9ca3369..b46d743375bc 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -243,7 +243,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -268,8 +268,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters42, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -292,7 +292,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -312,7 +312,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts index 5e409d356764..916172a44585 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -178,7 +178,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.skiptoken, Parameters.filter1, Parameters.top @@ -204,7 +204,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.skiptoken, Parameters.filter1, Parameters.top diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index 95d6fa1bcee8..692c57b65f8c 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -531,7 +531,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -559,8 +559,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -581,7 +581,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -600,7 +600,7 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -619,7 +619,7 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -645,7 +645,7 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.count ], @@ -664,8 +664,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -689,7 +689,7 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.includeDisabledRecommendations ], @@ -714,7 +714,7 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.count ], @@ -740,7 +740,7 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.includeDisabledRecommendations ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts index 2d4040683076..c4a96fce5267 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -228,7 +228,7 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -272,7 +272,7 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts index 048b6d6c7173..a92cc2295a21 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -246,7 +246,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -271,8 +271,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters46, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters38, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,7 +295,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -315,7 +315,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index f31d4f57d402..3a023cb705a6 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,7 +161,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -185,8 +185,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -206,7 +206,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 975226d2fbcf..092f0320ada3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -371,7 +371,7 @@ const initiateScanOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -396,7 +396,7 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -419,7 +419,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -441,7 +441,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -463,7 +463,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index ef828481f048..a1b27c1e4d9d 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -271,7 +271,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -296,8 +296,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -315,7 +315,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -336,7 +336,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -356,7 +356,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index e0b0ef306411..77a9fa5d38f4 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -702,7 +702,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -722,7 +722,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -752,8 +752,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -770,7 +770,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -799,8 +799,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters40, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -817,8 +817,8 @@ const completeRestoreOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters41, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -840,7 +840,7 @@ const listInaccessibleByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -859,7 +859,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -879,7 +879,7 @@ const listInaccessibleByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts index a9262d73135e..a79c9b740be6 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -379,7 +379,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -399,7 +399,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -429,8 +429,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters47, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -447,7 +447,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -466,7 +466,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..5d08632c254d --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts @@ -0,0 +1,387 @@ +/* + * 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 { ManagedInstanceAdvancedThreatProtectionSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ManagedInstanceAdvancedThreatProtection, + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams, + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams, + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse, + AdvancedThreatProtectionName, + ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams, + ManagedInstanceAdvancedThreatProtectionSettingsGetResponse, + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse, + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing ManagedInstanceAdvancedThreatProtectionSettings operations. */ +export class ManagedInstanceAdvancedThreatProtectionSettingsImpl + implements ManagedInstanceAdvancedThreatProtectionSettings { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ManagedInstanceAdvancedThreatProtectionSettings class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Get the managed instance's Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Get the managed instance's Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + ): Promise< + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Get a managed instance's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + advancedThreatProtectionName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The managed instance Advanced Threat Protection state. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ManagedInstanceAdvancedThreatProtection, + options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + >, + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + > + > { + 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, + managedInstanceName, + advancedThreatProtectionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The managed instance Advanced Threat Protection state. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ManagedInstanceAdvancedThreatProtection, + options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + > { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + advancedThreatProtectionName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams + ): Promise< + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/advancedThreatProtectionSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtection + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtection + }, + 201: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtection + }, + 202: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtection + }, + 204: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtection + }, + default: {} + }, + requestBody: Parameters.parameters95, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts index 39c0da907303..500f98f8802a 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -387,7 +387,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -417,8 +417,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters48, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -435,7 +435,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -455,7 +455,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -474,7 +474,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts new file mode 100644 index 000000000000..2863c3361980 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts @@ -0,0 +1,367 @@ +/* + * 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 { ManagedInstanceDtcs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ManagedInstanceDtc, + ManagedInstanceDtcsListByManagedInstanceNextOptionalParams, + ManagedInstanceDtcsListByManagedInstanceOptionalParams, + ManagedInstanceDtcsListByManagedInstanceResponse, + DtcName, + ManagedInstanceDtcsGetOptionalParams, + ManagedInstanceDtcsGetResponse, + ManagedInstanceDtcsCreateOrUpdateOptionalParams, + ManagedInstanceDtcsCreateOrUpdateResponse, + ManagedInstanceDtcsListByManagedInstanceNextResponse +} from "../models"; + +/// +/** Class containing ManagedInstanceDtcs operations. */ +export class ManagedInstanceDtcsImpl implements ManagedInstanceDtcs { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ManagedInstanceDtcs class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByManagedInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByManagedInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByManagedInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByManagedInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByManagedInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec + ); + } + + /** + * Gets managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dtcName The name of the managed instance DTC. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + dtcName: DtcName, + options?: ManagedInstanceDtcsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, dtcName, options }, + getOperationSpec + ); + } + + /** + * Updates managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dtcName The name of the managed instance DTC. + * @param parameters Managed instance DTC settings. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + dtcName: DtcName, + parameters: ManagedInstanceDtc, + options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedInstanceDtcsCreateOrUpdateResponse + > + > { + 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, managedInstanceName, dtcName, parameters, options }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Updates managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dtcName The name of the managed instance DTC. + * @param parameters Managed instance DTC settings. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + dtcName: DtcName, + parameters: ManagedInstanceDtc, + options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + dtcName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByManagedInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByManagedInstance method. + * @param options The options parameters. + */ + private _listByManagedInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: ManagedInstanceDtcsListByManagedInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByManagedInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dtc", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceDtcListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dtc/{dtcName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceDtc + }, + default: {} + }, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.dtcName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dtc/{dtcName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceDtc + }, + 201: { + bodyMapper: Mappers.ManagedInstanceDtc + }, + 202: { + bodyMapper: Mappers.ManagedInstanceDtc + }, + 204: { + bodyMapper: Mappers.ManagedInstanceDtc + }, + default: {} + }, + requestBody: Parameters.parameters96, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.dtcName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceDtcListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts index 321a1b95f76a..d233885957ff 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -386,7 +386,7 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -406,7 +406,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -426,7 +426,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,8 +456,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters49, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -478,7 +478,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts index f960c476ef3e..bc358bad31a6 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -371,7 +371,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -391,7 +391,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -421,8 +421,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters50, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -439,7 +439,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -458,7 +458,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index 2588f7b21fdc..7399b14c98c6 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -326,7 +326,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -357,8 +357,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters51, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -381,7 +381,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -401,7 +401,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts index 7feb225dab08..5a82161419c5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -200,7 +200,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -220,7 +220,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -236,7 +236,7 @@ const cancelOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -255,7 +255,7 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts index 4df791dc255d..b8dc6a137e2e 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -394,7 +394,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -424,8 +424,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters52, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -442,7 +442,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -462,7 +462,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -481,7 +481,7 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts index 148edc171bcd..19695eb26d9a 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -181,7 +181,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -201,7 +201,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -221,7 +221,7 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index 781f73a8f44f..25883ad379dd 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts @@ -128,8 +128,8 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index d57a0888e68b..004c55e378b9 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -251,7 +251,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -275,8 +275,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters54, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -293,7 +293,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -313,7 +313,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -332,7 +332,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index fe6bc4af038b..d21b255f804a 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -902,7 +902,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters86, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -947,7 +947,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters87, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index af41f9d01b4f..19283dea2897 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -455,7 +455,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -486,8 +486,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -519,8 +519,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -543,7 +543,7 @@ const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -563,7 +563,7 @@ const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts new file mode 100644 index 000000000000..b7c321ba87f2 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts @@ -0,0 +1,618 @@ +/* + * 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 { ManagedServerDnsAliases } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ManagedServerDnsAlias, + ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams, + ManagedServerDnsAliasesListByManagedInstanceOptionalParams, + ManagedServerDnsAliasesListByManagedInstanceResponse, + ManagedServerDnsAliasesGetOptionalParams, + ManagedServerDnsAliasesGetResponse, + ManagedServerDnsAliasCreation, + ManagedServerDnsAliasesCreateOrUpdateOptionalParams, + ManagedServerDnsAliasesCreateOrUpdateResponse, + ManagedServerDnsAliasesDeleteOptionalParams, + ManagedServerDnsAliasAcquisition, + ManagedServerDnsAliasesAcquireOptionalParams, + ManagedServerDnsAliasesAcquireResponse, + ManagedServerDnsAliasesListByManagedInstanceNextResponse +} from "../models"; + +/// +/** Class containing ManagedServerDnsAliases operations. */ +export class ManagedServerDnsAliasesImpl implements ManagedServerDnsAliases { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ManagedServerDnsAliases class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of managed server DNS aliases for a managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByManagedInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByManagedInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByManagedInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByManagedInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByManagedInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of managed server DNS aliases for a managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec + ); + } + + /** + * Gets a server DNS alias. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + options?: ManagedServerDnsAliasesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, dnsAliasName, options }, + getOperationSpec + ); + } + + /** + * Creates a managed server DNS alias. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server dns alias creation request. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasCreation, + options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedServerDnsAliasesCreateOrUpdateResponse + > + > { + 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, + managedInstanceName, + dnsAliasName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Creates a managed server DNS alias. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server dns alias creation request. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasCreation, + options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + dnsAliasName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the managed server DNS alias with the given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + options?: ManagedServerDnsAliasesDeleteOptionalParams + ): 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, managedInstanceName, dnsAliasName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the managed server DNS alias with the given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + options?: ManagedServerDnsAliasesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + dnsAliasName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Acquires managed server DNS alias from another managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server DNS alias acquisition request. + * @param options The options parameters. + */ + async beginAcquire( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasAcquisition, + options?: ManagedServerDnsAliasesAcquireOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedServerDnsAliasesAcquireResponse + > + > { + 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, + managedInstanceName, + dnsAliasName, + parameters, + options + }, + acquireOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Acquires managed server DNS alias from another managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server DNS alias acquisition request. + * @param options The options parameters. + */ + async beginAcquireAndWait( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasAcquisition, + options?: ManagedServerDnsAliasesAcquireOptionalParams + ): Promise { + const poller = await this.beginAcquire( + resourceGroupName, + managedInstanceName, + dnsAliasName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByManagedInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByManagedInstance method. + * @param options The options parameters. + */ + private _listByManagedInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByManagedInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerDnsAliasListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.dnsAliasName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + 201: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + 202: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + 204: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + default: {} + }, + requestBody: Parameters.parameters92, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.dnsAliasName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.dnsAliasName + ], + serializer +}; +const acquireOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}/acquire", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + 201: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + 202: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + 204: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + default: {} + }, + requestBody: Parameters.parameters93, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.dnsAliasName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerDnsAliasListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts index 3e941cdd8733..7f07b3b45a44 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -296,7 +296,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -326,8 +326,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -349,7 +349,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -368,7 +368,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts index dafb115a2ad3..5d9436004db8 100644 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ b/sdk/sql/arm-sql/src/operations/operations.ts @@ -112,7 +112,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer @@ -126,7 +126,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts b/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts deleted file mode 100644 index 2cf8d2be4899..000000000000 --- a/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts +++ /dev/null @@ -1,162 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationsHealthOperations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClient } from "../sqlManagementClient"; -import { - OperationsHealth, - OperationsHealthListByLocationNextOptionalParams, - OperationsHealthListByLocationOptionalParams, - OperationsHealthListByLocationResponse, - OperationsHealthListByLocationNextResponse -} from "../models"; - -/// -/** Class containing OperationsHealthOperations operations. */ -export class OperationsHealthOperationsImpl - implements OperationsHealthOperations { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class OperationsHealthOperations class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Gets a service operation health status. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - public listByLocation( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listByLocationPagingPage(locationName, options); - } - }; - } - - private async *listByLocationPagingPage( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): AsyncIterableIterator { - let result = await this._listByLocation(locationName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listByLocationNext( - locationName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listByLocationPagingAll( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( - locationName, - options - )) { - yield* page; - } - } - - /** - * Gets a service operation health status. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - private _listByLocation( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec - ); - } - - /** - * ListByLocationNext - * @param locationName The name of the region where the resource is located. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - locationName: string, - nextLink: string, - options?: OperationsHealthListByLocationNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/operationsHealth", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationsHealthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationsHealthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts index 485490be9aae..8ed67c2bfbe4 100644 --- a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -371,7 +371,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -401,8 +401,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters79, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -419,7 +419,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -439,7 +439,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -458,7 +458,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index 24895917dd4c..0d72baa38912 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -378,7 +378,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -408,8 +408,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -426,7 +426,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -446,7 +446,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -465,7 +465,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts index 71258388e4b8..9a0c57428a83 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -178,7 +178,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -198,7 +198,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -218,7 +218,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts index b4e7f1349547..486c33bfecda 100644 --- a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts @@ -59,8 +59,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts index 28474f56d0fe..d45835c67b1e 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -184,7 +184,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -204,7 +204,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -224,7 +224,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts index 69bc5d1ceac7..43b08e356fb1 100644 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/replicationLinks.ts @@ -20,14 +20,14 @@ import { ReplicationLinksListByDatabaseOptionalParams, ReplicationLinksListByServerNextOptionalParams, ReplicationLinksListByServerOptionalParams, - ReplicationLinksDeleteOptionalParams, - ReplicationLinksFailoverOptionalParams, - ReplicationLinksFailoverAllowDataLossOptionalParams, - UnlinkParameters, - ReplicationLinksUnlinkOptionalParams, ReplicationLinksListByDatabaseResponse, ReplicationLinksGetOptionalParams, ReplicationLinksGetResponse, + ReplicationLinksDeleteOptionalParams, + ReplicationLinksFailoverOptionalParams, + ReplicationLinksFailoverResponse, + ReplicationLinksFailoverAllowDataLossOptionalParams, + ReplicationLinksFailoverAllowDataLossResponse, ReplicationLinksListByServerResponse, ReplicationLinksListByDatabaseNextResponse, ReplicationLinksListByServerNextResponse @@ -200,142 +200,94 @@ export class ReplicationLinksImpl implements ReplicationLinks { } /** - * Deletes a database replication link. Cannot be done during failover. + * Gets a list of replication links on database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. + * @param databaseName The name of the database. * @param options The options parameters. */ - delete( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - linkId: string, - options?: ReplicationLinksDeleteOptionalParams - ): Promise { + options?: ReplicationLinksListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, linkId, options }, - deleteOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * Sets which replica database is primary by failing over from the current primary replica database. + * Gets a replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - async beginFailover( + get( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams - ): 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, + options?: ReplicationLinksGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, linkId, options }, - failoverOperationSpec + getOperationSpec ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; } /** - * Sets which replica database is primary by failing over from the current primary replica database. + * Deletes the replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId * @param options The options parameters. */ - async beginFailoverAndWait( + delete( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams + options?: ReplicationLinksDeleteOptionalParams ): Promise { - const poller = await this.beginFailover( - resourceGroupName, - serverName, - databaseName, - linkId, - options + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, linkId, options }, + deleteOperationSpec ); - return poller.pollUntilDone(); } /** - * Sets which replica database is primary by failing over from the current primary replica database. - * This operation might result in data loss. + * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - async beginFailoverAllowDataLoss( + async beginFailover( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverAllowDataLossOptionalParams - ): Promise, void>> { + options?: ReplicationLinksFailoverOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ReplicationLinksFailoverResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -374,7 +326,7 @@ export class ReplicationLinksImpl implements ReplicationLinks { const lro = new LroImpl( sendOperation, { resourceGroupName, serverName, databaseName, linkId, options }, - failoverAllowDataLossOperationSpec + failoverOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -385,23 +337,22 @@ export class ReplicationLinksImpl implements ReplicationLinks { } /** - * Sets which replica database is primary by failing over from the current primary replica database. - * This operation might result in data loss. + * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - async beginFailoverAllowDataLossAndWait( + async beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverAllowDataLossOptionalParams - ): Promise { - const poller = await this.beginFailoverAllowDataLoss( + options?: ReplicationLinksFailoverOptionalParams + ): Promise { + const poller = await this.beginFailover( resourceGroupName, serverName, databaseName, @@ -412,27 +363,30 @@ export class ReplicationLinksImpl implements ReplicationLinks { } /** - * Deletes a database replication link in forced or friendly way. + * Fails over from the current primary server to this server allowing data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param parameters The required parameters for unlinking replication link. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - async beginUnlink( + async beginFailoverAllowDataLoss( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - parameters: UnlinkParameters, - options?: ReplicationLinksUnlinkOptionalParams - ): Promise, void>> { + options?: ReplicationLinksFailoverAllowDataLossOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ReplicationLinksFailoverAllowDataLossResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperation = async ( @@ -470,15 +424,8 @@ export class ReplicationLinksImpl implements ReplicationLinks { const lro = new LroImpl( sendOperation, - { - resourceGroupName, - serverName, - databaseName, - linkId, - parameters, - options - }, - unlinkOperationSpec + { resourceGroupName, serverName, databaseName, linkId, options }, + failoverAllowDataLossOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -489,76 +436,31 @@ export class ReplicationLinksImpl implements ReplicationLinks { } /** - * Deletes a database replication link in forced or friendly way. + * Fails over from the current primary server to this server allowing data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param parameters The required parameters for unlinking replication link. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - async beginUnlinkAndWait( + async beginFailoverAllowDataLossAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - parameters: UnlinkParameters, - options?: ReplicationLinksUnlinkOptionalParams - ): Promise { - const poller = await this.beginUnlink( + options?: ReplicationLinksFailoverAllowDataLossOptionalParams + ): Promise { + const poller = await this.beginFailoverAllowDataLoss( resourceGroupName, serverName, databaseName, linkId, - parameters, options ); return poller.pollUntilDone(); } - /** - * Gets a list of replication links on database. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: ReplicationLinksListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - - /** - * Gets a replication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param linkId The name of the replication link. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - databaseName: string, - linkId: string, - options?: ReplicationLinksGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, linkId, options }, - getOperationSpec - ); - } - /** * Gets a list of replication links. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -622,28 +524,38 @@ export class ReplicationLinksImpl implements ReplicationLinks { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const deleteOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationLinkListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName, - Parameters.linkId + Parameters.databaseName ], + headerParameters: [Parameters.accept], serializer }; -const failoverOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReplicationLink + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -652,14 +564,15 @@ const failoverOperationSpec: coreClient.OperationSpec = { Parameters.databaseName, Parameters.linkId ], + headerParameters: [Parameters.accept], serializer }; -const failoverAllowDataLossOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", + httpMethod: "DELETE", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -670,57 +583,57 @@ const failoverAllowDataLossOperationSpec: coreClient.OperationSpec = { ], serializer }; -const unlinkOperationSpec: coreClient.OperationSpec = { +const failoverOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - requestBody: Parameters.parameters10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks", - httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationLinkListResult + bodyMapper: Mappers.ReplicationLink + }, + 201: { + bodyMapper: Mappers.ReplicationLink + }, + 202: { + bodyMapper: Mappers.ReplicationLink + }, + 204: { + bodyMapper: Mappers.ReplicationLink }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.linkId ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const failoverAllowDataLossOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ReplicationLink }, + 201: { + bodyMapper: Mappers.ReplicationLink + }, + 202: { + bodyMapper: Mappers.ReplicationLink + }, + 204: { + bodyMapper: Mappers.ReplicationLink + }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -742,7 +655,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -761,7 +674,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -782,7 +695,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts index 1038e6e1e89b..0118bbd54894 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -332,7 +332,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -362,8 +362,8 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -385,7 +385,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -402,7 +402,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -422,7 +422,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 337958348ae2..6e94156caf7f 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -508,7 +508,7 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.count ], @@ -527,8 +527,8 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -552,7 +552,7 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.includeDisabledRecommendations ], @@ -571,7 +571,7 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -590,7 +590,7 @@ const disableRecommendationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -614,7 +614,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -642,8 +642,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -664,7 +664,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -689,7 +689,7 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.count ], @@ -715,7 +715,7 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.includeDisabledRecommendations ], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..a47c7e72d6aa --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts @@ -0,0 +1,376 @@ +/* + * 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 { ServerAdvancedThreatProtectionSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ServerAdvancedThreatProtection, + ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams, + ServerAdvancedThreatProtectionSettingsListByServerOptionalParams, + ServerAdvancedThreatProtectionSettingsListByServerResponse, + AdvancedThreatProtectionName, + ServerAdvancedThreatProtectionSettingsGetOptionalParams, + ServerAdvancedThreatProtectionSettingsGetResponse, + ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse, + ServerAdvancedThreatProtectionSettingsListByServerNextResponse +} from "../models"; + +/// +/** Class containing ServerAdvancedThreatProtectionSettings operations. */ +export class ServerAdvancedThreatProtectionSettingsImpl + implements ServerAdvancedThreatProtectionSettings { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ServerAdvancedThreatProtectionSettings class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Get a list of the server's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + public listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServerPagingAll( + resourceGroupName, + serverName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByServerPagingPage( + resourceGroupName, + serverName, + options + ); + } + }; + } + + private async *listByServerPagingPage( + resourceGroupName: string, + serverName: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + ): AsyncIterableIterator { + let result = await this._listByServer( + resourceGroupName, + serverName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByServerPagingAll( + resourceGroupName: string, + serverName: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServerPagingPage( + resourceGroupName, + serverName, + options + )) { + yield* page; + } + } + + /** + * Get a list of the server's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + + /** + * Get a server's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: ServerAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, advancedThreatProtectionName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The server Advanced Threat Protection state. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ServerAdvancedThreatProtection, + options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + >, + ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + > + > { + 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, + serverName, + advancedThreatProtectionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The server Advanced Threat Protection state. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serverName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ServerAdvancedThreatProtection, + options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serverName, + advancedThreatProtectionName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByServerNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nextLink The nextLink from the previous successful call to the ListByServer method. + * @param options The options parameters. + */ + private _listByServerNext( + resourceGroupName: string, + serverName: string, + nextLink: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalServerAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerAdvancedThreatProtection + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerAdvancedThreatProtection + }, + 201: { + bodyMapper: Mappers.ServerAdvancedThreatProtection + }, + 202: { + bodyMapper: Mappers.ServerAdvancedThreatProtection + }, + 204: { + bodyMapper: Mappers.ServerAdvancedThreatProtection + }, + default: {} + }, + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.advancedThreatProtectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalServerAdvancedThreatProtectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts index 9e6e07701017..d8b7864ea533 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts @@ -111,7 +111,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -131,7 +131,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -152,8 +152,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts index a0cac8aea48b..41767092bbe2 100644 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts @@ -83,7 +83,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -103,8 +103,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index 4bc7a76f96f6..ac43f42af601 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -373,7 +373,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -403,8 +403,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters59, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -421,7 +421,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -441,7 +441,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -460,7 +460,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts index cf7f81ef0eca..93f93975c2f8 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -385,7 +385,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -415,8 +415,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -433,7 +433,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -453,7 +453,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -472,7 +472,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts index cf1a0e975827..b87ca315f7ac 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -18,11 +18,11 @@ import { ServerBlobAuditingPolicy, ServerBlobAuditingPoliciesListByServerNextOptionalParams, ServerBlobAuditingPoliciesListByServerOptionalParams, + ServerBlobAuditingPoliciesListByServerResponse, ServerBlobAuditingPoliciesGetOptionalParams, ServerBlobAuditingPoliciesGetResponse, ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, ServerBlobAuditingPoliciesCreateOrUpdateResponse, - ServerBlobAuditingPoliciesListByServerResponse, ServerBlobAuditingPoliciesListByServerNextResponse } from "../models"; @@ -112,6 +112,24 @@ export class ServerBlobAuditingPoliciesImpl } } + /** + * Lists auditing settings of a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerBlobAuditingPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -224,24 +242,6 @@ export class ServerBlobAuditingPoliciesImpl return poller.pollUntilDone(); } - /** - * Lists auditing settings of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerBlobAuditingPoliciesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * ListByServerNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -265,6 +265,26 @@ export class ServerBlobAuditingPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerBlobAuditingPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName}", @@ -275,7 +295,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -305,8 +325,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -318,26 +338,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -347,7 +347,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts index b20fba86cd04..36a3b4a22b94 100644 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts @@ -318,7 +318,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ServerCommunicationLink } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts index e5200c7ff5d6..54b79151cb88 100644 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts @@ -318,7 +318,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters88, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts index e095482bd82f..b36587802ac7 100644 --- a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -292,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -322,8 +322,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters61, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -345,7 +345,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -364,7 +364,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index fef73cf33376..3c9713f0a1b1 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -468,7 +468,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -498,7 +498,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -514,7 +514,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -534,7 +534,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -563,8 +563,8 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -585,7 +585,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts index ea46736f8e85..09ae18e31376 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -377,7 +377,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -397,7 +397,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -427,8 +427,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters63, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -445,7 +445,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -464,7 +464,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts index 7049c774de27..828ab942c102 100644 --- a/sdk/sql/arm-sql/src/operations/serverOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -156,7 +156,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -175,7 +175,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts index 30722ead47bf..edab8fe7e0ff 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -289,7 +289,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -319,8 +319,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters56, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -342,7 +342,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -361,7 +361,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts new file mode 100644 index 000000000000..515efd43049e --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts @@ -0,0 +1,479 @@ +/* + * 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 { ServerTrustCertificates } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClient } from "../sqlManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ServerTrustCertificate, + ServerTrustCertificatesListByInstanceNextOptionalParams, + ServerTrustCertificatesListByInstanceOptionalParams, + ServerTrustCertificatesListByInstanceResponse, + ServerTrustCertificatesGetOptionalParams, + ServerTrustCertificatesGetResponse, + ServerTrustCertificatesCreateOrUpdateOptionalParams, + ServerTrustCertificatesCreateOrUpdateResponse, + ServerTrustCertificatesDeleteOptionalParams, + ServerTrustCertificatesListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing ServerTrustCertificates operations. */ +export class ServerTrustCertificatesImpl implements ServerTrustCertificates { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ServerTrustCertificates class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed + * Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + public listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed + * Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to get. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, certificateName, options }, + getOperationSpec + ); + } + + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServerTrustCertificatesCreateOrUpdateResponse + > + > { + 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, + managedInstanceName, + certificateName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + certificateName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): 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, managedInstanceName, certificateName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + certificateName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByInstanceNext + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param nextLink The nextLink from the previous successful call to the ListByInstance method. + * @param options The options parameters. + */ + private _listByInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: ServerTrustCertificatesListByInstanceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listByInstanceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificatesListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificate + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.certificateName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificate + }, + 201: { + bodyMapper: Mappers.ServerTrustCertificate + }, + 202: { + bodyMapper: Mappers.ServerTrustCertificate + }, + 204: { + bodyMapper: Mappers.ServerTrustCertificate + }, + default: {} + }, + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.certificateName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.certificateName + ], + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificatesListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion5], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts index 72f11e4d5c47..34a4a9448c37 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -491,7 +491,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -521,8 +521,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -539,7 +539,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -559,7 +559,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -579,7 +579,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -598,7 +598,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -618,7 +618,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 2db5775f724a..a89e2442e381 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -233,7 +233,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -257,8 +257,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -275,7 +275,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -295,7 +295,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -314,7 +314,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index 4087046d48ff..a61d2baa5e2d 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -617,7 +617,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -636,7 +636,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -665,8 +665,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters80, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -682,7 +682,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -710,8 +710,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters81, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -731,7 +731,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -755,8 +755,8 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters82, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -777,8 +777,8 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -793,7 +793,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -812,7 +812,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts index a5601ff58f3d..5cfa905f2fd7 100644 --- a/sdk/sql/arm-sql/src/operations/sqlAgent.ts +++ b/sdk/sql/arm-sql/src/operations/sqlAgent.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -102,8 +102,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index e0fbde5343ac..5797fd155528 100644 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts @@ -150,7 +150,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -169,7 +169,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -188,7 +188,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index 97052cff7568..d980df5a7590 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -521,7 +521,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -551,8 +551,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters68, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -569,7 +569,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -589,7 +589,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -609,7 +609,7 @@ const generateKeyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -630,7 +630,7 @@ const listLinkedDatabasesOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -650,7 +650,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -670,7 +670,7 @@ const listLinkedDatabasesNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts index 5ccc9e3966ec..5a9f6ca238ee 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -22,7 +22,7 @@ import { SyncGroupsListHubSchemasNextOptionalParams, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, - Enum60, + SyncGroupsType, SyncGroupsListLogsNextOptionalParams, SyncGroupsListLogsOptionalParams, SyncGroup, @@ -223,7 +223,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator { const iter = this.listLogsPagingAll( @@ -265,7 +265,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): AsyncIterableIterator { let result = await this._listLogs( @@ -304,7 +304,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): AsyncIterableIterator { for await (const page of this.listLogsPagingPage( @@ -552,7 +552,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -1041,7 +1041,7 @@ export class SyncGroupsImpl implements SyncGroups { startTime: string, endTime: string, nextLink: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsNextOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -1095,7 +1095,7 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1109,7 +1109,7 @@ const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1130,7 +1130,7 @@ const listHubSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1153,7 +1153,7 @@ const listLogsOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.startTime1, Parameters.endTime1, Parameters.typeParam, @@ -1175,7 +1175,7 @@ const cancelSyncOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1191,7 +1191,7 @@ const triggerSyncOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", httpMethod: "POST", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1212,7 +1212,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1243,8 +1243,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1262,7 +1262,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1292,8 +1292,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1316,7 +1316,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1336,7 +1336,7 @@ const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1355,7 +1355,7 @@ const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1378,7 +1378,7 @@ const listLogsNextOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.startTime1, Parameters.endTime1, Parameters.typeParam, @@ -1405,7 +1405,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts index 4bdfbe0bf796..f7cdf334669b 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -845,7 +845,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -877,8 +877,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -897,7 +897,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -928,8 +928,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -953,7 +953,7 @@ const listBySyncGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -975,7 +975,7 @@ const listMemberSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -993,7 +993,7 @@ const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1014,7 +1014,7 @@ const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1036,7 +1036,7 @@ const listMemberSchemasNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index 60b45324a51b..228292c1d50c 100644 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts @@ -124,8 +124,8 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/timeZones.ts b/sdk/sql/arm-sql/src/operations/timeZones.ts index b9cf3fd886f4..f7b8c39f50a1 100644 --- a/sdk/sql/arm-sql/src/operations/timeZones.ts +++ b/sdk/sql/arm-sql/src/operations/timeZones.ts @@ -150,7 +150,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -169,7 +169,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -188,7 +188,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts index a5e01d4e1a1e..4d6240d44fd1 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -232,7 +232,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,8 +258,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 202: {}, default: {} }, - requestBody: Parameters.parameters75, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -282,7 +282,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -302,7 +302,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/usages.ts b/sdk/sql/arm-sql/src/operations/usages.ts index b24c8da2da4c..877bfedcadbc 100644 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ b/sdk/sql/arm-sql/src/operations/usages.ts @@ -156,7 +156,7 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expandChildren], + queryParameters: [Parameters.apiVersion4, Parameters.expandChildren], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -175,7 +175,7 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expandChildren], + queryParameters: [Parameters.apiVersion4, Parameters.expandChildren], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts index d0b16e4a3ab6..24f691ed09ea 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -20,8 +20,6 @@ import { VirtualClustersListOptionalParams, VirtualClustersListByResourceGroupNextOptionalParams, VirtualClustersListByResourceGroupOptionalParams, - VirtualClustersUpdateDnsServersOptionalParams, - VirtualClustersUpdateDnsServersResponse, VirtualClustersListResponse, VirtualClustersListByResourceGroupResponse, VirtualClustersGetOptionalParams, @@ -30,6 +28,8 @@ import { VirtualClusterUpdate, VirtualClustersUpdateOptionalParams, VirtualClustersUpdateResponse, + VirtualClustersUpdateDnsServersOptionalParams, + VirtualClustersUpdateDnsServersResponse, VirtualClustersListNextResponse, VirtualClustersListByResourceGroupNextResponse } from "../models"; @@ -143,24 +143,6 @@ export class VirtualClustersImpl implements VirtualClusters { } } - /** - * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param options The options parameters. - */ - updateDnsServers( - resourceGroupName: string, - virtualClusterName: string, - options?: VirtualClustersUpdateDnsServersOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, virtualClusterName, options }, - updateDnsServersOperationSpec - ); - } - /** * Gets a list of all virtualClusters in the subscription. * @param options The options parameters. @@ -290,7 +272,7 @@ export class VirtualClustersImpl implements VirtualClusters { } /** - * Updates a virtual cluster. + * Updates an existing virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. @@ -361,7 +343,7 @@ export class VirtualClustersImpl implements VirtualClusters { } /** - * Updates a virtual cluster. + * Updates an existing virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. @@ -383,6 +365,95 @@ export class VirtualClustersImpl implements VirtualClusters { return poller.pollUntilDone(); } + /** + * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param options The options parameters. + */ + async beginUpdateDnsServers( + resourceGroupName: string, + virtualClusterName: string, + options?: VirtualClustersUpdateDnsServersOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualClustersUpdateDnsServersResponse + > + > { + 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, virtualClusterName, options }, + updateDnsServersOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param options The options parameters. + */ + async beginUpdateDnsServersAndWait( + resourceGroupName: string, + virtualClusterName: string, + options?: VirtualClustersUpdateDnsServersOptionalParams + ): Promise { + const poller = await this.beginUpdateDnsServers( + resourceGroupName, + virtualClusterName, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param nextLink The nextLink from the previous successful call to the List method. @@ -419,26 +490,6 @@ export class VirtualClustersImpl implements VirtualClusters { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const updateDnsServersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}/updateManagedInstanceDnsServers", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.UpdateManagedInstanceDnsServersOperation - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.virtualClusterName - ], - headerParameters: [Parameters.accept], - serializer -}; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/virtualClusters", @@ -449,7 +500,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -464,7 +515,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -483,7 +534,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -498,7 +549,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -526,8 +577,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters97, + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -538,6 +589,35 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const updateDnsServersOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}/updateManagedInstanceDnsServers", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.UpdateVirtualClusterDnsServersOperation + }, + 201: { + bodyMapper: Mappers.UpdateVirtualClusterDnsServersOperation + }, + 202: { + bodyMapper: Mappers.UpdateVirtualClusterDnsServersOperation + }, + 204: { + bodyMapper: Mappers.UpdateVirtualClusterDnsServersOperation + }, + default: {} + }, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.virtualClusterName + ], + headerParameters: [Parameters.accept], + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -547,7 +627,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -565,7 +645,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index 3c1aa35c9d7d..c7fbec88a31e 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts @@ -377,7 +377,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -407,8 +407,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -425,7 +425,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -445,7 +445,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -464,7 +464,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts index 3bfb6b37678e..6bac5ef65429 100644 --- a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -456,7 +456,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -488,8 +488,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -508,7 +508,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -530,7 +530,7 @@ const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -551,7 +551,7 @@ const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/workloadGroups.ts b/sdk/sql/arm-sql/src/operations/workloadGroups.ts index 1b195a6040e7..08434e8b62d5 100644 --- a/sdk/sql/arm-sql/src/operations/workloadGroups.ts +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -415,7 +415,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -446,8 +446,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -465,7 +465,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -486,7 +486,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -506,7 +506,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..4008a4eeffe0 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseAdvancedThreatProtectionSettings.ts @@ -0,0 +1,71 @@ +/* + * 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 { + DatabaseAdvancedThreatProtection, + DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams, + AdvancedThreatProtectionName, + DatabaseAdvancedThreatProtectionSettingsGetOptionalParams, + DatabaseAdvancedThreatProtectionSettingsGetResponse, + DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a DatabaseAdvancedThreatProtectionSettings. */ +export interface DatabaseAdvancedThreatProtectionSettings { + /** + * Gets a list of database's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise; + /** + * Creates or updates a database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The database Advanced Threat Protection state. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: DatabaseAdvancedThreatProtection, + options?: DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts index 93138a1af56e..ca57825ad4ea 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts @@ -25,20 +25,20 @@ import { DatabaseUpdate, DatabasesUpdateOptionalParams, DatabasesUpdateResponse, + ExportDatabaseDefinition, + DatabasesExportOptionalParams, + DatabasesExportResponse, DatabasesFailoverOptionalParams, + ImportExistingDatabaseDefinition, + DatabasesImportOptionalParams, + DatabasesImportResponse, + ResourceMoveDefinition, + DatabasesRenameOptionalParams, DatabasesPauseOptionalParams, DatabasesPauseResponse, DatabasesResumeOptionalParams, DatabasesResumeResponse, - DatabasesUpgradeDataWarehouseOptionalParams, - ResourceMoveDefinition, - DatabasesRenameOptionalParams, - ImportExistingDatabaseDefinition, - DatabasesImportOptionalParams, - DatabasesImportResponse, - ExportDatabaseDefinition, - DatabasesExportOptionalParams, - DatabasesExportResponse + DatabasesUpgradeDataWarehouseOptionalParams } from "../models"; /// @@ -229,215 +229,215 @@ export interface Databases { options?: DatabasesUpdateOptionalParams ): Promise; /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - beginFailover( + beginExport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise, void>>; + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesExportResponse + > + >; /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param options The options parameters. */ - beginFailoverAndWait( + beginExportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesFailoverOptionalParams - ): Promise; + parameters: ExportDatabaseDefinition, + options?: DatabasesExportOptionalParams + ): Promise; /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - beginPause( + beginFailover( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesPauseResponse - > - >; + options?: DatabasesFailoverOptionalParams + ): Promise, void>>; /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param options The options parameters. */ - beginPauseAndWait( + beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesPauseOptionalParams - ): Promise; + options?: DatabasesFailoverOptionalParams + ): Promise; /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - beginResume( + beginImport( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesResumeResponse + PollOperationState, + DatabasesImportResponse > >; /** - * Resumes a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param options The options parameters. */ - beginResumeAndWait( + beginImportAndWait( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesResumeOptionalParams - ): Promise; + parameters: ImportExistingDatabaseDefinition, + options?: DatabasesImportOptionalParams + ): Promise; /** - * Upgrades a data warehouse. + * Renames a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to rename. + * @param parameters The resource move definition for renaming this database. * @param options The options parameters. */ - beginUpgradeDataWarehouse( + rename( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise, void>>; + parameters: ResourceMoveDefinition, + options?: DatabasesRenameOptionalParams + ): Promise; /** - * Upgrades a data warehouse. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database to be paused. * @param options The options parameters. */ - beginUpgradeDataWarehouseAndWait( + beginPause( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabasesUpgradeDataWarehouseOptionalParams - ): Promise; + options?: DatabasesPauseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DatabasesPauseResponse + > + >; /** - * Renames a database. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. + * @param databaseName The name of the database to be paused. * @param options The options parameters. */ - rename( + beginPauseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ResourceMoveDefinition, - options?: DatabasesRenameOptionalParams - ): Promise; + options?: DatabasesPauseOptionalParams + ): Promise; /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - beginImport( + beginResume( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams + options?: DatabasesResumeOptionalParams ): Promise< PollerLike< - PollOperationState, - DatabasesImportResponse + PollOperationState, + DatabasesResumeResponse > >; /** - * Imports a bacpac into a new database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database import request parameters. + * @param databaseName The name of the database to be resumed. * @param options The options parameters. */ - beginImportAndWait( + beginResumeAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ImportExistingDatabaseDefinition, - options?: DatabasesImportOptionalParams - ): Promise; + options?: DatabasesResumeOptionalParams + ): Promise; /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - beginExport( + beginUpgradeDataWarehouse( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DatabasesExportResponse - > - >; + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise, void>>; /** - * Exports a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database export request parameters. + * @param databaseName The name of the database to be upgraded. * @param options The options parameters. */ - beginExportAndWait( + beginUpgradeDataWarehouseAndWait( resourceGroupName: string, serverName: string, databaseName: string, - parameters: ExportDatabaseDefinition, - options?: DatabasesExportOptionalParams - ): Promise; + options?: DatabasesUpgradeDataWarehouseOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts new file mode 100644 index 000000000000..c8e057ce9713 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts @@ -0,0 +1,154 @@ +/* + * 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 { + DistributedAvailabilityGroup, + DistributedAvailabilityGroupsListByInstanceOptionalParams, + DistributedAvailabilityGroupsGetOptionalParams, + DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, + DistributedAvailabilityGroupsCreateOrUpdateResponse, + DistributedAvailabilityGroupsDeleteOptionalParams, + DistributedAvailabilityGroupsUpdateOptionalParams, + DistributedAvailabilityGroupsUpdateResponse +} from "../models"; + +/// +/** Interface representing a DistributedAvailabilityGroups. */ +export interface DistributedAvailabilityGroups { + /** + * Gets a list of a distributed availability groups in instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a distributed availability group info. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsGetOptionalParams + ): Promise; + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsCreateOrUpdateResponse + > + >; + /** + * Creates a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + ): Promise; + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise, void>>; + /** + * Drops a distributed availability group between Sql On-Prem and Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + options?: DistributedAvailabilityGroupsDeleteOptionalParams + ): Promise; + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + DistributedAvailabilityGroupsUpdateResponse + > + >; + /** + * Updates a distributed availability group replication mode. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group info. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroup, + options?: DistributedAvailabilityGroupsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/endpointCertificates.ts b/sdk/sql/arm-sql/src/operationsInterfaces/endpointCertificates.ts new file mode 100644 index 000000000000..d13bb3b68936 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/endpointCertificates.ts @@ -0,0 +1,46 @@ +/* + * 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 { + EndpointCertificate, + EndpointCertificatesListByInstanceOptionalParams, + EndpointCertificatesGetOptionalParams, + EndpointCertificatesGetResponse +} from "../models"; + +/// +/** Interface representing a EndpointCertificates. */ +export interface EndpointCertificates { + /** + * List certificates used on endpoints on the target instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a certificate used on the endpoint with the given id. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param endpointType Type of the endpoint whose certificate the customer is looking for. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + endpointType: string, + options?: EndpointCertificatesGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/iPv6FirewallRules.ts new file mode 100644 index 000000000000..0dea94f58b8f --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/iPv6FirewallRules.ts @@ -0,0 +1,79 @@ +/* + * 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 { + IPv6FirewallRule, + IPv6FirewallRulesListByServerOptionalParams, + IPv6FirewallRulesGetOptionalParams, + IPv6FirewallRulesGetResponse, + IPv6FirewallRulesCreateOrUpdateOptionalParams, + IPv6FirewallRulesCreateOrUpdateResponse, + IPv6FirewallRulesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a IPv6FirewallRules. */ +export interface IPv6FirewallRules { + /** + * Gets a list of IPv6 firewall rules. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + listByServer( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesGetOptionalParams + ): Promise; + /** + * Creates or updates an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param parameters The required parameters for creating or updating an IPv6 firewall rule. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + parameters: IPv6FirewallRule, + options?: IPv6FirewallRulesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes an IPv6 firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + firewallRuleName: string, + options?: IPv6FirewallRulesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts index 717bfce71bce..689058d7640b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -12,16 +12,11 @@ export * from "./dataMaskingRules"; export * from "./geoBackupPolicies"; export * from "./databases"; export * from "./elasticPools"; -export * from "./replicationLinks"; export * from "./serverCommunicationLinks"; export * from "./serviceObjectives"; export * from "./elasticPoolActivities"; export * from "./elasticPoolDatabaseActivities"; export * from "./serverUsages"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; @@ -61,8 +56,6 @@ export * from "./managedDatabases"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; @@ -81,13 +74,10 @@ export * from "./managedInstanceVulnerabilityAssessments"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; export * from "./managedServerSecurityAlertPolicies"; export * from "./operations"; -export * from "./operationsHealthOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./recoverableManagedDatabases"; export * from "./restorePoints"; -export * from "./sensitivityLabels"; -export * from "./recommendedSensitivityLabels"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; @@ -106,7 +96,6 @@ export * from "./syncGroups"; export * from "./syncMembers"; export * from "./tdeCertificates"; export * from "./timeZones"; -export * from "./virtualClusters"; export * from "./virtualNetworkRules"; export * from "./workloadClassifiers"; export * from "./workloadGroups"; @@ -125,3 +114,24 @@ export * from "./managedInstances"; export * from "./restorableDroppedDatabases"; export * from "./restorableDroppedManagedDatabases"; export * from "./serverConnectionPolicies"; +export * from "./distributedAvailabilityGroups"; +export * from "./serverTrustCertificates"; +export * from "./iPv6FirewallRules"; +export * from "./endpointCertificates"; +export * from "./replicationLinks"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; +export * from "./databaseAdvancedThreatProtectionSettings"; +export * from "./serverAdvancedThreatProtectionSettings"; +export * from "./managedServerDnsAliases"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; +export * from "./managedDatabaseMoveOperations"; +export * from "./managedInstanceDtcs"; +export * from "./virtualClusters"; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..14c6bba03db7 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseAdvancedThreatProtectionSettings.ts @@ -0,0 +1,73 @@ +/* + * 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 { + ManagedDatabaseAdvancedThreatProtection, + ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams, + AdvancedThreatProtectionName, + ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams, + ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse, + ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ManagedDatabaseAdvancedThreatProtectionSettings. */ +export interface ManagedDatabaseAdvancedThreatProtectionSettings { + /** + * Gets a list of managed database's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a managed database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise; + /** + * Creates or updates a managed database's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The managed database Advanced Threat Protection state. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ManagedDatabaseAdvancedThreatProtection, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + >; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseMoveOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseMoveOperations.ts new file mode 100644 index 000000000000..2882418a33ea --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseMoveOperations.ts @@ -0,0 +1,46 @@ +/* + * 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 { + ManagedDatabaseMoveOperationResult, + ManagedDatabaseMoveOperationsListByLocationOptionalParams, + ManagedDatabaseMoveOperationsGetOptionalParams, + ManagedDatabaseMoveOperationsGetResponse +} from "../models"; + +/// +/** Interface representing a ManagedDatabaseMoveOperations. */ +export interface ManagedDatabaseMoveOperations { + /** + * Lists managed database move operations. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param options The options parameters. + */ + listByLocation( + resourceGroupName: string, + locationName: string, + options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a managed database move operation. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param operationId + * @param options The options parameters. + */ + get( + resourceGroupName: string, + locationName: string, + operationId: string, + options?: ManagedDatabaseMoveOperationsGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..071d3eec9d31 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceAdvancedThreatProtectionSettings.ts @@ -0,0 +1,91 @@ +/* + * 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 { + ManagedInstanceAdvancedThreatProtection, + ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams, + AdvancedThreatProtectionName, + ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams, + ManagedInstanceAdvancedThreatProtectionSettingsGetResponse, + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ManagedInstanceAdvancedThreatProtectionSettings. */ +export interface ManagedInstanceAdvancedThreatProtectionSettings { + /** + * Get the managed instance's Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a managed instance's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise; + /** + * Creates or updates Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The managed instance Advanced Threat Protection state. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ManagedInstanceAdvancedThreatProtection, + options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + >, + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + > + >; + /** + * Creates or updates Advanced Threat Protection settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The managed instance Advanced Threat Protection state. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ManagedInstanceAdvancedThreatProtection, + options?: ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + >; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceDtcs.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceDtcs.ts new file mode 100644 index 000000000000..18e6e411548b --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceDtcs.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 { + ManagedInstanceDtc, + ManagedInstanceDtcsListByManagedInstanceOptionalParams, + DtcName, + ManagedInstanceDtcsGetOptionalParams, + ManagedInstanceDtcsGetResponse, + ManagedInstanceDtcsCreateOrUpdateOptionalParams, + ManagedInstanceDtcsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ManagedInstanceDtcs. */ +export interface ManagedInstanceDtcs { + /** + * Gets a list of managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dtcName The name of the managed instance DTC. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + dtcName: DtcName, + options?: ManagedInstanceDtcsGetOptionalParams + ): Promise; + /** + * Updates managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dtcName The name of the managed instance DTC. + * @param parameters Managed instance DTC settings. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + dtcName: DtcName, + parameters: ManagedInstanceDtc, + options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedInstanceDtcsCreateOrUpdateResponse + > + >; + /** + * Updates managed instance DTC settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dtcName The name of the managed instance DTC. + * @param parameters Managed instance DTC settings. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + dtcName: DtcName, + parameters: ManagedInstanceDtc, + options?: ManagedInstanceDtcsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerDnsAliases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerDnsAliases.ts new file mode 100644 index 000000000000..26e5fbacba5d --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerDnsAliases.ts @@ -0,0 +1,156 @@ +/* + * 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 { + ManagedServerDnsAlias, + ManagedServerDnsAliasesListByManagedInstanceOptionalParams, + ManagedServerDnsAliasesGetOptionalParams, + ManagedServerDnsAliasesGetResponse, + ManagedServerDnsAliasCreation, + ManagedServerDnsAliasesCreateOrUpdateOptionalParams, + ManagedServerDnsAliasesCreateOrUpdateResponse, + ManagedServerDnsAliasesDeleteOptionalParams, + ManagedServerDnsAliasAcquisition, + ManagedServerDnsAliasesAcquireOptionalParams, + ManagedServerDnsAliasesAcquireResponse +} from "../models"; + +/// +/** Interface representing a ManagedServerDnsAliases. */ +export interface ManagedServerDnsAliases { + /** + * Gets a list of managed server DNS aliases for a managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a server DNS alias. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + options?: ManagedServerDnsAliasesGetOptionalParams + ): Promise; + /** + * Creates a managed server DNS alias. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server dns alias creation request. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasCreation, + options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedServerDnsAliasesCreateOrUpdateResponse + > + >; + /** + * Creates a managed server DNS alias. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server dns alias creation request. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasCreation, + options?: ManagedServerDnsAliasesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the managed server DNS alias with the given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + options?: ManagedServerDnsAliasesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes the managed server DNS alias with the given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + options?: ManagedServerDnsAliasesDeleteOptionalParams + ): Promise; + /** + * Acquires managed server DNS alias from another managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server DNS alias acquisition request. + * @param options The options parameters. + */ + beginAcquire( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasAcquisition, + options?: ManagedServerDnsAliasesAcquireOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedServerDnsAliasesAcquireResponse + > + >; + /** + * Acquires managed server DNS alias from another managed server. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param dnsAliasName + * @param parameters A managed server DNS alias acquisition request. + * @param options The options parameters. + */ + beginAcquireAndWait( + resourceGroupName: string, + managedInstanceName: string, + dnsAliasName: string, + parameters: ManagedServerDnsAliasAcquisition, + options?: ManagedServerDnsAliasesAcquireOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/operationsHealthOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/operationsHealthOperations.ts deleted file mode 100644 index dce514ace15b..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/operationsHealthOperations.ts +++ /dev/null @@ -1,27 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - OperationsHealth, - OperationsHealthListByLocationOptionalParams -} from "../models"; - -/// -/** Interface representing a OperationsHealthOperations. */ -export interface OperationsHealthOperations { - /** - * Gets a service operation health status. - * @param locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - listByLocation( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/replicationLinks.ts b/sdk/sql/arm-sql/src/operationsInterfaces/replicationLinks.ts index c124dc370c98..2948acb2e18a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/replicationLinks.ts @@ -12,13 +12,13 @@ import { ReplicationLink, ReplicationLinksListByDatabaseOptionalParams, ReplicationLinksListByServerOptionalParams, + ReplicationLinksGetOptionalParams, + ReplicationLinksGetResponse, ReplicationLinksDeleteOptionalParams, ReplicationLinksFailoverOptionalParams, + ReplicationLinksFailoverResponse, ReplicationLinksFailoverAllowDataLossOptionalParams, - UnlinkParameters, - ReplicationLinksUnlinkOptionalParams, - ReplicationLinksGetOptionalParams, - ReplicationLinksGetResponse + ReplicationLinksFailoverAllowDataLossResponse } from "../models"; /// @@ -51,125 +51,97 @@ export interface ReplicationLinks { options?: ReplicationLinksListByServerOptionalParams ): PagedAsyncIterableIterator; /** - * Deletes a database replication link. Cannot be done during failover. + * Gets a replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - delete( + get( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksDeleteOptionalParams - ): Promise; + options?: ReplicationLinksGetOptionalParams + ): Promise; /** - * Sets which replica database is primary by failing over from the current primary replica database. + * Deletes the replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId * @param options The options parameters. */ - beginFailover( + delete( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams - ): Promise, void>>; + options?: ReplicationLinksDeleteOptionalParams + ): Promise; /** - * Sets which replica database is primary by failing over from the current primary replica database. + * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - beginFailoverAndWait( + beginFailover( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverOptionalParams - ): Promise; + ): Promise< + PollerLike< + PollOperationState, + ReplicationLinksFailoverResponse + > + >; /** - * Sets which replica database is primary by failing over from the current primary replica database. - * This operation might result in data loss. + * Fails over from the current primary server to this server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - beginFailoverAllowDataLoss( + beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverAllowDataLossOptionalParams - ): Promise, void>>; + options?: ReplicationLinksFailoverOptionalParams + ): Promise; /** - * Sets which replica database is primary by failing over from the current primary replica database. - * This operation might result in data loss. + * Fails over from the current primary server to this server allowing data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * @param databaseName The name of the database. + * @param linkId The name of the replication link. * @param options The options parameters. */ - beginFailoverAllowDataLossAndWait( + beginFailoverAllowDataLoss( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksFailoverAllowDataLossOptionalParams - ): Promise; - /** - * Deletes a database replication link in forced or friendly way. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param parameters The required parameters for unlinking replication link. - * @param options The options parameters. - */ - beginUnlink( - resourceGroupName: string, - serverName: string, - databaseName: string, - linkId: string, - parameters: UnlinkParameters, - options?: ReplicationLinksUnlinkOptionalParams - ): Promise, void>>; - /** - * Deletes a database replication link in forced or friendly way. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param parameters The required parameters for unlinking replication link. - * @param options The options parameters. - */ - beginUnlinkAndWait( - resourceGroupName: string, - serverName: string, - databaseName: string, - linkId: string, - parameters: UnlinkParameters, - options?: ReplicationLinksUnlinkOptionalParams - ): Promise; + ): Promise< + PollerLike< + PollOperationState, + ReplicationLinksFailoverAllowDataLossResponse + > + >; /** - * Gets a replication link. + * Fails over from the current primary server to this server allowing data loss. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -177,11 +149,11 @@ export interface ReplicationLinks { * @param linkId The name of the replication link. * @param options The options parameters. */ - get( + beginFailoverAllowDataLossAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksGetOptionalParams - ): Promise; + options?: ReplicationLinksFailoverAllowDataLossOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverAdvancedThreatProtectionSettings.ts new file mode 100644 index 000000000000..8814d8b17633 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverAdvancedThreatProtectionSettings.ts @@ -0,0 +1,89 @@ +/* + * 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 { + ServerAdvancedThreatProtection, + ServerAdvancedThreatProtectionSettingsListByServerOptionalParams, + AdvancedThreatProtectionName, + ServerAdvancedThreatProtectionSettingsGetOptionalParams, + ServerAdvancedThreatProtectionSettingsGetResponse, + ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams, + ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ServerAdvancedThreatProtectionSettings. */ +export interface ServerAdvancedThreatProtectionSettings { + /** + * Get a list of the server's Advanced Threat Protection states. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The options parameters. + */ + listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a server's Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + options?: ServerAdvancedThreatProtectionSettingsGetOptionalParams + ): Promise; + /** + * Creates or updates an Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The server Advanced Threat Protection state. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ServerAdvancedThreatProtection, + options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + >, + ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + > + >; + /** + * Creates or updates an Advanced Threat Protection state. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param advancedThreatProtectionName The name of the Advanced Threat Protection state. + * @param parameters The server Advanced Threat Protection state. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serverName: string, + advancedThreatProtectionName: AdvancedThreatProtectionName, + parameters: ServerAdvancedThreatProtection, + options?: ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverTrustCertificates.ts new file mode 100644 index 000000000000..e9e1a4ff97cb --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverTrustCertificates.ts @@ -0,0 +1,116 @@ +/* + * 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 { + ServerTrustCertificate, + ServerTrustCertificatesListByInstanceOptionalParams, + ServerTrustCertificatesGetOptionalParams, + ServerTrustCertificatesGetResponse, + ServerTrustCertificatesCreateOrUpdateOptionalParams, + ServerTrustCertificatesCreateOrUpdateResponse, + ServerTrustCertificatesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ServerTrustCertificates. */ +export interface ServerTrustCertificates { + /** + * Gets a list of server trust certificates that were uploaded from box to the given Sql Managed + * Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to get. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesGetOptionalParams + ): Promise; + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServerTrustCertificatesCreateOrUpdateResponse + > + >; + /** + * Uploads a server trust certificate from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to upload. + * @param parameters The server trust certificate info. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + parameters: ServerTrustCertificate, + options?: ServerTrustCertificatesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a server trust certificate that was uploaded from box to Sql Managed Instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param certificateName Name of of the certificate to delete. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + certificateName: string, + options?: ServerTrustCertificatesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts index 1457be1739b8..96742a1da3d0 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts @@ -14,7 +14,7 @@ import { SyncFullSchemaProperties, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, - Enum60, + SyncGroupsType, SyncGroupsListLogsOptionalParams, SyncGroup, SyncGroupsListByDatabaseOptionalParams, @@ -77,7 +77,7 @@ export interface SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator; /** diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/virtualClusters.ts b/sdk/sql/arm-sql/src/operationsInterfaces/virtualClusters.ts index 3359222572d9..69ce32c09303 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/virtualClusters.ts @@ -12,14 +12,14 @@ import { VirtualCluster, VirtualClustersListOptionalParams, VirtualClustersListByResourceGroupOptionalParams, - VirtualClustersUpdateDnsServersOptionalParams, - VirtualClustersUpdateDnsServersResponse, VirtualClustersGetOptionalParams, VirtualClustersGetResponse, VirtualClustersDeleteOptionalParams, VirtualClusterUpdate, VirtualClustersUpdateOptionalParams, - VirtualClustersUpdateResponse + VirtualClustersUpdateResponse, + VirtualClustersUpdateDnsServersOptionalParams, + VirtualClustersUpdateDnsServersResponse } from "../models"; /// @@ -42,18 +42,6 @@ export interface VirtualClusters { resourceGroupName: string, options?: VirtualClustersListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param options The options parameters. - */ - updateDnsServers( - resourceGroupName: string, - virtualClusterName: string, - options?: VirtualClustersUpdateDnsServersOptionalParams - ): Promise; /** * Gets a virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -91,7 +79,7 @@ export interface VirtualClusters { options?: VirtualClustersDeleteOptionalParams ): Promise; /** - * Updates a virtual cluster. + * Updates an existing virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. @@ -110,7 +98,7 @@ export interface VirtualClusters { > >; /** - * Updates a virtual cluster. + * Updates an existing virtual cluster. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. @@ -123,4 +111,33 @@ export interface VirtualClusters { parameters: VirtualClusterUpdate, options?: VirtualClustersUpdateOptionalParams ): Promise; + /** + * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param options The options parameters. + */ + beginUpdateDnsServers( + resourceGroupName: string, + virtualClusterName: string, + options?: VirtualClustersUpdateDnsServersOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualClustersUpdateDnsServersResponse + > + >; + /** + * Synchronizes the DNS server settings used by the managed instances inside the given virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param options The options parameters. + */ + beginUpdateDnsServersAndWait( + resourceGroupName: string, + virtualClusterName: string, + options?: VirtualClustersUpdateDnsServersOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index d433494016b4..3bcf3856eb86 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -16,16 +16,11 @@ import { GeoBackupPoliciesImpl, DatabasesImpl, ElasticPoolsImpl, - ReplicationLinksImpl, ServerCommunicationLinksImpl, ServiceObjectivesImpl, ElasticPoolActivitiesImpl, ElasticPoolDatabaseActivitiesImpl, ServerUsagesImpl, - ExtendedDatabaseBlobAuditingPoliciesImpl, - ExtendedServerBlobAuditingPoliciesImpl, - ServerBlobAuditingPoliciesImpl, - DatabaseBlobAuditingPoliciesImpl, DatabaseAdvisorsImpl, DatabaseAutomaticTuningOperationsImpl, DatabaseColumnsImpl, @@ -65,8 +60,6 @@ import { ManagedDatabaseSchemasImpl, ManagedDatabaseSecurityAlertPoliciesImpl, ManagedDatabaseSecurityEventsImpl, - ManagedDatabaseSensitivityLabelsImpl, - ManagedDatabaseRecommendedSensitivityLabelsImpl, ManagedDatabaseTablesImpl, ManagedDatabaseTransparentDataEncryptionImpl, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl, @@ -85,13 +78,10 @@ import { ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl, ManagedServerSecurityAlertPoliciesImpl, OperationsImpl, - OperationsHealthOperationsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, RecoverableManagedDatabasesImpl, RestorePointsImpl, - SensitivityLabelsImpl, - RecommendedSensitivityLabelsImpl, ServerAdvisorsImpl, ServerAutomaticTuningOperationsImpl, ServerAzureADAdministratorsImpl, @@ -110,7 +100,6 @@ import { SyncMembersImpl, TdeCertificatesImpl, TimeZonesImpl, - VirtualClustersImpl, VirtualNetworkRulesImpl, WorkloadClassifiersImpl, WorkloadGroupsImpl, @@ -128,7 +117,28 @@ import { ManagedInstancesImpl, RestorableDroppedDatabasesImpl, RestorableDroppedManagedDatabasesImpl, - ServerConnectionPoliciesImpl + ServerConnectionPoliciesImpl, + DistributedAvailabilityGroupsImpl, + ServerTrustCertificatesImpl, + IPv6FirewallRulesImpl, + EndpointCertificatesImpl, + ReplicationLinksImpl, + ManagedDatabaseSensitivityLabelsImpl, + ManagedDatabaseRecommendedSensitivityLabelsImpl, + SensitivityLabelsImpl, + RecommendedSensitivityLabelsImpl, + ServerBlobAuditingPoliciesImpl, + DatabaseBlobAuditingPoliciesImpl, + ExtendedDatabaseBlobAuditingPoliciesImpl, + ExtendedServerBlobAuditingPoliciesImpl, + DatabaseAdvancedThreatProtectionSettingsImpl, + ServerAdvancedThreatProtectionSettingsImpl, + ManagedServerDnsAliasesImpl, + ManagedDatabaseAdvancedThreatProtectionSettingsImpl, + ManagedInstanceAdvancedThreatProtectionSettingsImpl, + ManagedDatabaseMoveOperationsImpl, + ManagedInstanceDtcsImpl, + VirtualClustersImpl } from "./operations"; import { RecoverableDatabases, @@ -137,16 +147,11 @@ import { GeoBackupPolicies, Databases, ElasticPools, - ReplicationLinks, ServerCommunicationLinks, ServiceObjectives, ElasticPoolActivities, ElasticPoolDatabaseActivities, ServerUsages, - ExtendedDatabaseBlobAuditingPolicies, - ExtendedServerBlobAuditingPolicies, - ServerBlobAuditingPolicies, - DatabaseBlobAuditingPolicies, DatabaseAdvisors, DatabaseAutomaticTuningOperations, DatabaseColumns, @@ -186,8 +191,6 @@ import { ManagedDatabaseSchemas, ManagedDatabaseSecurityAlertPolicies, ManagedDatabaseSecurityEvents, - ManagedDatabaseSensitivityLabels, - ManagedDatabaseRecommendedSensitivityLabels, ManagedDatabaseTables, ManagedDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessmentRuleBaselines, @@ -206,13 +209,10 @@ import { ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies, ManagedServerSecurityAlertPolicies, Operations, - OperationsHealthOperations, PrivateEndpointConnections, PrivateLinkResources, RecoverableManagedDatabases, RestorePoints, - SensitivityLabels, - RecommendedSensitivityLabels, ServerAdvisors, ServerAutomaticTuningOperations, ServerAzureADAdministrators, @@ -231,7 +231,6 @@ import { SyncMembers, TdeCertificates, TimeZones, - VirtualClusters, VirtualNetworkRules, WorkloadClassifiers, WorkloadGroups, @@ -249,7 +248,28 @@ import { ManagedInstances, RestorableDroppedDatabases, RestorableDroppedManagedDatabases, - ServerConnectionPolicies + ServerConnectionPolicies, + DistributedAvailabilityGroups, + ServerTrustCertificates, + IPv6FirewallRules, + EndpointCertificates, + ReplicationLinks, + ManagedDatabaseSensitivityLabels, + ManagedDatabaseRecommendedSensitivityLabels, + SensitivityLabels, + RecommendedSensitivityLabels, + ServerBlobAuditingPolicies, + DatabaseBlobAuditingPolicies, + ExtendedDatabaseBlobAuditingPolicies, + ExtendedServerBlobAuditingPolicies, + DatabaseAdvancedThreatProtectionSettings, + ServerAdvancedThreatProtectionSettings, + ManagedServerDnsAliases, + ManagedDatabaseAdvancedThreatProtectionSettings, + ManagedInstanceAdvancedThreatProtectionSettings, + ManagedDatabaseMoveOperations, + ManagedInstanceDtcs, + VirtualClusters } from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; @@ -284,7 +304,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/9.0.2`; + const packageDetails = `azsdk-js-arm-sql/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -337,7 +357,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); this.databases = new DatabasesImpl(this); this.elasticPools = new ElasticPoolsImpl(this); - this.replicationLinks = new ReplicationLinksImpl(this); this.serverCommunicationLinks = new ServerCommunicationLinksImpl(this); this.serviceObjectives = new ServiceObjectivesImpl(this); this.elasticPoolActivities = new ElasticPoolActivitiesImpl(this); @@ -345,16 +364,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { this ); this.serverUsages = new ServerUsagesImpl(this); - this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( - this - ); - this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( - this - ); - this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); - this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( - this - ); this.databaseAdvisors = new DatabaseAdvisorsImpl(this); this.databaseAutomaticTuningOperations = new DatabaseAutomaticTuningOperationsImpl( this @@ -418,12 +427,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseSecurityEvents = new ManagedDatabaseSecurityEventsImpl( this ); - this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( - this - ); - this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( - this - ); this.managedDatabaseTables = new ManagedDatabaseTablesImpl(this); this.managedDatabaseTransparentDataEncryption = new ManagedDatabaseTransparentDataEncryptionImpl( this @@ -470,17 +473,12 @@ export class SqlManagementClient extends coreClient.ServiceClient { this ); this.operations = new OperationsImpl(this); - this.operationsHealthOperations = new OperationsHealthOperationsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.recoverableManagedDatabases = new RecoverableManagedDatabasesImpl( this ); this.restorePoints = new RestorePointsImpl(this); - this.sensitivityLabels = new SensitivityLabelsImpl(this); - this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( - this - ); this.serverAdvisors = new ServerAdvisorsImpl(this); this.serverAutomaticTuningOperations = new ServerAutomaticTuningOperationsImpl( this @@ -509,7 +507,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.syncMembers = new SyncMembersImpl(this); this.tdeCertificates = new TdeCertificatesImpl(this); this.timeZones = new TimeZonesImpl(this); - this.virtualClusters = new VirtualClustersImpl(this); this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); this.workloadClassifiers = new WorkloadClassifiersImpl(this); this.workloadGroups = new WorkloadGroupsImpl(this); @@ -538,6 +535,51 @@ export class SqlManagementClient extends coreClient.ServiceClient { this ); this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); + this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( + this + ); + this.serverTrustCertificates = new ServerTrustCertificatesImpl(this); + this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); + this.endpointCertificates = new EndpointCertificatesImpl(this); + this.replicationLinks = new ReplicationLinksImpl(this); + this.managedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsImpl( + this + ); + this.managedDatabaseRecommendedSensitivityLabels = new ManagedDatabaseRecommendedSensitivityLabelsImpl( + this + ); + this.sensitivityLabels = new SensitivityLabelsImpl(this); + this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( + this + ); + this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); + this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( + this + ); + this.databaseAdvancedThreatProtectionSettings = new DatabaseAdvancedThreatProtectionSettingsImpl( + this + ); + this.serverAdvancedThreatProtectionSettings = new ServerAdvancedThreatProtectionSettingsImpl( + this + ); + this.managedServerDnsAliases = new ManagedServerDnsAliasesImpl(this); + this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( + this + ); + this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( + this + ); + this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( + this + ); + this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); + this.virtualClusters = new VirtualClustersImpl(this); } recoverableDatabases: RecoverableDatabases; @@ -546,16 +588,11 @@ export class SqlManagementClient extends coreClient.ServiceClient { geoBackupPolicies: GeoBackupPolicies; databases: Databases; elasticPools: ElasticPools; - replicationLinks: ReplicationLinks; serverCommunicationLinks: ServerCommunicationLinks; serviceObjectives: ServiceObjectives; elasticPoolActivities: ElasticPoolActivities; elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; serverUsages: ServerUsages; - extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; - extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; - serverBlobAuditingPolicies: ServerBlobAuditingPolicies; - databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; databaseAdvisors: DatabaseAdvisors; databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; databaseColumns: DatabaseColumns; @@ -595,8 +632,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; - managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; - managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; @@ -615,13 +650,10 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; operations: Operations; - operationsHealthOperations: OperationsHealthOperations; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; recoverableManagedDatabases: RecoverableManagedDatabases; restorePoints: RestorePoints; - sensitivityLabels: SensitivityLabels; - recommendedSensitivityLabels: RecommendedSensitivityLabels; serverAdvisors: ServerAdvisors; serverAutomaticTuningOperations: ServerAutomaticTuningOperations; serverAzureADAdministrators: ServerAzureADAdministrators; @@ -640,7 +672,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { syncMembers: SyncMembers; tdeCertificates: TdeCertificates; timeZones: TimeZones; - virtualClusters: VirtualClusters; virtualNetworkRules: VirtualNetworkRules; workloadClassifiers: WorkloadClassifiers; workloadGroups: WorkloadGroups; @@ -659,4 +690,25 @@ export class SqlManagementClient extends coreClient.ServiceClient { restorableDroppedDatabases: RestorableDroppedDatabases; restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; serverConnectionPolicies: ServerConnectionPolicies; + distributedAvailabilityGroups: DistributedAvailabilityGroups; + serverTrustCertificates: ServerTrustCertificates; + iPv6FirewallRules: IPv6FirewallRules; + endpointCertificates: EndpointCertificates; + replicationLinks: ReplicationLinks; + managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; + sensitivityLabels: SensitivityLabels; + recommendedSensitivityLabels: RecommendedSensitivityLabels; + serverBlobAuditingPolicies: ServerBlobAuditingPolicies; + databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; + extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; + extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; + managedServerDnsAliases: ManagedServerDnsAliases; + managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; + managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; + managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; + managedInstanceDtcs: ManagedInstanceDtcs; + virtualClusters: VirtualClusters; } diff --git a/sdk/sql/arm-sql/test/sampleTest.ts b/sdk/sql/arm-sql/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/sql/arm-sql/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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 { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + 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" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/sql/arm-sql/tsconfig.json b/sdk/sql/arm-sql/tsconfig.json index c6da67f236cf..3e6ae96443f3 100644 --- a/sdk/sql/arm-sql/tsconfig.json +++ b/sdk/sql/arm-sql/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-sql": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"