diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index 9500618f48cc..d5265705fb56 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,15 +1,418 @@ # Release History + +## 10.0.0-beta.1 (2022-12-16) + +**Features** -## 9.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group DatabaseAdvancedThreatProtectionSettings + - Added operation group DatabaseSqlVulnerabilityAssessmentBaselines + - Added operation group DatabaseSqlVulnerabilityAssessmentExecuteScan + - Added operation group DatabaseSqlVulnerabilityAssessmentRuleBaselines + - Added operation group DatabaseSqlVulnerabilityAssessmentScanResult + - Added operation group DatabaseSqlVulnerabilityAssessmentScans + - Added operation group DatabaseSqlVulnerabilityAssessmentsSettings + - 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 ManagedLedgerDigestUploadsOperations + - Added operation group ManagedServerDnsAliases + - Added operation group ServerAdvancedThreatProtectionSettings + - Added operation group ServerConfigurationOptions + - Added operation group ServerTrustCertificates + - Added operation group SqlVulnerabilityAssessmentBaseline + - Added operation group SqlVulnerabilityAssessmentBaselines + - Added operation group SqlVulnerabilityAssessmentExecuteScan + - Added operation group SqlVulnerabilityAssessmentRuleBaseline + - Added operation group SqlVulnerabilityAssessmentRuleBaselines + - Added operation group SqlVulnerabilityAssessments + - Added operation group SqlVulnerabilityAssessmentScanResult + - Added operation group SqlVulnerabilityAssessmentScans + - Added operation group SqlVulnerabilityAssessmentsSettings + - Added operation group StartStopManagedInstanceSchedules + - Added operation group SynapseLinkWorkspaces + - Added operation ManagedDatabases.beginCancelMove + - Added operation ManagedDatabases.beginCancelMoveAndWait + - Added operation ManagedDatabases.beginCompleteMove + - Added operation ManagedDatabases.beginCompleteMoveAndWait + - Added operation ManagedDatabases.beginStartMove + - Added operation ManagedDatabases.beginStartMoveAndWait + - Added operation ManagedInstances.beginStart + - Added operation ManagedInstances.beginStartAndWait + - Added operation ManagedInstances.beginStop + - Added operation ManagedInstances.beginStopAndWait + - Added operation ManagedInstances.listOutboundNetworkDependenciesByManagedInstance + - Added operation ReplicationLinks.beginDelete + - Added operation ReplicationLinks.beginDeleteAndWait + - Added operation VirtualClusters.beginUpdateDnsServers + - Added operation VirtualClusters.beginUpdateDnsServersAndWait + - Added Interface Baseline + - Added Interface BaselineAdjustedResult + - Added Interface BenchmarkReference + - Added Interface DatabaseAdvancedThreatProtection + - Added Interface DatabaseAdvancedThreatProtectionListResult + - Added Interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselineSet + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaseline + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + - 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 EndpointCertificate + - Added Interface EndpointCertificateListResult + - Added Interface EndpointCertificatesGetOptionalParams + - Added Interface EndpointCertificatesListByInstanceNextOptionalParams + - Added Interface EndpointCertificatesListByInstanceOptionalParams + - Added Interface EndpointDependency + - Added Interface EndpointDetail + - Added Interface IPv6FirewallRule + - Added Interface IPv6FirewallRuleListResult + - Added Interface IPv6FirewallRulesCreateOrUpdateOptionalParams + - Added Interface IPv6FirewallRulesDeleteOptionalParams + - Added Interface IPv6FirewallRulesGetOptionalParams + - Added Interface IPv6FirewallRulesListByServerNextOptionalParams + - Added Interface IPv6FirewallRulesListByServerOptionalParams + - Added Interface LogicalServerAdvancedThreatProtectionListResult + - Added Interface ManagedDatabaseAdvancedThreatProtection + - Added Interface ManagedDatabaseAdvancedThreatProtectionListResult + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + - Added Interface ManagedDatabaseMoveDefinition + - Added Interface ManagedDatabaseMoveOperationListResult + - Added Interface ManagedDatabaseMoveOperationResult + - Added Interface ManagedDatabaseMoveOperationsGetOptionalParams + - Added Interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams + - Added Interface ManagedDatabaseMoveOperationsListByLocationOptionalParams + - Added Interface ManagedDatabaseRestoreDetailsBackupSetProperties + - Added Interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties + - Added Interface ManagedDatabasesCancelMoveOptionalParams + - Added Interface ManagedDatabasesCompleteMoveOptionalParams + - Added Interface ManagedDatabasesStartMoveOptionalParams + - Added Interface ManagedDatabaseStartMoveDefinition + - Added Interface ManagedInstanceAdvancedThreatProtection + - Added Interface ManagedInstanceAdvancedThreatProtectionListResult + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + - 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 ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams + - Added Interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + - Added Interface ManagedInstancesStartOptionalParams + - Added Interface ManagedInstancesStopOptionalParams + - Added Interface ManagedLedgerDigestUploads + - Added Interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + - Added Interface ManagedLedgerDigestUploadsDisableOptionalParams + - Added Interface ManagedLedgerDigestUploadsGetOptionalParams + - Added Interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams + - Added Interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams + - Added Interface ManagedLedgerDigestUploadsListResult + - 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 OutboundEnvironmentEndpoint + - Added Interface OutboundEnvironmentEndpointCollection + - Added Interface QueryCheck + - Added Interface Remediation + - Added Interface ScheduleItem + - Added Interface ServerAdvancedThreatProtection + - Added Interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + - Added Interface ServerConfigurationOption + - Added Interface ServerConfigurationOptionListResult + - Added Interface ServerConfigurationOptionsCreateOrUpdateOptionalParams + - Added Interface ServerConfigurationOptionsGetOptionalParams + - Added Interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams + - Added Interface ServerConfigurationOptionsListByManagedInstanceOptionalParams + - Added Interface ServerTrustCertificate + - Added Interface ServerTrustCertificatesCreateOrUpdateOptionalParams + - Added Interface ServerTrustCertificatesDeleteOptionalParams + - Added Interface ServerTrustCertificatesGetOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceNextOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceOptionalParams + - Added Interface ServerTrustCertificatesListResult + - Added Interface SqlVulnerabilityAssessment + - Added Interface SqlVulnerabilityAssessmentBaselineGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + - Added Interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + - Added Interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + - Added Interface SqlVulnerabilityAssessmentListResult + - Added Interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanError + - Added Interface SQLVulnerabilityAssessmentScanListResult + - Added Interface SqlVulnerabilityAssessmentScanRecord + - Added Interface SqlVulnerabilityAssessmentScanRecordListResult + - Added Interface SqlVulnerabilityAssessmentScanResultGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanResults + - Added Interface SqlVulnerabilityAssessmentScansGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + - Added Interface SqlVulnerabilityAssessmentsDeleteOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + - Added Interface StartStopManagedInstanceSchedule + - Added Interface StartStopManagedInstanceScheduleListResult + - Added Interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams + - Added Interface StartStopManagedInstanceSchedulesDeleteOptionalParams + - Added Interface StartStopManagedInstanceSchedulesGetOptionalParams + - Added Interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams + - Added Interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams + - Added Interface SynapseLinkWorkspace + - Added Interface SynapseLinkWorkspaceInfoProperties + - Added Interface SynapseLinkWorkspaceListResult + - Added Interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams + - Added Interface SynapseLinkWorkspacesListByDatabaseOptionalParams + - Added Interface UpdateVirtualClusterDnsServersOperation + - Added Interface VaRule + - Added Type Alias AdvancedThreatProtectionName + - Added Type Alias AdvancedThreatProtectionState + - Added Type Alias BaselineName + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScansGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse + - Added Type Alias DevOpsAuditingSettingsName + - 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 ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse + - Added Type Alias ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse + - Added Type Alias ManagedLedgerDigestUploadsCreateOrUpdateResponse + - Added Type Alias ManagedLedgerDigestUploadsDisableResponse + - Added Type Alias ManagedLedgerDigestUploadsGetResponse + - Added Type Alias ManagedLedgerDigestUploadsListByDatabaseNextResponse + - Added Type Alias ManagedLedgerDigestUploadsListByDatabaseResponse + - Added Type Alias ManagedLedgerDigestUploadsName + - Added Type Alias ManagedLedgerDigestUploadsState + - 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 RuleSeverity + - Added Type Alias RuleStatus + - Added Type Alias RuleType + - Added Type Alias ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerNextResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerResponse + - Added Type Alias ServerConfigurationOptionName + - Added Type Alias ServerConfigurationOptionsCreateOrUpdateResponse + - Added Type Alias ServerConfigurationOptionsGetResponse + - Added Type Alias ServerConfigurationOptionsListByManagedInstanceNextResponse + - Added Type Alias ServerConfigurationOptionsListByManagedInstanceResponse + - Added Type Alias ServerTrustCertificatesCreateOrUpdateResponse + - Added Type Alias ServerTrustCertificatesGetResponse + - Added Type Alias ServerTrustCertificatesListByInstanceNextResponse + - Added Type Alias ServerTrustCertificatesListByInstanceResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselineGetResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse + - Added Type Alias SQLVulnerabilityAssessmentName + - Added Type Alias SqlVulnerabilityAssessmentName + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineGetResponse + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse + - Added Type Alias SqlVulnerabilityAssessmentScanResultGetResponse + - Added Type Alias SqlVulnerabilityAssessmentScanResultListByScanNextResponse + - Added Type Alias SqlVulnerabilityAssessmentScanResultListByScanResponse + - Added Type Alias SqlVulnerabilityAssessmentScansGetResponse + - Added Type Alias SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse + - Added Type Alias SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsListByServerNextResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsListByServerResponse + - Added Type Alias SqlVulnerabilityAssessmentState + - Added Type Alias StartStopManagedInstanceSchedulesCreateOrUpdateResponse + - Added Type Alias StartStopManagedInstanceSchedulesGetResponse + - Added Type Alias StartStopManagedInstanceSchedulesListByInstanceNextResponse + - Added Type Alias StartStopManagedInstanceSchedulesListByInstanceResponse + - Added Type Alias StartStopScheduleName + - Added Type Alias SynapseLinkWorkspacesListByDatabaseNextResponse + - Added Type Alias SynapseLinkWorkspacesListByDatabaseResponse + - Added Type Alias SyncGroupsType + - Interface Database has a new optional parameter sourceResourceId + - Interface DatabaseBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface ElasticPool has a new optional parameter highAvailabilityReplicaCount + - Interface ElasticPoolUpdate has a new optional parameter highAvailabilityReplicaCount + - Interface ExtendedDatabaseBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface ExtendedServerBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface ManagedDatabase has a new optional parameter storageContainerIdentity + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentBackupType + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentRestoredSizeMB + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentRestorePlanSizeMB + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter diffBackupSets + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter fullBackupSets + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter logBackupSets + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesQueued + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesRestored + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesRestoring + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesSkipped + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesUnrestorable + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter typePropertiesType + - Interface ManagedDatabaseUpdate has a new optional parameter storageContainerIdentity + - Interface ReplicationLinksDeleteOptionalParams has a new optional parameter resumeFrom + - Interface ReplicationLinksDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface ServerBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface ServerDevOpsAuditingSettings has a new optional parameter isManagedIdentityInUse + - Interface VirtualCluster has a new optional parameter version + - Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter resumeFrom + - Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter updateIntervalInMs + - Interface VirtualClusterUpdate has a new optional parameter version + - Added Enum KnownAdvancedThreatProtectionName + - Added Enum KnownBaselineName + - Added Enum KnownDevOpsAuditingSettingsName + - Added Enum KnownDNSRefreshOperationStatus + - Added Enum KnownDtcName + - Added Enum KnownManagedLedgerDigestUploadsName + - Added Enum KnownManagedLedgerDigestUploadsState + - Added Enum KnownMoveOperationMode + - Added Enum KnownReplicationMode + - Added Enum KnownRuleSeverity + - Added Enum KnownRuleStatus + - Added Enum KnownRuleType + - Added Enum KnownServerConfigurationOptionName + - Added Enum KnownSQLVulnerabilityAssessmentName + - Added Enum KnownSqlVulnerabilityAssessmentName + - Added Enum KnownStartStopScheduleName + - Added Enum KnownSyncGroupsType + - Enum KnownReplicationLinkType has a new value Standby + - Enum KnownSecondaryType has a new value Standby -### Other Changes +**Breaking Changes** + - Removed operation group OperationsHealthOperations + - Removed operation ReplicationLinks.beginUnlink + - Removed operation ReplicationLinks.beginUnlinkAndWait + - Removed operation ReplicationLinks.delete + - Removed operation VirtualClusters.updateDnsServers + - Operation ServerDevOpsAuditSettings.beginCreateOrUpdate has a new signature + - Operation ServerDevOpsAuditSettings.beginCreateOrUpdateAndWait has a new signature + - Operation ServerDevOpsAuditSettings.get has a new signature + - Operation SyncGroups.listLogs has a new signature + - Interface Database no longer has parameter primaryDelegatedIdentityClientId + - Interface DatabaseIdentity no longer has parameter delegatedResources + - Interface DatabaseUpdate no longer has parameter primaryDelegatedIdentityClientId + - Interface VirtualCluster no longer has parameter family + - Interface VirtualCluster no longer has parameter maintenanceConfigurationId + - Interface VirtualClusterUpdate no longer has parameter family + - Interface VirtualClusterUpdate no longer has parameter maintenanceConfigurationId + - Type of parameter unrestorableFiles of interface ManagedDatabaseRestoreDetailsResult is changed from string[] to ManagedDatabaseRestoreDetailsUnrestorableFileProperties[] + - Class SqlManagementClient no longer has parameter operationsHealthOperations + - Removed Enum KnownDnsRefreshConfigurationPropertiesStatus + - Removed Enum KnownEnum60 + + ## 9.1.0 (2022-12-14) **Features** diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index 20a34b7d9592..d3f5f0111807 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 70c797c195b5..6e761f91eebd 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "16d746c3411d553df56df7bedbcef0682115ad18", - "readme": "specification\\sql\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.4 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.3", - "use": "@autorest/typescript@6.0.0-rc.4" + "commit": "8888b19eed2023cdd5c4b170611e11f26a5ffb61", + "readme": "specification/sql/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --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.5", + "repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index 1bc1f2978948..a00b6c7404bb 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.1.1", + "version": "10.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -110,13 +110,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 35fd8c1de035..5b7b751d2c79 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -22,6 +22,12 @@ export type AdministratorName = string; // @public export type AdministratorType = string; +// @public +export type AdvancedThreatProtectionName = string; + +// @public +export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; + // @public export interface Advisor extends ProxyResource { readonly advisorStatus?: AdvisorStatus; @@ -163,6 +169,29 @@ export interface BackupShortTermRetentionPolicyListResult { // @public export type BackupStorageRedundancy = string; +// @public +export interface Baseline { + readonly expectedResults?: string[][]; + readonly updatedTime?: Date; +} + +// @public +export interface BaselineAdjustedResult { + readonly baseline?: Baseline; + readonly resultsNotInBaseline?: string[][]; + readonly resultsOnlyInBaseline?: string[][]; + readonly status?: RuleStatus; +} + +// @public +export type BaselineName = string; + +// @public +export interface BenchmarkReference { + readonly benchmark?: string; + readonly reference?: string; +} + // @public export type BlobAuditingPolicyState = "Enabled" | "Disabled"; @@ -268,7 +297,6 @@ export interface Database extends TrackedResource { maxSizeBytes?: number; minCapacity?: number; readonly pausedDate?: Date; - primaryDelegatedIdentityClientId?: string; readScale?: DatabaseReadScale; recoverableDatabaseId?: string; recoveryServicesRecoveryPointId?: string; @@ -282,10 +310,59 @@ export interface Database extends TrackedResource { 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 { get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: DatabaseAdvisorsGetOptionalParams): Promise; @@ -383,6 +460,7 @@ export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAud export interface DatabaseBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; isAzureMonitorTargetEnabled?: boolean; + isManagedIdentityInUse?: boolean; isStorageSecondaryKeyInUse?: boolean; readonly kind?: string; queueDelayMs?: number; @@ -506,9 +584,6 @@ export interface DatabaseExtensionsOperations { // @public export interface DatabaseIdentity { - delegatedResources?: { - [propertyName: string]: Delegation; - }; readonly tenantId?: string; type?: DatabaseIdentityType; userAssignedIdentities?: { @@ -842,6 +917,216 @@ export interface DatabasesPauseOptionalParams extends coreClient.OperationOption // @public export type DatabasesPauseResponse = Database; +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselines { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, options?: DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams): Promise; + listBySqlVulnerabilityAssessment(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselineSet extends ProxyResource { + results?: { + [propertyName: string]: string[][]; + }; + readonly systemData?: SystemData; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { + readonly nextLink?: string; + readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentExecuteScan { + beginExecute(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise, void>>; + beginExecuteAndWait(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline extends ProxyResource { + results?: string[][]; + readonly systemData?: SystemData; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput extends ProxyResource { + latestScan?: boolean; + results?: string[][]; + readonly systemData?: SystemData; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput extends ProxyResource { + latestScan?: boolean; + results?: { + [propertyName: string]: string[][]; + }; + readonly systemData?: SystemData; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { + readonly nextLink?: string; + readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselines { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; + listByBaseline(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScanResult { + get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams): Promise; + listByScan(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScans { + get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams): Promise; + listBySqlVulnerabilityAssessments(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentsSettings { + get(resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, options?: DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; + +// @public +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; + // @public export interface DatabasesRenameOptionalParams extends coreClient.OperationOptions { } @@ -943,7 +1228,6 @@ export interface DatabaseUpdate { maxSizeBytes?: number; minCapacity?: number; readonly pausedDate?: Date; - primaryDelegatedIdentityClientId?: string; readScale?: DatabaseReadScale; recoverableDatabaseId?: string; recoveryServicesRecoveryPointId?: string; @@ -1266,12 +1550,6 @@ export type DataWarehouseUserActivityName = string; // @public export type DayOfWeek = string; -// @public -export interface Delegation { - resourceId?: string; - readonly tenantId?: string; -} - // @public export interface DeletedServer extends ProxyResource { readonly deletionTime?: Date; @@ -1339,11 +1617,94 @@ export interface DeletedServersRecoverOptionalParams extends coreClient.Operatio // @public export type DeletedServersRecoverResponse = DeletedServer; +// @public +export type DevOpsAuditingSettingsName = string; + // @public 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 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 interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; + +// @public +export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +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 { @@ -1359,6 +1720,7 @@ export interface EditionCapability { // @public export interface ElasticPool extends TrackedResource { readonly creationDate?: Date; + highAvailabilityReplicaCount?: number; readonly kind?: string; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; @@ -1640,6 +2002,7 @@ export type ElasticPoolsUpdateResponse = ElasticPool; // @public export interface ElasticPoolUpdate { + highAvailabilityReplicaCount?: number; licenseType?: ElasticPoolLicenseType; maintenanceConfigurationId?: string; maxSizeBytes?: number; @@ -1719,35 +2082,81 @@ export interface EncryptionProtectorsRevalidateOptionalParams extends coreClient } // @public -export type Enum60 = string; +export interface EndpointCertificate extends ProxyResource { + publicBlob?: string; +} // @public -export interface ExportDatabaseDefinition { - administratorLogin: string; - administratorLoginPassword: string; - authenticationType?: string; - networkIsolation?: NetworkIsolationSettings; - storageKey: string; - storageKeyType: StorageKeyType; - storageUri: string; +export interface EndpointCertificateListResult { + readonly nextLink?: string; + readonly value?: EndpointCertificate[]; } // @public -export interface ExtendedDatabaseBlobAuditingPolicies { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: ExtendedDatabaseBlobAuditingPolicy, options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; +export interface EndpointCertificates { + get(resourceGroupName: string, managedInstanceName: string, endpointType: string, options?: EndpointCertificatesGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: EndpointCertificatesListByInstanceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +export type EndpointCertificatesGetResponse = EndpointCertificate; // @public -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { +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 EndpointDependency { + readonly domainName?: string; + readonly endpointDetails?: EndpointDetail[]; +} + +// @public +export interface EndpointDetail { + readonly port?: number; +} + +// @public +export interface ExportDatabaseDefinition { + administratorLogin: string; + administratorLoginPassword: string; + authenticationType?: string; + networkIsolation?: NetworkIsolationSettings; + storageKey: string; + storageKeyType: StorageKeyType; + storageUri: string; +} + +// @public +export interface ExtendedDatabaseBlobAuditingPolicies { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: ExtendedDatabaseBlobAuditingPolicy, options?: ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; + +// @public +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { } // @public @@ -1771,6 +2180,7 @@ export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = Extende export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; isAzureMonitorTargetEnabled?: boolean; + isManagedIdentityInUse?: boolean; isStorageSecondaryKeyInUse?: boolean; predicateExpression?: string; queueDelayMs?: number; @@ -1830,6 +2240,7 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; isAzureMonitorTargetEnabled?: boolean; isDevopsAuditEnabled?: boolean; + isManagedIdentityInUse?: boolean; isStorageSecondaryKeyInUse?: boolean; predicateExpression?: string; queueDelayMs?: number; @@ -2368,6 +2779,58 @@ 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"; @@ -3005,6 +3468,11 @@ export enum KnownAdministratorType { ActiveDirectory = "ActiveDirectory" } +// @public +export enum KnownAdvancedThreatProtectionName { + Default = "Default" +} + // @public export enum KnownAggregationFunctionType { Avg = "avg", @@ -3027,6 +3495,11 @@ export enum KnownBackupStorageRedundancy { Zone = "Zone" } +// @public +export enum KnownBaselineName { + Default = "default" +} + // @public export enum KnownCapabilityGroup { SupportedEditions = "supportedEditions", @@ -3176,6 +3649,11 @@ export enum KnownDayOfWeek { Wednesday = "Wednesday" } +// @public +export enum KnownDevOpsAuditingSettingsName { + Default = "Default" +} + // @public export enum KnownDiffBackupIntervalInHours { Twelve = 12, @@ -3183,11 +3661,17 @@ export enum KnownDiffBackupIntervalInHours { } // @public -export enum KnownDnsRefreshConfigurationPropertiesStatus { +export enum KnownDNSRefreshOperationStatus { Failed = "Failed", + InProgress = "InProgress", Succeeded = "Succeeded" } +// @public +export enum KnownDtcName { + Current = "current" +} + // @public export enum KnownElasticPoolLicenseType { BasePrice = "BasePrice", @@ -3206,14 +3690,6 @@ export enum KnownEncryptionProtectorName { Current = "current" } -// @public -export enum KnownEnum60 { - All = "All", - Error = "Error", - Success = "Success", - Warning = "Warning" -} - // @public export enum KnownFailoverGroupReplicationRole { Primary = "Primary", @@ -3373,6 +3849,17 @@ export enum KnownManagedInstanceProxyOverride { Redirect = "Redirect" } +// @public +export enum KnownManagedLedgerDigestUploadsName { + Current = "current" +} + +// @public +export enum KnownManagedLedgerDigestUploadsState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownManagedServerCreateMode { Default = "Default", @@ -3411,6 +3898,12 @@ export enum KnownMetricType { LogIo = "logIo" } +// @public +export enum KnownMoveOperationMode { + Copy = "Copy", + Move = "Move" +} + // @public export enum KnownOperationMode { PolybaseImport = "PolybaseImport" @@ -3528,7 +4021,14 @@ export enum KnownRecommendedActionCurrentState { // @public export enum KnownReplicationLinkType { GEO = "GEO", - Named = "NAMED" + Named = "NAMED", + Standby = "STANDBY" +} + +// @public +export enum KnownReplicationMode { + Async = "Async", + Sync = "Sync" } // @public @@ -3550,6 +4050,30 @@ export enum KnownRestoreDetailsName { Default = "Default" } +// @public +export enum KnownRuleSeverity { + High = "High", + Informational = "Informational", + Low = "Low", + Medium = "Medium", + Obsolete = "Obsolete" +} + +// @public +export enum KnownRuleStatus { + Finding = "Finding", + InternalError = "InternalError", + NonFinding = "NonFinding" +} + +// @public +export enum KnownRuleType { + BaselineExpected = "BaselineExpected", + Binary = "Binary", + NegativeList = "NegativeList", + PositiveList = "PositiveList" +} + // @public export enum KnownSampleName { AdventureWorksLT = "AdventureWorksLT", @@ -3560,7 +4084,8 @@ export enum KnownSampleName { // @public export enum KnownSecondaryType { Geo = "Geo", - Named = "Named" + Named = "Named", + Standby = "Standby" } // @public @@ -3568,6 +4093,11 @@ export enum KnownSecurityAlertPolicyName { Default = "Default" } +// @public +export enum KnownServerConfigurationOptionName { + AllowPolybaseExport = "allowPolybaseExport" +} + // @public export enum KnownServerConnectionType { Default = "Default", @@ -3685,6 +4215,21 @@ export enum KnownSqlAgentConfigurationPropertiesState { Enabled = "Enabled" } +// @public +export enum KnownSQLVulnerabilityAssessmentName { + Default = "default" +} + +// @public +export enum KnownSqlVulnerabilityAssessmentName { + Default = "default" +} + +// @public +export enum KnownStartStopScheduleName { + Default = "default" +} + // @public export enum KnownStorageCapabilityStorageAccountType { GRS = "GRS", @@ -3735,6 +4280,14 @@ export enum KnownSyncGroupState { Warning = "Warning" } +// @public +export enum KnownSyncGroupsType { + All = "All", + Error = "Error", + Success = "Success", + Warning = "Warning" +} + // @public export enum KnownSyncMemberDbType { AzureSqlDatabase = "AzureSqlDatabase", @@ -3928,6 +4481,12 @@ export interface LogicalDatabaseTransparentDataEncryptionListResult { readonly value?: LogicalDatabaseTransparentDataEncryption[]; } +// @public +export interface LogicalServerAdvancedThreatProtectionListResult { + readonly nextLink?: string; + readonly value?: ServerAdvancedThreatProtection[]; +} + // @public export interface LogicalServerSecurityAlertPolicyListResult { readonly nextLink?: string; @@ -4485,10 +5044,59 @@ export interface ManagedDatabase extends TrackedResource { restorePointInTime?: Date; sourceDatabaseId?: string; readonly status?: ManagedDatabaseStatus; + storageContainerIdentity?: string; storageContainerSasToken?: 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 { get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseColumnsGetOptionalParams): Promise; @@ -4546,6 +5154,66 @@ export interface ManagedDatabaseListResult { readonly value?: ManagedDatabase[]; } +// @public +export interface ManagedDatabaseMoveDefinition { + destinationManagedDatabaseId: string; +} + +// @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 { +} + +// @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; @@ -4590,6 +5258,16 @@ export interface ManagedDatabaseRestoreDetails { get(resourceGroupName: string, managedInstanceName: string, databaseName: string, restoreDetailsName: RestoreDetailsName, options?: ManagedDatabaseRestoreDetailsGetOptionalParams): Promise; } +// @public +export interface ManagedDatabaseRestoreDetailsBackupSetProperties { + readonly backupSizeMB?: number; + readonly firstStripeName?: string; + readonly numberOfStripes?: number; + readonly restoreFinishedTimestampUtc?: Date; + readonly restoreStartedTimestampUtc?: Date; + readonly status?: string; +} + // @public export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions { } @@ -4600,25 +5278,48 @@ export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDet // @public export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { readonly blockReason?: string; + readonly currentBackupType?: string; + readonly currentRestoredSizeMB?: number; + readonly currentRestorePlanSizeMB?: number; readonly currentRestoringFileName?: string; + readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; readonly lastRestoredFileName?: string; readonly lastRestoredFileTime?: Date; readonly lastUploadedFileName?: string; readonly lastUploadedFileTime?: Date; + readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; readonly numberOfFilesDetected?: number; + readonly numberOfFilesQueued?: number; + readonly numberOfFilesRestored?: number; + readonly numberOfFilesRestoring?: number; + readonly numberOfFilesSkipped?: number; + readonly numberOfFilesUnrestorable?: number; readonly percentCompleted?: number; readonly status?: string; - readonly unrestorableFiles?: string[]; + readonly typePropertiesType?: string; + readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; +} + +// @public +export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { + readonly name?: string; } // @public export interface ManagedDatabases { + beginCancelMove(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCancelMoveOptionalParams): Promise, void>>; + beginCancelMoveAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCancelMoveOptionalParams): Promise; + beginCompleteMove(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCompleteMoveOptionalParams): Promise, void>>; + beginCompleteMoveAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseMoveDefinition, options?: ManagedDatabasesCompleteMoveOptionalParams): Promise; beginCompleteRestore(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: CompleteDatabaseRestoreDefinition, options?: ManagedDatabasesCompleteRestoreOptionalParams): Promise, void>>; beginCompleteRestoreAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: CompleteDatabaseRestoreDefinition, options?: ManagedDatabasesCompleteRestoreOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabase, options?: ManagedDatabasesCreateOrUpdateOptionalParams): Promise, ManagedDatabasesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabase, options?: ManagedDatabasesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabasesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabasesDeleteOptionalParams): Promise; + beginStartMove(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseStartMoveDefinition, options?: ManagedDatabasesStartMoveOptionalParams): Promise, void>>; + beginStartMoveAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseStartMoveDefinition, options?: ManagedDatabasesStartMoveOptionalParams): Promise; beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseUpdate, options?: ManagedDatabasesUpdateOptionalParams): Promise, ManagedDatabasesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: ManagedDatabaseUpdate, options?: ManagedDatabasesUpdateOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabasesGetOptionalParams): Promise; @@ -4626,6 +5327,12 @@ export interface ManagedDatabases { listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedDatabasesListInaccessibleByInstanceOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ManagedDatabasesCancelMoveOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ManagedDatabaseSchemas { get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: ManagedDatabaseSchemasGetOptionalParams): Promise; @@ -4654,6 +5361,12 @@ export interface ManagedDatabaseSchemasListByDatabaseOptionalParams extends core // @public export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +// @public +export interface ManagedDatabasesCompleteMoveOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ManagedDatabasesCompleteRestoreOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -4865,6 +5578,18 @@ export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams extend // @public export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +// @public +export interface ManagedDatabasesStartMoveOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ManagedDatabaseStartMoveDefinition { + destinationManagedDatabaseId: string; + operationMode?: MoveOperationMode; +} + // @public export type ManagedDatabaseStatus = string; @@ -4957,6 +5682,7 @@ export interface ManagedDatabaseUpdate { restorePointInTime?: Date; sourceDatabaseId?: string; readonly status?: ManagedDatabaseStatus; + storageContainerIdentity?: string; storageContainerSasToken?: string; storageContainerUri?: string; tags?: { @@ -5171,16 +5897,67 @@ export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanc export type ManagedInstanceAdministratorType = string; // @public -export interface ManagedInstanceAzureADOnlyAuthentication extends ProxyResource { - azureADOnlyAuthentication?: boolean; +export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { + readonly creationTime?: Date; + state?: AdvancedThreatProtectionState; + readonly systemData?: SystemData; } // @public -export interface ManagedInstanceAzureADOnlyAuthentications { - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, parameters: ManagedInstanceAzureADOnlyAuthentication, options?: ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise, ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, parameters: ManagedInstanceAzureADOnlyAuthentication, options?: ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams): Promise; +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 { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, parameters: ManagedInstanceAzureADOnlyAuthentication, options?: ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise, ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, parameters: ManagedInstanceAzureADOnlyAuthentication, options?: ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, authenticationName: AuthenticationName, options?: ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams): Promise; listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams): PagedAsyncIterableIterator; } @@ -5227,6 +6004,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; @@ -5699,6 +6545,10 @@ export interface ManagedInstances { beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesDeleteOptionalParams): Promise; beginFailover(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise, void>>; beginFailoverAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams): Promise; + beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, void>>; + beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; + beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, void>>; + beginStopAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise; beginUpdate(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise, ManagedInstancesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, managedInstanceName: string, parameters: ManagedInstanceUpdate, options?: ManagedInstancesUpdateOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesGetOptionalParams): Promise; @@ -5706,6 +6556,7 @@ export interface ManagedInstances { listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: ManagedInstancesListByInstancePoolOptionalParams): PagedAsyncIterableIterator; listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: ManagedInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listOutboundNetworkDependenciesByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams): PagedAsyncIterableIterator; } // @public @@ -5801,9 +6652,35 @@ export interface ManagedInstancesListOptionalParams extends coreClient.Operation expand?: string; } +// @public +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; + +// @public +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; + // @public export type ManagedInstancesListResponse = ManagedInstanceListResult; +// @public +export interface ManagedInstancesStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5939,6 +6816,73 @@ export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalPa // @public export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +// @public +export interface ManagedLedgerDigestUploads extends ProxyResource { + digestStorageEndpoint?: string; + readonly state?: ManagedLedgerDigestUploadsState; +} + +// @public +export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; + +// @public +export interface ManagedLedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; + +// @public +export interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; + +// @public +export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; + +// @public +export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; + +// @public +export interface ManagedLedgerDigestUploadsListResult { + readonly nextLink?: string; + readonly value?: ManagedLedgerDigestUploads[]; +} + +// @public +export type ManagedLedgerDigestUploadsName = string; + +// @public +export interface ManagedLedgerDigestUploadsOperations { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, parameters: ManagedLedgerDigestUploads, options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams): Promise, ManagedLedgerDigestUploadsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, parameters: ManagedLedgerDigestUploads, options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams): Promise; + beginDisable(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, options?: ManagedLedgerDigestUploadsDisableOptionalParams): Promise, ManagedLedgerDigestUploadsDisableResponse>>; + beginDisableAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, options?: ManagedLedgerDigestUploadsDisableOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ledgerDigestUploads: ManagedLedgerDigestUploadsName, options?: ManagedLedgerDigestUploadsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export type ManagedLedgerDigestUploadsState = string; + // @public export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, policyName: ManagedShortTermRetentionPolicyName, parameters: ManagedBackupShortTermRetentionPolicy, options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse>>; @@ -5991,6 +6935,85 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpda // @public export type ManagedServerCreateMode = string; +// @public +export interface ManagedServerDnsAlias extends ProxyResource { + readonly azureDnsRecord?: string; + readonly publicAzureDnsRecord?: string; +} + +// @public +export interface ManagedServerDnsAliasAcquisition { + oldManagedServerDnsAliasResourceId: string; +} + +// @public +export interface ManagedServerDnsAliasCreation { + createDnsRecord?: boolean; +} + +// @public +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 ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; + +// @public +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; + +// @public +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; + +// @public +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; + +// @public +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; + +// @public +export interface ManagedServerDnsAliasListResult { + readonly nextLink?: string; + readonly value?: ManagedServerDnsAlias[]; +} + // @public export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; @@ -6145,6 +7168,9 @@ export interface MinCapacityCapability { readonly value?: number; } +// @public +export type MoveOperationMode = string; + // @public export interface Name { localizedValue?: string; @@ -6201,51 +7227,31 @@ export interface Operations { } // @public -export interface OperationsHealth extends ProxyResource { - readonly description?: string; - readonly health?: string; - readonly namePropertiesName?: string; -} - -// @public -export interface OperationsHealthListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult; - -// @public -export interface OperationsHealthListByLocationOptionalParams extends coreClient.OperationOptions { +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationsHealthListByLocationResponse = OperationsHealthListResult; +export type OperationsListNextResponse = OperationListResult; // @public -export interface OperationsHealthListResult { - readonly nextLink?: string; - readonly value?: OperationsHealth[]; +export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export interface OperationsHealthOperations { - listByLocation(locationName: string, options?: OperationsHealthListByLocationOptionalParams): PagedAsyncIterableIterator; -} +export type OperationsListResponse = OperationListResult; // @public -export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { +export interface OutboundEnvironmentEndpoint { + readonly category?: string; + readonly endpoints?: EndpointDependency[]; } // @public -export type OperationsListNextResponse = OperationListResult; - -// @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { +export interface OutboundEnvironmentEndpointCollection { + readonly nextLink?: string; + readonly value?: OutboundEnvironmentEndpoint[]; } -// @public -export type OperationsListResponse = OperationListResult; - // @public export interface OutboundFirewallRule extends ProxyResource { readonly provisioningState?: string; @@ -6484,6 +7490,13 @@ export interface ProxyResource extends Resource { export interface ProxyResourceWithWritableName extends ResourceWithWritableName { } +// @public +export interface QueryCheck { + readonly columnNames?: string[]; + readonly expectedResult?: string[][]; + readonly query?: string; +} + // @public export interface QueryMetricInterval { readonly executionCount?: number; @@ -6714,6 +7727,14 @@ export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends // @public export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; +// @public +export interface Remediation { + readonly automated?: boolean; + readonly description?: string; + readonly portalLink?: string; + readonly scripts?: string[]; +} + // @public export interface ReplicationLink extends ProxyResource { readonly isTerminationAllowed?: boolean; @@ -6737,13 +7758,12 @@ 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; - delete(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksDeleteOptionalParams): 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; get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: ReplicationLinksGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: ReplicationLinksListByDatabaseOptionalParams): PagedAsyncIterableIterator; listByServer(resourceGroupName: string, serverName: string, options?: ReplicationLinksListByServerOptionalParams): PagedAsyncIterableIterator; @@ -6751,6 +7771,8 @@ export interface ReplicationLinks { // @public export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -6759,12 +7781,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 { } @@ -6801,13 +7829,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"; @@ -7000,9 +8025,26 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult; // @public export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +// @public +export type RuleSeverity = string; + +// @public +export type RuleStatus = string; + +// @public +export type RuleType = string; + // @public export type SampleName = string; +// @public +export interface ScheduleItem { + startDay: DayOfWeek; + startTime: string; + stopDay: DayOfWeek; + stopTime: string; +} + // @public export type SecondaryType = string; @@ -7200,19 +8242,64 @@ export interface Server extends TrackedResource { } // @public -export interface ServerAdvisors { - get(resourceGroupName: string, serverName: string, advisorName: string, options?: ServerAdvisorsGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServerAdvisorsListByServerOptionalParams): Promise; - update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Advisor, options?: ServerAdvisorsUpdateOptionalParams): Promise; +export interface ServerAdvancedThreatProtection extends ProxyResource { + readonly creationTime?: Date; + state?: AdvancedThreatProtectionState; + readonly systemData?: SystemData; } // @public -export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions { +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 type ServerAdvisorsGetResponse = Advisor; - +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 ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; + +// @public +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; + +// @public +export interface ServerAdvisors { + get(resourceGroupName: string, serverName: string, advisorName: string, options?: ServerAdvisorsGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: ServerAdvisorsListByServerOptionalParams): Promise; + update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Advisor, options?: ServerAdvisorsUpdateOptionalParams): Promise; +} + +// @public +export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerAdvisorsGetResponse = Advisor; + // @public export interface ServerAdvisorsListByServerOptionalParams extends coreClient.OperationOptions { expand?: string; @@ -7406,6 +8493,7 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { auditActionsAndGroups?: string[]; isAzureMonitorTargetEnabled?: boolean; isDevopsAuditEnabled?: boolean; + isManagedIdentityInUse?: boolean; isStorageSecondaryKeyInUse?: boolean; queueDelayMs?: number; retentionDays?: number; @@ -7470,6 +8558,59 @@ export interface ServerCommunicationLinksListByServerOptionalParams extends core // @public export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; +// @public +export interface ServerConfigurationOption extends ProxyResource { + readonly provisioningState?: ProvisioningState; + serverConfigurationOptionValue?: number; +} + +// @public +export interface ServerConfigurationOptionListResult { + readonly nextLink?: string; + readonly value?: ServerConfigurationOption[]; +} + +// @public +export type ServerConfigurationOptionName = string; + +// @public +export interface ServerConfigurationOptions { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, serverConfigurationOptionName: ServerConfigurationOptionName, parameters: ServerConfigurationOption, options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams): Promise, ServerConfigurationOptionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, serverConfigurationOptionName: ServerConfigurationOptionName, parameters: ServerConfigurationOption, options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, serverConfigurationOptionName: ServerConfigurationOptionName, options?: ServerConfigurationOptionsGetOptionalParams): Promise; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: ServerConfigurationOptionsListByManagedInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; + +// @public +export interface ServerConfigurationOptionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; + +// @public +export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; + +// @public +export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; + // @public export interface ServerConnectionPolicies { beginCreateOrUpdate(resourceGroupName: string, serverName: string, connectionPolicyName: ConnectionPolicyName, parameters: ServerConnectionPolicy, options?: ServerConnectionPoliciesCreateOrUpdateOptionalParams): Promise, ServerConnectionPoliciesCreateOrUpdateResponse>>; @@ -7527,6 +8668,7 @@ export type ServerConnectionType = string; // @public export interface ServerDevOpsAuditingSettings extends ProxyResource { isAzureMonitorTargetEnabled?: boolean; + isManagedIdentityInUse?: boolean; state?: BlobAuditingPolicyState; storageAccountAccessKey?: string; storageAccountSubscriptionId?: string; @@ -7536,9 +8678,9 @@ export interface ServerDevOpsAuditingSettings extends ProxyResource { // @public export interface ServerDevOpsAuditSettings { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams): Promise, ServerDevOpsAuditSettingsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, options?: ServerDevOpsAuditSettingsGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams): Promise, ServerDevOpsAuditSettingsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: DevOpsAuditingSettingsName, options?: ServerDevOpsAuditSettingsGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ServerDevOpsAuditSettingsListByServerOptionalParams): PagedAsyncIterableIterator; } @@ -7935,6 +9077,65 @@ export interface ServersUpdateOptionalParams extends coreClient.OperationOptions // @public export type ServersUpdateResponse = Server; +// @public +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[]; @@ -8250,6 +9451,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) capabilities: Capabilities; // (undocumented) + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; + // (undocumented) databaseAdvisors: DatabaseAdvisors; // (undocumented) databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; @@ -8270,6 +9473,18 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) databaseSecurityAlertPolicies: DatabaseSecurityAlertPolicies; // (undocumented) + databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; + // (undocumented) + databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; + // (undocumented) + databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; + // (undocumented) + databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; + // (undocumented) + databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; + // (undocumented) + databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; + // (undocumented) databaseTables: DatabaseTables; // (undocumented) databaseUsages: DatabaseUsages; @@ -8288,6 +9503,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) deletedServers: DeletedServers; // (undocumented) + distributedAvailabilityGroups: DistributedAvailabilityGroups; + // (undocumented) elasticPoolActivities: ElasticPoolActivities; // (undocumented) elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; @@ -8298,6 +9515,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) encryptionProtectors: EncryptionProtectors; // (undocumented) + endpointCertificates: EndpointCertificates; + // (undocumented) extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; // (undocumented) extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; @@ -8312,6 +9531,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) instancePools: InstancePools; // (undocumented) + iPv6FirewallRules: IPv6FirewallRules; + // (undocumented) jobAgents: JobAgents; // (undocumented) jobCredentials: JobCredentials; @@ -8344,8 +9565,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; @@ -8374,8 +9599,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; @@ -8394,14 +9623,16 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedInstanceVulnerabilityAssessments: ManagedInstanceVulnerabilityAssessments; // (undocumented) + managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; + // (undocumented) managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; // (undocumented) + managedServerDnsAliases: ManagedServerDnsAliases; + // (undocumented) managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; // (undocumented) operations: Operations; // (undocumented) - operationsHealthOperations: OperationsHealthOperations; - // (undocumented) outboundFirewallRules: OutboundFirewallRules; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -8424,6 +9655,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) sensitivityLabels: SensitivityLabels; // (undocumented) + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; + // (undocumented) serverAdvisors: ServerAdvisors; // (undocumented) serverAutomaticTuningOperations: ServerAutomaticTuningOperations; @@ -8436,6 +9669,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverCommunicationLinks: ServerCommunicationLinks; // (undocumented) + serverConfigurationOptions: ServerConfigurationOptions; + // (undocumented) serverConnectionPolicies: ServerConnectionPolicies; // (undocumented) serverDevOpsAuditSettings: ServerDevOpsAuditSettings; @@ -8450,6 +9685,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverSecurityAlertPolicies: ServerSecurityAlertPolicies; // (undocumented) + serverTrustCertificates: ServerTrustCertificates; + // (undocumented) serverTrustGroups: ServerTrustGroups; // (undocumented) serverUsages: ServerUsages; @@ -8460,10 +9697,32 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) sqlAgent: SqlAgent; // (undocumented) + sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; + // (undocumented) + sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; + // (undocumented) + sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; + // (undocumented) + sqlVulnerabilityAssessmentRuleBaseline: SqlVulnerabilityAssessmentRuleBaseline; + // (undocumented) + sqlVulnerabilityAssessmentRuleBaselines: SqlVulnerabilityAssessmentRuleBaselines; + // (undocumented) + sqlVulnerabilityAssessments: SqlVulnerabilityAssessments; + // (undocumented) + sqlVulnerabilityAssessmentScanResult: SqlVulnerabilityAssessmentScanResult; + // (undocumented) + sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; + // (undocumented) + sqlVulnerabilityAssessmentsSettings: SqlVulnerabilityAssessmentsSettings; + // (undocumented) + startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; + // (undocumented) subscriptionId: string; // (undocumented) subscriptionUsages: SubscriptionUsages; // (undocumented) + synapseLinkWorkspaces: SynapseLinkWorkspaces; + // (undocumented) syncAgents: SyncAgents; // (undocumented) syncGroups: SyncGroups; @@ -8493,6 +9752,331 @@ export interface SqlManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface SqlVulnerabilityAssessment extends ProxyResource { + state?: SqlVulnerabilityAssessmentState; + readonly systemData?: SystemData; +} + +// @public +export interface SqlVulnerabilityAssessmentBaseline { + get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: SqlVulnerabilityAssessmentBaselineGetOptionalParams): Promise; + listBySqlVulnerabilityAssessment(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlVulnerabilityAssessmentBaselineGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +// @public +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +// @public +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +// @public +export interface SqlVulnerabilityAssessmentBaselines { + createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, options?: SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams): Promise; +} + +// @public +export interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +// @public +export interface SqlVulnerabilityAssessmentExecuteScan { + beginExecute(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise, void>>; + beginExecuteAndWait(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams): Promise; +} + +// @public +export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SqlVulnerabilityAssessmentListResult { + readonly nextLink?: string; + readonly value?: SqlVulnerabilityAssessment[]; +} + +// @public +export type SQLVulnerabilityAssessmentName = string; + +// @public +export type SqlVulnerabilityAssessmentName = string; + +// @public +export interface SqlVulnerabilityAssessmentRuleBaseline { + createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, options?: SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams): Promise; + listByBaseline(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +// @public +export interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +// @public +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +// @public +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +// @public +export interface SqlVulnerabilityAssessmentRuleBaselines { + delete(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, baselineName: BaselineName, ruleId: string, options?: SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; +} + +// @public +export interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlVulnerabilityAssessments { + delete(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentsDeleteOptionalParams): Promise; +} + +// @public +export interface SqlVulnerabilityAssessmentScanError { + readonly code?: string; + readonly message?: string; +} + +// @public +export interface SQLVulnerabilityAssessmentScanListResult { + readonly nextLink?: string; + readonly value?: SqlVulnerabilityAssessmentScanResults[]; +} + +// @public +export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { + readonly database?: string; + readonly endTime?: Date; + readonly errors?: SqlVulnerabilityAssessmentScanError[]; + readonly highSeverityFailedRulesCount?: number; + readonly isBaselineApplied?: boolean; + readonly lowSeverityFailedRulesCount?: number; + readonly mediumSeverityFailedRulesCount?: number; + readonly scanId?: string; + readonly server?: string; + readonly sqlVersion?: string; + readonly startTime?: Date; + readonly state?: VulnerabilityAssessmentScanState; + readonly systemData?: SystemData; + readonly totalFailedRulesCount?: number; + readonly totalPassedRulesCount?: number; + readonly totalRulesCount?: number; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; +} + +// @public +export interface SqlVulnerabilityAssessmentScanRecordListResult { + readonly nextLink?: string; + readonly value?: SqlVulnerabilityAssessmentScanRecord[]; +} + +// @public +export interface SqlVulnerabilityAssessmentScanResult { + get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: SqlVulnerabilityAssessmentScanResultGetOptionalParams): Promise; + listByScan(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; + +// @public +export interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; + +// @public +export interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; + +// @public (undocumented) +export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { + readonly baselineAdjustedResult?: BaselineAdjustedResult; + readonly errorMessage?: string; + readonly isTrimmed?: boolean; + readonly queryResults?: string[][]; + readonly remediation?: Remediation; + readonly ruleId?: string; + readonly ruleMetadata?: VaRule; + readonly status?: RuleStatus; + readonly systemData?: SystemData; +} + +// @public +export interface SqlVulnerabilityAssessmentScans { + get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScansGetOptionalParams): Promise; + listBySqlVulnerabilityAssessments(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; + +// @public +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +// @public +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +// @public +export interface SqlVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlVulnerabilityAssessmentsSettings { + createOrUpdate(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: SqlVulnerabilityAssessment, options?: SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, options?: SqlVulnerabilityAssessmentsSettingsGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; + +// @public +export interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; + +// @public +export interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; + +// @public +export interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; + +// @public +export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; + +// @public +export interface StartStopManagedInstanceSchedule extends ProxyResource { + description?: string; + readonly nextExecutionTime?: string; + readonly nextRunAction?: string; + scheduleList?: ScheduleItem[]; + readonly systemData?: SystemData; + timeZoneId?: string; +} + +// @public +export interface StartStopManagedInstanceScheduleListResult { + readonly nextLink?: string; + readonly value?: StartStopManagedInstanceSchedule[]; +} + +// @public +export interface StartStopManagedInstanceSchedules { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, startStopScheduleName: StartStopScheduleName, parameters: StartStopManagedInstanceSchedule, options?: StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, managedInstanceName: string, startStopScheduleName: StartStopScheduleName, options?: StartStopManagedInstanceSchedulesDeleteOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, startStopScheduleName: StartStopScheduleName, options?: StartStopManagedInstanceSchedulesGetOptionalParams): Promise; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; + +// @public +export interface StartStopManagedInstanceSchedulesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface StartStopManagedInstanceSchedulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; + +// @public +export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; + +// @public +export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; + +// @public +export type StartStopScheduleName = string; + // @public export interface StorageCapability { reason?: string; @@ -8547,6 +10131,42 @@ export interface SubscriptionUsagesListByLocationOptionalParams extends coreClie // @public export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +// @public +export interface SynapseLinkWorkspace extends ProxyResource { + workspaces?: SynapseLinkWorkspaceInfoProperties[]; +} + +// @public +export interface SynapseLinkWorkspaceInfoProperties { + linkConnectionName?: string; + workspaceId?: string; +} + +// @public +export interface SynapseLinkWorkspaceListResult { + readonly nextLink?: string; + readonly value?: SynapseLinkWorkspace[]; +} + +// @public +export interface SynapseLinkWorkspaces { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SynapseLinkWorkspacesListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; + +// @public +export interface SynapseLinkWorkspacesListByDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; + // @public export interface SyncAgent extends ProxyResource { readonly expiryTime?: Date; @@ -8762,7 +10382,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; } @@ -8882,6 +10502,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; @@ -9141,19 +10764,14 @@ export type UnitDefinitionType = string; // @public export type UnitType = string; -// @public -export interface UnlinkParameters { - forcedTermination?: boolean; -} - // @public export interface UpdateLongTermRetentionBackupParameters { requestedBackupStorageRedundancy?: BackupStorageRedundancy; } // @public -export interface UpdateManagedInstanceDnsServersOperation extends ProxyResource { - readonly status?: DnsRefreshConfigurationPropertiesStatus; +export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { + readonly status?: DNSRefreshOperationStatus; } // @public (undocumented) @@ -9224,12 +10842,24 @@ export interface UserIdentity { readonly principalId?: string; } +// @public +export interface VaRule { + readonly benchmarkReferences?: BenchmarkReference[]; + readonly category?: string; + readonly description?: string; + readonly queryCheck?: QueryCheck; + readonly rationale?: string; + readonly ruleId?: string; + readonly ruleType?: RuleType; + readonly severity?: RuleSeverity; + readonly title?: string; +} + // @public export interface VirtualCluster extends TrackedResource { readonly childResources?: string[]; - family?: string; - maintenanceConfigurationId?: string; readonly subnetId?: string; + version?: string; } // @public @@ -9244,10 +10874,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 @@ -9293,10 +10924,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 { @@ -9310,12 +10943,11 @@ 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 diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index 9664861b8b04..d8de2142216b 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. */ @@ -1889,81 +1787,6 @@ export interface QueryMetricProperties { readonly stdev?: number; } -/** A list of managed databases. */ -export interface ManagedDatabaseListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ManagedDatabase[]; - /** - * 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 managed database update. */ -export interface ManagedDatabaseUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** 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; -} - -/** Contains the information necessary to perform a complete database restore operation. */ -export interface CompleteDatabaseRestoreDefinition { - /** The last backup name to apply */ - lastBackupName: string; -} - /** A list of the managed database's security alert policies. */ export interface ManagedDatabaseSecurityAlertPolicyListResult { /** @@ -2031,30 +1854,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 +2160,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,13 +2716,13 @@ export interface TimeZoneListResult { readonly nextLink?: string; } -/** A list of virtual clusters. */ -export interface VirtualClusterListResult { +/** A list of virtual network rules. */ +export interface VirtualNetworkRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VirtualCluster[]; + readonly value?: VirtualNetworkRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2945,49 +2730,15 @@ export interface VirtualClusterListResult { readonly nextLink?: string; } -/** An update request for an Azure SQL Database virtual cluster. */ -export interface VirtualClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** A list of workload classifiers for a workload group. */ +export interface WorkloadClassifierListResult { /** - * Subnet resource ID for the virtual cluster. + * Array of results. * 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 value?: WorkloadClassifier[]; /** - * 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 { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: VirtualNetworkRule[]; - /** - * 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 workload classifiers for a workload group. */ -export interface WorkloadClassifierListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: WorkloadClassifier[]; - /** - * Link to retrieve next page of results. + * 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; @@ -3105,20 +2856,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 { /** @@ -3387,13 +3124,35 @@ export interface Name { localizedValue?: string; } -/** A list of databases. */ -export interface DatabaseListResult { +/** Contains the information necessary to perform long term retention backup copy operation. */ +export interface CopyLongTermRetentionBackupParameters { + /** The subscription that owns the target server */ + targetSubscriptionId?: string; + /** The resource group that owns the target server */ + targetResourceGroup?: string; + /** The resource Id of the target server that owns the database */ + targetServerResourceId?: string; + /** The fully qualified domain name of the target server */ + targetServerFullyQualifiedDomainName?: string; + /** The name of the database owns the copied backup. */ + targetDatabaseName?: string; + /** The storage redundancy type of the copied backup */ + targetBackupStorageRedundancy?: BackupStorageRedundancy; +} + +/** Contains the information necessary to perform long term retention backup update operation. */ +export interface UpdateLongTermRetentionBackupParameters { + /** The storage redundancy type of the copied backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; +} + +/** A list of long term retention backups. */ +export interface LongTermRetentionBackupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Database[]; + readonly value?: LongTermRetentionBackup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3401,265 +3160,191 @@ export interface DatabaseListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseIdentity { - /** The identity type */ - type?: DatabaseIdentityType; +/** A list of long term retention backups for managed database(s). */ +export interface ManagedInstanceLongTermRetentionBackupListResult { /** - * The Azure Active Directory tenant id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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. */ -export interface DatabaseUserIdentity { + readonly value?: ManagedInstanceLongTermRetentionBackup[]; /** - * The Azure Active Directory principal id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly nextLink?: string; +} + +/** A list of restorable dropped databases. */ +export interface RestorableDroppedDatabaseListResult { /** - * The Azure Active Directory client id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; -} - -/** Delegated Resource Properties - Internal Use Only */ -export interface Delegation { - /** The resource id of the source resource - Internal Use Only */ - resourceId?: string; + readonly value?: RestorableDroppedDatabase[]; /** - * AAD tenant guid of the source resource identity - Internal Use Only. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; + readonly nextLink?: string; } -/** A database resource. */ -export interface DatabaseUpdate { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Database identity */ - identity?: DatabaseIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** A list of restorable dropped managed databases. */ +export interface RestorableDroppedManagedDatabaseListResult { /** - * 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. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly value?: RestorableDroppedManagedDatabase[]; /** - * The status 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 status?: DatabaseStatus; + readonly nextLink?: string; +} + +/** A list of server connection policy objects. */ +export interface ServerConnectionPolicyListResult { /** - * The ID of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly value?: ServerConnectionPolicy[]; /** - * The creation 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 creationDate?: Date; + readonly nextLink?: string; +} + +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * The current service level objective name of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjectiveName?: string; + readonly value?: DistributedAvailabilityGroup[]; /** - * The requested 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 requestedServiceObjectiveName?: string; + readonly nextLink?: string; +} + +/** A list of server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** - * The default secondary region for this database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; + readonly value?: ServerTrustCertificate[]; /** - * Failover Group resource identifier that this database belongs to. + * Link to retrieve next page of results. * 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; + readonly nextLink?: string; +} + +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * The max log size for this database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxLogSizeBytes?: number; + readonly value?: ElasticPool[]; /** - * This records the earliest start date and time that restore is available for this 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 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. */ + readonly nextLink?: string; +} + +/** 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; + /** 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; - /** The secondary type of the database if it is a secondary. Valid values are Geo and Named. */ - secondaryType?: SecondaryType; +} + +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { /** - * The name and tier of the SKU. + * Array of results. * 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; + readonly value?: IPv6FirewallRule[]; /** - * The storage account type used to store backups for this database. + * Link to retrieve next page of results. * 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; + readonly nextLink?: string; +} + +/** A list of endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pausedDate?: Date; + readonly value?: EndpointCertificate[]; /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * Link to retrieve next page of results. * 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; + readonly nextLink?: string; +} + +/** A list of sensitivity labels. */ +export interface SensitivityLabelListResult { /** - * Infra encryption is enabled for this database. + * Array of results. * 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 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 { - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; -} - -/** Contains the information necessary to perform export database operation. */ -export interface ExportDatabaseDefinition { - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; + 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; } -/** Contains the information necessary to perform long term retention backup copy operation. */ -export interface CopyLongTermRetentionBackupParameters { - /** The subscription that owns the target server */ - targetSubscriptionId?: string; - /** The resource group that owns the target server */ - targetResourceGroup?: string; - /** The resource Id of the target server that owns the database */ - targetServerResourceId?: string; - /** The fully qualified domain name of the target server */ - targetServerFullyQualifiedDomainName?: string; - /** The name of the database owns the copied backup. */ - targetDatabaseName?: string; - /** The storage redundancy type of the copied backup */ - targetBackupStorageRedundancy?: BackupStorageRedundancy; +/** A list of sensitivity label update operations. */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; } -/** Contains the information necessary to perform long term retention backup update operation. */ -export interface UpdateLongTermRetentionBackupParameters { - /** The storage redundancy type of the copied backup */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; +/** A list of recommended sensitivity label update operations. */ +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; } -/** A list of long term retention backups. */ -export interface LongTermRetentionBackupListResult { +/** 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?: LongTermRetentionBackup[]; + 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. @@ -3667,13 +3352,13 @@ export interface LongTermRetentionBackupListResult { readonly nextLink?: string; } -/** A list of long term retention backups for managed database(s). */ -export interface ManagedInstanceLongTermRetentionBackupListResult { +/** 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?: ManagedInstanceLongTermRetentionBackup[]; + 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. @@ -3681,13 +3366,13 @@ export interface ManagedInstanceLongTermRetentionBackupListResult { readonly nextLink?: string; } -/** A list of managed instances. */ -export interface ManagedInstanceListResult { +/** 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?: ManagedInstance[]; + 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. @@ -3695,160 +3380,109 @@ export interface ManagedInstanceListResult { readonly nextLink?: string; } -/** A private endpoint connection under a managed instance */ -export interface ManagedInstancePecProperty { +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { /** - * Resource ID. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly value?: ExtendedServerBlobAuditingPolicy[]; /** - * Private endpoint connection properties + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; -} - -/** Properties of a active directory administrator. */ -export interface ManagedInstanceExternalAdministrator { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Principal Type of the sever administrator. */ - principalType?: PrincipalType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; + readonly nextLink?: string; } -/** The managed instance's service principal configuration for a resource. */ -export interface ServicePrincipal { +/** A list of the database's Advanced Threat Protection configurations. */ +export interface DatabaseAdvancedThreatProtectionListResult { /** - * The Azure Active Directory application object id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly value?: DatabaseAdvancedThreatProtection[]; /** - * The Azure Active Directory application client id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly nextLink?: string; +} + +/** A list of the server's Advanced Threat Protection configurations. */ +export interface LogicalServerAdvancedThreatProtectionListResult { /** - * The Azure Active Directory tenant id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; - /** Service principal type. */ - type?: ServicePrincipalType; -} - -/** An update request for an Azure SQL Database managed instance. */ -export interface ManagedInstanceUpdate { - /** Managed instance sku */ - sku?: Sku; - /** Managed instance identity */ - identity?: ResourceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly value?: ServerAdvancedThreatProtection[]; /** - * 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. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - managedInstanceCreateMode?: ManagedServerCreateMode; + readonly nextLink?: string; +} + +/** A list of managed server DNS aliases. */ +export interface ManagedServerDnsAliasListResult { /** - * The fully qualified domain name of the managed instance. + * Array of results. * 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; + readonly value?: ManagedServerDnsAlias[]; /** - * The state of the managed instance. + * Link to retrieve next page of results. * 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; + 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 SQL Vulnerability Assessments baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { /** - * The Dns Zone that the managed instance is in. + * Array of results. * 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; + readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; /** - * 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". + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly nextLink?: string; +} + +/** A list of SQL Vulnerability Assessments rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { /** - * List of private endpoint connections on a managed instance. + * Array of results. * 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; + readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * Link to retrieve next page of results. * 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; + readonly nextLink?: string; } -/** A list of top resource consuming queries on managed instance */ -export interface TopQueriesListResult { +/** A list of vulnerability assessment scan results. */ +export interface SQLVulnerabilityAssessmentScanListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopQueries[]; + readonly value?: SqlVulnerabilityAssessmentScanResults[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3856,1688 +3490,1639 @@ export interface TopQueriesListResult { readonly nextLink?: string; } -export interface TopQueries { +/** SQL Vulnerability Assessment remediation Details. */ +export interface Remediation { /** - * Requested number of top queries. + * SQL Vulnerability Assessment remediation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfQueries?: number; + readonly description?: string; /** - * Aggregation function used to calculate query metrics. + * SQL Vulnerability Assessment remediation script. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly aggregationFunction?: string; + readonly scripts?: string[]; /** - * Metric used to rank queries. + * SQL Vulnerability Assessment is remediation automated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly observationMetric?: string; + readonly automated?: boolean; /** - * Interval type (length). + * SQL Vulnerability Assessment optional link to remediate in Azure Portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly portalLink?: string; +} + +/** SQL Vulnerability Assessment baseline adjusted results */ +export interface BaselineAdjustedResult { /** - * The start time for the metric (ISO-8601 format). + * SQL Vulnerability Assessment baseline details * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly baseline?: Baseline; /** - * The end time for the metric (ISO-8601 format). + * SQL Vulnerability Assessment baseline status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: string; - /** List of top resource consuming queries with appropriate metric data */ - queries?: QueryStatisticsProperties[]; -} - -/** A list of restorable dropped databases. */ -export interface RestorableDroppedDatabaseListResult { + readonly status?: RuleStatus; /** - * Array of results. + * SQL Vulnerability Assessment results that are not in baseline * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedDatabase[]; + readonly resultsNotInBaseline?: string[][]; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment results that are in baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly resultsOnlyInBaseline?: string[][]; } -/** A list of restorable dropped managed databases. */ -export interface RestorableDroppedManagedDatabaseListResult { +/** SQL Vulnerability Assessment baseline Details */ +export interface Baseline { /** - * Array of results. + * SQL Vulnerability Assessment baseline expected results * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedManagedDatabase[]; + readonly expectedResults?: string[][]; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment baseline update time (UTC) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly updatedTime?: Date; } -/** A list of server connection policy objects. */ -export interface ServerConnectionPolicyListResult { +/** SQL Vulnerability Assessment rule metadata details. */ +export interface VaRule { /** - * Array of results. + * SQL Vulnerability Assessment rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerConnectionPolicy[]; + readonly ruleId?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment rule severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A Slo Usage Metric. */ -export interface SloUsageMetric { + readonly severity?: RuleSeverity; /** - * The serviceLevelObjective for SLO usage metric. + * SQL Vulnerability Assessment rule category. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjective?: ServiceObjectiveName; + readonly category?: string; /** - * The serviceLevelObjectiveId for SLO usage metric. + * SQL Vulnerability Assessment rule type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjectiveId?: string; + readonly ruleType?: RuleType; /** - * Gets or sets inRangeTimeRatio for SLO usage metric. + * SQL Vulnerability Assessment rule title. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inRangeTimeRatio?: number; -} - -/** The impact of an operation, both in absolute and relative terms. */ -export interface OperationImpact { + readonly title?: string; /** - * The name of the impact dimension. + * SQL Vulnerability Assessment rule description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly description?: string; /** - * The unit in which estimated impact to dimension is measured. + * SQL Vulnerability Assessment rule rationale. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly rationale?: string; /** - * The absolute impact to dimension. + * SQL Vulnerability Assessment rule query details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueAbsolute?: number; + readonly queryCheck?: QueryCheck; /** - * The relative impact to dimension (null if not applicable) + * SQL Vulnerability Assessment benchmark references. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueRelative?: number; -} - -/** 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; + readonly benchmarkReferences?: BenchmarkReference[]; } -/** 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 edition of the database - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly edition?: string; +/** SQL Vulnerability Assessment query check object. */ +export interface QueryCheck { /** - * The service level objective name of the database + * SQL Vulnerability Assessment rule query. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjective?: string; + readonly query?: string; /** - * The elastic pool name of the database + * SQL Vulnerability Assessment query expected result. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly expectedResult?: string[][]; /** - * The last available backup date of the database (ISO8601 format) + * SQL Vulnerability Assessment column names of query expected result. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: Date; + readonly columnNames?: string[]; } -/** Represents a database data masking policy. */ -export interface DataMaskingPolicy extends ProxyResource { +/** SQL Vulnerability Assessment benchmark reference */ +export interface BenchmarkReference { /** - * The location of the data masking policy. + * SQL Vulnerability Assessment benchmark name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly benchmark?: string; /** - * The kind of data masking policy. Metadata, used for Azure portal. + * SQL Vulnerability Assessment benchmark reference. * 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 reference?: string; +} + +/** A list of vulnerability assessment scan records. */ +export interface SqlVulnerabilityAssessmentScanRecordListResult { /** - * 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?: SqlVulnerabilityAssessmentScanRecord[]; /** - * 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 interface DataMaskingRule extends ProxyResource { +/** Properties of a vulnerability assessment scan error. */ +export interface SqlVulnerabilityAssessmentScanError { /** - * The location of the data masking rule. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly code?: string; /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly message?: string; +} + +/** A list of SQL Vulnerability Assessments. */ +export interface SqlVulnerabilityAssessmentListResult { /** - * The rule Id. + * Array 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; -} - -/** A database geo backup policy. */ -export interface GeoBackupPolicy extends ProxyResource { + readonly value?: SqlVulnerabilityAssessment[]; /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. + * 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 databases. */ +export interface DatabaseListResult { /** - * 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?: Database[]; /** - * 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 interface ServerCommunicationLink extends ProxyResource { +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseIdentity { + /** The identity type */ + type?: DatabaseIdentityType; /** - * Communication link location. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly tenantId?: string; + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseUserIdentity { /** - * Communication link kind. This property is used for Azure Portal metadata. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly principalId?: string; /** - * The state. + * The Azure Active Directory client id. * 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; + readonly clientId?: string; } -/** Represents a database service objective. */ -export interface ServiceObjective extends ProxyResource { +/** A database update resource. */ +export interface DatabaseUpdate { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Database identity */ + identity?: DatabaseIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * The name for the service objective. + * 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 serviceObjectiveName?: string; + readonly status?: DatabaseStatus; /** - * Gets whether the service level objective is the default service objective. + * The ID of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefault?: boolean; + readonly databaseId?: string; /** - * Gets whether the service level objective is a system service objective. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isSystem?: boolean; + readonly creationDate?: Date; /** - * The description for the service level objective. + * 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 description?: string; + readonly currentServiceObjectiveName?: string; /** - * Gets whether the service level objective is enabled. + * 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 enabled?: boolean; -} - -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; + readonly requestedServiceObjectiveName?: string; /** - * The time the operation finished (ISO8601 format). + * The default secondary region for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly defaultSecondaryLocation?: string; /** - * The error code if available. + * 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 errorCode?: number; + 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 error message if available. + * The max log size for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly maxLogSizeBytes?: number; /** - * The error severity if available. + * 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 errorSeverity?: number; + 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, Named and Standby. */ + secondaryType?: SecondaryType; /** - * The operation name. + * The name and tier of the SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + 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 unique operation ID. + * 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 operationId?: string; + 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 percentage complete if available. + * 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 percentComplete?: number; + readonly pausedDate?: Date; /** - * The requested max DTU per database if available. + * 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 requestedDatabaseDtuMax?: number; + 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; /** - * The requested min DTU per database if available. + * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuMin?: number; + readonly isInfraEncryptionEnabled?: boolean; + /** The Client id used for cross tenant per database CMK scenario */ + federatedClientId?: string; +} + +/** Contains the information necessary to perform export database operation. */ +export interface ExportDatabaseDefinition { + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Contains the information necessary to perform import operation for existing database. */ +export interface ImportExistingDatabaseDefinition { + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** Contains the information necessary to perform a resource move (rename). */ +export interface ResourceMoveDefinition { + /** The target ID for the resource */ + id: string; +} + +/** A list of the managed database's Advanced Threat Protection settings. */ +export interface ManagedDatabaseAdvancedThreatProtectionListResult { /** - * The requested DTU for the pool if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDtu?: number; + readonly value?: ManagedDatabaseAdvancedThreatProtection[]; /** - * The requested name for the elastic 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 requestedElasticPoolName?: string; + readonly nextLink?: string; +} + +/** The managed database's restore details backup set properties. */ +export interface ManagedDatabaseRestoreDetailsBackupSetProperties { /** - * The requested storage limit for the pool in GB if available. + * Backup set status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedStorageLimitInGB?: number; + readonly status?: string; /** - * The name of the elastic pool. + * First stripe name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly firstStripeName?: string; /** - * The name of the server the elastic pool is in. + * Number of stripes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly numberOfStripes?: number; /** - * The time the operation started (ISO8601 format). + * Backup size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly backupSizeMB?: number; /** - * The current state of the operation. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly restoreStartedTimestampUtc?: Date; /** - * The requested storage limit in MB. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedStorageLimitInMB?: number; + readonly restoreFinishedTimestampUtc?: Date; +} + +/** The managed database's restore details unrestorable file properties. */ +export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { /** - * The requested per database DTU guarantee. + * File name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuGuarantee?: number; + readonly name?: string; +} + +/** A list of managed databases. */ +export interface ManagedDatabaseListResult { /** - * The requested per database DTU cap. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuCap?: number; + readonly value?: ManagedDatabase[]; /** - * The requested DTU guarantee. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDtuGuarantee?: number; + readonly nextLink?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; +/** An managed database update. */ +export interface ManagedDatabaseUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Collation of the managed database. */ + collation?: string; /** - * The database name. + * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly status?: ManagedDatabaseStatus; /** - * The time the operation finished (ISO8601 format). + * Creation date of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly creationDate?: Date; /** - * The error code if available. + * 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 errorCode?: number; + 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; /** - * The error message if available. + * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + 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 used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ + storageContainerIdentity?: string; + /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, this value is required. Specifies the storage container sas token. */ + storageContainerSasToken?: string; /** - * The error severity if available. + * 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 errorSeverity?: number; + 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; +} + +/** Contains the information necessary to perform a managed database move. */ +export interface ManagedDatabaseMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; +} + +/** Contains the information necessary to perform a complete database restore operation. */ +export interface CompleteDatabaseRestoreDefinition { + /** The last backup name to apply */ + lastBackupName: string; +} + +/** Contains the information necessary to start a managed database move. */ +export interface ManagedDatabaseStartMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; + /** The move operation mode. */ + operationMode?: MoveOperationMode; +} + +/** 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; +} + +/** A list of replication links. */ +export interface ReplicationLinkListResult { /** - * 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?: ReplicationLink[]; /** - * The name for the elastic pool the database is moving into 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 requestedElasticPoolName?: string; + readonly nextLink?: string; +} + +/** List of managed database move operations. */ +export interface ManagedDatabaseMoveOperationListResult { /** - * The name of the current elastic pool the database is in if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentElasticPoolName?: string; + readonly value?: ManagedDatabaseMoveOperationResult[]; /** - * The name of the current service objective 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 currentServiceObjective?: string; + readonly nextLink?: string; +} + +/** A list of managed instance's DTCs. */ +export interface ManagedInstanceDtcListResult { /** - * The name of the requested service objective if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjective?: string; + readonly value?: ManagedInstanceDtc[]; /** - * The name of the server the elastic pool is in. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + 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 synapselink workspaces */ +export interface SynapseLinkWorkspaceListResult { /** - * The time the operation started (ISO8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly value?: SynapseLinkWorkspace[]; /** - * The current state of the operation. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly nextLink?: string; } -/** 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; +/** Properties of a Synapse link workspaces */ +export interface SynapseLinkWorkspaceInfoProperties { + /** Synapse link workspace id. */ + workspaceId?: string; + /** Link connection name. */ + linkConnectionName?: string; +} + +/** A list of virtual clusters. */ +export interface VirtualClusterListResult { /** - * 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) + * Array of results. + * 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 value?: VirtualCluster[]; /** - * 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) - * + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly nextLink?: string; +} + +/** An update request for virtual cluster. */ +export interface VirtualClusterUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: 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. + * Subnet resource ID for the virtual cluster. + * 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 subnetId?: string; + /** Virtual cluster version. */ + version?: 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) + * List of resources in this virtual cluster. + * 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 childResources?: string[]; } -/** An extended server blob auditing policy. */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { +/** A list of managed instances. */ +export interface ManagedInstanceListResult { /** - * 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) - * + * Array of results. + * 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 value?: ManagedInstance[]; /** - * 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) + * Link to retrieve next page of results. + * 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 nextLink?: string; +} + +/** A private endpoint connection under a managed instance */ +export interface ManagedInstancePecProperty { /** - * 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) - * + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly id?: 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. + * Private endpoint connection properties + * 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; - /** - * 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 properties?: ManagedInstancePrivateEndpointConnectionProperties; +} + +/** Properties of a active directory administrator. */ +export interface ManagedInstanceExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** The managed instance's service principal configuration for a resource. */ +export interface ServicePrincipal { + /** + * The Azure Active Directory application object id. + * 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 principalId?: string; + /** + * The Azure Active Directory application client id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; + /** + * The Azure Active Directory tenant id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Service principal type. */ + type?: ServicePrincipalType; } -/** A server blob auditing policy. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +/** An update request for an Azure SQL Database managed instance. */ +export interface ManagedInstanceUpdate { + /** Managed instance sku */ + sku?: Sku; + /** Managed instance identity */ + identity?: ResourceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningState?: ManagedInstancePropertiesProvisioningState; /** - * 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 + * Specifies the mode of database creation. * - * 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) + * 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. */ - isDevopsAuditEnabled?: boolean; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * 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 fully qualified domain name of the managed instance. + * 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 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; /** - * 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 state of the managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + 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: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageSizeInGB?: number; + /** Collation of the managed instance. */ + collation?: 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 Dns Zone that the managed instance 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 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; /** - * 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) + * 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". */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; + 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 instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; } -/** A database blob auditing policy. */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { +/** A collection of endpoints that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpointCollection { /** - * Resource kind. + * Array of results. * 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 value?: OutboundEnvironmentEndpoint[]; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly nextLink?: string; +} + +/** An endpoint that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpoint { /** - * 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 type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. + * 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 category?: 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 endpoints that the managed instance service communicates with in order to function correctly. + * 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 endpoints?: EndpointDependency[]; } -/** Database, Server or Elastic Pool Recommended Action. */ -export interface RecommendedAction extends ProxyResource { +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDependency { /** - * Resource kind. + * The domain name of the dependency. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly domainName?: string; /** - * Resource location. + * The IP Addresses and Ports used when connecting to DomainName. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly endpointDetails?: EndpointDetail[]; +} + +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDetail { /** - * Gets the reason for recommending this action. e.g., DuplicateIndex + * The port an endpoint is connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly recommendationReason?: string; + readonly port?: number; +} + +/** A list of top resource consuming queries on managed instance */ +export interface TopQueriesListResult { /** - * Gets the time since when this recommended action is valid. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly validSince?: Date; + readonly value?: TopQueries[]; /** - * Gets time when this recommended action was last refreshed. + * Link to retrieve next page of results. * 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 nextLink?: string; +} + +export interface TopQueries { /** - * Gets if this recommended action is actionable by user + * Requested number of top queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isExecutableAction?: boolean; + readonly numberOfQueries?: number; /** - * Gets if changes applied by this recommended action can be reverted by user + * Aggregation function used to calculate query metrics. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isRevertableAction?: boolean; + readonly aggregationFunction?: string; /** - * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. + * Metric used to rank queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isArchivedAction?: boolean; + readonly observationMetric?: string; /** - * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time + * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionStartTime?: Date; + readonly intervalType?: QueryTimeGrainType; /** - * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionDuration?: string; + readonly startTime?: string; /** - * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionStartTime?: Date; + readonly endTime?: string; + /** List of top resource consuming queries with appropriate metric data */ + queries?: QueryStatisticsProperties[]; +} + +/** A list of server configuration options. */ +export interface ServerConfigurationOptionListResult { /** - * Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionDuration?: string; + readonly value?: ServerConfigurationOption[]; /** - * Gets if approval for applying this recommended action was given by user/system. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; + readonly nextLink?: string; +} + +/** A list of ledger digest upload settings. */ +export interface ManagedLedgerDigestUploadsListResult { /** - * Gets the time when this recommended action was approved for execution. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionInitiatedTime?: Date; + readonly value?: ManagedLedgerDigestUploads[]; /** - * Gets if approval for reverting this recommended action was given by user/system. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; + readonly nextLink?: string; +} + +/** Managed instance's Start/Stop schedule list result. */ +export interface StartStopManagedInstanceScheduleListResult { /** - * Gets the time when this recommended action was approved for revert. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionInitiatedTime?: Date; + readonly value?: StartStopManagedInstanceSchedule[]; /** - * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly score?: number; + readonly nextLink?: string; +} + +/** Schedule info describing when the server should be started or stopped. */ +export interface ScheduleItem { + /** Start day. */ + startDay: DayOfWeek; + /** Start time. */ + startTime: string; + /** Stop day. */ + stopDay: DayOfWeek; + /** Stop time. */ + stopTime: string; +} + +/** A Slo Usage Metric. */ +export interface SloUsageMetric { /** - * Gets the implementation details of this recommended action for user to apply it manually. + * The serviceLevelObjective for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly implementationDetails?: RecommendedActionImplementationInfo; + readonly serviceLevelObjective?: ServiceObjectiveName; /** - * Gets the error details if and why this recommended action is put to error state. + * The serviceLevelObjectiveId for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDetails?: RecommendedActionErrorInfo; + readonly serviceLevelObjectiveId?: string; /** - * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change + * Gets or sets inRangeTimeRatio for SLO usage metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedImpact?: RecommendedActionImpactRecord[]; + readonly inRangeTimeRatio?: number; +} + +/** The impact of an operation, both in absolute and relative terms. */ +export interface OperationImpact { /** - * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change + * The name of the impact dimension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly observedImpact?: RecommendedActionImpactRecord[]; + readonly name?: string; /** - * Gets the time series info of metrics for this recommended action e.g., CPU consumption time series + * 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 timeSeries?: RecommendedActionMetricInfo[]; + readonly unit?: string; /** - * Gets the linked objects, if any. + * The absolute impact to dimension. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly linkedObjects?: string[]; + readonly changeValueAbsolute?: number; /** - * Gets additional details specific to this recommended action. + * 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 details?: { [propertyName: string]: Record }; + readonly changeValueRelative?: number; } -/** Database, Server or Elastic Pool Advisor. */ -export interface Advisor extends ProxyResource { +/** 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 { /** - * Resource kind. + * The edition of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly edition?: string; /** - * Resource location. + * The service level objective name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly serviceLevelObjective?: string; /** - * Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. + * The elastic pool name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly advisorStatus?: AdvisorStatus; - /** Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled' */ - autoExecuteStatus?: AutoExecuteStatus; + readonly elasticPoolName?: string; /** - * Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). + * 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 autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; + readonly lastAvailableBackupDate?: Date; +} + +/** Represents a database data masking policy. */ +export interface DataMaskingPolicy extends ProxyResource { /** - * Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. + * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly recommendationsStatus?: string; + readonly location?: string; /** - * Gets the time when the current resource was analyzed for recommendations by this advisor. + * 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 lastChecked?: Date; + 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; /** - * Gets the recommended actions for this advisor. + * 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 recommendedActions?: RecommendedAction[]; -} - -/** Database-level Automatic Tuning. */ -export interface DatabaseAutomaticTuning extends ProxyResource { - /** Automatic tuning desired state. */ - desiredState?: AutomaticTuningMode; + readonly applicationPrincipals?: string; /** - * Automatic tuning actual state. + * 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 actualState?: AutomaticTuningMode; - /** Automatic tuning options definition. */ - options?: { [propertyName: string]: AutomaticTuningOptions }; -} - -/** A database column resource. */ -export interface DatabaseColumn extends ProxyResource { - /** The column data type. */ - columnType?: ColumnDataType; - /** The table temporal type. */ - temporalType?: TableTemporalType; - /** Whether or not the column belongs to a memory optimized table. */ - memoryOptimized?: boolean; - /** Whether or not the column is computed. */ - isComputed?: boolean; + readonly maskingLevel?: string; } -/** A database schema resource. */ -export interface DatabaseSchema extends ProxyResource {} - -/** A database security alert policy. */ -export interface DatabaseSecurityAlertPolicy extends ProxyResource { +/** Represents a database data masking rule. */ +export interface DataMaskingRule extends ProxyResource { /** - * SystemData of SecurityAlertPolicyResource. + * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** 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?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly location?: string; /** - * Specifies the UTC creation time of the policy. + * 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 creationTime?: Date; -} - -/** A database table resource. */ -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 interface DatabaseVulnerabilityAssessmentRuleBaseline - extends ProxyResource { - /** The rule baseline result */ - baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** A database vulnerability assessment. */ -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. */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; + readonly kind?: string; + /** + * The rule Id. + * 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; } -/** A vulnerability assessment scan record. */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { +/** A database geo backup policy. */ +export interface GeoBackupPolicy extends ProxyResource { /** - * The scan ID. + * 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 scanId?: string; + readonly kind?: string; /** - * The scan trigger type. + * Backup policy location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly location?: string; + /** The state of the geo backup policy. */ + state: GeoBackupPolicyState; /** - * The scan status. + * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VulnerabilityAssessmentScanState; + readonly storageType?: string; +} + +/** Server communication link. */ +export interface ServerCommunicationLink extends ProxyResource { /** - * The scan start time (UTC). + * Communication link location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly location?: string; /** - * The scan end time (UTC). + * 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 endTime?: Date; + readonly kind?: string; /** - * The scan errors. + * The state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: VulnerabilityAssessmentScanError[]; + readonly state?: string; + /** The name of the partner server. */ + partnerServer?: string; +} + +/** Represents a database service objective. */ +export interface ServiceObjective extends ProxyResource { /** - * The scan results storage container path. + * The name for the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageContainerPath?: string; + readonly serviceObjectiveName?: string; /** - * The number of failed security checks. + * 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. */ - readonly numberOfFailedSecurityChecks?: number; -} - -/** A database Vulnerability Assessment scan export resource. */ -export interface DatabaseVulnerabilityAssessmentScansExport - extends ProxyResource { + readonly isDefault?: boolean; /** - * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * 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. */ - readonly exportedReportLocation?: string; -} - -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivities extends ProxyResource { + readonly isSystem?: boolean; /** - * Count of running and suspended queries. + * The description for the service level objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly activeQueriesCount?: number; -} - -/** A deleted server. */ -export interface DeletedServer extends ProxyResource { + readonly description?: string; /** - * The version of the deleted server. + * Gets whether the service level objective is enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly enabled?: boolean; +} + +/** Represents the activity on an elastic pool. */ +export interface ElasticPoolActivity extends ProxyResource { + /** The geo-location where the resource lives */ + location?: string; /** - * The deletion time of the deleted server. + * The time the operation finished (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionTime?: Date; + readonly endTime?: Date; /** - * The original ID of the server before deletion. + * The error code if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly originalId?: string; + readonly errorCode?: number; /** - * The fully qualified domain name of the server. + * The error message if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; -} - -/** A elastic pool operation. */ -export interface ElasticPoolOperation extends ProxyResource { + readonly errorMessage?: string; /** - * The name of the elastic pool the operation is being performed on. + * The error severity if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly errorSeverity?: number; /** - * The name of operation. + * The operation name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; /** - * The friendly name of operation. + * The unique operation ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly operationId?: string; /** - * The percentage of the operation completed. + * The percentage complete if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; /** - * The name of the server. + * The requested max DTU per database if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly requestedDatabaseDtuMax?: number; /** - * The operation start time. + * The requested min DTU per database if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly requestedDatabaseDtuMin?: number; /** - * The operation state. + * The requested DTU for the pool if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly requestedDtu?: number; /** - * The operation error code. + * 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 errorCode?: number; + readonly requestedElasticPoolName?: string; /** - * The operation error description. + * 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. */ - readonly errorDescription?: string; + readonly requestedStorageLimitInGB?: number; /** - * The operation error severity. + * The name of the elastic pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly elasticPoolName?: string; /** - * Whether or not the error is a user error. + * 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 isUserError?: boolean; + readonly serverName?: string; /** - * The estimated completion time of the operation. + * The time the operation started (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly startTime?: Date; /** - * The operation description. + * The current state of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly state?: string; /** - * Whether the operation can be cancelled. + * The requested storage limit in MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** The server encryption protector. */ -export interface EncryptionProtector extends ProxyResource { + readonly requestedStorageLimitInMB?: number; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The requested per database DTU guarantee. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly requestedDatabaseDtuGuarantee?: number; /** - * Resource location. + * The requested per database DTU cap. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly requestedDatabaseDtuCap?: number; /** - * Subregion of the encryption protector. + * The requested DTU guarantee. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; - /** The name of the server key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; + readonly requestedDtuGuarantee?: number; +} + +/** Represents the activity on an elastic pool. */ +export interface ElasticPoolDatabaseActivity extends ProxyResource { + /** The geo-location where the resource lives */ + location?: string; /** - * The URI of the server key. + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly databaseName?: string; /** - * Thumbprint of the server key. + * The time the operation finished (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; -} - -/** A failover group. */ -export interface FailoverGroup extends ProxyResource { + readonly endTime?: Date; /** - * Resource location. + * The error code if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + readonly errorCode?: number; /** - * Local replication role of the failover group instance. + * The error message if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; + readonly errorMessage?: string; /** - * Replication state of the failover group instance. + * The error severity if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: string; - /** List of partner server information for the failover group. */ - partnerServers?: PartnerInfo[]; - /** List of databases in the failover group. */ - databases?: string[]; -} - -/** An instance failover group. */ -export interface InstanceFailoverGroup extends ProxyResource { - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; + readonly errorSeverity?: number; /** - * Local replication role of the failover group instance. + * The operation name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; + readonly operation?: string; /** - * Replication state of the failover group instance. + * The unique operation ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: string; - /** Partner region information for the failover group. */ - 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 interface JobCredential extends ProxyResource { - /** The credential user name. */ - username?: string; - /** The credential password. */ - password?: string; -} - -/** An execution of a job */ -export interface JobExecution extends ProxyResource { + readonly operationId?: string; /** - * The job version number. + * The percentage complete if available. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobVersion?: number; + readonly percentComplete?: number; /** - * The job step name. + * 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 stepName?: string; + readonly requestedElasticPoolName?: string; /** - * The job step id. + * 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 stepId?: number; + readonly currentElasticPoolName?: string; /** - * The unique identifier of the job execution. + * 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 jobExecutionId?: string; + readonly currentServiceObjective?: string; /** - * The detailed state of the job execution. + * 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 lifecycle?: JobExecutionLifecycle; + readonly requestedServiceObjective?: string; /** - * The ARM provisioning state of the job execution. + * 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 provisioningState?: ProvisioningState; + readonly serverName?: string; /** - * The time that the job execution was created. + * The time the operation started (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly startTime?: Date; /** - * The time that the job execution started. + * The current state of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly state?: string; +} + +/** Database, Server or Elastic Pool Recommended Action. */ +export interface RecommendedAction extends ProxyResource { /** - * The time that the job execution completed. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; - /** Number of times the job execution has been attempted. */ - currentAttempts?: number; + readonly kind?: string; /** - * Start time of the current attempt. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentAttemptStartTime?: Date; + readonly location?: string; /** - * The last status or error message. + * 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 lastMessage?: string; + readonly recommendationReason?: string; /** - * The target that this execution is executed on. + * 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 target?: JobExecutionTarget; -} - -/** A job. */ -export interface Job extends ProxyResource { - /** User-defined description of the job. */ - description?: string; + readonly validSince?: Date; /** - * The job version number. + * 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 version?: number; - /** Schedule properties of the job. */ - schedule?: JobSchedule; -} - -/** A job step. */ -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. */ - targetGroup?: string; - /** The resource ID of the job credential that will be used to connect to the targets. */ - credential?: string; - /** The action payload of the job step. */ - action?: JobStepAction; - /** Output destination properties of the job step. */ - output?: JobStepOutput; - /** Execution options for the job step. */ - executionOptions?: JobStepExecutionOptions; -} - -/** A group of job targets. */ -export interface JobTargetGroup extends ProxyResource { - /** Members of the target group. */ - members?: JobTarget[]; -} - -/** A job version. */ -export interface JobVersion extends ProxyResource {} - -/** A long term retention policy. */ -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. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; -} - -/** Maintenance window options. */ -export interface MaintenanceWindowOptions extends ProxyResource { - /** Whether maintenance windows are enabled for the database. */ - isEnabled?: boolean; - /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ - maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; - /** Minimum duration of maintenance window. */ - minDurationInMinutes?: number; - /** Default duration for maintenance window. */ - defaultDurationInMinutes?: number; - /** Minimum number of maintenance windows cycles to be set on the database. */ - minCycles?: number; - /** Time granularity in minutes for maintenance windows. */ - timeGranularityInMinutes?: number; - /** Whether we allow multiple maintenance windows per cycle. */ - allowMultipleMaintenanceWindowsPerCycle?: boolean; -} - -/** Maintenance windows. */ -export interface MaintenanceWindows extends ProxyResource { - timeRanges?: MaintenanceWindowTimeRange[]; -} - -/** A short term retention policy. */ -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 interface ManagedInstanceQuery extends ProxyResource { - /** Query text. */ - queryText?: string; -} - -export interface QueryStatistics extends ProxyResource { + readonly lastRefresh?: Date; + /** Gets the info of the current state the recommended action is in. */ + state?: RecommendedActionStateInfo; /** - * Database name of the database in which this query was executed. + * 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 databaseName?: string; + readonly isExecutableAction?: boolean; /** - * Unique query id (unique within one database). + * 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 queryId?: string; + readonly isRevertableAction?: boolean; /** - * The start time for the metric (ISO-8601 format). + * 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 startTime?: string; + readonly isArchivedAction?: boolean; /** - * The end time for the metric (ISO-8601 format). + * 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 endTime?: string; - /** List of intervals with appropriate metric data */ - intervals?: QueryMetricInterval[]; -} - -/** A managed database restore details. */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { + readonly executeActionStartTime?: Date; /** - * Restore status. + * 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 status?: string; + readonly executeActionDuration?: string; /** - * Current restoring file name. + * 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 currentRestoringFileName?: string; + readonly revertActionStartTime?: Date; /** - * Last restored file name. + * 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 lastRestoredFileName?: string; + readonly revertActionDuration?: string; /** - * Last restored file time. + * 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 lastRestoredFileTime?: Date; + readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; /** - * Percent completed. + * 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 percentCompleted?: number; + readonly executeActionInitiatedTime?: Date; /** - * List of unrestorable files. + * 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 unrestorableFiles?: string[]; + readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; /** - * Number of files detected. + * 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 numberOfFilesDetected?: number; + readonly revertActionInitiatedTime?: Date; /** - * Last uploaded file name. + * 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 lastUploadedFileName?: string; + readonly score?: number; /** - * Last uploaded file time. + * 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 lastUploadedFileTime?: Date; + readonly implementationDetails?: RecommendedActionImplementationInfo; /** - * The reason why restore is in Blocked state. + * 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 blockReason?: string; + 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[]; + /** + * Gets the linked objects, if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkedObjects?: string[]; + /** + * Gets additional details specific to this recommended action. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: { [propertyName: string]: Record }; } -/** A managed database security alert policy. */ -export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { +/** Database, Server or Elastic Pool Advisor. */ +export interface Advisor extends ProxyResource { + /** + * Resource kind. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** + * Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly advisorStatus?: AdvisorStatus; + /** Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled' */ + autoExecuteStatus?: AutoExecuteStatus; + /** + * Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; + /** + * Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly recommendationsStatus?: string; + /** + * Gets the time when the current resource was analyzed for recommendations by this advisor. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastChecked?: Date; + /** + * Gets the recommended actions for this advisor. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly recommendedActions?: RecommendedAction[]; +} + +/** Database-level Automatic Tuning. */ +export interface DatabaseAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningMode; + /** + * Automatic tuning actual state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actualState?: AutomaticTuningMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningOptions }; +} + +/** A database column resource. */ +export interface DatabaseColumn extends ProxyResource { + /** The column data type. */ + columnType?: ColumnDataType; + /** The table temporal type. */ + temporalType?: TableTemporalType; + /** Whether or not the column belongs to a memory optimized table. */ + memoryOptimized?: boolean; + /** Whether or not the column is computed. */ + isComputed?: boolean; +} + +/** A database schema resource. */ +export interface DatabaseSchema extends ProxyResource {} + +/** A database security alert policy. */ +export interface DatabaseSecurityAlertPolicy extends ProxyResource { + /** + * SystemData of SecurityAlertPolicyResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; /** 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; + state?: SecurityAlertsPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ disabledAlerts?: string[]; /** Specifies an array of e-mail addresses to which the alert is sent. */ @@ -5557,214 +5142,127 @@ export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { readonly creationTime?: Date; } -/** A security event. */ -export interface SecurityEvent extends ProxyResource { +/** A database table resource. */ +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 interface DatabaseVulnerabilityAssessmentRuleBaseline + extends ProxyResource { + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** A database vulnerability assessment. */ +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. */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** A vulnerability assessment scan record. */ +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * The time when the security event occurred. + * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly eventTime?: Date; + readonly scanId?: string; /** - * The type of the security event. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventType?: SecurityEventType; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * The subscription name + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subscription?: string; + readonly state?: VulnerabilityAssessmentScanState; /** - * The server name + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly server?: string; + readonly startTime?: Date; /** - * The database name + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly database?: string; + readonly endTime?: Date; /** - * The IP address of the client who executed the statement. + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientIp?: string; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * The application used to execute the statement. + * The scan results storage container path. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationName?: string; + readonly storageContainerPath?: string; /** - * The principal user who executed the statement + * The number of failed security checks. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalName?: string; + readonly numberOfFailedSecurityChecks?: number; +} + +/** A database Vulnerability Assessment scan export resource. */ +export interface DatabaseVulnerabilityAssessmentScansExport + extends ProxyResource { /** - * The sql injection additional properties, populated only if the type of the security event is sql injection. + * 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 securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; + readonly exportedReportLocation?: string; } -/** A sensitivity label. */ -export interface SensitivityLabel extends ProxyResource { +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivities extends ProxyResource { /** - * Resource that manages the sensitivity label. + * Count of running and suspended queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedBy?: string; + readonly activeQueriesCount?: number; +} + +/** A deleted server. */ +export interface DeletedServer extends ProxyResource { /** - * The schema name. + * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly schemaName?: string; + readonly version?: string; /** - * The table name. + * The deletion time of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tableName?: string; + readonly deletionTime?: Date; /** - * The column name. + * The original ID of the server before deletion. * 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; + readonly originalId?: string; /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDisabled?: boolean; - rank?: SensitivityLabelRank; + readonly fullyQualifiedDomainName?: string; } -/** 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 managed database transparent data encryption state. */ -export interface ManagedTransparentDataEncryption extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; -} - -/** An Azure SQL managed instance administrator. */ -export interface ManagedInstanceAdministrator extends ProxyResource { - /** Type of the managed instance administrator. */ - administratorType?: ManagedInstanceAdministratorType; - /** Login name of the managed instance administrator. */ - login?: string; - /** SID (object ID) of the managed instance administrator. */ - sid?: string; - /** Tenant ID of the managed instance administrator. */ - tenantId?: string; -} - -/** Azure Active Directory only authentication. */ -export interface ManagedInstanceAzureADOnlyAuthentication - extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** The managed instance encryption protector. */ -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. - */ - readonly kind?: string; - /** The name of the managed instance key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** - * The URI of the server key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly uri?: string; - /** - * Thumbprint of the server key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly thumbprint?: string; - /** Key auto rotation opt-in flag. Either true or false. */ - autoRotationEnabled?: boolean; -} - -/** A managed instance key. */ -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. - */ - readonly kind?: string; - /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; - /** - * Thumbprint of the key. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly thumbprint?: string; - /** - * The key creation date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationDate?: Date; - /** - * Key auto rotation opt-in flag. Either true or false. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autoRotationEnabled?: boolean; -} - -/** A long term retention policy. */ -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. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; -} - -/** A managed instance operation. */ -export interface ManagedInstanceOperation extends ProxyResource { +/** A elastic pool operation. */ +export interface ElasticPoolOperation extends ProxyResource { /** - * The name of the managed instance the operation is being performed on. + * 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. */ - readonly managedInstanceName?: string; + readonly elasticPoolName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5780,6 +5278,11 @@ export interface ManagedInstanceOperation extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly percentComplete?: number; + /** + * The name of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverName?: string; /** * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5789,7 +5292,7 @@ export interface ManagedInstanceOperation extends ProxyResource { * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly state?: string; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5825,1577 +5328,1497 @@ export interface ManagedInstanceOperation extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isCancellable?: boolean; +} + +/** The server encryption protector. */ +export interface EncryptionProtector extends ProxyResource { /** - * The operation parameters. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationParameters?: ManagedInstanceOperationParametersPair; - /** - * The operation steps. + * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationSteps?: ManagedInstanceOperationSteps; -} - -/** A private endpoint connection */ -export interface ManagedInstancePrivateEndpointConnection - extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: ManagedInstancePrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; + readonly kind?: string; /** - * State of the Private Endpoint Connection. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** A private link resource */ -export interface ManagedInstancePrivateLink extends ProxyResource { + readonly location?: string; /** - * The private link resource group id. + * Subregion of the encryption protector. * 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 interface TdeCertificate extends ProxyResource { - /** The base64 encoded certificate private blob. */ - privateBlob?: string; - /** The certificate password. */ - certPassword?: string; -} - -/** A managed instance vulnerability assessment. */ -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 */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A managed server security alert policy. */ -export interface ManagedServerSecurityAlertPolicy extends ProxyResource { + readonly subregion?: string; + /** The name of the server key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * SystemData of SecurityAlertPolicyResource. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** 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?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly uri?: string; /** - * Specifies the UTC creation time of the policy. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; } -/** Operations health status in a location. */ -export interface OperationsHealth extends ProxyResource { +/** A failover group. */ +export interface FailoverGroup extends ProxyResource { /** - * Operation name for the service + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly namePropertiesName?: string; + readonly location?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; /** - * Operation health status of the service. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly health?: string; + readonly replicationRole?: FailoverGroupReplicationRole; /** - * Health status description. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly replicationState?: string; + /** List of partner server information for the failover group. */ + partnerServers?: PartnerInfo[]; + /** List of databases in the failover group. */ + databases?: string[]; } -/** A private endpoint connection */ -export interface PrivateEndpointConnection extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; +/** An instance failover group. */ +export interface InstanceFailoverGroup extends ProxyResource { + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; /** - * State of the private endpoint connection. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; -} - -/** A private link resource */ -export interface PrivateLinkResource extends ProxyResource { + readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** - * The private link resource group id. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: PrivateLinkResourceProperties; + readonly replicationState?: string; + /** Partner region information for the failover group. */ + partnerRegions?: PartnerRegionInfo[]; + /** List of managed instance pairs in the failover group. */ + managedInstancePairs?: ManagedInstancePairInfo[]; } -/** A recoverable managed database resource. */ -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; +/** A stored credential that can be used by a job to connect to target databases. */ +export interface JobCredential extends ProxyResource { + /** The credential user name. */ + username?: string; + /** The credential password. */ + password?: string; } -/** Database restore points. */ -export interface RestorePoint extends ProxyResource { - /** - * Resource location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * The type of restore point - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly restorePointType?: RestorePointType; +/** An execution of a job */ +export interface JobExecution extends ProxyResource { /** - * The earliest time to which this database can be restored + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly jobVersion?: number; /** - * The time the backup was taken + * The job step name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCreationDate?: Date; + readonly stepName?: string; /** - * The label of restore point for backup request by user + * The job step id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointLabel?: string; -} - -/** Server-level Automatic Tuning. */ -export interface ServerAutomaticTuning extends ProxyResource { - /** Automatic tuning desired state. */ - desiredState?: AutomaticTuningServerMode; + readonly stepId?: number; /** - * Automatic tuning actual state. + * The unique identifier of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningServerMode; - /** Automatic tuning options definition. */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; -} - -/** Azure Active Directory administrator. */ -export interface ServerAzureADAdministrator extends ProxyResource { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; + readonly jobExecutionId?: string; /** - * Azure Active Directory only Authentication enabled. + * The detailed state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureADOnlyAuthentication?: boolean; -} - -/** Azure Active Directory only authentication. */ -export interface ServerAzureADOnlyAuthentication extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** A server DevOps auditing settings. */ -export interface ServerDevOpsAuditingSettings extends ProxyResource { + readonly lifecycle?: JobExecutionLifecycle; /** - * SystemData of ServerDevOpsAuditSettingsResource. + * The ARM provisioning state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** - * Specifies whether DevOps 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 DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also 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) - * - */ - isAzureMonitorTargetEnabled?: 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 server DNS alias. */ -export interface ServerDnsAlias extends ProxyResource { + readonly provisioningState?: ProvisioningState; /** - * The fully qualified DNS record for alias + * The time that the job execution was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; -} - -/** A server key. */ -export interface ServerKey extends ProxyResource { + readonly createTime?: Date; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The time that the job execution started. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly startTime?: Date; /** - * Resource location. + * The time that the job execution completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly endTime?: Date; + /** Number of times the job execution has been attempted. */ + currentAttempts?: number; /** - * Subregion of the server key. + * Start time of the current attempt. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; - /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; + readonly currentAttemptStartTime?: Date; /** - * Thumbprint of the server key. + * The last status or error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly lastMessage?: string; /** - * The server key creation date. + * The target that this execution is executed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly target?: JobExecutionTarget; +} + +/** A job. */ +export interface Job extends ProxyResource { + /** User-defined description of the job. */ + description?: string; /** - * Key auto rotation opt-in flag. Either true or false. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; + readonly version?: number; + /** Schedule properties of the job. */ + schedule?: JobSchedule; } -/** A server operation. */ -export interface ServerOperation extends ProxyResource { +/** A job step. */ +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. */ + targetGroup?: string; + /** The resource ID of the job credential that will be used to connect to the targets. */ + credential?: string; + /** The action payload of the job step. */ + action?: JobStepAction; + /** Output destination properties of the job step. */ + output?: JobStepOutput; + /** Execution options for the job step. */ + executionOptions?: JobStepExecutionOptions; +} + +/** A group of job targets. */ +export interface JobTargetGroup extends ProxyResource { + /** Members of the target group. */ + members?: JobTarget[]; +} + +/** A job version. */ +export interface JobVersion extends ProxyResource {} + +/** A long term retention policy. */ +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. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** Maintenance window options. */ +export interface MaintenanceWindowOptions extends ProxyResource { + /** Whether maintenance windows are enabled for the database. */ + isEnabled?: boolean; + /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + /** Minimum duration of maintenance window. */ + minDurationInMinutes?: number; + /** Default duration for maintenance window. */ + defaultDurationInMinutes?: number; + /** Minimum number of maintenance windows cycles to be set on the database. */ + minCycles?: number; + /** Time granularity in minutes for maintenance windows. */ + timeGranularityInMinutes?: number; + /** Whether we allow multiple maintenance windows per cycle. */ + allowMultipleMaintenanceWindowsPerCycle?: boolean; +} + +/** Maintenance windows. */ +export interface MaintenanceWindows extends ProxyResource { + timeRanges?: MaintenanceWindowTimeRange[]; +} + +/** A short term retention policy. */ +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 interface ManagedInstanceQuery extends ProxyResource { + /** Query text. */ + queryText?: string; +} + +export interface QueryStatistics extends ProxyResource { /** - * The name of operation. + * 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. */ - readonly operation?: string; + readonly databaseName?: string; /** - * The friendly name of operation. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly queryId?: string; /** - * The percentage of the operation completed. + * The start time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly startTime?: string; /** - * The name of the server. + * The end time for the metric (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; - /** - * The operation start time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; +} + +/** A managed database security alert policy. */ +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 */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * The operation state. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly creationTime?: Date; +} + +/** A security event. */ +export interface SecurityEvent extends ProxyResource { /** - * The operation error code. + * The time when the security event occurred. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly eventTime?: Date; /** - * The operation error description. + * The type of the security event. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly securityEventType?: SecurityEventType; /** - * The operation error severity. + * The subscription name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly subscription?: string; /** - * Whether or not the error is a user error. + * The server name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly server?: string; /** - * The estimated completion time of the operation. + * The database name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly database?: string; /** - * The operation description. + * The IP address of the client who executed the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly clientIp?: string; /** - * Whether the operation can be cancelled. + * The application used to execute the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** A server security alert policy. */ -export interface ServerSecurityAlertPolicy extends ProxyResource { + readonly applicationName?: string; /** - * SystemData of SecurityAlertPolicyResource. + * The principal user who executed the statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** 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?: SecurityAlertsPolicyState; - /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - disabledAlerts?: string[]; - /** Specifies an array of e-mail addresses to which the alert is sent. */ - emailAddresses?: string[]; - /** Specifies that the alert is sent to the account administrators. */ - emailAccountAdmins?: boolean; - /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ - storageEndpoint?: string; - /** Specifies the identifier key of the Threat Detection audit storage account. */ - storageAccountAccessKey?: string; - /** Specifies the number of days to keep in the Threat Detection audit logs. */ - retentionDays?: number; + readonly principalName?: string; /** - * Specifies the UTC creation time of the policy. + * The sql injection additional properties, populated only if the type of the security event is sql injection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } -/** A server trust group. */ -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 managed database transparent data encryption state. */ +export interface ManagedTransparentDataEncryption extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; } -/** A server vulnerability assessment. */ -export interface ServerVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has 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 */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +/** An Azure SQL managed instance administrator. */ +export interface ManagedInstanceAdministrator extends ProxyResource { + /** Type of the managed instance administrator. */ + administratorType?: ManagedInstanceAdministratorType; + /** Login name of the managed instance administrator. */ + login?: string; + /** SID (object ID) of the managed instance administrator. */ + sid?: string; + /** Tenant ID of the managed instance administrator. */ + tenantId?: string; } -/** A recoverable managed database resource. */ -export interface SqlAgentConfiguration extends ProxyResource { - /** The state of Sql Agent. */ - state?: SqlAgentConfigurationPropertiesState; +/** Azure Active Directory only authentication. */ +export interface ManagedInstanceAzureADOnlyAuthentication + extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; } -/** Usage Metric of a Subscription in a Location. */ -export interface SubscriptionUsage extends ProxyResource { +/** The managed instance encryption protector. */ +export interface ManagedInstanceEncryptionProtector extends ProxyResource { /** - * User-readable name of the metric. + * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly kind?: string; + /** The name of the managed instance key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Current value of the metric. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly uri?: string; /** - * Boundary value of the metric. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; +} + +/** A managed instance key. */ +export interface ManagedInstanceKey extends ProxyResource { /** - * Unit of the metric. + * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; -} - -/** An Azure SQL Database sync agent. */ -export interface SyncAgent extends ProxyResource { + readonly kind?: string; + /** The key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ + uri?: string; /** - * Name of the sync agent. + * Thumbprint of the key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly namePropertiesName?: string; - /** ARM resource id of the sync database in the sync agent. */ - syncDatabaseId?: string; + readonly thumbprint?: string; /** - * Last alive time of the sync agent. + * The key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAliveTime?: Date; + readonly creationDate?: Date; /** - * State of the sync agent. + * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: SyncAgentState; + readonly autoRotationEnabled?: boolean; +} + +/** A long term retention policy. */ +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. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** A managed instance operation. */ +export interface ManagedInstanceOperation extends ProxyResource { /** - * If the sync agent version is up to date. + * 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. */ - readonly isUpToDate?: boolean; + readonly managedInstanceName?: string; /** - * Expiration time of the sync agent version. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expiryTime?: Date; + readonly operation?: string; /** - * Version of the sync agent. + * The friendly name of operation. * 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 interface SyncAgentLinkedDatabase extends ProxyResource { + readonly operationFriendlyName?: string; /** - * Type of the sync agent linked database. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseType?: SyncMemberDbType; + readonly percentComplete?: number; /** - * Id of the sync agent linked database. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly startTime?: Date; /** - * Description of the sync agent linked database. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly state?: ManagementOperationState; /** - * Server name of the sync agent linked database. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly errorCode?: number; /** - * Database name of the sync agent linked database. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly errorDescription?: string; /** - * User name of the sync agent linked database. + * The operation error severity. * 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 interface SyncGroup extends ProxyResource { - /** The name and capacity of the SKU. */ - sku?: Sku; - /** Sync interval of the sync group. */ - interval?: number; + readonly errorSeverity?: number; /** - * Last sync time of the sync group. + * 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 lastSyncTime?: Date; - /** Conflict resolution policy of the sync group. */ - conflictResolutionPolicy?: SyncConflictResolutionPolicy; - /** ARM resource id of the sync database in the sync group. */ - syncDatabaseId?: string; - /** User name for the sync group hub database credential. */ - hubDatabaseUserName?: string; - /** Password for the sync group hub database credential. */ - hubDatabasePassword?: string; + readonly isUserError?: boolean; /** - * Sync state of the sync group. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncState?: SyncGroupState; - /** Sync schema of the sync group. */ - schema?: SyncGroupSchema; - /** If conflict logging is enabled. */ - enableConflictLogging?: boolean; - /** Conflict logging retention period. */ - conflictLoggingRetentionInDays?: number; - /** If use private link connection is enabled. */ - usePrivateLinkConnection?: boolean; - /** - * Private endpoint name of the sync group if use private link connection is enabled. - * 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 interface SyncMember extends ProxyResource { - /** Database type of the sync member. */ - databaseType?: SyncMemberDbType; - /** ARM resource id of the sync agent in the sync member. */ - syncAgentId?: string; - /** SQL Server database id of the sync member. */ - sqlServerDatabaseId?: string; - /** ARM resource id of the sync member logical database, for sync members in Azure. */ - syncMemberAzureDatabaseResourceId?: string; - /** Whether to use private link connection. */ - usePrivateLinkConnection?: boolean; + readonly estimatedCompletionTime?: Date; /** - * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointName?: string; - /** Server name of the member database in the sync member */ - serverName?: string; - /** Database name of the member database in the sync member. */ - databaseName?: string; - /** User name of the member database in the sync member. */ - userName?: string; - /** Password of the member database in the sync member. */ - password?: string; - /** Sync direction of the sync member. */ - syncDirection?: SyncDirection; + readonly description?: string; /** - * Sync state of the sync member. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncState?: SyncMemberState; -} - -/** Time Zone. */ -export interface TimeZone extends ProxyResource { + readonly isCancellable?: boolean; /** - * The time zone id + * The operation parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeZoneId?: string; + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * The time zone display name + * The operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly operationSteps?: ManagedInstanceOperationSteps; } -/** A recoverable managed database resource. */ -export interface UpdateManagedInstanceDnsServersOperation +/** A private endpoint connection */ +export interface ManagedInstancePrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: ManagedInstancePrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** - * The status of the DNS refresh operation. + * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DnsRefreshConfigurationPropertiesStatus; + readonly provisioningState?: string; } -/** A virtual network rule. */ -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. */ - ignoreMissingVnetServiceEndpoint?: boolean; +/** A private link resource */ +export interface ManagedInstancePrivateLink extends ProxyResource { /** - * Virtual Network Rule State + * The private link resource group id. * 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 interface WorkloadClassifier extends ProxyResource { - /** The workload classifier member name. */ - memberName?: string; - /** The workload classifier label. */ - label?: string; - /** The workload classifier context. */ - context?: string; - /** The workload classifier start time for classification. */ - startTime?: string; - /** The workload classifier end time for classification. */ - endTime?: string; - /** The workload classifier importance. */ - importance?: string; -} - -/** Workload group operations for a data warehouse */ -export interface WorkloadGroup extends ProxyResource { - /** The workload group minimum percentage resource. */ - minResourcePercent?: number; - /** The workload group cap percentage resource. */ - maxResourcePercent?: number; - /** The workload group request minimum grant percentage. */ - minResourcePercentPerRequest?: number; - /** The workload group request maximum grant percentage. */ - maxResourcePercentPerRequest?: number; - /** The workload group importance level. */ - importance?: string; - /** The workload group query execution timeout. */ - queryExecutionTimeout?: number; -} - -/** A logical database transparent data encryption state. */ -export interface LogicalDatabaseTransparentDataEncryption - extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; + readonly properties?: ManagedInstancePrivateLinkProperties; } -/** A short term retention policy. */ -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; +/** A TDE certificate that can be uploaded into a server. */ +export interface TdeCertificate extends ProxyResource { + /** The base64 encoded certificate private blob. */ + privateBlob?: string; + /** The certificate password. */ + certPassword?: string; } -/** An export managed database operation result resource. */ -export interface DatabaseExtensions extends ProxyResource { - /** Operation Mode. */ - operationMode?: OperationMode; - /** Storage key type. */ - storageKeyType?: StorageKeyType; - /** Storage key. */ - storageKey?: string; - /** Storage Uri. */ - storageUri?: string; +/** A managed instance vulnerability assessment. */ +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 */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } -/** An Extension operation result resource. */ -export interface ImportExportExtensionsOperationResult extends ProxyResource { - /** - * Request Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestId?: string; - /** - * Request type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestType?: string; - /** - * Last modified time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedTime?: string; +/** A managed server security alert policy. */ +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** - * Server name. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly systemData?: SystemData; + /** 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?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * Database name. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly creationTime?: Date; +} + +/** A private endpoint connection */ +export interface PrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * Operation status. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly provisioningState?: PrivateEndpointProvisioningState; +} + +/** A private link resource */ +export interface PrivateLinkResource extends ProxyResource { /** - * Error message. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly properties?: PrivateLinkResourceProperties; } -/** A database operation. */ -export interface DatabaseOperation extends ProxyResource { +/** A recoverable managed database resource. */ +export interface RecoverableManagedDatabase extends ProxyResource { /** - * The name of the database the operation is being performed on. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly lastAvailableBackupDate?: string; +} + +/** Database restore points. */ +export interface RestorePoint extends ProxyResource { /** - * The name of operation. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly location?: string; /** - * The friendly name of operation. + * The type of restore point * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly restorePointType?: RestorePointType; /** - * The percentage of the operation completed. + * The earliest time to which this database can be restored * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly earliestRestoreDate?: Date; /** - * The name of the server. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly restorePointCreationDate?: Date; /** - * The operation start time. + * The label of restore point for backup request by user * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly restorePointLabel?: string; +} + +/** Server-level Automatic Tuning. */ +export interface ServerAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningServerMode; /** - * The operation state. + * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; - /** - * The operation error code. + readonly actualState?: AutomaticTuningServerMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningServerOptions }; +} + +/** Azure Active Directory administrator. */ +export interface ServerAzureADAdministrator extends ProxyResource { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** + * Azure Active Directory only Authentication enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly azureADOnlyAuthentication?: boolean; +} + +/** Azure Active Directory only authentication. */ +export interface ServerAzureADOnlyAuthentication extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** A server DevOps auditing settings. */ +export interface ServerDevOpsAuditingSettings extends ProxyResource { /** - * The operation error description. + * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly systemData?: SystemData; /** - * The operation error severity. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether DevOps 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 DevOps audit, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also 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) + * */ - readonly errorSeverity?: number; + isAzureMonitorTargetEnabled?: boolean; + /** 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; /** - * Whether or not the error is a user error. - * 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 isUserError?: boolean; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A server DNS alias. */ +export interface ServerDnsAlias extends ProxyResource { /** - * The estimated completion time of the operation. + * The fully qualified DNS record for alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly azureDnsRecord?: string; +} + +/** A server key. */ +export interface ServerKey extends ProxyResource { /** - * The operation description. + * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly kind?: string; /** - * Whether the operation can be cancelled. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** Usage metric of a database. */ -export interface DatabaseUsage extends ProxyResource { + readonly location?: string; /** - * User-readable name of the metric. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly subregion?: string; + /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ + uri?: string; /** - * Current value of the metric. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly thumbprint?: string; /** - * Boundary value of the metric. + * The server key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly creationDate?: Date; /** - * Unit of the metric. + * Key auto rotation opt-in flag. Either true or false. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly autoRotationEnabled?: boolean; } -/** Azure SQL Database ledger digest upload settings. */ -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; +/** A server operation. */ +export interface ServerOperation extends ProxyResource { /** - * Specifies the state of ledger digest upload. + * The name of operation. * 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 interface OutboundFirewallRule extends ProxyResource { + readonly operation?: string; /** - * The state of the outbound rule. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** A replication link. */ -export interface ReplicationLink extends ProxyResource { + readonly operationFriendlyName?: string; /** - * Resource partner server. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerServer?: string; + readonly percentComplete?: number; /** - * Resource partner database. + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerDatabase?: string; + readonly serverName?: string; /** - * Resource partner location. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerLocation?: string; + readonly startTime?: Date; /** - * Local replication role. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly role?: ReplicationRole; + readonly state?: ManagementOperationState; /** - * Partner replication role. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerRole?: ReplicationRole; + readonly errorCode?: number; /** - * Replication mode. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationMode?: string; + readonly errorDescription?: string; /** - * Time at which the link was created. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly errorSeverity?: number; /** - * Seeding completion percentage for the link. + * 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 percentComplete?: number; + readonly isUserError?: boolean; /** - * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: ReplicationState; + readonly estimatedCompletionTime?: Date; /** - * Whether the user is currently allowed to terminate the link. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isTerminationAllowed?: boolean; + readonly description?: string; /** - * Link type (GEO, NAMED). + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly linkType?: ReplicationLinkType; + readonly isCancellable?: boolean; } -/** An ImportExport operation result resource. */ -export interface ImportExportOperationResult extends ProxyResource { +/** A server security alert policy. */ +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * Request Id. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly systemData?: SystemData; + /** 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?: SecurityAlertsPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * Request type. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestType?: string; + readonly creationTime?: Date; +} + +/** A server trust group. */ +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 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 */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** A recoverable managed database resource. */ +export interface SqlAgentConfiguration extends ProxyResource { + /** The state of Sql Agent. */ + state?: SqlAgentConfigurationPropertiesState; +} + +/** Usage Metric of a Subscription in a Location. */ +export interface SubscriptionUsage extends ProxyResource { /** - * Queued time. + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queuedTime?: string; + readonly displayName?: string; /** - * Last modified time. + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: string; + readonly currentValue?: number; /** - * Blob Uri. + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly blobUri?: string; + readonly limit?: number; /** - * Server name. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly unit?: string; +} + +/** An Azure SQL Database sync agent. */ +export interface SyncAgent extends ProxyResource { /** - * Database name. + * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly namePropertiesName?: string; + /** ARM resource id of the sync database in the sync agent. */ + syncDatabaseId?: string; /** - * Operation status. + * Last alive time of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly lastAliveTime?: Date; /** - * Error message. + * State of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly state?: SyncAgentState; /** - * Gets the status of private endpoints associated with this request. + * If the sync agent version is up to date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; -} - -/** A LongTermRetentionBackup operation result resource. */ -export interface LongTermRetentionBackupOperationResult extends ProxyResource { + readonly isUpToDate?: boolean; /** - * Request Id. + * Expiration time of the sync agent version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly expiryTime?: Date; /** - * Operation type. + * Version of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationType?: string; + readonly version?: string; +} + +/** An Azure SQL Database sync agent linked database. */ +export interface SyncAgentLinkedDatabase extends ProxyResource { /** - * Source backup resource id + * Type of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fromBackupResourceId?: string; + readonly databaseType?: SyncMemberDbType; /** - * Target backup resource id + * Id of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly toBackupResourceId?: string; + readonly databaseId?: string; /** - * The storage redundancy type of the copied backup + * Description of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; + readonly description?: string; /** - * Operation status + * Server name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly serverName?: string; /** - * Progress message + * Database name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly databaseName?: string; + /** + * User name of the sync agent linked database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userName?: string; } -/** A long term retention backup. */ -export interface LongTermRetentionBackup extends ProxyResource { +/** An Azure SQL Database sync group. */ +export interface SyncGroup extends ProxyResource { + /** The name and capacity of the SKU. */ + sku?: Sku; + /** Sync interval of the sync group. */ + interval?: number; /** - * The server name that the backup database belong to. + * Last sync time of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly lastSyncTime?: Date; + /** Conflict resolution policy of the sync group. */ + conflictResolutionPolicy?: SyncConflictResolutionPolicy; + /** ARM resource id of the sync database in the sync group. */ + syncDatabaseId?: string; + /** User name for the sync group hub database credential. */ + hubDatabaseUserName?: string; + /** Password for the sync group hub database credential. */ + hubDatabasePassword?: string; /** - * The create time of the server. + * Sync state of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverCreateTime?: Date; + readonly syncState?: SyncGroupState; + /** Sync schema of the sync group. */ + schema?: SyncGroupSchema; + /** If conflict logging is enabled. */ + enableConflictLogging?: boolean; + /** Conflict logging retention period. */ + conflictLoggingRetentionInDays?: number; + /** If use private link connection is enabled. */ + usePrivateLinkConnection?: boolean; /** - * The name of the database the backup belong to + * Private endpoint name of the sync group if use private link connection is enabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly privateEndpointName?: string; +} + +/** An Azure SQL Database sync member. */ +export interface SyncMember extends ProxyResource { + /** Database type of the sync member. */ + databaseType?: SyncMemberDbType; + /** ARM resource id of the sync agent in the sync member. */ + syncAgentId?: string; + /** SQL Server database id of the sync member. */ + sqlServerDatabaseId?: string; + /** ARM resource id of the sync member logical database, for sync members in Azure. */ + syncMemberAzureDatabaseResourceId?: string; + /** Whether to use private link connection. */ + usePrivateLinkConnection?: boolean; /** - * The delete time of the database + * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly privateEndpointName?: string; + /** Server name of the member database in the sync member */ + serverName?: string; + /** Database name of the member database in the sync member. */ + databaseName?: string; + /** User name of the member database in the sync member. */ + userName?: string; + /** Password of the member database in the sync member. */ + password?: string; + /** Sync direction of the sync member. */ + syncDirection?: SyncDirection; /** - * The time the backup was taken + * Sync state of the sync member. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly syncState?: SyncMemberState; +} + +/** Time Zone. */ +export interface TimeZone extends ProxyResource { /** - * The time the long term retention backup will expire. + * The time zone id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly timeZoneId?: string; /** - * The storage redundancy type of the backup + * The time zone display name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; - /** The storage redundancy type of the backup */ - requestedBackupStorageRedundancy?: BackupStorageRedundancy; + readonly displayName?: string; } -/** A long term retention backup for a managed database. */ -export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { +/** A virtual network rule. */ +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. */ + ignoreMissingVnetServiceEndpoint?: boolean; /** - * The managed instance that the backup database belongs to. + * Virtual Network Rule State * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly state?: VirtualNetworkRuleState; +} + +/** Workload classifier operations for a data warehouse */ +export interface WorkloadClassifier extends ProxyResource { + /** The workload classifier member name. */ + memberName?: string; + /** The workload classifier label. */ + label?: string; + /** The workload classifier context. */ + context?: string; + /** The workload classifier start time for classification. */ + startTime?: string; + /** The workload classifier end time for classification. */ + endTime?: string; + /** The workload classifier importance. */ + importance?: string; +} + +/** Workload group operations for a data warehouse */ +export interface WorkloadGroup extends ProxyResource { + /** The workload group minimum percentage resource. */ + minResourcePercent?: number; + /** The workload group cap percentage resource. */ + maxResourcePercent?: number; + /** The workload group request minimum grant percentage. */ + minResourcePercentPerRequest?: number; + /** The workload group request maximum grant percentage. */ + maxResourcePercentPerRequest?: number; + /** The workload group importance level. */ + importance?: string; + /** The workload group query execution timeout. */ + queryExecutionTimeout?: number; +} + +/** A logical database transparent data encryption state. */ +export interface LogicalDatabaseTransparentDataEncryption + extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** A short term retention policy. */ +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 interface DatabaseExtensions extends ProxyResource { + /** Operation Mode. */ + operationMode?: OperationMode; + /** Storage key type. */ + storageKeyType?: StorageKeyType; + /** Storage key. */ + storageKey?: string; + /** Storage Uri. */ + storageUri?: string; +} + +/** An Extension operation result resource. */ +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** - * The create time of the instance. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceCreateTime?: Date; + readonly requestId?: string; /** - * The name of the database the backup belong to + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly requestType?: string; /** - * The delete time of the database + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly lastModifiedTime?: string; /** - * The time the backup was taken + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly serverName?: string; /** - * The time the long term retention backup will expire. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly databaseName?: string; /** - * The storage redundancy type of the backup + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; + readonly status?: string; + /** + * Error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; } -/** A restorable dropped database resource. */ -export interface RestorableDroppedDatabase extends ProxyResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource location. */ - location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** A database operation. */ +export interface DatabaseOperation extends ProxyResource { /** - * The name of the database. + * 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. */ readonly databaseName?: string; /** - * The max size of the database expressed in bytes. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxSizeBytes?: number; + readonly operation?: string; /** - * The creation date of the database (ISO8601 format). + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly operationFriendlyName?: string; /** - * The deletion date of the database (ISO8601 format). + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly percentComplete?: number; /** - * The earliest restore date of the database (ISO8601 format). + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly serverName?: string; /** - * The storage account type used to store backups for this database. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; -} - -/** A server connection policy */ -export interface ServerConnectionPolicy extends ProxyResource { + readonly startTime?: Date; /** - * Resource location. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly state?: ManagementOperationState; /** - * Metadata used for the Azure portal experience. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The server connection type. */ - connectionType?: ServerConnectionType; -} - -/** An elastic pool. */ -export interface ElasticPool extends TrackedResource { + readonly errorCode?: number; /** - * 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 operation error description. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly errorDescription?: string; /** - * Kind of elastic pool. This is metadata used for the Azure portal experience. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly errorSeverity?: number; /** - * The state of the elastic pool. + * 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 state?: ElasticPoolState; + readonly isUserError?: boolean; /** - * The creation date of the elastic pool (ISO8601 format). + * The estimated completion time of the operation. * 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 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; -} - -/** 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; + readonly estimatedCompletionTime?: Date; /** - * The state of the job agent. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: JobAgentState; -} - -/** A managed database resource. */ -export interface ManagedDatabase extends TrackedResource { - /** Collation of the managed database. */ - collation?: string; + readonly description?: string; /** - * Status of the database. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly isCancellable?: boolean; +} + +/** Usage metric of a database. */ +export interface DatabaseUsage extends ProxyResource { /** - * Creation date of the database. + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly displayName?: string; /** - * Earliest restore point in time for point in time restore. + * Current value of the metric. * 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 currentValue?: number; /** - * Geo paired region. + * Boundary value of the metric. * 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 limit?: number; /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Unit of the metric. * 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; + readonly unit?: string; } -/** An Azure SQL virtual cluster. */ -export interface VirtualCluster extends TrackedResource { +/** Azure SQL Database ledger digest upload settings. */ +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; /** - * Subnet resource ID for the virtual cluster. + * Specifies the state of ledger digest upload. * 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 state?: LedgerDigestUploadsState; +} + +/** An Azure SQL DB Server Outbound Firewall Rule. */ +export interface OutboundFirewallRule extends ProxyResource { /** - * List of resources in this virtual cluster. + * The state of the outbound rule. * 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; + readonly provisioningState?: string; } -/** An Azure SQL Database server. */ -export interface Server extends TrackedResource { - /** The Azure Active Directory identity of the server. */ - identity?: ResourceIdentity; +/** An ImportExport operation result resource. */ +export interface ImportExportOperationResult extends ProxyResource { /** - * Kind of sql server. This is metadata used for the Azure portal experience. + * Request Id. * 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 requestId?: string; /** - * The state of the server. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly requestType?: string; /** - * The fully qualified domain name of the server. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; + readonly queuedTime?: string; /** - * List of private endpoint connections on a server + * Last modified time. * 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 lastModifiedTime?: string; /** - * Whether or not existing server has a workspace created and if it allows connection from workspace + * Blob Uri. * 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; -} - -/** A database resource. */ -export interface Database extends TrackedResource { + readonly blobUri?: string; /** - * 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 - * ```` - * + * Server name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly serverName?: string; /** - * Kind of database. This is metadata used for the Azure portal experience. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly databaseName?: string; /** - * Resource that manages the database. + * Operation status. * 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 status?: 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. - * - * 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; + * Error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; /** - * The status of the database. + * Gets the status of private endpoints associated with this request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DatabaseStatus; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; +} + +/** A LongTermRetentionBackup operation result resource. */ +export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** - * The ID of the database. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly requestId?: string; /** - * The creation date of the database (ISO8601 format). + * Operation type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly operationType?: string; /** - * The current service level objective name of the database. + * Source backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjectiveName?: string; + readonly fromBackupResourceId?: string; /** - * The requested service level objective name of the database. + * Target backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly toBackupResourceId?: string; /** - * The default secondary region for this database. + * The storage redundancy type of the copied backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; + readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; /** - * Failover Group resource identifier that this database belongs to. + * Operation status * 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; + readonly status?: string; /** - * The max log size for this database. + * Progress message * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxLogSizeBytes?: number; + readonly message?: string; +} + +/** A long term retention backup. */ +export interface LongTermRetentionBackup extends ProxyResource { /** - * This records the earliest start date and time that restore is available for this database (ISO8601 format). + * The server name that the backup database belong to. * 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; + readonly serverName?: string; /** - * The name and tier of the SKU. + * The create time of the server. * 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; + readonly serverCreateTime?: Date; /** - * The storage account type used to store backups for this database. + * The name of the database the backup belong to * 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; + readonly databaseName?: string; /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pausedDate?: Date; + readonly databaseDeletionTime?: Date; /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * The time the backup was taken * 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; + readonly backupTime?: Date; /** - * Infra encryption is enabled for this database. + * The time the long term retention backup will expire. * 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 Primary Delegated Identity Client id used for per database CMK - for internal use only */ - primaryDelegatedIdentityClientId?: string; + readonly backupExpirationTime?: Date; + /** + * The storage redundancy type of the backup + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The storage redundancy type of the backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; } -/** 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; +/** A long term retention backup for a managed database. */ +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * 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. + * The managed instance that the backup database belongs to. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - managedInstanceCreateMode?: ManagedServerCreateMode; + readonly managedInstanceName?: string; /** - * The fully qualified domain name of the managed instance. + * The create time of the 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; + readonly managedInstanceCreateTime?: Date; /** - * The state of the managed instance. + * The name of the database the backup belong to * 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; + readonly databaseName?: string; /** - * The Dns Zone that the managed instance is in. + * The delete time of the database * 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; + readonly databaseDeletionTime?: Date; /** - * 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". + * The time the backup was taken + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly backupTime?: Date; /** - * List of private endpoint connections on a managed instance. + * The time the long term retention backup will expire. * 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; + readonly backupExpirationTime?: Date; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * The storage redundancy type of the backup * 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; + readonly backupStorageRedundancy?: BackupStorageRedundancy; } -/** A restorable dropped managed database resource. */ -export interface RestorableDroppedManagedDatabase extends TrackedResource { +/** A restorable dropped database resource. */ +export interface RestorableDroppedDatabase extends ProxyResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource location. */ + location?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** * The name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; + /** + * The max size of the database expressed in bytes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maxSizeBytes?: number; /** * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7411,211 +6834,1943 @@ export interface RestorableDroppedManagedDatabase extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; + /** + * 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 backupStorageRedundancy?: BackupStorageRedundancy; } -/** 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; -} - -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { - /** Default */ - Default = "Default" +/** A server connection policy */ +export interface ServerConnectionPolicy extends ProxyResource { + /** + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** + * 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 server connection type. */ + connectionType?: ServerConnectionType; } -/** - * 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" +/** 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 distributed availability group id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly distributedAvailabilityGroupId?: string; + /** + * The source replica id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceReplicaId?: string; + /** + * The target replica id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetReplicaId?: string; + /** + * The link state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkState?: string; + /** + * The last hardened lsn + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastHardenedLsn?: string; } -/** - * 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" +/** 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; + /** + * The certificate thumbprint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly thumbprint?: string; + /** + * The certificate name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly certificateName?: 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 = "Count", - /** Bytes */ - Bytes = "Bytes", - /** Seconds */ - Seconds = "Seconds", - /** Percent */ - Percent = "Percent", - /** CountPerSecond */ - CountPerSecond = "CountPerSecond", - /** BytesPerSecond */ - BytesPerSecond = "BytesPerSecond" +/** Certificate used on an endpoint on the Managed Instance. */ +export interface EndpointCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; } -/** - * 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; +/** A sensitivity label. */ +export interface SensitivityLabel extends 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; +} -/** 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" +/** 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; } -/** - * 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; +/** 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; +} -/** 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", +/** 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 + * + * 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) + * + */ + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; + /** + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * 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; + /** + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + isAzureMonitorTargetEnabled?: boolean; + /** + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + */ + queueDelayMs?: number; + /** 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 database blob auditing policy. */ +export interface DatabaseBlobAuditingPolicy extends ProxyResource { + /** + * Resource kind. + * 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; + /** + * 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; + /** + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + isAzureMonitorTargetEnabled?: boolean; + /** + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + */ + queueDelayMs?: number; + /** 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; +} + +/** 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 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; + /** + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + isAzureMonitorTargetEnabled?: boolean; + /** + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + */ + queueDelayMs?: number; + /** 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; +} + +/** An extended server blob auditing policy. */ +export interface ExtendedServerBlobAuditingPolicy 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 + * + * 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) + * + */ + 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; + /** + * 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; + /** + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + isAzureMonitorTargetEnabled?: boolean; + /** + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + */ + queueDelayMs?: number; + /** 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 database Advanced Threat Protection. */ +export interface DatabaseAdvancedThreatProtection 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; +} + +/** A server Advanced Threat Protection. */ +export interface ServerAdvancedThreatProtection 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; +} + +/** 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; +} + +/** A database sql vulnerability assessment baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSet + extends ProxyResource { + /** + * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The baseline set result */ + results?: { [propertyName: string]: string[][] }; +} + +/** A database sql vulnerability assessment rule baseline list input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput + extends ProxyResource { + /** + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result list */ + results?: { [propertyName: string]: string[][] }; +} + +/** A database sql vulnerability assessment rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline + extends ProxyResource { + /** + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The rule baseline result */ + results?: string[][]; +} + +/** A database sql vulnerability assessment rule baseline input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + extends ProxyResource { + /** + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result */ + results?: string[][]; +} + +export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { + /** + * SystemData of AdvancedThreatProtectionResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * SQL Vulnerability Assessment rule Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleId?: string; + /** + * SQL Vulnerability Assessment rule result status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: RuleStatus; + /** + * SQL Vulnerability Assessment error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; + /** + * SQL Vulnerability Assessment is the query results trimmed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isTrimmed?: boolean; + /** + * SQL Vulnerability Assessment query results that was run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryResults?: string[][]; + /** + * SQL Vulnerability Assessment the remediation details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly remediation?: Remediation; + /** + * SQL Vulnerability Assessment rule result adjusted with baseline. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly baselineAdjustedResult?: BaselineAdjustedResult; + /** + * SQL Vulnerability Assessment rule metadata. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleMetadata?: VaRule; +} + +/** A vulnerability assessment scan record. */ +export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { + /** + * SystemData of SqlVulnerabilityAssessmentScanRecordResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The scan ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanId?: string; + /** + * The scan trigger type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + /** + * The scan status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: VulnerabilityAssessmentScanState; + /** + * The scan start time (UTC). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The scan end time (UTC). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; + /** + * The scan errors. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errors?: SqlVulnerabilityAssessmentScanError[]; + /** + * The server name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly server?: string; + /** + * The database name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly database?: string; + /** + * The SQL version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sqlVersion?: string; + /** + * The number of failed rules with high severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly highSeverityFailedRulesCount?: number; + /** + * The number of failed rules with medium severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly mediumSeverityFailedRulesCount?: number; + /** + * The number of failed rules with low severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lowSeverityFailedRulesCount?: number; + /** + * The number of total passed rules. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalPassedRulesCount?: number; + /** + * The number of total failed rules. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalFailedRulesCount?: number; + /** + * The number of total rules assessed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalRulesCount?: number; + /** + * Baseline created for this database, and has one or more rules. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isBaselineApplied?: boolean; +} + +/** A SQL Vulnerability Assessment. */ +export interface SqlVulnerabilityAssessment extends ProxyResource { + /** + * SystemData of SqlVulnerabilityAssessmentResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: SqlVulnerabilityAssessmentState; +} + +/** 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; +} + +/** A managed database restore details. */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { + /** + * Restore type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly typePropertiesType?: string; + /** + * Restore status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * The reason why restore is in Blocked state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blockReason?: string; + /** + * Last uploaded file name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUploadedFileName?: string; + /** + * Last uploaded file time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUploadedFileTime?: Date; + /** + * Last restored file name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastRestoredFileName?: string; + /** + * Last restored file time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastRestoredFileTime?: Date; + /** + * Percent completed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentCompleted?: number; + /** + * Current restored size MB. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentRestoredSizeMB?: number; + /** + * Current restore plan size MB. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentRestorePlanSizeMB?: number; + /** + * Current backup type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupType?: string; + /** + * Current restoring file name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentRestoringFileName?: string; + /** + * Number of files detected. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesDetected?: number; + /** + * Number of files queued. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesQueued?: number; + /** + * Number of files skipped. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesSkipped?: number; + /** + * Number of files restoring. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesRestoring?: number; + /** + * Number of files restored. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesRestored?: number; + /** + * Number of files unrestorable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesUnrestorable?: number; + /** + * Full backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + /** + * Diff backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + /** + * Log backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + /** + * Unrestorable files. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; +} + +/** 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; +} + +/** A replication link. */ +export interface ReplicationLink extends ProxyResource { + /** + * Resource partner server. + * 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, STANDBY). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkType?: ReplicationLinkType; +} + +/** 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; +} + +/** 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; +} + +/** Synapse link workspace resource */ +export interface SynapseLinkWorkspace extends ProxyResource { + /** List of all synapselink workspaces */ + workspaces?: SynapseLinkWorkspaceInfoProperties[]; +} + +/** 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; +} + +/** A server configuration option */ +export interface ServerConfigurationOption extends ProxyResource { + /** Value of the server configuration option. */ + serverConfigurationOptionValue?: number; + /** + * Provisioning state of server configuration option. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Azure SQL Database ledger digest upload settings. */ +export interface ManagedLedgerDigestUploads extends ProxyResource { + /** The digest storage endpoint, which must be either an Azure blob storage endpoint or an URI for Azure Confidential Ledger. */ + digestStorageEndpoint?: string; + /** + * Specifies the state of ledger digest upload. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ManagedLedgerDigestUploadsState; +} + +/** Managed instance's Start/Stop schedule. */ +export interface StartStopManagedInstanceSchedule extends ProxyResource { + /** + * System data of the scheduled resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The description of the schedule. */ + description?: string; + /** The time zone of the schedule. */ + timeZoneId?: string; + /** Schedule list. */ + scheduleList?: ScheduleItem[]; + /** + * Next action to be executed (Start or Stop) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextRunAction?: string; + /** + * Timestamp when the next action will be executed in the corresponding schedule time zone. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextExecutionTime?: string; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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, Named and Standby. */ + 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. + * + * This property is only supported for DataWarehouse edition and allows to restore across subscriptions. + * + * 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 the 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. + * + * 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; +} + +/** 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 used. Specifies the identity used for storage container authentication. Can be 'SharedAccessSignature' or 'ManagedIdentity'; if not specified 'SharedAccessSignature' is assumed. */ + storageContainerIdentity?: string; + /** Conditional. If createMode is RestoreExternalBackup and storageContainerIdentity is not ManagedIdentity, 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; +} + +/** 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[]; +} + +/** 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_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH */ + 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: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + 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 instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; +} + +/** 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 */ @@ -7653,2490 +8808,3572 @@ export enum KnownColumnDataType { } /** - * Defines values for ColumnDataType. \ - * {@link KnownColumnDataType} can be used interchangeably with ColumnDataType, + * 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 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 DevOpsAuditingSettingsName} that the service accepts. */ +export enum KnownDevOpsAuditingSettingsName { + /** Default */ + Default = "Default" +} + +/** + * Defines values for DevOpsAuditingSettingsName. \ + * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type DevOpsAuditingSettingsName = 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 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; + +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + /** Bidirectional */ + Bidirectional = "Bidirectional", + /** OneWayMemberToHub */ + OneWayMemberToHub = "OneWayMemberToHub", + /** OneWayHubToMember */ + OneWayHubToMember = "OneWayHubToMember" +} + +/** + * 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 = "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", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", + /** Unknown */ + Unknown = "Unknown" +} + +/** + * 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 = "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 ServerNetworkAccessFlag = string; + +/** 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 BackupStorageRedundancy} that the service accepts. */ +export enum KnownBackupStorageRedundancy { + /** Geo */ + Geo = "Geo", + /** Local */ + Local = "Local", + /** Zone */ + Zone = "Zone", + /** GeoZone */ + GeoZone = "GeoZone" +} + +/** + * 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; + +/** Known values of {@link DatabaseState} that the service accepts. */ +export enum KnownDatabaseState { + /** All */ + All = "All", + /** Live */ + Live = "Live", + /** Deleted */ + Deleted = "Deleted" +} + +/** + * 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; + +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ConnectionPolicyName. \ + * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **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** + * **default** */ -export type ColumnDataType = string; +export type ConnectionPolicyName = string; -/** Known values of {@link TableTemporalType} that the service accepts. */ -export enum KnownTableTemporalType { - /** NonTemporalTable */ - NonTemporalTable = "NonTemporalTable", - /** HistoryTable */ - HistoryTable = "HistoryTable", - /** SystemVersionedTemporalTable */ - SystemVersionedTemporalTable = "SystemVersionedTemporalTable" +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { + /** Default */ + Default = "Default", + /** Redirect */ + Redirect = "Redirect", + /** Proxy */ + Proxy = "Proxy" } /** - * Defines values for TableTemporalType. \ - * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, + * 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 - * **NonTemporalTable** \ - * **HistoryTable** \ - * **SystemVersionedTemporalTable** + * **Default** \ + * **Redirect** \ + * **Proxy** */ -export type TableTemporalType = string; +export type ServerConnectionType = string; -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { +/** Known values of {@link ReplicationMode} that the service accepts. */ +export enum KnownReplicationMode { + /** Async */ + Async = "Async", + /** Sync */ + Sync = "Sync" +} + +/** + * 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 + * **Async** \ + * **Sync** + */ +export type ReplicationMode = string; + +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Disabled */ + 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 = "LicenseIncluded", + /** BasePrice */ + 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 AdvancedThreatProtectionName} that the service accepts. */ +export enum KnownAdvancedThreatProtectionName { /** Default */ Default = "Default" } /** - * Defines values for SecurityAlertPolicyName. \ - * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, + * 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 * **Default** */ -export type SecurityAlertPolicyName = string; +export type AdvancedThreatProtectionName = 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" +/** Known values of {@link BaselineName} that the service accepts. */ +export enum KnownBaselineName { + /** Default */ + Default = "default" } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * Defines values for BaselineName. \ + * {@link KnownBaselineName} can be used interchangeably with BaselineName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **default** */ -export type CreatedByType = string; +export type BaselineName = string; -/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ -export enum KnownVulnerabilityAssessmentName { +/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSQLVulnerabilityAssessmentName { + /** Default */ + Default = "default" +} + +/** + * Defines values for SQLVulnerabilityAssessmentName. \ + * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type SQLVulnerabilityAssessmentName = string; + +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** NonFinding */ + NonFinding = "NonFinding", + /** Finding */ + Finding = "Finding", + /** InternalError */ + InternalError = "InternalError" +} + +/** + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NonFinding** \ + * **Finding** \ + * **InternalError** + */ +export type RuleStatus = string; + +/** Known values of {@link RuleSeverity} that the service accepts. */ +export enum KnownRuleSeverity { + /** High */ + High = "High", + /** Medium */ + Medium = "Medium", + /** Low */ + Low = "Low", + /** Informational */ + Informational = "Informational", + /** Obsolete */ + Obsolete = "Obsolete" +} + +/** + * Defines values for RuleSeverity. \ + * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **High** \ + * **Medium** \ + * **Low** \ + * **Informational** \ + * **Obsolete** + */ +export type RuleSeverity = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Binary */ + Binary = "Binary", + /** BaselineExpected */ + BaselineExpected = "BaselineExpected", + /** PositiveList */ + PositiveList = "PositiveList", + /** NegativeList */ + NegativeList = "NegativeList" +} + +/** + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Binary** \ + * **BaselineExpected** \ + * **PositiveList** \ + * **NegativeList** + */ +export type RuleType = string; + +/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSqlVulnerabilityAssessmentName { /** Default */ Default = "default" } /** - * Defines values for VulnerabilityAssessmentName. \ - * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, + * Defines values for SqlVulnerabilityAssessmentName. \ + * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type SqlVulnerabilityAssessmentName = string; + +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + /** None */ + None = "None", + /** UserAssigned */ + UserAssigned = "UserAssigned" +} + +/** + * 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; + +/** 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 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 = "AdventureWorksLT", + /** WideWorldImportersStd */ + WideWorldImportersStd = "WideWorldImportersStd", + /** WideWorldImportersFull */ + WideWorldImportersFull = "WideWorldImportersFull" +} + +/** + * 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 - * **default** + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** */ -export type VulnerabilityAssessmentName = string; +export type SampleName = string; -/** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanTriggerType { - /** OnDemand */ - OnDemand = "OnDemand", - /** Recurring */ - Recurring = "Recurring" +/** 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 VulnerabilityAssessmentScanTriggerType. \ - * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, + * 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 - * **OnDemand** \ - * **Recurring** + * **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 VulnerabilityAssessmentScanTriggerType = string; +export type DatabaseStatus = 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" +/** 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 VulnerabilityAssessmentScanState. \ - * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, + * 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 - * **Passed** \ - * **Failed** \ - * **FailedToRun** \ - * **InProgress** + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** */ -export type VulnerabilityAssessmentScanState = string; +export type CatalogCollationType = string; -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - /** Current */ - Current = "current" +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for DataWarehouseUserActivityName. \ - * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * 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 - * **current** + * **LicenseIncluded** \ + * **BasePrice** */ -export type DataWarehouseUserActivityName = string; +export type DatabaseLicenseType = string; -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - /** Creating */ - Creating = "Creating", - /** Ready */ - Ready = "Ready", +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + /** Enabled */ + Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, + * 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 - * **Creating** \ - * **Ready** \ + * **Enabled** \ * **Disabled** */ -export type ElasticPoolState = string; +export type DatabaseReadScale = string; -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + /** Geo */ + Geo = "Geo", + /** Named */ + Named = "Named", + /** Standby */ + Standby = "Standby" } /** - * Defines values for ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **Geo** \ + * **Named** \ + * **Standby** */ -export type ElasticPoolLicenseType = string; +export type SecondaryType = string; -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - /** ServiceManaged */ - ServiceManaged = "ServiceManaged", - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + /** Primary */ + Primary = "Primary", + /** ReadableSecondary */ + ReadableSecondary = "ReadableSecondary" } /** - * Defines values for ServerKeyType. \ - * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * 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 - * **ServiceManaged** \ - * **AzureKeyVault** + * **Primary** \ + * **ReadableSecondary** */ -export type ServerKeyType = string; +export type ReplicaType = string; -/** Known values of {@link EncryptionProtectorName} that the service accepts. */ -export enum KnownEncryptionProtectorName { - /** Current */ - Current = "current" +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { + /** Default */ + Default = "Default" } /** - * Defines values for EncryptionProtectorName. \ - * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * 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 - * **current** + * **Default** */ -export type EncryptionProtectorName = string; +export type RestoreDetailsName = string; -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - /** Manual */ - Manual = "Manual", - /** Automatic */ - Automatic = "Automatic" +/** 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 ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, + * 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 - * **Manual** \ - * **Automatic** + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** */ -export type ReadWriteEndpointFailoverPolicy = string; +export type ManagedDatabaseStatus = string; -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" +/** 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 ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * 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 - * **Disabled** \ - * **Enabled** + * **Default** \ + * **RestoreExternalBackup** \ + * **PointInTimeRestore** \ + * **Recovery** \ + * **RestoreLongTermRetentionBackup** */ -export type ReadOnlyEndpointFailoverPolicy = string; +export type ManagedDatabaseCreateMode = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link MoveOperationMode} that the service accepts. */ +export enum KnownMoveOperationMode { + /** Move */ + Move = "Move", + /** Copy */ + Copy = "Copy" } /** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **Move** \ + * **Copy** */ -export type FailoverGroupReplicationRole = string; +export type MoveOperationMode = string; -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** 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 InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type InstanceFailoverGroupReplicationRole = string; +export type ReplicationState = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + /** GEO */ + GEO = "GEO", + /** Named */ + Named = "NAMED", + /** Standby */ + Standby = "STANDBY" } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **GEO** \ + * **NAMED** \ + * **STANDBY** */ -export type InstancePoolLicenseType = string; +export type ReplicationLinkType = 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" +/** Known values of {@link DtcName} that the service accepts. */ +export enum KnownDtcName { + /** Current */ + Current = "current" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * 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 - * **Creating** \ - * **Ready** \ - * **Updating** \ - * **Deleting** \ - * **Disabled** + * **current** */ -export type JobAgentState = string; +export type DtcName = 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", +/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ +export enum KnownDNSRefreshOperationStatus { /** Succeeded */ Succeeded = "Succeeded", - /** SucceededWithSkipped */ - SucceededWithSkipped = "SucceededWithSkipped", /** Failed */ Failed = "Failed", - /** TimedOut */ - TimedOut = "TimedOut", - /** Canceled */ - Canceled = "Canceled", - /** Skipped */ - Skipped = "Skipped" + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * 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 - * **Created** \ - * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ * **Succeeded** \ - * **SucceededWithSkipped** \ * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** + * **InProgress** */ -export type JobExecutionLifecycle = string; +export type DNSRefreshOperationStatus = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", +/** 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" + Canceled = "Canceled", + /** NotSpecified */ + NotSpecified = "NotSpecified", + /** Registering */ + Registering = "Registering", + /** TimedOut */ + TimedOut = "TimedOut" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Created** \ - * **InProgress** \ + * **Creating** \ + * **Deleting** \ + * **Updating** \ + * **Unknown** \ * **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** + * **Accepted** \ + * **Created** \ + * **Deleted** \ + * **Unrecognized** \ + * **Running** \ + * **Canceled** \ + * **NotSpecified** \ + * **Registering** \ + * **TimedOut** */ -export type JobStepActionType = string; +export type ManagedInstancePropertiesProvisioningState = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - /** Inline */ - Inline = "Inline" +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { + /** Default */ + Default = "Default", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore" } /** - * Defines values for JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * 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 - * **Inline** + * **Default** \ + * **PointInTimeRestore** */ -export type JobStepActionSource = string; +export type ManagedServerCreateMode = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - /** SqlDatabase */ - SqlDatabase = "SqlDatabase" +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * 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 - * **SqlDatabase** + * **LicenseIncluded** \ + * **BasePrice** */ -export type JobStepOutputType = string; +export type ManagedInstanceLicenseType = 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" +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + /** Proxy */ + Proxy = "Proxy", + /** Redirect */ + Redirect = "Redirect", + /** Default */ + Default = "Default" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * 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 - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type CapabilityGroup = string; +export type ManagedInstanceProxyOverride = 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" +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **None** \ + * **SystemAssigned** */ -export type MaxSizeUnit = string; +export type ServicePrincipalType = 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" +/** 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 LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **avg** \ + * **min** \ + * **max** \ + * **stdev** \ + * **sum** */ -export type LogSizeUnit = string; +export type AggregationFunctionType = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - /** DTU */ - DTU = "DTU", - /** VCores */ - VCores = "VCores" +/** 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 PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * 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 - * **DTU** \ - * **VCores** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type PerformanceLevelUnit = string; +export type MetricType = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - /** Minutes */ - Minutes = "Minutes" +/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ +export enum KnownServerConfigurationOptionName { + /** AllowPolybaseExport */ + AllowPolybaseExport = "allowPolybaseExport" } /** - * Defines values for PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * Defines values for ServerConfigurationOptionName. \ + * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Minutes** + * **allowPolybaseExport** */ -export type PauseDelayTimeUnit = string; +export type ServerConfigurationOptionName = string; -/** Known values of {@link StorageCapabilityStorageAccountType} that the service accepts. */ -export enum KnownStorageCapabilityStorageAccountType { - /** GRS */ - GRS = "GRS", - /** LRS */ - LRS = "LRS", - /** ZRS */ - ZRS = "ZRS" +/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * Defines values for ManagedLedgerDigestUploadsState. \ + * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GRS** \ - * **LRS** \ - * **ZRS** + * **Enabled** \ + * **Disabled** */ -export type StorageCapabilityStorageAccountType = string; +export type ManagedLedgerDigestUploadsState = string; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsName { + /** Current */ + Current = "current" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * Defines values for ManagedLedgerDigestUploadsName. \ + * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **current** */ -export type LongTermRetentionPolicyName = string; +export type ManagedLedgerDigestUploadsName = 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" +/** Known values of {@link StartStopScheduleName} that the service accepts. */ +export enum KnownStartStopScheduleName { + /** Default */ + Default = "default" } /** - * Defines values for DayOfWeek. \ - * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * Defines values for StartStopScheduleName. \ + * {@link KnownStartStopScheduleName} can be used interchangeably with StartStopScheduleName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Sunday** \ - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** + * **default** */ -export type DayOfWeek = string; +export type StartStopScheduleName = string; -/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** 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 ManagedShortTermRetentionPolicyName. \ - * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * 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 - * **default** + * **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 ManagedShortTermRetentionPolicyName = string; - -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - /** PT1H */ - PT1H = "PT1H", - /** P1D */ - P1D = "P1D" -} +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 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"; +/** Defines values for SqlVulnerabilityAssessmentState. */ +export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; +/** Defines values for ReplicationRole. */ +export type ReplicationRole = + | "Primary" + | "Secondary" + | "NonReadableSecondary" + | "Source" + | "Copy"; -/** - * 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; +/** Optional parameters. */ +export interface RecoverableDatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link QueryMetricUnitType} that the service accepts. */ -export enum KnownQueryMetricUnitType { - /** Percentage */ - Percentage = "percentage", - /** KB */ - KB = "KB", - /** Microseconds */ - Microseconds = "microseconds", - /** Count */ - Count = "count" -} +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; -/** - * 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; +/** Optional parameters. */ +export interface RecoverableDatabasesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { - /** Default */ - Default = "Default" -} +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; -/** - * 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; +/** Optional parameters. */ +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; -/** - * 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; +/** Optional parameters. */ +export interface DataMaskingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link CatalogCollationType} that the service accepts. */ -export enum KnownCatalogCollationType { - /** DatabaseDefault */ - DatabaseDefault = "DATABASE_DEFAULT", - /** SQLLatin1GeneralCP1CIAS */ - SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" -} +/** Contains response data for the get operation. */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; -/** - * 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; +/** Optional parameters. */ +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; -/** - * 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; +/** Optional parameters. */ +export interface DataMaskingRulesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - /** Current */ - Current = "current" -} +/** Contains response data for the listByDatabase operation. */ +export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; -/** - * 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; +/** Optional parameters. */ +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" -} +/** Contains response data for the createOrUpdate operation. */ +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; -/** - * 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; +/** Optional parameters. */ +export interface GeoBackupPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" -} +/** Contains response data for the get operation. */ +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; -/** - * 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; +/** Optional parameters. */ +export interface GeoBackupPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link AuthenticationName} that the service accepts. */ -export enum KnownAuthenticationName { - /** Default */ - Default = "Default" -} +/** Contains response data for the listByDatabase operation. */ +export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabasesListMetricsOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - /** Default */ - Default = "default" -} +/** Contains response data for the listMetrics operation. */ +export type DatabasesListMetricsResponse = MetricListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabasesListMetricDefinitionsOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the listMetricDefinitions operation. */ +export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; + +/** Optional parameters. */ +export interface DatabasesListByServerOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; } -/** - * 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; +/** Contains response data for the listByServer operation. */ +export type DatabasesListByServerResponse = DatabaseListResult; -/** 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" -} +/** Optional parameters. */ +export interface DatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type DatabasesGetResponse = Database; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - /** User */ - User = "user", - /** System */ - System = "system" +/** 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 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 createOrUpdate operation. */ +export type DatabasesCreateOrUpdateResponse = Database; -/** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateStatus { - /** Approved */ - Approved = "Approved", - /** Pending */ - Pending = "Pending", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected" +/** 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 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" +/** 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 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 update operation. */ +export type DatabasesUpdateResponse = Database; -/** 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" +/** 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 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 export operation. */ +export type DatabasesExportResponse = ImportExportOperationResult; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** 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 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" +/** 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 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 import operation. */ +export type DatabasesImportResponse = ImportExportOperationResult; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 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 pause operation. */ +export type DatabasesPauseResponse = Database; -/** Known values of {@link SyncAgentState} that the service accepts. */ -export enum KnownSyncAgentState { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** NeverConnected */ - NeverConnected = "NeverConnected" +/** 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 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; +/** Contains response data for the resume operation. */ +export type DatabasesResumeResponse = Database; -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - /** AzureSqlDatabase */ - AzureSqlDatabase = "AzureSqlDatabase", - /** SqlServerDatabase */ - SqlServerDatabase = "SqlServerDatabase" +/** 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 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 DatabasesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link Enum60} that the service accepts. */ -export enum KnownEnum60 { - /** All */ - All = "All", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Success */ - Success = "Success" -} +/** Contains response data for the listByElasticPool operation. */ +export type DatabasesListByElasticPoolResponse = DatabaseListResult; -/** - * 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 DatabasesListInaccessibleByServerOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SyncGroupLogType} that the service accepts. */ -export enum KnownSyncGroupLogType { - /** All */ - All = "All", - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning", - /** Success */ - Success = "Success" -} +/** Contains response data for the listInaccessibleByServer operation. */ +export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabasesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - /** HubWin */ - HubWin = "HubWin", - /** MemberWin */ - MemberWin = "MemberWin" -} +/** Contains response data for the listByServerNext operation. */ +export type DatabasesListByServerNextResponse = DatabaseListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabasesListByElasticPoolNextOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Contains response data for the listByElasticPoolNext operation. */ +export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabasesListInaccessibleByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SyncDirection} that the service accepts. */ -export enum KnownSyncDirection { - /** Bidirectional */ - Bidirectional = "Bidirectional", - /** OneWayMemberToHub */ - OneWayMemberToHub = "OneWayMemberToHub", - /** OneWayHubToMember */ - OneWayHubToMember = "OneWayHubToMember" -} +/** Contains response data for the listInaccessibleByServerNext operation. */ +export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; -/** - * 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; +/** Optional parameters. */ +export interface ElasticPoolsListMetricsOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Contains response data for the listMetrics operation. */ +export type ElasticPoolsListMetricsResponse = MetricListResult; -/** - * 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; +/** Optional parameters. */ +export interface ElasticPoolsListMetricDefinitionsOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DnsRefreshConfigurationPropertiesStatus} that the service accepts. */ -export enum KnownDnsRefreshConfigurationPropertiesStatus { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" +/** 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 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 listByServer operation. */ +export type ElasticPoolsListByServerResponse = ElasticPoolListResult; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - /** Initializing */ - Initializing = "Initializing", - /** InProgress */ - InProgress = "InProgress", - /** Ready */ - Ready = "Ready", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting", - /** Unknown */ - Unknown = "Unknown" -} +/** Optional parameters. */ +export interface ElasticPoolsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type ElasticPoolsGetResponse = ElasticPool; -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** 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 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 createOrUpdate operation. */ +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - /** Twelve */ - Twelve = 12, - /** TwentyFour */ - TwentyFour = 24 +/** 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; } -/** - * 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" +/** 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 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 update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - /** SharedAccessKey */ - SharedAccessKey = "SharedAccessKey", - /** StorageAccessKey */ - StorageAccessKey = "StorageAccessKey" +/** 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 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 ElasticPoolsListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ -export enum KnownLedgerDigestUploadsName { - /** Current */ - Current = "current" -} +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; -/** - * 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 ServerCommunicationLinksDeleteOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Optional parameters. */ +export interface ServerCommunicationLinksGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 get operation. */ +export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; -/** Known values of {@link ReplicationLinkType} that the service accepts. */ -export enum KnownReplicationLinkType { - /** GEO */ - GEO = "GEO", - /** Named */ - Named = "NAMED" +/** 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 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 createOrUpdate operation. */ +export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; -/** 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" -} +/** Optional parameters. */ +export interface ServerCommunicationLinksListByServerOptionalParams + 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 listByServer operation. */ +export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} +/** Optional parameters. */ +export interface ServiceObjectivesGetOptionalParams + 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 get operation. */ +export type ServiceObjectivesGetResponse = ServiceObjective; -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected" -} +/** Optional parameters. */ +export interface ServiceObjectivesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; -/** Known values of {@link PrincipalType} that the service accepts. */ -export enum KnownPrincipalType { - /** User */ - User = "User", - /** Group */ - Group = "Group", - /** Application */ - Application = "Application" -} +/** Optional parameters. */ +export interface ElasticPoolActivitiesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 listByElasticPool operation. */ +export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { - /** None */ - None = "None", - /** UserAssigned */ - UserAssigned = "UserAssigned" -} +/** Optional parameters. */ +export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 listByElasticPool operation. */ +export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; -/** 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" -} +/** Optional parameters. */ +export interface ServerUsagesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listByServer operation. */ +export type ServerUsagesListByServerResponse = ServerUsageListResult; -/** Known values of {@link SampleName} that the service accepts. */ -export enum KnownSampleName { - /** AdventureWorksLT */ - AdventureWorksLT = "AdventureWorksLT", - /** WideWorldImportersStd */ - WideWorldImportersStd = "WideWorldImportersStd", - /** WideWorldImportersFull */ - WideWorldImportersFull = "WideWorldImportersFull" +/** Optional parameters. */ +export interface DatabaseAdvisorsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; } -/** - * 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 listByDatabase operation. */ +export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; -/** 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" -} +/** Optional parameters. */ +export interface DatabaseAdvisorsGetOptionalParams + 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; +/** Contains response data for the get operation. */ +export type DatabaseAdvisorsGetResponse = Advisor; -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" -} +/** Optional parameters. */ +export interface DatabaseAdvisorsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; + +/** Optional parameters. */ +export interface DatabaseAutomaticTuningGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; + +/** Optional parameters. */ +export interface DatabaseAutomaticTuningUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Contains response data for the update operation. */ +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; + +/** 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 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 listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; -/** Known values of {@link SecondaryType} that the service accepts. */ -export enum KnownSecondaryType { - /** Geo */ - Geo = "Geo", - /** Named */ - Named = "Named" +/** Optional parameters. */ +export interface DatabaseColumnsListByTableOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** - * 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 listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; -/** Known values of {@link BackupStorageRedundancy} that the service accepts. */ -export enum KnownBackupStorageRedundancy { - /** Geo */ - Geo = "Geo", - /** Local */ - Local = "Local", - /** Zone */ - Zone = "Zone", - /** GeoZone */ - GeoZone = "GeoZone" -} +/** Optional parameters. */ +export interface DatabaseColumnsGetOptionalParams + 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 get operation. */ +export type DatabaseColumnsGetResponse = DatabaseColumn; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - /** Primary */ - Primary = "Primary", - /** ReadableSecondary */ - ReadableSecondary = "ReadableSecondary" -} +/** Optional parameters. */ +export interface DatabaseColumnsListByDatabaseNextOptionalParams + 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 listByDatabaseNext operation. */ +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; -/** Known values of {@link DatabaseState} that the service accepts. */ -export enum KnownDatabaseState { - /** All */ - All = "All", - /** Live */ - Live = "Live", - /** Deleted */ - Deleted = "Deleted" -} +/** Optional parameters. */ +export interface DatabaseColumnsListByTableNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listByTableNext operation. */ +export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; -/** 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" -} +/** Optional parameters. */ +export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams + extends coreClient.OperationOptions {} -/** - * 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 listByDatabaseAdvisor operation. */ +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { - /** Default */ - Default = "Default", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore" -} +/** Optional parameters. */ +export interface DatabaseRecommendedActionsGetOptionalParams + 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 DatabaseRecommendedActionsGetResponse = RecommendedAction; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" -} +/** Optional parameters. */ +export interface DatabaseRecommendedActionsUpdateOptionalParams + 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 DatabaseRecommendedActionsUpdateResponse = RecommendedAction; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - /** Proxy */ - Proxy = "Proxy", - /** Redirect */ - Redirect = "Redirect", - /** Default */ - Default = "Default" +/** Optional parameters. */ +export interface DatabaseSchemasListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** - * 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 listByDatabase operation. */ +export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; + +/** Optional parameters. */ +export interface DatabaseSchemasGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned" -} +/** Contains response data for the get operation. */ +export type DatabaseSchemasGetResponse = DatabaseSchema; -/** - * 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; +/** Optional parameters. */ +export interface DatabaseSchemasListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** 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" -} +/** Contains response data for the get operation. */ +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; -/** - * 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; +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { - /** Default */ - Default = "default" -} +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; -/** - * 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; +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ServerConnectionType} that the service accepts. */ -export enum KnownServerConnectionType { - /** Default */ - Default = "Default", - /** Redirect */ - Redirect = "Redirect", - /** Proxy */ - Proxy = "Proxy" -} +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; -/** - * 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; +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** 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" +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; + +/** Optional parameters. */ +export interface DatabaseTablesListBySchemaOptionalParams + 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 listBySchema operation. */ +export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; + +/** Optional parameters. */ +export interface DatabaseTablesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseTablesGetResponse = DatabaseTable; + +/** Optional parameters. */ +export interface DatabaseTablesListBySchemaNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySchemaNext operation. */ +export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + 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 RecoverableDatabasesGetOptionalParams +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 RecoverableDatabasesGetResponse = RecoverableDatabase; +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; +/** Contains response data for the export operation. */ +export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams +export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DataMaskingPoliciesGetOptionalParams +export interface DataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ -export interface DataMaskingRulesListByDatabaseOptionalParams +export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesCreateOrUpdateOptionalParams +export interface DeletedServersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; +/** Contains response data for the list operation. */ +export type DeletedServersListResponse = DeletedServerListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesGetOptionalParams +export interface DeletedServersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; +export type DeletedServersGetResponse = DeletedServer; /** Optional parameters. */ -export interface GeoBackupPoliciesListByDatabaseOptionalParams +export interface DeletedServersListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +/** Contains response data for the listByLocation operation. */ +export type DeletedServersListByLocationResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabasesListMetricsOptionalParams +export interface DeletedServersRecoverOptionalParams + 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 recover operation. */ +export type DeletedServersRecoverResponse = DeletedServer; + +/** Optional parameters. */ +export interface DeletedServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type DatabasesListMetricsResponse = MetricListResult; +/** Contains response data for the listNext operation. */ +export type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabasesListMetricDefinitionsOptionalParams +export interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the listByLocationNext operation. */ +export type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface DatabasesListByServerOptionalParams +export interface ElasticPoolOperationsCancelOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ElasticPoolOperationsListByElasticPoolOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; + +/** Optional parameters. */ +export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; + +/** Optional parameters. */ +export interface EncryptionProtectorsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; + +/** Optional parameters. */ +export interface EncryptionProtectorsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EncryptionProtectorsGetResponse = EncryptionProtector; + +/** Optional parameters. */ +export interface EncryptionProtectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - 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 createOrUpdate operation. */ +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; + +/** Optional parameters. */ +export interface EncryptionProtectorsRevalidateOptionalParams + 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 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; + /** 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 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; + +/** Optional parameters. */ +export interface FailoverGroupsListByServerOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listByServer operation. */ -export type DatabasesListByServerResponse = DatabaseListResult; +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface DatabasesGetOptionalParams +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; + +/** Optional parameters. */ +export interface FailoverGroupsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; + +/** Optional parameters. */ +export interface FirewallRulesGetOptionalParams + 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; + +/** Optional parameters. */ +export interface FirewallRulesReplaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; + +/** Optional parameters. */ +export interface FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; + +/** Optional parameters. */ +export interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabasesGetResponse = Database; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabasesCreateOrUpdateOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10145,19 +12382,10 @@ export interface DatabasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DatabasesCreateOrUpdateResponse = Database; - -/** 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 type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabasesUpdateOptionalParams +export interface InstanceFailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10165,36 +12393,27 @@ export interface DatabasesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type DatabasesUpdateResponse = Database; - /** Optional parameters. */ -export interface DatabasesListByElasticPoolOptionalParams +export interface InstanceFailoverGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult; +/** Contains response data for the listByLocation operation. */ +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface DatabasesFailoverOptionalParams +export interface InstanceFailoverGroupsFailoverOptionalParams 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; } -/** Optional parameters. */ -export interface DatabasesListInaccessibleByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listInaccessibleByServer operation. */ -export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; +/** Contains response data for the failover operation. */ +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface DatabasesPauseOptionalParams +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10202,23 +12421,25 @@ export interface DatabasesPauseOptionalParams resumeFrom?: string; } -/** Contains response data for the pause operation. */ -export type DatabasesPauseResponse = Database; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** 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 InstanceFailoverGroupsListByLocationNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the resume operation. */ -export type DatabasesResumeResponse = Database; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface DatabasesUpgradeDataWarehouseOptionalParams +export interface InstancePoolsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type InstancePoolsGetResponse = InstancePool; + +/** Optional parameters. */ +export interface InstancePoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10226,12 +12447,11 @@ export interface DatabasesUpgradeDataWarehouseOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface DatabasesRenameOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type InstancePoolsCreateOrUpdateResponse = InstancePool; /** Optional parameters. */ -export interface DatabasesImportOptionalParams +export interface InstancePoolsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10239,11 +12459,8 @@ export interface DatabasesImportOptionalParams resumeFrom?: string; } -/** Contains response data for the import operation. */ -export type DatabasesImportResponse = ImportExportOperationResult; - /** Optional parameters. */ -export interface DatabasesExportOptionalParams +export interface InstancePoolsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10251,63 +12468,53 @@ export interface DatabasesExportOptionalParams resumeFrom?: string; } -/** Contains response data for the export operation. */ -export type DatabasesExportResponse = ImportExportOperationResult; +/** Contains response data for the update operation. */ +export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ -export interface DatabasesListByServerNextOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolNextOptionalParams +export interface InstancePoolsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; +/** Contains response data for the list operation. */ +export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerNextOptionalParams +export interface InstancePoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServerNext operation. */ -export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface InstancePoolsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; +/** Contains response data for the listNext operation. */ +export type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams +export interface JobAgentsListByServerOptionalParams 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; -} - /** Contains response data for the listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +export type JobAgentsListByServerResponse = JobAgentListResult; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface JobAgentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ElasticPoolsGetResponse = ElasticPool; +export type JobAgentsGetResponse = JobAgent; /** Optional parameters. */ -export interface ElasticPoolsCreateOrUpdateOptionalParams +export interface JobAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10316,10 +12523,10 @@ export interface ElasticPoolsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; +export type JobAgentsCreateOrUpdateResponse = JobAgent; /** Optional parameters. */ -export interface ElasticPoolsDeleteOptionalParams +export interface JobAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10328,7 +12535,7 @@ export interface ElasticPoolsDeleteOptionalParams } /** Optional parameters. */ -export interface ElasticPoolsUpdateOptionalParams +export interface JobAgentsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10337,103 +12544,116 @@ export interface ElasticPoolsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool; - -/** 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; -} +export type JobAgentsUpdateResponse = JobAgent; /** Optional parameters. */ -export interface ElasticPoolsListByServerNextOptionalParams +export interface JobAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; +export type JobAgentsListByServerNextResponse = JobAgentListResult; /** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams +export interface JobCredentialsListByAgentOptionalParams 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 listByAgent operation. */ +export type JobCredentialsListByAgentResponse = JobCredentialListResult; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams - 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 JobCredentialsGetOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ReplicationLinksUnlinkOptionalParams - 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 JobCredentialsGetResponse = JobCredential; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams +export interface JobCredentialsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobCredentialsCreateOrUpdateResponse = JobCredential; /** Optional parameters. */ -export interface ReplicationLinksGetOptionalParams +export interface JobCredentialsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ReplicationLinksGetResponse = ReplicationLink; - /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface JobCredentialsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +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 listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +/** Contains response data for the listByAgent operation. */ +export type JobExecutionsListByAgentResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Optional parameters. */ +export interface JobExecutionsCreateOptionalParams + 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 JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ -export interface ServerCommunicationLinksDeleteOptionalParams - extends coreClient.OperationOptions {} +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; +} + +/** Contains response data for the listByJob operation. */ +export type JobExecutionsListByJobResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksGetOptionalParams +export interface JobExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; +export type JobExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams +export interface JobExecutionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10442,632 +12662,621 @@ export interface ServerCommunicationLinksCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; +export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface ServerCommunicationLinksListByServerOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ServiceObjectivesGetOptionalParams +export interface JobExecutionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServiceObjectivesGetResponse = ServiceObjective; +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ServiceObjectivesListByServerOptionalParams +export interface JobsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; +/** Contains response data for the get operation. */ +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface ServerUsagesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult; +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface JobStepExecutionsListByJobExecutionOptionalParams + 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 createOrUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +/** Contains response data for the listByJobExecution operation. */ +export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface JobStepExecutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the get operation. */ +export type JobStepExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface JobStepExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; - -/** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams - 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 ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams +export interface JobStepsGetByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; +/** Contains response data for the getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; +/** Contains response data for the listByJob operation. */ +export type JobStepsListByJobResponse = JobStepListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams +export interface JobStepsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; - -/** Optional parameters. */ -export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams - 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 ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; - -/** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +export type JobStepsGetResponse = JobStep; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface JobStepsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobStepsCreateOrUpdateResponse = JobStep; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams +export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; - /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface JobStepsListByVersionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface JobStepsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsListByDatabaseOptionalParams +export interface JobTargetExecutionsListByStepOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: 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 DatabaseAdvisorsListByDatabaseResponse = Advisor[]; +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsGetOptionalParams +export interface JobTargetExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAdvisorsGetResponse = Advisor; +export type JobTargetExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams +export interface JobTargetExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface DatabaseAutomaticTuningUpdateOptionalParams +export interface JobTargetGroupsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; +/** Contains response data for the listByAgent operation. */ +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; /** 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 JobTargetGroupsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the get operation. */ +export type JobTargetGroupsGetResponse = JobTargetGroup; /** Optional parameters. */ -export interface DatabaseColumnsListByTableOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface JobTargetGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; -/** Contains response data for the listByTable operation. */ -export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; +/** Optional parameters. */ +export interface JobTargetGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabaseColumnsGetOptionalParams +export interface JobTargetGroupsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the listByAgentNext operation. */ +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams +export interface JobVersionsListByJobOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByJob operation. */ +export type JobVersionsListByJobResponse = JobVersionListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams +export interface JobVersionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the get operation. */ +export type JobVersionsGetResponse = JobVersion; /** Optional parameters. */ -export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams +export interface JobVersionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseAdvisor operation. */ -export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; +/** Contains response data for the listByJobNext operation. */ +export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface CapabilitiesListByLocationOptionalParams + extends coreClient.OperationOptions { + /** If specified, restricts the response to only include the selected item. */ + include?: CapabilityGroup; +} -/** Contains response data for the get operation. */ -export type DatabaseRecommendedActionsGetResponse = RecommendedAction; +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams +export interface LongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; +/** Contains response data for the get operation. */ +export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams +export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams 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 listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the createOrUpdate operation. */ +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesGetOptionalParams +export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface MaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; +/** Contains response data for the get operation. */ +export type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface MaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; - /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; +/** Contains response data for the get operation. */ +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams 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 listBySchema operation. */ -export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface DatabaseTablesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams + 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 DatabaseTablesGetResponse = DatabaseTable; +/** Contains response data for the update operation. */ +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface DatabaseTablesListBySchemaNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySchemaNext operation. */ -export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams + 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; +} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseColumnsListByTableOptionalParams + 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; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsGetOptionalParams +export interface ManagedDatabaseColumnsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface ManagedDatabaseQueriesListByQueryOptionalParams 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; + /** 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 listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; + /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByQueryNext operation. */ +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSchemasListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface ManagedDatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface DeletedServersListOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface DeletedServersGetOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the get operation. */ -export type DeletedServersGetResponse = DeletedServer; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams +export interface ManagedDatabaseTablesListBySchemaOptionalParams 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 recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; +/** Contains response data for the listBySchema operation. */ +export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface DeletedServersListNextOptionalParams +export interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; +/** Contains response data for the listBySchemaNext operation. */ +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface ElasticPoolOperationsCancelOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; + /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface EncryptionProtectorsListByServerOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface EncryptionProtectorsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EncryptionProtectorsGetResponse = EncryptionProtector; +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** 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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; - -/** Optional parameters. */ -export interface EncryptionProtectorsRevalidateOptionalParams - 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 type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface EncryptionProtectorsListByServerNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; - /** Optional parameters. */ -export interface FailoverGroupsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FailoverGroupsGetResponse = FailoverGroup; +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface FailoverGroupsCreateOrUpdateOptionalParams - 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 ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** 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; -} +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** 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 interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** 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; -} +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the failover operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11075,64 +13284,50 @@ export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; - -/** Optional parameters. */ -export interface FailoverGroupsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; - /** Optional parameters. */ -export interface FirewallRulesGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type FirewallRulesGetResponse = FirewallRule; +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface FirewallRulesCreateOrUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule; - -/** Optional parameters. */ -export interface FirewallRulesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface FirewallRulesListByServerOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface FirewallRulesReplaceOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the replace operation. */ -export type FirewallRulesReplaceResponse = FirewallRule; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface FirewallRulesListByServerNextOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11141,10 +13336,10 @@ export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams +export interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11153,14 +13348,21 @@ export interface InstanceFailoverGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsFailoverOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; + +/** Optional parameters. */ +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11168,11 +13370,11 @@ export interface InstanceFailoverGroupsFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the failover operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11180,46 +13382,22 @@ export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; - /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface InstancePoolsGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type InstancePoolsGetResponse = InstancePool; - -/** Optional parameters. */ -export interface InstancePoolsCreateOrUpdateOptionalParams - 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 InstancePoolsCreateOrUpdateResponse = InstancePool; - -/** Optional parameters. */ -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; -} - +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; + /** Optional parameters. */ -export interface InstancePoolsUpdateOptionalParams +export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11227,53 +13405,58 @@ export interface InstancePoolsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type InstancePoolsUpdateResponse = InstancePool; - /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface InstancePoolsListOptionalParams +export interface ManagedInstanceEncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InstancePoolsListResponse = InstancePoolListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + 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 listByResourceGroupNext operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface InstancePoolsListNextOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface JobAgentsListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceKeysListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByServer operation. */ -export type JobAgentsListByServerResponse = JobAgentListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface JobAgentsGetOptionalParams +export interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobAgentsGetResponse = JobAgent; +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface JobAgentsCreateOrUpdateOptionalParams +export interface ManagedInstanceKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11282,10 +13465,10 @@ export interface JobAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type JobAgentsCreateOrUpdateResponse = JobAgent; +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface JobAgentsDeleteOptionalParams +export interface ManagedInstanceKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11294,7 +13477,21 @@ export interface JobAgentsDeleteOptionalParams } /** Optional parameters. */ -export interface JobAgentsUpdateOptionalParams +export interface ManagedInstanceKeysListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; + +/** Optional parameters. */ +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; + +/** Optional parameters. */ +export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11302,76 +13499,57 @@ export interface JobAgentsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type JobAgentsUpdateResponse = JobAgent; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface JobAgentsListByServerNextOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type JobAgentsListByServerNextResponse = JobAgentListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface JobCredentialsListByAgentOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobCredentialsListByAgentResponse = JobCredentialListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface JobCredentialsGetOptionalParams +export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobCredentialsGetResponse = JobCredential; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface JobCredentialsCreateOrUpdateOptionalParams +export interface ManagedInstanceOperationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobCredentialsCreateOrUpdateResponse = JobCredential; +/** Contains response data for the get operation. */ +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** Optional parameters. */ -export interface JobCredentialsDeleteOptionalParams +export interface ManagedInstanceOperationsCancelOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobCredentialsListByAgentNextOptionalParams +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams 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; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface JobExecutionsCancelOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; + /** Optional parameters. */ -export interface JobExecutionsCreateOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11379,40 +13557,11 @@ export interface JobExecutionsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type JobExecutionsCreateResponse = JobExecution; - -/** 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; -} - -/** Contains response data for the listByJob operation. */ -export type JobExecutionsListByJobResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobExecutionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JobExecutionsGetResponse = JobExecution; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface JobExecutionsCreateOrUpdateOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11420,279 +13569,267 @@ export interface JobExecutionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution; - /** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface JobsListByAgentOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams 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; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = Job; - -/** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ -export interface JobsListByAgentNextOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionOptionalParams +export interface ManagedInstanceTdeCertificatesCreateOptionalParams 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; + /** 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 listByJobExecution operation. */ -export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; - /** Optional parameters. */ -export interface JobStepExecutionsGetOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepExecutionsGetResponse = JobExecution; +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface JobStepsListByVersionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVersion operation. */ -export type JobStepsListByVersionResponse = JobStepListResult; +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobStepsGetByVersionOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByVersion operation. */ -export type JobStepsGetByVersionResponse = JobStep; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface JobStepsListByJobOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobStepsListByJobResponse = JobStepListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface JobStepsGetOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepsGetResponse = JobStep; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface JobStepsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams + 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 JobStepsCreateOrUpdateResponse = JobStep; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface JobStepsDeleteOptionalParams - 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 update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface JobStepsListByJobNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobStepsListByJobNextResponse = JobStepListResult; +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** 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 ManagedServerSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecution operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the get operation. */ +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams 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; + /** 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 listByStep operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface JobTargetExecutionsGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution; +/** Contains response data for the listByInstance operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionNextOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface JobTargetGroupsListByAgentOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface JobTargetGroupsGetOptionalParams +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobTargetGroupsGetResponse = JobTargetGroup; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface JobTargetGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + 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 JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface JobTargetGroupsDeleteOptionalParams +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 PrivateEndpointConnectionsListByServerOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; + /** Optional parameters. */ -export interface JobTargetGroupsListByAgentNextOptionalParams +export interface PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; +/** Contains response data for the listByServerNext operation. */ +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface JobVersionsListByJobOptionalParams +export interface PrivateLinkResourcesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult; +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface JobVersionsGetOptionalParams +export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobVersionsGetResponse = JobVersion; +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ -export interface JobVersionsListByJobNextOptionalParams +export interface PrivateLinkResourcesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} +export interface RecoverableManagedDatabasesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams +export interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams +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; @@ -11700,50 +13837,74 @@ export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface RestorePointsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface RestorePointsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ -export interface MaintenanceWindowOptionsGetOptionalParams +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 MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams +export interface ServerAdvisorsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; + +/** Optional parameters. */ +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; + /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams +export interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11752,10 +13913,10 @@ export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ServerAzureADAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11763,123 +13924,116 @@ export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; +/** Optional parameters. */ +export interface ServerAzureADAdministratorsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams +export interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseOptionalParams +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams 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 ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams 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 listByTable operation. */ -export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; - /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams +export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams 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 ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; - -/** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams - extends coreClient.OperationOptions {} +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 get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; +/** Contains response data for the createOrUpdate operation. */ +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11887,11 +14041,15 @@ export interface ManagedDatabasesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +/** Optional parameters. */ +export interface ServerDnsAliasesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams +export interface ServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11899,8 +14057,32 @@ export interface ManagedDatabasesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; + /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams +export interface ServerDnsAliasesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; + +/** Optional parameters. */ +export interface ServerKeysListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerKeysListByServerResponse = ServerKeyListResult; + +/** Optional parameters. */ +export interface ServerKeysGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerKeysGetResponse = ServerKey; + +/** Optional parameters. */ +export interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11908,11 +14090,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 ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +export interface ServerKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11921,278 +14103,307 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams +export interface ServerKeysListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstance operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceNextOptionalParams +export interface ServerOperationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByServer operation. */ +export type ServerOperationsListByServerResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams +export interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams +export interface ServerSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; + +/** Optional parameters. */ +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams 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 listByDatabase operation. */ -export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams +export interface ServerSecurityAlertPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByServer operation. */ +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams +export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams +export interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerTrustGroupsCreateOrUpdateOptionalParams + 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 ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface ServerTrustGroupsDeleteOptionalParams + 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 ServerTrustGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** 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 ServerTrustGroupsListByLocationNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams +export interface ServerTrustGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams +export interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams +export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; + /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; + /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} +export interface SqlAgentGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams +export interface SqlAgentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; + /** 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; -} +export interface SubscriptionUsagesListByLocationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByLocation operation. */ +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByLocationNext operation. */ +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams +export interface SyncAgentsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type SyncAgentsGetResponse = SyncAgent; + /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams +export interface SyncAgentsCreateOrUpdateOptionalParams 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 listBySchema operation. */ -export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; /** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; +export interface SyncAgentsDeleteOptionalParams + 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 ManagedDatabaseTablesListBySchemaNextOptionalParams +export interface SyncAgentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByServer operation. */ +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams +export interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams +export interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listByServerNext operation. */ +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface SyncAgentsListLinkedDatabasesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface SyncGroupsListSyncDatabaseIdsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export interface SyncGroupsRefreshHubSchemaOptionalParams + 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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SyncGroupsListLogsOptionalParams + extends coreClient.OperationOptions { + /** The continuation token for this operation. */ + continuationToken?: string; +} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface SyncGroupsCancelSyncOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; - /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams +export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface SyncGroupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams - 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 listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface SyncGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12201,49 +14412,61 @@ export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptional } /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - extends coreClient.OperationOptions {} +export interface SyncGroupsUpdateOptionalParams + 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 export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the update operation. */ +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams +export interface SyncGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams +export interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; + +/** Optional parameters. */ +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams +export interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12252,10 +14475,10 @@ export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; +export type SyncMembersCreateOrUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsDeleteOptionalParams +export interface SyncMembersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12264,33 +14487,33 @@ export interface ManagedInstanceAdministratorsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams - 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 listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -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; -} +export interface SyncMembersListMemberSchemasOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams +export interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12299,21 +14522,21 @@ export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams +export interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams +export interface TdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12322,21 +14545,35 @@ export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams +export interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams +export interface TimeZonesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams +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 VirtualNetworkRulesGetResponse = VirtualNetworkRule; + +/** Optional parameters. */ +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12345,34 +14582,40 @@ export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +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 listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByServer operation. */ +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface VirtualNetworkRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByServerNext operation. */ +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +export type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams +export interface WorkloadClassifiersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12381,10 +14624,10 @@ export interface ManagedInstanceKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams +export interface WorkloadClassifiersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12393,21 +14636,28 @@ export interface ManagedInstanceKeysDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; + +/** Optional parameters. */ +export interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +export type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface WorkloadGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12416,56 +14666,68 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams +export interface WorkloadGroupsDeleteOptionalParams + 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 WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; +/** Contains response data for the get operation. */ +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams +export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; +/** Contains response data for the createOrUpdate operation. */ +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; + /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface BackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12474,10 +14736,10 @@ export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptional } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface BackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12485,43 +14747,94 @@ export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; + /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams +export interface DatabaseExtensionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; +/** Optional parameters. */ +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 DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; + +/** Optional parameters. */ +export interface DatabaseExtensionsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; + +/** Optional parameters. */ +export interface DatabaseExtensionsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; + +/** Optional parameters. */ +export interface DatabaseOperationsCancelOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseOperationsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; + +/** Optional parameters. */ +export interface DatabaseOperationsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; + +/** Optional parameters. */ +export interface DatabaseUsagesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams +export interface DatabaseUsagesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the get operation. */ +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12529,47 +14842,44 @@ 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; +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams +export interface LedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; + /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams +export interface OutboundFirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface OutboundFirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12578,10 +14888,10 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie } /** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface OutboundFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12589,32 +14899,41 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams +export interface OutboundFirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams +export interface OutboundFirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams - 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 ServersGetOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; +export type ServersGetResponse = Server; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12623,59 +14942,90 @@ export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; +export type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; +export interface ServersDeleteOptionalParams + 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 ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the update operation. */ +export type ServersUpdateResponse = Server; /** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +export interface ServersListOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +export type ServersListResponse = ServerListResult; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +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 importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; + +/** Optional parameters. */ +export interface ServersCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ -export interface OperationsHealthListByLocationOptionalParams +export interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type OperationsHealthListByLocationResponse = OperationsHealthListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ -export interface OperationsHealthListByLocationNextOptionalParams +export interface ServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult; +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +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 listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; + +/** Optional parameters. */ +export interface UsagesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsCopyOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12683,11 +15033,11 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface LongTermRetentionBackupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12695,71 +15045,75 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerOptionalParams - 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; - -/** Optional parameters. */ -export interface PrivateLinkResourcesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; +/** Contains response data for the update operation. */ +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface PrivateLinkResourcesGetOptionalParams +export interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; +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; +} /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceOptionalParams - 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 listByInstance operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesGetOptionalParams - 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 get operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} +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 listByInstanceNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RestorePointsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams + 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 RestorePointsListByDatabaseResponse = RestorePointListResult; +/** Contains response data for the copyByResourceGroup operation. */ +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface RestorePointsCreateOptionalParams +export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12767,147 +15121,164 @@ export interface RestorePointsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type RestorePointsCreateResponse = RestorePoint; +/** Contains response data for the updateByResourceGroup operation. */ +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface RestorePointsGetOptionalParams +export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams - 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; +} /** Optional parameters. */ -export interface RestorePointsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +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 listByDatabaseNext operation. */ -export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** 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; - -/** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams 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; + /** 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 listRecommendedByDatabase operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByResourceGroupServer operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface LongTermRetentionBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +/** Contains response data for the listByServerNext operation. */ +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsDeleteOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByResourceGroupServerNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; + /** Optional parameters. */ -export interface ServerAdvisorsListByServerOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams 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 listByServer operation. */ -export type ServerAdvisorsListByServerResponse = Advisor[]; - -/** Optional parameters. */ -export interface ServerAdvisorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerAdvisorsGetResponse = Advisor; - /** Optional parameters. */ -export interface ServerAdvisorsUpdateOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the update operation. */ -export type ServerAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningGetOptionalParams - 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 get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; +/** Contains response data for the listByInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningUpdateOptionalParams - 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 update operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12915,144 +15286,135 @@ export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; - /** Optional parameters. */ -export interface ServerAzureADAdministratorsDeleteOptionalParams +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 ServerAzureADAdministratorsListByServerOptionalParams - 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 listByServer operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; +/** Contains response data for the listByResourceGroupInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerNextOptionalParams - 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 listByServerNext operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams - 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 ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams - 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 listByInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; +/** Contains response data for the listByResourceGroupInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams - 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 LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerOptionalParams +export interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams +export interface RestorableDroppedDatabasesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; + +/** Optional parameters. */ +export interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; +/** Contains response data for the listByInstance operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; /** 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; -} +export interface RestorableDroppedManagedDatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; +/** Contains response data for the get operation. */ +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; /** Optional parameters. */ -export interface ServerDnsAliasesDeleteOptionalParams - 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 RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerOptionalParams +export interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +/** Contains response data for the get operation. */ +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ServerDnsAliasesAcquireOptionalParams +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13060,32 +15422,39 @@ export interface ServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; +/** Contains response data for the createOrUpdate operation. */ +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface ServerConnectionPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; + +/** Optional parameters. */ +export interface ServerConnectionPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listByInstance operation. */ +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerKeysGetResponse = ServerKey; +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface ServerKeysCreateOrUpdateOptionalParams +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13094,10 +15463,10 @@ export interface ServerKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey; +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams +export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13106,35 +15475,7 @@ 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 - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; - -/** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; - -/** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; - -/** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13142,32 +15483,32 @@ export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; +/** Contains response data for the update operation. */ +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ServerTrustGroupsCreateOrUpdateOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13176,10 +15517,10 @@ export interface ServerTrustGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13188,288 +15529,227 @@ export interface ServerTrustGroupsDeleteOptionalParams } /** 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; - -/** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listByServer operation. */ +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams +export interface IPv6FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerOptionalParams +export interface IPv6FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByServerNext operation. */ +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams +export interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; +export type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams +export interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams +export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; - /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; - /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams - 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 SyncAgentsCreateOrUpdateResponse = SyncAgent; +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SyncAgentsDeleteOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams 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 SyncAgentsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsGenerateKeyOptionalParams +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateKey operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; - /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesOptionalParams - extends coreClient.OperationOptions {} +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 listLinkedDatabases operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsListByServerNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabasesNext operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIds operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; - /** Optional parameters. */ -export interface SyncGroupsRefreshHubSchemaOptionalParams +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; } +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; + /** Optional parameters. */ -export interface SyncGroupsListHubSchemasOptionalParams +export interface SensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemas operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; - /** Optional parameters. */ -export interface SyncGroupsListLogsOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: 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 listLogs operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncGroupsCancelSyncOptionalParams +export interface SensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SyncGroupsTriggerSyncOptionalParams +export interface SensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SyncGroupsGetOptionalParams +export interface SensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup; +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -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; -} +export interface SensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; - -/** Optional parameters. */ -export interface SyncGroupsDeleteOptionalParams - 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 SyncGroupsUpdateOptionalParams - 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 SyncGroupsUpdateResponse = SyncGroup; +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseOptionalParams +export interface SensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; - /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIdsNext operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncGroupsListHubSchemasNextOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncGroupsListLogsNextOptionalParams +export interface RecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLogsNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; - /** Optional parameters. */ -export interface SyncGroupsListByDatabaseNextOptionalParams +export interface ServerBlobAuditingPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; +/** Contains response data for the listByServer operation. */ +export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface SyncMembersGetOptionalParams +export interface ServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncMembersGetResponse = SyncMember; +export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; /** Optional parameters. */ -export interface SyncMembersCreateOrUpdateOptionalParams +export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13478,126 +15758,87 @@ export interface SyncMembersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember; - -/** Optional parameters. */ -export interface SyncMembersDeleteOptionalParams - 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 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 update operation. */ -export type SyncMembersUpdateResponse = SyncMember; +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; /** Optional parameters. */ -export interface SyncMembersListBySyncGroupOptionalParams +export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySyncGroup operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasOptionalParams +export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMemberSchemas operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; - -/** Optional parameters. */ -export interface SyncMembersRefreshMemberSchemaOptionalParams - 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 DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface SyncMembersListBySyncGroupNextOptionalParams +export interface DatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySyncGroupNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; +/** Contains response data for the get operation. */ +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface SyncMembersListMemberSchemasNextOptionalParams +export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams 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; - /** 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 DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface TimeZonesListByLocationOptionalParams +export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type TimeZonesListByLocationResponse = TimeZoneListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface TimeZonesGetOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TimeZonesGetResponse = TimeZone; +/** Contains response data for the listByDatabase operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface TimeZonesListByLocationNextOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type TimeZonesListByLocationNextResponse = TimeZoneListResult; +/** Contains response data for the get operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateDnsServers operation. */ -export type VirtualClustersUpdateDnsServersResponse = UpdateManagedInstanceDnsServersOperation; +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface VirtualClustersListOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams +export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +/** Contains response data for the listByServer operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams +export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ -export interface VirtualClustersDeleteOptionalParams +export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13605,41 +15846,60 @@ export interface VirtualClustersDeleteOptionalParams resumeFrom?: string; } +/** 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 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; -} +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface VirtualClustersListNextOptionalParams +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualClustersListNextResponse = VirtualClusterListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupNextOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesGetOptionalParams +export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; +export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface VirtualNetworkRulesCreateOrUpdateOptionalParams +export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13648,40 +15908,31 @@ export interface VirtualNetworkRulesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; - -/** Optional parameters. */ -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; -} +export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13690,10 +15941,10 @@ export interface WorkloadClassifiersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13702,40 +15953,54 @@ export interface WorkloadClassifiersDeleteOptionalParams } /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams +export interface ManagedServerDnsAliasesAcquireOptionalParams + 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 acquire operation. */ +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; + +/** Optional parameters. */ +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams - 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 DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; +export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface WorkloadGroupsDeleteOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13744,163 +16009,151 @@ export interface WorkloadGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByBaseline operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; - /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the listByBaselineNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the listByScan operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams - 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 DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; +/** Contains response data for the listByScanNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesUpdateOptionalParams - 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 DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; + /** Optional parameters. */ -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; -} +export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface DatabaseOperationsCancelOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; + /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseOptionalParams +export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseNextOptionalParams +export interface ManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsGetOptionalParams +export interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; +export type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ -export interface LedgerDigestUploadsCreateOrUpdateOptionalParams +export interface ManagedDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13909,17 +16162,19 @@ export interface LedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; +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; +} /** Optional parameters. */ -export interface LedgerDigestUploadsDisableOptionalParams +export interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13927,25 +16182,29 @@ export interface LedgerDigestUploadsDisableOptionalParams resumeFrom?: string; } -/** Contains response data for the disable operation. */ -export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; +/** Contains response data for the update operation. */ +export type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; +export interface ManagedDatabasesCancelMoveOptionalParams + 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 OutboundFirewallRulesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; +export interface ManagedDatabasesCompleteMoveOptionalParams + 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 OutboundFirewallRulesCreateOrUpdateOptionalParams +export interface ManagedDatabasesCompleteRestoreOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13953,11 +16212,8 @@ export interface OutboundFirewallRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; - /** Optional parameters. */ -export interface OutboundFirewallRulesDeleteOptionalParams +export interface ManagedDatabasesStartMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13966,40 +16222,42 @@ export interface OutboundFirewallRulesDeleteOptionalParams } /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerNextOptionalParams +export interface ManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ServersListByResourceGroupResponse = ServerListResult; +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServersGetResponse = Server; +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14008,10 +16266,31 @@ export interface ServersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServersCreateOrUpdateResponse = Server; +export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface ServersDeleteOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface ReplicationLinksListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; + +/** Optional parameters. */ +export interface ReplicationLinksGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ReplicationLinksGetResponse = ReplicationLink; + +/** Optional parameters. */ +export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14020,7 +16299,7 @@ export interface ServersDeleteOptionalParams } /** Optional parameters. */ -export interface ServersUpdateOptionalParams +export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14028,20 +16307,11 @@ export interface ServersUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; - -/** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult; +/** Contains response data for the failover operation. */ +export type ReplicationLinksFailoverResponse = ReplicationLink; /** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams +export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14049,80 +16319,60 @@ export interface ServersImportDatabaseOptionalParams resumeFrom?: string; } -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; +/** Contains response data for the failoverAllowDataLoss operation. */ +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams +export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams +export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ServersListNextOptionalParams +export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; - -/** Optional parameters. */ -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 listByInstancePool operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult; +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolNextOptionalParams +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult; +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyOptionalParams - 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 SqlVulnerabilityAssessmentBaselineGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the copy operation. */ -export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateOptionalParams - 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 SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetOptionalParams +export interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteOptionalParams +export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14131,220 +16381,153 @@ export interface LongTermRetentionBackupsDeleteOptionalParams } /** 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; -} - -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; - -/** Optional parameters. */ -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 listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; - -/** Optional parameters. */ -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; -} +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByBaseline operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams - 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 SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -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; -} +export interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; +/** Contains response data for the listByBaselineNext operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -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; -} +export interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} /** 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; -} +export interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByScan operation. */ +export type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -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; -} +export interface SqlVulnerabilityAssessmentScanResultGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** 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 SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByScanNext operation. */ +export type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams +export interface SqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByServer operation. */ +export type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the listByServerNext operation. */ +export type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams - 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 SqlVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ + /** 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; - /** 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; +/** Contains response data for the listByLocation operation. */ +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; /** 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 ManagedDatabaseMoveOperationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; -/** Contains response data for the listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocationNext operation. */ +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** 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 ManagedInstanceDtcsListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the get operation. */ +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14352,103 +16535,117 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOpt resumeFrom?: string; } -/** 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; -} - -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; /** 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 ManagedInstanceDtcsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; /** 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 SynapseLinkWorkspacesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabase operation. */ +export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams +export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams +export interface VirtualClustersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the list operation. */ +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface VirtualClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams +export interface VirtualClustersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams +export interface VirtualClustersDeleteOptionalParams + 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 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 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 listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listNext operation. */ +export type VirtualClustersListNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams +export interface VirtualClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams +export interface ManagedInstancesListOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } -/** Contains response data for the listByInstancePool operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ManagedInstancesListOptionalParams +export interface ManagedInstancesListByInstancePoolOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; /** Optional parameters. */ export interface ManagedInstancesListByResourceGroupOptionalParams @@ -14503,6 +16700,42 @@ export interface ManagedInstancesUpdateOptionalParams /** Contains response data for the update operation. */ export type ManagedInstancesUpdateResponse = ManagedInstance; +/** Optional parameters. */ +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; +} + +/** Optional parameters. */ +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; + +/** Optional parameters. */ +export interface ManagedInstancesStartOptionalParams + 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 ManagedInstancesStopOptionalParams + 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 ManagedInstancesListByManagedInstanceOptionalParams extends coreClient.OperationOptions { @@ -14526,15 +16759,11 @@ export interface ManagedInstancesListByManagedInstanceOptionalParams export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -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; -} +export interface ManagedInstancesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ export interface ManagedInstancesListByInstancePoolNextOptionalParams @@ -14544,18 +16773,18 @@ export interface ManagedInstancesListByInstancePoolNextOptionalParams export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams +export interface ManagedInstancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface ManagedInstancesListByManagedInstanceNextOptionalParams @@ -14565,56 +16794,66 @@ export interface ManagedInstancesListByManagedInstanceNextOptionalParams export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesGetOptionalParams +export interface ServerConfigurationOptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams + 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 ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesGetOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; +/** Contains response data for the listByDatabase operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the get operation. */ +export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + 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 ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams +export interface ManagedLedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14622,22 +16861,47 @@ export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; +/** Contains response data for the disable operation. */ +export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; + +/** Optional parameters. */ +export interface StartStopManagedInstanceSchedulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; + +/** Optional parameters. */ +export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; + +/** Optional parameters. */ +export interface StartStopManagedInstanceSchedulesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; /** 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..cd1203909866 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", @@ -3888,10 +3653,10 @@ export const QueryMetricProperties: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseListResult", + className: "ManagedDatabaseSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -3901,7 +3666,7 @@ export const ManagedDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedDatabase" + className: "ManagedDatabaseSecurityAlertPolicy" } } } @@ -3917,137 +3682,85 @@ export const ManagedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { +export const SecurityEventCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseUpdate", + className: "SecurityEventCollection", modelProperties: { - tags: { - serializedName: "tags", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityEvent" + } + } } }, - collation: { - serializedName: "properties.collation", + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties", + modelProperties: { + threatId: { + serializedName: "threatId", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + statement: { + serializedName: "statement", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + statementHighlightOffset: { + serializedName: "statementHighlightOffset", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", + statementHighlightLength: { + serializedName: "statementHighlightLength", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + errorCode: { + serializedName: "errorCode", + readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", + errorSeverity: { + serializedName: "errorSeverity", readOnly: true, type: { - name: "String" + name: "Number" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", - type: { - name: "String" - } - }, - createMode: { - serializedName: "properties.createMode", - type: { - name: "String" - } - }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", - type: { - name: "String" - } - }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", - type: { - name: "String" - } - }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", - type: { - name: "String" - } - }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", - type: { - name: "Boolean" - } - }, - lastBackupName: { - serializedName: "properties.lastBackupName", - type: { - name: "String" - } - } - } - } -}; - -export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompleteDatabaseRestoreDefinition", - modelProperties: { - lastBackupName: { - serializedName: "lastBackupName", - required: true, + errorMessage: { + serializedName: "errorMessage", + readOnly: true, type: { name: "String" } @@ -4056,10 +3769,10 @@ export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicyListResult", + className: "ManagedTransparentDataEncryptionListResult", modelProperties: { value: { serializedName: "value", @@ -4069,7 +3782,7 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy" + className: "ManagedTransparentDataEncryption" } } } @@ -4085,10 +3798,10 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeM } }; -export const SecurityEventCollection: coreClient.CompositeMapper = { +export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventCollection", + className: "ManagedInstanceAdministratorListResult", modelProperties: { value: { serializedName: "value", @@ -4098,7 +3811,7 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityEvent" + className: "ManagedInstanceAdministrator" } } } @@ -4114,68 +3827,10 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { } }; -export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties", - modelProperties: { - threatId: { - serializedName: "threatId", - readOnly: true, - type: { - name: "String" - } - }, - statement: { - serializedName: "statement", - readOnly: true, - type: { - name: "String" - } - }, - statementHighlightOffset: { - serializedName: "statementHighlightOffset", - readOnly: true, - type: { - name: "Number" - } - }, - statementHighlightLength: { - serializedName: "statementHighlightLength", - readOnly: true, - type: { - name: "Number" - } - }, - errorCode: { - serializedName: "errorCode", - readOnly: true, - type: { - name: "Number" - } - }, - errorSeverity: { - serializedName: "errorSeverity", - readOnly: true, - type: { - name: "Number" - } - }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SensitivityLabelListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelListResult", + className: "ManagedInstanceAzureADOnlyAuthListResult", modelProperties: { value: { serializedName: "value", @@ -4185,7 +3840,7 @@ export const SensitivityLabelListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SensitivityLabel" + className: "ManagedInstanceAzureADOnlyAuthentication" } } } @@ -4201,52 +3856,10 @@ export const SensitivityLabelListResult: coreClient.CompositeMapper = { } }; -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 = { +export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryptionListResult", + className: "ManagedInstanceEncryptionProtectorListResult", modelProperties: { value: { serializedName: "value", @@ -4256,7 +3869,7 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ManagedTransparentDataEncryption" + className: "ManagedInstanceEncryptionProtector" } } } @@ -4272,10 +3885,10 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap } }; -export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { +export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministratorListResult", + className: "ManagedInstanceKeyListResult", modelProperties: { value: { serializedName: "value", @@ -4285,7 +3898,7 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ManagedInstanceAdministrator" + className: "ManagedInstanceKey" } } } @@ -4301,10 +3914,10 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper } }; -export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -4314,7 +3927,7 @@ export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -4330,10 +3943,10 @@ export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMappe } }; -export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtectorListResult", + className: "ManagedInstanceOperationListResult", modelProperties: { value: { serializedName: "value", @@ -4343,7 +3956,7 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "ManagedInstanceOperation" } } } @@ -4359,123 +3972,36 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM } }; -export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKeyListResult", + className: "ManagedInstanceOperationParametersPair", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + currentParameters: { + serializedName: "currentParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceKey" - } - } + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + requestedParameters: { + serializedName: "requestedParameters", type: { - name: "String" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } } } } }; -export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicyListResult", + className: "UpsertManagedServerOperationParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceOperation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair", - modelProperties: { - currentParameters: { - serializedName: "currentParameters", - type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" - } - }, - requestedParameters: { - serializedName: "requestedParameters", - type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" - } - } - } - } -}; - -export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters", - modelProperties: { - family: { - serializedName: "family", + family: { + serializedName: "family", type: { name: "String" } @@ -4890,35 +4416,6 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const OperationsHealthListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationsHealthListResult", - 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", @@ -6060,82 +5557,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 +5847,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", @@ -7031,103 +6423,2397 @@ export const Name: coreClient.CompositeMapper = { } }; -export const DatabaseListResult: coreClient.CompositeMapper = { +export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseListResult", + className: "CopyLongTermRetentionBackupParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Database" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + targetResourceGroup: { + serializedName: "properties.targetResourceGroup", type: { name: "String" } - } - } - } -}; - -export const DatabaseIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseIdentity", - modelProperties: { - type: { - serializedName: "type", + }, + targetServerResourceId: { + serializedName: "properties.targetServerResourceId", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + targetServerFullyQualifiedDomainName: { + serializedName: "properties.targetServerFullyQualifiedDomainName", type: { - name: "Uuid" + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", + type: { + name: "String" + } + }, + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateLongTermRetentionBackupParameters", + modelProperties: { + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } + } + } + } +}; + +export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionBackupListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LongTermRetentionBackup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionBackupListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionBackup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConnectionPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConnectionPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributedAvailabilityGroupsListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustCertificatesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerTrustCertificate" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ElasticPoolListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + 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 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 DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SQLVulnerabilityAssessmentScanListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentScanResults" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Remediation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Remediation", + modelProperties: { + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + }, + scripts: { + serializedName: "scripts", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + automated: { + serializedName: "automated", + readOnly: true, + type: { + name: "Boolean" + } + }, + portalLink: { + serializedName: "portalLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const BaselineAdjustedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BaselineAdjustedResult", + modelProperties: { + baseline: { + serializedName: "baseline", + type: { + name: "Composite", + className: "Baseline" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + } + } +}; + +export const Baseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Baseline", + modelProperties: { + expectedResults: { + serializedName: "expectedResults", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + updatedTime: { + serializedName: "updatedTime", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const VaRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VaRule", + modelProperties: { + ruleId: { + serializedName: "ruleId", + readOnly: true, + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + readOnly: true, + type: { + name: "String" + } + }, + category: { + serializedName: "category", + readOnly: true, + type: { + name: "String" + } + }, + ruleType: { + serializedName: "ruleType", + readOnly: true, + type: { + name: "String" + } + }, + title: { + serializedName: "title", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + }, + rationale: { + serializedName: "rationale", + readOnly: true, + type: { + name: "String" + } + }, + queryCheck: { + serializedName: "queryCheck", + type: { + name: "Composite", + className: "QueryCheck" + } + }, + benchmarkReferences: { + serializedName: "benchmarkReferences", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BenchmarkReference" + } + } + } + } + } + } +}; + +export const QueryCheck: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryCheck", + modelProperties: { + query: { + serializedName: "query", + readOnly: true, + type: { + name: "String" + } + }, + expectedResult: { + serializedName: "expectedResult", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + columnNames: { + serializedName: "columnNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const BenchmarkReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BenchmarkReference", + modelProperties: { + benchmark: { + serializedName: "benchmark", + readOnly: true, + type: { + name: "String" + } + }, + reference: { + serializedName: "reference", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentScanRecordListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentScanRecord" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentScanError", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessment" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Database" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "DatabaseUserIdentity" } + } + } + } + } + } +}; + +export const DatabaseUserIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseUserIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const DatabaseUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseUpdate", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "DatabaseIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + sampleName: { + serializedName: "properties.sampleName", + type: { + name: "String" + } + }, + elasticPoolId: { + serializedName: "properties.elasticPoolId", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + databaseId: { + serializedName: "properties.databaseId", + readOnly: true, + type: { + name: "Uuid" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + currentServiceObjectiveName: { + serializedName: "properties.currentServiceObjectiveName", + readOnly: true, + type: { + name: "String" + } + }, + requestedServiceObjectiveName: { + serializedName: "properties.requestedServiceObjectiveName", + readOnly: true, + type: { + name: "String" + } + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", + readOnly: true, + type: { + name: "String" + } + }, + failoverGroupId: { + serializedName: "properties.failoverGroupId", + readOnly: true, + type: { + name: "String" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", + type: { + name: "DateTime" + } + }, + recoveryServicesRecoveryPointId: { + serializedName: "properties.recoveryServicesRecoveryPointId", + type: { + name: "String" + } + }, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", + type: { + name: "String" + } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + catalogCollation: { + serializedName: "properties.catalogCollation", + type: { + name: "String" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + maxLogSizeBytes: { + serializedName: "properties.maxLogSizeBytes", + readOnly: true, + type: { + name: "Number" + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + readScale: { + serializedName: "properties.readScale", + type: { + name: "String" + } + }, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + }, + secondaryType: { + serializedName: "properties.secondaryType", + type: { + name: "String" + } + }, + currentSku: { + serializedName: "properties.currentSku", + type: { + name: "Composite", + className: "Sku" + } + }, + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", + type: { + name: "Number" + } + }, + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", + readOnly: true, + type: { + name: "String" + } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } + }, + minCapacity: { + serializedName: "properties.minCapacity", + type: { + name: "Number" + } + }, + pausedDate: { + serializedName: "properties.pausedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + resumedDate: { + serializedName: "properties.resumedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } + }, + isInfraEncryptionEnabled: { + serializedName: "properties.isInfraEncryptionEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ExportDatabaseDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportDatabaseDefinition", + modelProperties: { + storageKeyType: { + serializedName: "storageKeyType", + required: true, + type: { + name: "String" + } + }, + storageKey: { + serializedName: "storageKey", + required: true, + type: { + name: "String" + } + }, + storageUri: { + serializedName: "storageUri", + required: true, + type: { + name: "String" + } + }, + administratorLogin: { + serializedName: "administratorLogin", + required: true, + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String" + } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } + } + } + } +}; + +export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportExistingDatabaseDefinition", + modelProperties: { + storageKeyType: { + serializedName: "storageKeyType", + required: true, + type: { + name: "String" + } + }, + storageKey: { + serializedName: "storageKey", + required: true, + type: { + name: "String" + } + }, + storageUri: { + serializedName: "storageUri", + required: true, + type: { + name: "String" + } + }, + administratorLogin: { + serializedName: "administratorLogin", + required: true, + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String" + } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } + } + } + } +}; + +export const ResourceMoveDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceMoveDefinition", + modelProperties: { + id: { + serializedName: "id", + 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 ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties", + modelProperties: { + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + firstStripeName: { + serializedName: "firstStripeName", + readOnly: true, + type: { + name: "String" + } + }, + numberOfStripes: { + serializedName: "numberOfStripes", + readOnly: true, + type: { + name: "Number" + } + }, + backupSizeMB: { + serializedName: "backupSizeMB", + readOnly: true, + type: { + name: "Number" + } + }, + restoreStartedTimestampUtc: { + serializedName: "restoreStartedTimestampUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + restoreFinishedTimestampUtc: { + serializedName: "restoreFinishedTimestampUtc", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseUpdate", + modelProperties: { + tags: { + serializedName: "tags", type: { name: "Dictionary", - value: { - type: { name: "Composite", className: "DatabaseUserIdentity" } + value: { type: { name: "String" } } + } + }, + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", + readOnly: true, + type: { + name: "DateTime" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", + readOnly: true, + type: { + name: "String" + } + }, + catalogCollation: { + serializedName: "properties.catalogCollation", + type: { + name: "String" + } + }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + storageContainerUri: { + serializedName: "properties.storageContainerUri", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + storageContainerIdentity: { + serializedName: "properties.storageContainerIdentity", + type: { + name: "String" + } + }, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", + type: { + name: "String" + } + }, + failoverGroupId: { + serializedName: "properties.failoverGroupId", + readOnly: true, + type: { + name: "String" + } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", + type: { + name: "String" + } + }, + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", + type: { + name: "Boolean" + } + }, + lastBackupName: { + serializedName: "properties.lastBackupName", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseMoveDefinition", + modelProperties: { + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CompleteDatabaseRestoreDefinition", + modelProperties: { + lastBackupName: { + serializedName: "lastBackupName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseStartMoveDefinition", + modelProperties: { + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, + type: { + name: "String" + } + }, + operationMode: { + serializedName: "operationMode", + 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 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 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 SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseLinkWorkspaceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspace" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseLinkWorkspaceInfoProperties", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + }, + linkConnectionName: { + serializedName: "linkConnectionName", + 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" + } } } }, - delegatedResources: { - serializedName: "delegatedResources", + 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: "Composite", className: "Delegation" } } + 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 DatabaseUserIdentity: coreClient.CompositeMapper = { +export const ManagedInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUserIdentity", + className: "ManagedInstanceListResult", modelProperties: { - principalId: { - serializedName: "principalId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstance" + } + } } }, - clientId: { - serializedName: "clientId", + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstancePecProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePecProperty", + modelProperties: { + id: { + serializedName: "id", readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties" + } + } + } + } +}; + +export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceExternalAdministrator", + modelProperties: { + administratorType: { + serializedName: "administratorType", + type: { + name: "String" + } + }, + principalType: { + serializedName: "principalType", + type: { + name: "String" + } + }, + login: { + serializedName: "login", + type: { + name: "String" + } + }, + sid: { + serializedName: "sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", type: { name: "Uuid" } + }, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", + type: { + name: "Boolean" + } } } } }; -export const Delegation: coreClient.CompositeMapper = { +export const ServicePrincipal: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Delegation", + className: "ServicePrincipal", modelProperties: { - resourceId: { - serializedName: "resourceId", + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, type: { name: "String" } @@ -7136,17 +8822,23 @@ export const Delegation: coreClient.CompositeMapper = { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" } } } } }; -export const DatabaseUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUpdate", + className: "ManagedInstanceUpdate", modelProperties: { sku: { serializedName: "sku", @@ -7159,7 +8851,7 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "DatabaseIdentity" + className: "ResourceIdentity" } }, tags: { @@ -7169,87 +8861,96 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - createMode: { - serializedName: "properties.createMode", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - collation: { - serializedName: "properties.collation", + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - sampleName: { - serializedName: "properties.sampleName", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - status: { - serializedName: "properties.status", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", - readOnly: true, + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Uuid" + name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + vCores: { + serializedName: "properties.vCores", type: { - name: "DateTime" + name: "Number" } }, - currentServiceObjectiveName: { - serializedName: "properties.currentServiceObjectiveName", - readOnly: true, + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", + type: { + name: "Number" + } + }, + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - requestedServiceObjectiveName: { - serializedName: "properties.requestedServiceObjectiveName", + dnsZone: { + serializedName: "properties.dnsZone", readOnly: true, type: { name: "String" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", + type: { + name: "Boolean" + } + }, + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { name: "String" } @@ -7260,38 +8961,58 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { name: "DateTime" } }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + proxyOverride: { + serializedName: "properties.proxyOverride", type: { - name: "DateTime" + name: "String" } }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + timezoneId: { + serializedName: "properties.timezoneId", type: { name: "String" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + instancePoolId: { + serializedName: "properties.instancePoolId", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePecProperty" + } + } + } + }, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", + readOnly: true, + type: { + name: "String" + } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -7302,133 +9023,252 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { name: "Boolean" } }, - licenseType: { - serializedName: "properties.licenseType", + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - maxLogSizeBytes: { - serializedName: "properties.maxLogSizeBytes", - readOnly: true, + keyId: { + serializedName: "properties.keyId", type: { - name: "Number" + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + administrators: { + serializedName: "properties.administrators", + type: { + name: "Composite", + className: "ManagedInstanceExternalAdministrator" + } + }, + servicePrincipal: { + serializedName: "properties.servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipal" + } + } + } + } +}; + +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointCollection", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint" + } + } } }, - readScale: { - serializedName: "properties.readScale", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + } + } + } +}; + +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + modelProperties: { + category: { + serializedName: "category", + readOnly: true, type: { - name: "Number" + name: "String" } }, - secondaryType: { - serializedName: "properties.secondaryType", + endpoints: { + serializedName: "endpoints", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDependency" + } + } + } + } + } + } +}; + +export const EndpointDependency: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDependency", + modelProperties: { + domainName: { + serializedName: "domainName", + readOnly: true, type: { name: "String" } }, - currentSku: { - serializedName: "properties.currentSku", + endpointDetails: { + serializedName: "endpointDetails", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDetail" + } + } } - }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + } + } + } +}; + +export const EndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDetail", + modelProperties: { + port: { + serializedName: "port", + readOnly: true, type: { name: "Number" } - }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + } + } + } +}; + +export const TopQueriesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopQueriesListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopQueries" + } + } } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - minCapacity: { - serializedName: "properties.minCapacity", + } + } + } +}; + +export const TopQueries: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopQueries", + modelProperties: { + numberOfQueries: { + serializedName: "numberOfQueries", + readOnly: true, type: { name: "Number" } }, - pausedDate: { - serializedName: "properties.pausedDate", + aggregationFunction: { + serializedName: "aggregationFunction", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - resumedDate: { - serializedName: "properties.resumedDate", + observationMetric: { + serializedName: "observationMetric", readOnly: true, - type: { - name: "DateTime" - } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + intervalType: { + serializedName: "intervalType", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", + startTime: { + serializedName: "startTime", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - federatedClientId: { - serializedName: "properties.federatedClientId", + endTime: { + serializedName: "endTime", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - primaryDelegatedIdentityClientId: { - serializedName: "properties.primaryDelegatedIdentityClientId", + queries: { + serializedName: "queries", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatisticsProperties" + } + } } } } } }; -export const ResourceMoveDefinition: coreClient.CompositeMapper = { +export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceMoveDefinition", + className: "ServerConfigurationOptionListResult", modelProperties: { - id: { - serializedName: "id", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConfigurationOption" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -7437,1092 +9277,1036 @@ export const ResourceMoveDefinition: coreClient.CompositeMapper = { } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "ManagedLedgerDigestUploadsListResult", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, - type: { - name: "String" - } - }, - storageKey: { - serializedName: "storageKey", - required: true, - type: { - name: "String" - } - }, - storageUri: { - serializedName: "storageUri", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedLedgerDigestUploads" + } + } } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartStopManagedInstanceScheduleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StartStopManagedInstanceSchedule" + } + } } }, - authenticationType: { - serializedName: "authenticationType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const ExportDatabaseDefinition: coreClient.CompositeMapper = { +export const ScheduleItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportDatabaseDefinition", + className: "ScheduleItem", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", + startDay: { + serializedName: "startDay", required: true, type: { name: "String" } }, - storageKey: { - serializedName: "storageKey", + startTime: { + serializedName: "startTime", required: true, type: { name: "String" } }, - storageUri: { - serializedName: "storageUri", + stopDay: { + serializedName: "stopDay", required: true, type: { name: "String" } }, - administratorLogin: { - serializedName: "administratorLogin", + stopTime: { + serializedName: "stopTime", required: true, type: { name: "String" } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const SloUsageMetric: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SloUsageMetric", + modelProperties: { + serviceLevelObjective: { + serializedName: "serviceLevelObjective", + readOnly: true, type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", + serviceLevelObjectiveId: { + serializedName: "serviceLevelObjectiveId", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - networkIsolation: { - serializedName: "networkIsolation", + inRangeTimeRatio: { + serializedName: "inRangeTimeRatio", + readOnly: true, type: { - name: "Composite", - className: "NetworkIsolationSettings" + name: "Number" } } } } }; -export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { +export const OperationImpact: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CopyLongTermRetentionBackupParameters", + className: "OperationImpact", modelProperties: { - targetSubscriptionId: { - serializedName: "properties.targetSubscriptionId", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - targetResourceGroup: { - serializedName: "properties.targetResourceGroup", + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - targetServerResourceId: { - serializedName: "properties.targetServerResourceId", + changeValueAbsolute: { + serializedName: "changeValueAbsolute", + readOnly: true, type: { - name: "String" + name: "Number" } }, - targetServerFullyQualifiedDomainName: { - serializedName: "properties.targetServerFullyQualifiedDomainName", + changeValueRelative: { + serializedName: "changeValueRelative", + readOnly: true, type: { - name: "String" + name: "Number" } - }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + } + } + } +}; + +export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEventsFilterParameters", + modelProperties: { + eventTime: { + serializedName: "eventTime", type: { - name: "String" + name: "DateTime" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", + showServerRecords: { + serializedName: "showServerRecords", type: { - name: "String" + name: "Boolean" } } } } }; -export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateLongTermRetentionBackupParameters", + className: "ProxyResource", modelProperties: { - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", - type: { - name: "String" - } - } + ...Resource.type.modelProperties } } }; -export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupListResult", + className: "TrackedResource", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + ...Resource.type.modelProperties, + location: { + serializedName: "location", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LongTermRetentionBackup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackupListResult", + className: "ProxyResourceWithWritableName", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } + ...ResourceWithWritableName.type.modelProperties } } }; -export const ManagedInstanceListResult: coreClient.CompositeMapper = { +export const RecoverableDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "RecoverableDatabase", modelProperties: { - value: { - serializedName: "value", + ...ProxyResource.type.modelProperties, + edition: { + serializedName: "properties.edition", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstance" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePecProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePecProperty", - modelProperties: { - id: { - serializedName: "id", + }, + elasticPoolName: { + serializedName: "properties.elasticPoolName", readOnly: true, type: { name: "String" } }, - properties: { - serializedName: "properties", + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties" + name: "DateTime" } } } } }; -export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { +export const DataMaskingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceExternalAdministrator", + className: "DataMaskingPolicy", modelProperties: { - administratorType: { - serializedName: "administratorType", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - principalType: { - serializedName: "principalType", + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - login: { - serializedName: "login", + dataMaskingState: { + serializedName: "properties.dataMaskingState", type: { - name: "String" + name: "Enum", + allowedValues: ["Disabled", "Enabled"] } }, - sid: { - serializedName: "sid", + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", type: { - name: "Uuid" + name: "String" } }, - tenantId: { - serializedName: "tenantId", + applicationPrincipals: { + serializedName: "properties.applicationPrincipals", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", + maskingLevel: { + serializedName: "properties.maskingLevel", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServicePrincipal: coreClient.CompositeMapper = { +export const DataMaskingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipal", + className: "DataMaskingRule", modelProperties: { - principalId: { - serializedName: "principalId", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + idPropertiesId: { + serializedName: "properties.id", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + aliasName: { + serializedName: "properties.aliasName", type: { name: "String" } - } - } - } -}; - -export const ManagedInstanceUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceUpdate", - modelProperties: { - sku: { - serializedName: "sku", + }, + ruleState: { + serializedName: "properties.ruleState", type: { - name: "Composite", - className: "Sku" + name: "Enum", + allowedValues: ["Disabled", "Enabled"] } }, - identity: { - serializedName: "identity", + schemaName: { + serializedName: "properties.schemaName", type: { - name: "Composite", - className: "ResourceIdentity" + name: "String" } }, - tags: { - serializedName: "tags", + tableName: { + serializedName: "properties.tableName", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + columnName: { + serializedName: "properties.columnName", type: { name: "String" } }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", + maskingFunction: { + serializedName: "properties.maskingFunction", + type: { + name: "Enum", + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] + } + }, + numberFrom: { + serializedName: "properties.numberFrom", type: { name: "String" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + numberTo: { + serializedName: "properties.numberTo", type: { name: "String" } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + prefixSize: { + serializedName: "properties.prefixSize", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + suffixSize: { + serializedName: "properties.suffixSize", type: { name: "String" } }, - subnetId: { - serializedName: "properties.subnetId", + replacementString: { + serializedName: "properties.replacementString", + type: { + name: "String" + } + } + } + } +}; + +export const GeoBackupPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoBackupPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, state: { serializedName: "properties.state", + required: true, + type: { + name: "Enum", + allowedValues: ["Disabled", "Enabled"] + } + }, + storageType: { + serializedName: "properties.storageType", readOnly: true, type: { name: "String" } - }, - licenseType: { - serializedName: "properties.licenseType", + } + } + } +}; + +export const ServerCommunicationLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerCommunicationLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Number" + name: "String" } }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Number" + name: "String" } }, - collation: { - serializedName: "properties.collation", + partnerServer: { + serializedName: "properties.partnerServer", type: { name: "String" } - }, - dnsZone: { - serializedName: "properties.dnsZone", + } + } + } +}; + +export const ServiceObjective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceObjective", + modelProperties: { + ...ProxyResource.type.modelProperties, + serviceObjectiveName: { + serializedName: "properties.serviceObjectiveName", readOnly: true, type: { name: "String" } }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + isDefault: { + serializedName: "properties.isDefault", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - publicDataEndpointEnabled: { - serializedName: "properties.publicDataEndpointEnabled", + isSystem: { + serializedName: "properties.isSystem", + readOnly: true, type: { name: "Boolean" } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + enabled: { + serializedName: "properties.enabled", + readOnly: true, type: { - name: "DateTime" + name: "Boolean" } - }, - proxyOverride: { - serializedName: "properties.proxyOverride", + } + } + } +}; + +export const ElasticPoolActivity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolActivity", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String" } }, - timezoneId: { - serializedName: "properties.timezoneId", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - instancePoolId: { - serializedName: "properties.instancePoolId", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "String" + name: "Number" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePecProperty" - } - } + name: "Number" } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { name: "String" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + operationId: { + serializedName: "properties.operationId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "String" + name: "Number" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + requestedDatabaseDtuMax: { + serializedName: "properties.requestedDatabaseDtuMax", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + requestedDatabaseDtuMin: { + serializedName: "properties.requestedDatabaseDtuMin", + readOnly: true, type: { - name: "String" + name: "Number" } }, - keyId: { - serializedName: "properties.keyId", + requestedDtu: { + serializedName: "properties.requestedDtu", + readOnly: true, type: { - name: "String" + name: "Number" } }, - administrators: { - serializedName: "properties.administrators", + requestedElasticPoolName: { + serializedName: "properties.requestedElasticPoolName", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceExternalAdministrator" + name: "String" } }, - servicePrincipal: { - serializedName: "properties.servicePrincipal", - type: { - name: "Composite", - className: "ServicePrincipal" - } - } - } - } -}; - -export const TopQueriesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TopQueriesListResult", - modelProperties: { - value: { - serializedName: "value", + requestedStorageLimitInGB: { + serializedName: "properties.requestedStorageLimitInGB", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopQueries" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + elasticPoolName: { + serializedName: "properties.elasticPoolName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const TopQueries: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TopQueries", - modelProperties: { - numberOfQueries: { - serializedName: "numberOfQueries", + }, + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "Number" + name: "String" } }, - aggregationFunction: { - serializedName: "aggregationFunction", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - observationMetric: { - serializedName: "observationMetric", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - intervalType: { - serializedName: "intervalType", + requestedStorageLimitInMB: { + serializedName: "properties.requestedStorageLimitInMB", readOnly: true, type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "startTime", + requestedDatabaseDtuGuarantee: { + serializedName: "properties.requestedDatabaseDtuGuarantee", readOnly: true, type: { - name: "String" + name: "Number" } }, - endTime: { - serializedName: "endTime", + requestedDatabaseDtuCap: { + serializedName: "properties.requestedDatabaseDtuCap", readOnly: true, type: { - name: "String" + name: "Number" } }, - queries: { - serializedName: "queries", + requestedDtuGuarantee: { + serializedName: "properties.requestedDtuGuarantee", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryStatisticsProperties" - } - } + name: "Number" } } } } }; -export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { +export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabaseListResult", + className: "ElasticPoolDatabaseActivity", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedDatabase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", + }, + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerConnectionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerConnectionPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const SloUsageMetric: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SloUsageMetric", - modelProperties: { - serviceLevelObjective: { - serializedName: "serviceLevelObjective", + }, + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - serviceLevelObjectiveId: { - serializedName: "serviceLevelObjectiveId", + operationId: { + serializedName: "properties.operationId", readOnly: true, type: { name: "Uuid" } }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { name: "Number" } - } - } - } -}; - -export const OperationImpact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationImpact", - modelProperties: { - name: { - serializedName: "name", + }, + requestedElasticPoolName: { + serializedName: "properties.requestedElasticPoolName", readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + currentElasticPoolName: { + serializedName: "properties.currentElasticPoolName", readOnly: true, type: { name: "String" } }, - changeValueAbsolute: { - serializedName: "changeValueAbsolute", + currentServiceObjective: { + serializedName: "properties.currentServiceObjective", readOnly: true, type: { - name: "Number" + name: "String" } }, - changeValueRelative: { - serializedName: "changeValueRelative", + requestedServiceObjective: { + serializedName: "properties.requestedServiceObjective", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityEventsFilterParameters", - modelProperties: { - eventTime: { - serializedName: "eventTime", - type: { - name: "DateTime" + name: "String" } }, - showServerRecords: { - serializedName: "showServerRecords", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - required: true, + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - tags: { - serializedName: "tags", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResourceWithWritableName", - modelProperties: { - ...ResourceWithWritableName.type.modelProperties - } - } -}; - -export const RecoverableDatabase: coreClient.CompositeMapper = { +export const RecommendedAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabase", + className: "RecommendedAction", modelProperties: { ...ProxyResource.type.modelProperties, - edition: { - serializedName: "properties.edition", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - serviceLevelObjective: { - serializedName: "properties.serviceLevelObjective", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + recommendationReason: { + serializedName: "properties.recommendationReason", readOnly: true, type: { name: "String" } }, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", + validSince: { + serializedName: "properties.validSince", readOnly: true, type: { name: "DateTime" } - } - } - } -}; - -export const DataMaskingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataMaskingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + }, + lastRefresh: { + serializedName: "properties.lastRefresh", readOnly: true, type: { - name: "String" + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Composite", + className: "RecommendedActionStateInfo" } }, - kind: { - serializedName: "kind", + isExecutableAction: { + serializedName: "properties.isExecutableAction", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - dataMaskingState: { - serializedName: "properties.dataMaskingState", + isRevertableAction: { + serializedName: "properties.isRevertableAction", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Boolean" } }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", + isArchivedAction: { + serializedName: "properties.isArchivedAction", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - applicationPrincipals: { - serializedName: "properties.applicationPrincipals", + executeActionStartTime: { + serializedName: "properties.executeActionStartTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - maskingLevel: { - serializedName: "properties.maskingLevel", + executeActionDuration: { + serializedName: "properties.executeActionDuration", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DataMaskingRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataMaskingRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + }, + revertActionStartTime: { + serializedName: "properties.revertActionStartTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - kind: { - serializedName: "kind", + revertActionDuration: { + serializedName: "properties.revertActionDuration", readOnly: true, type: { name: "String" } }, - idPropertiesId: { - serializedName: "properties.id", + executeActionInitiatedBy: { + serializedName: "properties.executeActionInitiatedBy", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] } }, - aliasName: { - serializedName: "properties.aliasName", + executeActionInitiatedTime: { + serializedName: "properties.executeActionInitiatedTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - ruleState: { - serializedName: "properties.ruleState", + revertActionInitiatedBy: { + serializedName: "properties.revertActionInitiatedBy", + readOnly: true, type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] + allowedValues: ["User", "System"] } }, - schemaName: { - serializedName: "properties.schemaName", + revertActionInitiatedTime: { + serializedName: "properties.revertActionInitiatedTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - tableName: { - serializedName: "properties.tableName", + score: { + serializedName: "properties.score", + readOnly: true, type: { - name: "String" + name: "Number" } }, - columnName: { - serializedName: "properties.columnName", + implementationDetails: { + serializedName: "properties.implementationDetails", type: { - name: "String" + name: "Composite", + className: "RecommendedActionImplementationInfo" } }, - maskingFunction: { - serializedName: "properties.maskingFunction", + errorDetails: { + serializedName: "properties.errorDetails", type: { - name: "Enum", - allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] + name: "Composite", + className: "RecommendedActionErrorInfo" } }, - numberFrom: { - serializedName: "properties.numberFrom", + estimatedImpact: { + serializedName: "properties.estimatedImpact", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - numberTo: { - serializedName: "properties.numberTo", + observedImpact: { + serializedName: "properties.observedImpact", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - prefixSize: { - serializedName: "properties.prefixSize", + timeSeries: { + serializedName: "properties.timeSeries", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionMetricInfo" + } + } } }, - suffixSize: { - serializedName: "properties.suffixSize", + linkedObjects: { + serializedName: "properties.linkedObjects", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - replacementString: { - serializedName: "properties.replacementString", + details: { + serializedName: "properties.details", + readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const GeoBackupPolicy: coreClient.CompositeMapper = { +export const Advisor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicy", + className: "Advisor", modelProperties: { ...ProxyResource.type.modelProperties, kind: { @@ -8539,99 +10323,131 @@ export const GeoBackupPolicy: coreClient.CompositeMapper = { name: "String" } }, - state: { - serializedName: "properties.state", - required: true, + advisorStatus: { + serializedName: "properties.advisorStatus", + readOnly: true, type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] + allowedValues: [ + "GA", + "PublicPreview", + "LimitedPublicPreview", + "PrivatePreview" + ] } }, - storageType: { - serializedName: "properties.storageType", + autoExecuteStatus: { + serializedName: "properties.autoExecuteStatus", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled", "Default"] + } + }, + autoExecuteStatusInheritedFrom: { + serializedName: "properties.autoExecuteStatusInheritedFrom", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Default", + "Subscription", + "Server", + "ElasticPool", + "Database" + ] + } + }, + recommendationsStatus: { + serializedName: "properties.recommendationsStatus", readOnly: true, type: { name: "String" } + }, + lastChecked: { + serializedName: "properties.lastChecked", + readOnly: true, + type: { + name: "DateTime" + } + }, + recommendedActions: { + serializedName: "properties.recommendedActions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedAction" + } + } + } } } } }; -export const ServerCommunicationLink: coreClient.CompositeMapper = { +export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLink", + className: "DatabaseAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - readOnly: true, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } }, - state: { - serializedName: "properties.state", + actualState: { + serializedName: "properties.actualState", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } }, - partnerServer: { - serializedName: "properties.partnerServer", + options: { + serializedName: "properties.options", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "AutomaticTuningOptions" } + } } } } } }; -export const ServiceObjective: coreClient.CompositeMapper = { +export const DatabaseColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceObjective", + className: "DatabaseColumn", modelProperties: { ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - serializedName: "properties.serviceObjectiveName", - readOnly: true, + columnType: { + serializedName: "properties.columnType", type: { name: "String" } }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, + temporalType: { + serializedName: "properties.temporalType", type: { - name: "Boolean" + name: "String" } }, - isSystem: { - serializedName: "properties.isSystem", - readOnly: true, + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { name: "Boolean" } }, - description: { - serializedName: "properties.description", - readOnly: true, - type: { - name: "String" - } - }, - enabled: { - serializedName: "properties.enabled", - readOnly: true, + isComputed: { + serializedName: "properties.isComputed", type: { name: "Boolean" } @@ -8640,274 +10456,307 @@ export const ServiceObjective: coreClient.CompositeMapper = { } }; -export const ElasticPoolActivity: coreClient.CompositeMapper = { +export const DatabaseSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolActivity", + className: "DatabaseSchema", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Number" + name: "Boolean" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, - type: { - name: "Uuid" - } - }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuMax: { - serializedName: "properties.requestedDatabaseDtuMax", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuMin: { - serializedName: "properties.requestedDatabaseDtuMin", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - requestedDtu: { - serializedName: "properties.requestedDtu", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } - }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + } + } + } +}; + +export const DatabaseTable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseTable", + modelProperties: { + ...ProxyResource.type.modelProperties, + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } }, - requestedStorageLimitInGB: { - serializedName: "properties.requestedStorageLimitInGB", - readOnly: true, + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "Number" + name: "Boolean" } - }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", + modelProperties: { + ...ProxyResource.type.modelProperties, + baselineResults: { + serializedName: "properties.baselineResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + } + } } - }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + } + } + } +}; + +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - requestedStorageLimitInMB: { - serializedName: "properties.requestedStorageLimitInMB", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuGuarantee: { - serializedName: "properties.requestedDatabaseDtuGuarantee", - readOnly: true, - type: { - name: "Number" - } - }, - requestedDatabaseDtuCap: { - serializedName: "properties.requestedDatabaseDtuCap", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Number" + name: "String" } }, - requestedDtuGuarantee: { - serializedName: "properties.requestedDtuGuarantee", - readOnly: true, + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Number" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + scanId: { + serializedName: "properties.scanId", + readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + triggerType: { + serializedName: "properties.triggerType", readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - errorMessage: { - serializedName: "properties.errorMessage", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + errors: { + serializedName: "properties.errors", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError" + } + } } }, - operation: { - serializedName: "properties.operation", + storageContainerPath: { + serializedName: "properties.storageContainerPath", readOnly: true, type: { name: "String" } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, - type: { - name: "Uuid" - } - }, - percentComplete: { - serializedName: "properties.percentComplete", + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", readOnly: true, type: { name: "Number" } - }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentScansExport", + modelProperties: { + ...ProxyResource.type.modelProperties, + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", readOnly: true, type: { name: "String" } - }, - currentElasticPoolName: { - serializedName: "properties.currentElasticPoolName", + } + } + } +}; + +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", readOnly: true, type: { - name: "String" + name: "Number" } - }, - currentServiceObjective: { - serializedName: "properties.currentServiceObjective", + } + } + } +}; + +export const DeletedServer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedServer", + modelProperties: { + ...ProxyResource.type.modelProperties, + version: { + serializedName: "properties.version", readOnly: true, type: { name: "String" } }, - requestedServiceObjective: { - serializedName: "properties.requestedServiceObjective", + deletionTime: { + serializedName: "properties.deletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - serverName: { - serializedName: "properties.serverName", + originalId: { + serializedName: "properties.originalId", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { name: "String" @@ -8917,607 +10766,654 @@ export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, state: { serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - predicateExpression: { - serializedName: "properties.predicateExpression", + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, 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", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { name: "Boolean" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "Uuid" + name: "Boolean" } } } } }; -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const EncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "EncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + subregion: { + serializedName: "properties.subregion", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + uri: { + serializedName: "properties.uri", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { - name: "Uuid" + name: "Boolean" } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const FailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "FailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" + } + }, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" + } + }, + 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: "String" + name: "Composite", + className: "PartnerInfo" } } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + databases: { + serializedName: "properties.databases", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + } + } + } +}; + +export const InstanceFailoverGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "Boolean" + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "Number" + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint" } }, - state: { - serializedName: "properties.state", + replicationRole: { + serializedName: "properties.replicationRole", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + partnerRegions: { + serializedName: "properties.partnerRegions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerRegionInfo" + } + } } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + managedInstancePairs: { + serializedName: "properties.managedInstancePairs", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePairInfo" + } + } } } } } }; -export const RecommendedAction: coreClient.CompositeMapper = { +export const JobCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedAction", + className: "JobCredential", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + username: { + serializedName: "properties.username", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + password: { + serializedName: "properties.password", type: { name: "String" } + } + } + } +}; + +export const JobExecution: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobExecution", + modelProperties: { + ...ProxyResource.type.modelProperties, + jobVersion: { + serializedName: "properties.jobVersion", + readOnly: true, + type: { + name: "Number" + } }, - recommendationReason: { - serializedName: "properties.recommendationReason", + stepName: { + serializedName: "properties.stepName", readOnly: true, type: { name: "String" } }, - validSince: { - serializedName: "properties.validSince", + stepId: { + serializedName: "properties.stepId", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - lastRefresh: { - serializedName: "properties.lastRefresh", + jobExecutionId: { + serializedName: "properties.jobExecutionId", readOnly: true, type: { - name: "DateTime" + name: "Uuid" } }, - state: { - serializedName: "properties.state", + lifecycle: { + serializedName: "properties.lifecycle", + readOnly: true, type: { - name: "Composite", - className: "RecommendedActionStateInfo" + name: "String" } }, - isExecutableAction: { - serializedName: "properties.isExecutableAction", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isRevertableAction: { - serializedName: "properties.isRevertableAction", + createTime: { + serializedName: "properties.createTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - isArchivedAction: { - serializedName: "properties.isArchivedAction", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - executeActionStartTime: { - serializedName: "properties.executeActionStartTime", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { name: "DateTime" } }, - executeActionDuration: { - serializedName: "properties.executeActionDuration", - readOnly: true, + currentAttempts: { + serializedName: "properties.currentAttempts", type: { - name: "String" + name: "Number" } }, - revertActionStartTime: { - serializedName: "properties.revertActionStartTime", + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", readOnly: true, type: { name: "DateTime" } }, - revertActionDuration: { - serializedName: "properties.revertActionDuration", + lastMessage: { + serializedName: "properties.lastMessage", readOnly: true, type: { name: "String" } }, - executeActionInitiatedBy: { - serializedName: "properties.executeActionInitiatedBy", - readOnly: true, + target: { + serializedName: "properties.target", type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "Composite", + className: "JobExecutionTarget" + } + } + } + } +}; + +export const Job: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Job", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + defaultValue: "", + serializedName: "properties.description", + type: { + name: "String" } }, - executeActionInitiatedTime: { - serializedName: "properties.executeActionInitiatedTime", + version: { + serializedName: "properties.version", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - revertActionInitiatedBy: { - serializedName: "properties.revertActionInitiatedBy", - readOnly: true, + schedule: { + serializedName: "properties.schedule", type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "Composite", + className: "JobSchedule" + } + } + } + } +}; + +export const JobStep: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStep", + modelProperties: { + ...ProxyResource.type.modelProperties, + stepId: { + serializedName: "properties.stepId", + type: { + name: "Number" } }, - revertActionInitiatedTime: { - serializedName: "properties.revertActionInitiatedTime", - readOnly: true, + targetGroup: { + serializedName: "properties.targetGroup", type: { - name: "DateTime" + name: "String" } }, - score: { - serializedName: "properties.score", - readOnly: true, + credential: { + serializedName: "properties.credential", type: { - name: "Number" + name: "String" } }, - implementationDetails: { - serializedName: "properties.implementationDetails", + action: { + serializedName: "properties.action", type: { name: "Composite", - className: "RecommendedActionImplementationInfo" + className: "JobStepAction" } }, - errorDetails: { - serializedName: "properties.errorDetails", + output: { + serializedName: "properties.output", type: { name: "Composite", - className: "RecommendedActionErrorInfo" + className: "JobStepOutput" } }, - estimatedImpact: { - serializedName: "properties.estimatedImpact", - readOnly: true, + executionOptions: { + serializedName: "properties.executionOptions", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionImpactRecord" - } - } + name: "Composite", + className: "JobStepExecutionOptions" } - }, - observedImpact: { - serializedName: "properties.observedImpact", - readOnly: true, + } + } + } +}; + +export const JobTargetGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobTargetGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + members: { + serializedName: "properties.members", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedActionImpactRecord" + className: "JobTarget" } } } + } + } + } +}; + +export const JobVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", + type: { + name: "String" + } }, - timeSeries: { - serializedName: "properties.timeSeries", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionMetricInfo" - } - } + name: "String" } }, - linkedObjects: { - serializedName: "properties.linkedObjects", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - details: { - serializedName: "properties.details", - readOnly: true, + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Number" } } } } }; -export const Advisor: coreClient.CompositeMapper = { +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Advisor", + className: "MaintenanceWindowOptions", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" + name: "Boolean" } }, - advisorStatus: { - serializedName: "properties.advisorStatus", - readOnly: true, + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { - name: "Enum", - allowedValues: [ - "GA", - "PublicPreview", - "LimitedPublicPreview", - "PrivatePreview" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } }, - autoExecuteStatus: { - serializedName: "properties.autoExecuteStatus", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled", "Default"] + name: "Number" } }, - autoExecuteStatusInheritedFrom: { - serializedName: "properties.autoExecuteStatusInheritedFrom", - readOnly: true, + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "Enum", - allowedValues: [ - "Default", - "Subscription", - "Server", - "ElasticPool", - "Database" - ] + name: "Number" } }, - recommendationsStatus: { - serializedName: "properties.recommendationsStatus", - readOnly: true, + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - lastChecked: { - serializedName: "properties.lastChecked", - readOnly: true, + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { - name: "DateTime" + name: "Number" } }, - recommendedActions: { - serializedName: "properties.recommendedActions", - readOnly: true, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MaintenanceWindows: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceWindows", + modelProperties: { + ...ProxyResource.type.modelProperties, + timeRanges: { + serializedName: "properties.timeRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedAction" + className: "MaintenanceWindowTimeRange" } } } @@ -9526,102 +11422,99 @@ export const Advisor: coreClient.CompositeMapper = { } }; -export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAutomaticTuning", + className: "ManagedBackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] - } - }, - actualState: { - serializedName: "properties.actualState", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "Number" } - }, - options: { - serializedName: "properties.options", + } + } + } +}; + +export const ManagedInstanceQuery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceQuery", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryText: { + serializedName: "properties.queryText", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "AutomaticTuningOptions" } - } + name: "String" } } } } }; -export const DatabaseColumn: coreClient.CompositeMapper = { +export const QueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseColumn", + className: "QueryStatistics", modelProperties: { ...ProxyResource.type.modelProperties, - columnType: { - serializedName: "properties.columnType", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - temporalType: { - serializedName: "properties.temporalType", + queryId: { + serializedName: "properties.queryId", + readOnly: true, type: { name: "String" } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isComputed: { - serializedName: "properties.isComputed", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + intervals: { + serializedName: "properties.intervals", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricInterval" + } + } } } } } }; -export const DatabaseSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSchema", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] + allowedValues: ["New", "Enabled", "Disabled"] } }, disabledAlerts: { @@ -9681,551 +11574,462 @@ export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { } }; -export const DatabaseTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseTable", - modelProperties: { - ...ProxyResource.type.modelProperties, - temporalType: { - serializedName: "properties.temporalType", - type: { - name: "String" - } - }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { +export const SecurityEvent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment", + className: "SecurityEvent", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + eventTime: { + serializedName: "properties.eventTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecord", - modelProperties: { - ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", + securityEventType: { + serializedName: "properties.securityEventType", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - triggerType: { - serializedName: "properties.triggerType", + subscription: { + serializedName: "properties.subscription", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + server: { + serializedName: "properties.server", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + database: { + serializedName: "properties.database", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", + clientIp: { + serializedName: "properties.clientIp", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "properties.errors", + applicationName: { + serializedName: "properties.applicationName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } + name: "String" } }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + principalName: { + serializedName: "properties.principalName", readOnly: true, type: { name: "String" } }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", - readOnly: true, + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", type: { - name: "Number" + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" } } } } }; -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", + className: "ManagedTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const DataWarehouseUserActivities: coreClient.CompositeMapper = { +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataWarehouseUserActivities", + className: "ManagedInstanceAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", - readOnly: true, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const DeletedServer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeletedServer", - modelProperties: { - ...ProxyResource.type.modelProperties, - version: { - serializedName: "properties.version", - readOnly: true, + }, + login: { + serializedName: "properties.login", type: { name: "String" } }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "DateTime" + name: "Uuid" } }, - originalId: { - serializedName: "properties.originalId", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } - }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAzureADOnlyAuthentication", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "String" + name: "Boolean" } } } } }; -export const ElasticPoolOperation: coreClient.CompositeMapper = { +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperation", + className: "ManagedInstanceEncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + serverKeyName: { + serializedName: "properties.serverKeyName", type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + uri: { + serializedName: "properties.uri", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedInstanceKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceKey", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + uri: { + serializedName: "properties.uri", type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - isUserError: { - serializedName: "properties.isUserError", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", readOnly: true, type: { name: "Boolean" } + } + } + } +}; + +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", + type: { + name: "String" + } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Boolean" + name: "Number" } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "String" + name: "Number" } }, - uri: { - serializedName: "properties.uri", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - thumbprint: { - serializedName: "properties.thumbprint", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "Boolean" + name: "Number" } - } - } - } -}; - -export const FailoverGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + }, + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "Boolean" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "DateTime" } }, - replicationRole: { - serializedName: "properties.replicationRole", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - replicationState: { - serializedName: "properties.replicationState", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - partnerServers: { - serializedName: "properties.partnerServers", + operationParameters: { + serializedName: "properties.operationParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - databases: { - serializedName: "properties.databases", + operationSteps: { + serializedName: "properties.operationSteps", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const InstanceFailoverGroup: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroup", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" + className: "ManagedInstancePrivateEndpointProperty" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, - type: { - name: "String" + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - replicationState: { - serializedName: "properties.replicationState", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - partnerRegions: { - serializedName: "properties.partnerRegions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } - } - }, - managedInstancePairs: { - serializedName: "properties.managedInstancePairs", + } + } + } +}; + +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" - } - } + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" } } } } }; -export const JobCredential: coreClient.CompositeMapper = { +export const TdeCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredential", + className: "TdeCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + privateBlob: { + serializedName: "properties.privateBlob", type: { name: "String" } }, - password: { - serializedName: "properties.password", + certPassword: { + serializedName: "properties.certPassword", type: { name: "String" } @@ -10234,302 +12038,299 @@ export const JobCredential: coreClient.CompositeMapper = { } }; -export const JobExecution: coreClient.CompositeMapper = { +export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecution", + className: "ManagedInstanceVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", - readOnly: true, - type: { - name: "Number" - } - }, - stepName: { - serializedName: "properties.stepName", - readOnly: true, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - stepId: { - serializedName: "properties.stepId", - readOnly: true, - type: { - name: "Number" - } - }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { - name: "Uuid" + name: "String" } }, - lifecycle: { - serializedName: "properties.lifecycle", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "String" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } - }, - createTime: { - serializedName: "properties.createTime", - readOnly: true, + } + } + } +}; + +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "DateTime" + name: "Composite", + className: "SystemData" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - currentAttempts: { - serializedName: "properties.currentAttempts", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "DateTime" + name: "Boolean" } }, - lastMessage: { - serializedName: "properties.lastMessage", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - 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", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - version: { - serializedName: "properties.version", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - schedule: { - serializedName: "properties.schedule", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Composite", - className: "JobSchedule" + name: "DateTime" } } } } }; -export const JobStep: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStep", + className: "PrivateEndpointConnection", 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: "PrivateEndpointProperty" } }, - output: { - serializedName: "properties.output", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "JobStepOutput" + className: "PrivateLinkServiceConnectionStateProperty" } }, - executionOptions: { - serializedName: "properties.executionOptions", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "JobStepExecutionOptions" + name: "String" } } } } }; -export const JobTargetGroup: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroup", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } + name: "Composite", + className: "PrivateLinkResourceProperties" } } } } }; -export const JobVersion: coreClient.CompositeMapper = { +export const RecoverableManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobVersion", + className: "RecoverableManagedDatabase", modelProperties: { - ...ProxyResource.type.modelProperties + ...ProxyResource.type.modelProperties, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const LongTermRetentionPolicy: coreClient.CompositeMapper = { +export const RestorePoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicy", + className: "RestorePoint", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + restorePointType: { + serializedName: "properties.restorePointType", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", + readOnly: true, type: { - name: "Number" + name: "DateTime" + } + }, + restorePointLabel: { + serializedName: "properties.restorePointLabel", + readOnly: true, + type: { + name: "String" } } } } }; -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { +export const ServerAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowOptions", + className: "ServerAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + desiredState: { + serializedName: "properties.desiredState", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + actualState: { + serializedName: "properties.actualState", + readOnly: true, type: { - name: "Sequence", - element: { + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "MaintenanceWindowTimeRange" + className: "AutomaticTuningServerOptions" } } } - }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + } + } + } +}; + +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAzureADAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Number" + name: "String" } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + login: { + serializedName: "properties.login", type: { - name: "Number" + name: "String" } }, - minCycles: { - serializedName: "properties.minCycles", + sid: { + serializedName: "properties.sid", type: { - name: "Number" + name: "Uuid" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + tenantId: { + serializedName: "properties.tenantId", type: { - name: "Number" + name: "Uuid" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", + readOnly: true, type: { name: "Boolean" } @@ -10538,52 +12339,85 @@ export const MaintenanceWindowOptions: coreClient.CompositeMapper = { } }; -export const MaintenanceWindows: coreClient.CompositeMapper = { +export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindows", + className: "ServerAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", + type: { + name: "Boolean" } } } } }; -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", + className: "ServerDevOpsAuditingSettings", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" } } } } }; -export const ManagedInstanceQuery: coreClient.CompositeMapper = { +export const ServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQuery", + className: "ServerDnsAlias", modelProperties: { ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, type: { name: "String" } @@ -10592,152 +12426,189 @@ export const ManagedInstanceQuery: coreClient.CompositeMapper = { } }; -export const QueryStatistics: coreClient.CompositeMapper = { +export const ServerKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistics", + className: "ServerKey", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - queryId: { - serializedName: "properties.queryId", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - intervals: { - serializedName: "properties.intervals", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricInterval" - } - } + name: "DateTime" + } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, + type: { + name: "Boolean" } } } } }; -export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { +export const ServerOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", + className: "ServerOperation", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" } }, - percentCompleted: { - serializedName: "properties.percentCompleted", + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { name: "Number" } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { name: "Number" } }, - lastUploadedFileName: { - serializedName: "properties.lastUploadedFileName", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { name: "DateTime" } }, - blockReason: { - serializedName: "properties.blockReason", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } } } } }; -export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", + className: "ServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, state: { serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + allowedValues: ["Enabled", "Disabled"] } }, disabledAlerts: { @@ -10746,13 +12617,77 @@ export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" + 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" } } } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + trustScopes: { + serializedName: "properties.trustScopes", type: { name: "Sequence", element: { @@ -10761,15 +12696,25 @@ export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { } } } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + } + } + } +}; + +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } @@ -10780,632 +12725,568 @@ export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Number" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + } + } + } +}; + +export const SqlAgentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlAgentConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "String" } } } } }; -export const SecurityEvent: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEvent", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - securityEventType: { - serializedName: "properties.securityEventType", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "Number" } }, - subscription: { - serializedName: "properties.subscription", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - server: { - serializedName: "properties.server", + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" } - }, - database: { - serializedName: "properties.database", + } + } + } +}; + +export const SyncAgent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgent", + modelProperties: { + ...ProxyResource.type.modelProperties, + namePropertiesName: { + serializedName: "properties.name", readOnly: true, type: { name: "String" } }, - clientIp: { - serializedName: "properties.clientIp", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - applicationName: { - serializedName: "properties.applicationName", + lastAliveTime: { + serializedName: "properties.lastAliveTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - principalName: { - serializedName: "properties.principalName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", + isUpToDate: { + serializedName: "properties.isUpToDate", + readOnly: true, type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" + name: "Boolean" + } + }, + expiryTime: { + serializedName: "properties.expiryTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String" } } } } }; -export const SensitivityLabel: coreClient.CompositeMapper = { +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "SyncAgentLinkedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - managedBy: { - serializedName: "managedBy", + databaseType: { + serializedName: "properties.databaseType", readOnly: true, type: { name: "String" } }, - schemaName: { - serializedName: "properties.schemaName", + databaseId: { + serializedName: "properties.databaseId", readOnly: true, type: { name: "String" } }, - tableName: { - serializedName: "properties.tableName", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - columnName: { - serializedName: "properties.columnName", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - labelName: { - serializedName: "properties.labelName", - type: { - name: "String" - } - }, - labelId: { - serializedName: "properties.labelId", - type: { - name: "String" - } - }, - informationType: { - serializedName: "properties.informationType", - type: { - name: "String" - } - }, - informationTypeId: { - serializedName: "properties.informationTypeId", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - isDisabled: { - serializedName: "properties.isDisabled", + userName: { + serializedName: "properties.userName", readOnly: true, type: { - name: "Boolean" - } - }, - rank: { - serializedName: "properties.rank", - type: { - name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] + name: "String" } } } } }; -export const SensitivityLabelUpdate: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelUpdate", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: ["set", "remove"] + name: "Composite", + className: "Sku" } }, - schema: { - serializedName: "properties.schema", + interval: { + serializedName: "properties.interval", type: { - name: "String" + name: "Number" } }, - table: { - serializedName: "properties.table", + lastSyncTime: { + serializedName: "properties.lastSyncTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - column: { - serializedName: "properties.column", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { - name: "Composite", - className: "SensitivityLabel" + name: "String" } - } - } - } -}; - -export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate", - modelProperties: { - ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + }, + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { - name: "Enum", - allowedValues: ["enable", "disable"] + name: "String" + } + }, + syncState: { + serializedName: "properties.syncState", + readOnly: true, + type: { + name: "String" } }, schema: { serializedName: "properties.schema", type: { - name: "String" + name: "Composite", + className: "SyncGroupSchema" } }, - table: { - serializedName: "properties.table", + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", type: { - name: "String" + name: "Boolean" } }, - column: { - serializedName: "properties.column", + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedTransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, + type: { + name: "String" } } } } }; -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { +export const SyncMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministrator", + className: "SyncMember", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + databaseType: { + serializedName: "properties.databaseType", type: { name: "String" } }, - login: { - serializedName: "properties.login", + syncAgentId: { + serializedName: "properties.syncAgentId", type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { name: "Uuid" } }, - tenantId: { - serializedName: "properties.tenantId", + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", type: { - name: "Uuid" + name: "String" } - } - } - } -}; - -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { name: "Boolean" } - } - } - } -}; - -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceEncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + serverName: { + serializedName: "properties.serverName", type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + databaseName: { + serializedName: "properties.databaseName", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + userName: { + serializedName: "properties.userName", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + password: { + serializedName: "properties.password", type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + syncDirection: { + serializedName: "properties.syncDirection", type: { - name: "Boolean" + name: "String" + } + }, + syncState: { + serializedName: "properties.syncState", + readOnly: true, + type: { + name: "String" } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const TimeZone: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "TimeZone", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + timeZoneId: { + serializedName: "properties.timeZoneId", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "properties.thumbprint", + displayName: { + serializedName: "properties.displayName", readOnly: true, 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 VirtualNetworkRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy", + className: "VirtualNetworkRule", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "String" + name: "Boolean" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } - }, - weekOfYear: { - serializedName: "properties.weekOfYear", - type: { - name: "Number" - } } } } }; -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const WorkloadClassifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "WorkloadClassifier", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", - readOnly: true, + memberName: { + serializedName: "properties.memberName", type: { name: "String" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + label: { + serializedName: "properties.label", type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + context: { + serializedName: "properties.context", type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, startTime: { serializedName: "properties.startTime", - readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + endTime: { + serializedName: "properties.endTime", type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + importance: { + serializedName: "properties.importance", type: { - name: "Number" + name: "String" } - }, - errorDescription: { - serializedName: "properties.errorDescription", - readOnly: true, + } + } + } +}; + +export const WorkloadGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + minResourcePercent: { + serializedName: "properties.minResourcePercent", type: { - name: "String" + name: "Number" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", type: { name: "Number" } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", type: { - name: "Boolean" + name: "Number" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "DateTime" + name: "Number" } }, - description: { - serializedName: "properties.description", - readOnly: true, + importance: { + serializedName: "properties.importance", type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, - type: { - name: "Boolean" - } - }, - operationParameters: { - serializedName: "properties.operationParameters", - type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" - } - }, - operationSteps: { - serializedName: "properties.operationSteps", + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "Number" } } } } }; -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", + className: "LogicalDatabaseTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { +export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateLink", + className: "BackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties" + name: "Number" + } + }, + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", + type: { + name: "Number" } } } } }; -export const TdeCertificate: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TdeCertificate", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", + operationMode: { + serializedName: "properties.operationMode", type: { name: "String" } }, - certPassword: { - serializedName: "properties.certPassword", + storageKeyType: { + serializedName: "properties.storageKeyType", + type: { + name: "String" + } + }, + storageKey: { + serializedName: "properties.storageKey", + type: { + name: "String" + } + }, + storageUri: { + serializedName: "properties.storageUri", type: { name: "String" } @@ -11414,136 +13295,153 @@ export const TdeCertificate: coreClient.CompositeMapper = { } }; -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + requestId: { + serializedName: "properties.requestId", + readOnly: true, + type: { + name: "Uuid" + } + }, + requestType: { + serializedName: "properties.requestType", + readOnly: true, type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, + type: { + name: "String" } } } } }; -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const OperationsHealth: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationsHealth", - modelProperties: { - ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + }, + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, + type: { + name: "Number" + } + }, + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - health: { - serializedName: "properties.health", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, description: { @@ -11552,33 +13450,47 @@ export const OperationsHealth: coreClient.CompositeMapper = { type: { name: "String" } + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const DatabaseUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "DatabaseUsage", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + displayName: { + serializedName: "properties.displayName", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + limit: { + serializedName: "properties.limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" @@ -11588,31 +13500,38 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const LedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "LedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { - name: "Composite", - className: "PrivateLinkResourceProperties" + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { +export const OutboundFirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "OutboundFirewallRule", modelProperties: { ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -11622,81 +13541,84 @@ export const RecoverableManagedDatabase: coreClient.CompositeMapper = { } }; -export const RestorePoint: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePoint", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + requestId: { + serializedName: "properties.requestId", + readOnly: true, + type: { + name: "Uuid" + } + }, + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - restorePointType: { - serializedName: "properties.restorePointType", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { - name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - restorePointCreationDate: { - serializedName: "properties.restorePointCreationDate", + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - restorePointLabel: { - serializedName: "properties.restorePointLabel", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerAutomaticTuning: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] + name: "String" } }, - actualState: { - serializedName: "properties.actualState", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] + name: "String" } }, - options: { - serializedName: "properties.options", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { - name: "Dictionary", - value: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { type: { name: "Composite", - className: "AutomaticTuningServerOptions" + className: "PrivateEndpointConnectionRequestStatus" } } } @@ -11705,119 +13627,180 @@ export const ServerAutomaticTuning: coreClient.CompositeMapper = { } }; -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + requestId: { + serializedName: "properties.requestId", + readOnly: true, + type: { + name: "Uuid" + } + }, + operationType: { + serializedName: "properties.operationType", + readOnly: true, type: { name: "String" } }, - login: { - serializedName: "properties.login", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", + readOnly: true, type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + message: { + serializedName: "properties.message", + readOnly: true, + type: { + name: "String" } } } } }; -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const LongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADOnlyAuthentication", + className: "LongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, + serverCreateTime: { + serializedName: "properties.serverCreateTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, + type: { + name: "String" + } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - state: { - serializedName: "properties.state", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, type: { - name: "Uuid" + name: "DateTime" } - } - } - } -}; - -export const ServerDnsAlias: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAlias", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" @@ -11827,324 +13810,374 @@ export const ServerDnsAlias: coreClient.CompositeMapper = { } }; -export const ServerKey: coreClient.CompositeMapper = { +export const RestorableDroppedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKey", + className: "RestorableDroppedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, location: { serializedName: "location", - readOnly: true, type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + readOnly: true, type: { - name: "String" + name: "Number" } }, - uri: { - serializedName: "properties.uri", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - thumbprint: { - serializedName: "properties.thumbprint", + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - creationDate: { - serializedName: "properties.creationDate", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { name: "DateTime" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const ServerConnectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "ServerConnectionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + connectionType: { + serializedName: "properties.connectionType", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributedAvailabilityGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + targetDatabase: { + serializedName: "properties.targetDatabase", + type: { + name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + sourceEndpoint: { + serializedName: "properties.sourceEndpoint", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + primaryAvailabilityGroupName: { + serializedName: "properties.primaryAvailabilityGroupName", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + secondaryAvailabilityGroupName: { + serializedName: "properties.secondaryAvailabilityGroupName", type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + replicationMode: { + serializedName: "properties.replicationMode", + type: { + name: "String" + } + }, + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - errorDescription: { - serializedName: "properties.errorDescription", + sourceReplicaId: { + serializedName: "properties.sourceReplicaId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + targetReplicaId: { + serializedName: "properties.targetReplicaId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - isUserError: { - serializedName: "properties.isUserError", + linkState: { + serializedName: "properties.linkState", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + lastHardenedLsn: { + serializedName: "properties.lastHardenedLsn", readOnly: true, type: { - name: "DateTime" + name: "String" + } + } + } + } +}; + +export const ServerTrustCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + publicBlob: { + serializedName: "properties.publicBlob", + type: { + name: "String" } }, - description: { - serializedName: "properties.description", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + certificateName: { + serializedName: "properties.certificateName", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const EndpointCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "EndpointCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + publicBlob: { + serializedName: "properties.publicBlob", type: { - name: "Composite", - className: "SystemData" + name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const SensitivityLabel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabel", + modelProperties: { + ...ProxyResource.type.modelProperties, + managedBy: { + serializedName: "managedBy", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + schemaName: { + serializedName: "properties.schemaName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + readOnly: true, + type: { + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + columnName: { + serializedName: "properties.columnName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + labelName: { + serializedName: "properties.labelName", type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + labelId: { + serializedName: "properties.labelId", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + informationType: { + serializedName: "properties.informationType", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + informationTypeId: { + serializedName: "properties.informationTypeId", type: { - name: "Number" + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", + isDisabled: { + serializedName: "properties.isDisabled", 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" - } - } + name: "Boolean" } }, - trustScopes: { - serializedName: "properties.trustScopes", + rank: { + serializedName: "properties.rank", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] } } } } }; -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "SensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["set", "remove"] + } + }, + schema: { + serializedName: "properties.schema", type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + table: { + serializedName: "properties.table", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + column: { + serializedName: "properties.column", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "SensitivityLabel" } } } } }; -export const SqlAgentConfiguration: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlAgentConfiguration", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["enable", "disable"] + } + }, + schema: { + serializedName: "properties.schema", + type: { + name: "String" + } + }, + table: { + serializedName: "properties.table", + type: { + name: "String" + } + }, + column: { + serializedName: "properties.column", type: { name: "String" } @@ -12153,439 +14186,419 @@ export const SqlAgentConfiguration: coreClient.CompositeMapper = { } }; -export const SubscriptionUsage: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsage", + className: "ServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - unit: { - serializedName: "properties.unit", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SyncAgent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgent", - modelProperties: { - ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", - readOnly: true, + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "DateTime" + name: "Boolean" } }, state: { serializedName: "properties.state", - readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Boolean" + name: "String" } }, - expiryTime: { - serializedName: "properties.expiryTime", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "DateTime" + name: "String" } }, - version: { - serializedName: "properties.version", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + kind: { + serializedName: "kind", readOnly: true, type: { - name: "String" + 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: "Boolean" } }, - databaseId: { - serializedName: "properties.databaseId", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "properties.description", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } } } } }; -export const SyncGroup: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroup", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + predicateExpression: { + serializedName: "properties.predicateExpression", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - interval: { - serializedName: "properties.interval", + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - syncState: { - serializedName: "properties.syncState", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - schema: { - serializedName: "properties.schema", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Composite", - className: "SyncGroupSchema" + name: "Boolean" } }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", + state: { + serializedName: "properties.state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Number" + name: "String" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Boolean" + name: "String" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const SyncMember: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMember", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - syncAgentId: { - serializedName: "properties.syncAgentId", + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Uuid" + name: "Number" } }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { name: "Boolean" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - serverName: { - serializedName: "properties.serverName", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - databaseName: { - serializedName: "properties.databaseName", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - userName: { - serializedName: "properties.userName", + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - password: { - serializedName: "properties.password", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - syncState: { - serializedName: "properties.syncState", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const TimeZone: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZone", + className: "DatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } - } - } - } -}; - -export const UpdateManagedInstanceDnsServersOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateManagedInstanceDnsServersOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + }, + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const VirtualNetworkRule: coreClient.CompositeMapper = { +export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRule", + className: "ServerAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + state: { + serializedName: "properties.state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - state: { - serializedName: "properties.state", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const WorkloadClassifier: coreClient.CompositeMapper = { +export const ManagedServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifier", + className: "ManagedServerDnsAlias", modelProperties: { ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", - type: { - name: "String" - } - }, - label: { - serializedName: "properties.label", - type: { - name: "String" - } - }, - context: { - serializedName: "properties.context", - type: { - name: "String" - } - }, - startTime: { - serializedName: "properties.startTime", - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + publicAzureDnsRecord: { + serializedName: "properties.publicAzureDnsRecord", + readOnly: true, type: { name: "String" } @@ -12594,220 +14607,264 @@ export const WorkloadClassifier: coreClient.CompositeMapper = { } }; -export const WorkloadGroup: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroup", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", modelProperties: { ...ProxyResource.type.modelProperties, - minResourcePercent: { - serializedName: "properties.minResourcePercent", - type: { - name: "Number" - } - }, - maxResourcePercent: { - serializedName: "properties.maxResourcePercent", - type: { - name: "Number" - } - }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", - type: { - name: "Number" - } - }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", - type: { - name: "Number" - } - }, - importance: { - serializedName: "properties.importance", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + results: { + serializedName: "properties.results", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } } } } } }; -export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + systemData: { + serializedName: "systemData", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Composite", + className: "SystemData" + } + }, + latestScan: { + serializedName: "properties.latestScan", + type: { + name: "Boolean" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } } } } } }; -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + results: { + serializedName: "properties.results", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const DatabaseExtensions: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseExtensions", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", modelProperties: { ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", - type: { - name: "String" - } - }, - storageKeyType: { - serializedName: "properties.storageKeyType", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - storageKey: { - serializedName: "properties.storageKey", + latestScan: { + serializedName: "properties.latestScan", type: { - name: "String" + name: "Boolean" } }, - storageUri: { - serializedName: "properties.storageUri", + results: { + serializedName: "properties.results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult", + className: "SqlVulnerabilityAssessmentScanResults", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "Uuid" + name: "Composite", + className: "SystemData" } }, - requestType: { - serializedName: "properties.requestType", + ruleId: { + serializedName: "properties.ruleId", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + isTrimmed: { + serializedName: "properties.isTrimmed", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - status: { - serializedName: "properties.status", + queryResults: { + serializedName: "properties.queryResults", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + remediation: { + serializedName: "properties.remediation", type: { - name: "String" + name: "Composite", + className: "Remediation" + } + }, + baselineAdjustedResult: { + serializedName: "properties.baselineAdjustedResult", + type: { + name: "Composite", + className: "BaselineAdjustedResult" + } + }, + ruleMetadata: { + serializedName: "properties.ruleMetadata", + type: { + name: "Composite", + className: "VaRule" } } } } }; -export const DatabaseOperation: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperation", + className: "SqlVulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - operation: { - serializedName: "properties.operation", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + triggerType: { + serializedName: "properties.triggerType", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - serverName: { - serializedName: "properties.serverName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" @@ -12820,119 +14877,115 @@ export const DatabaseOperation: coreClient.CompositeMapper = { name: "DateTime" } }, - state: { - serializedName: "properties.state", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorCode: { - serializedName: "properties.errorCode", + errors: { + serializedName: "properties.errors", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentScanError" + } + } } }, - 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", + sqlVersion: { + serializedName: "properties.sqlVersion", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + highSeverityFailedRulesCount: { + serializedName: "properties.highSeverityFailedRulesCount", readOnly: true, type: { - name: "DateTime" + name: "Number" } - }, - description: { - serializedName: "properties.description", + }, + mediumSeverityFailedRulesCount: { + serializedName: "properties.mediumSeverityFailedRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - isCancellable: { - serializedName: "properties.isCancellable", + lowSeverityFailedRulesCount: { + serializedName: "properties.lowSeverityFailedRulesCount", readOnly: true, type: { - name: "Boolean" + name: "Number" } - } - } - } -}; - -export const DatabaseUsage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseUsage", - modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", + }, + totalPassedRulesCount: { + serializedName: "properties.totalPassedRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - currentValue: { - serializedName: "properties.currentValue", + totalFailedRulesCount: { + serializedName: "properties.totalFailedRulesCount", readOnly: true, type: { name: "Number" } }, - limit: { - serializedName: "properties.limit", + totalRulesCount: { + serializedName: "properties.totalRulesCount", readOnly: true, type: { name: "Number" } }, - unit: { - serializedName: "properties.unit", + isBaselineApplied: { + serializedName: "properties.isBaselineApplied", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const LedgerDigestUploads: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploads", + className: "SqlVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, state: { serializedName: "properties.state", - readOnly: true, type: { name: "Enum", allowedValues: ["Enabled", "Disabled"] @@ -12942,260 +14995,349 @@ export const LedgerDigestUploads: coreClient.CompositeMapper = { } }; -export const OutboundFirewallRule: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRule", + className: "ManagedDatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] + } + }, + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const ReplicationLink: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLink", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - partnerServer: { - serializedName: "properties.partnerServer", + typePropertiesType: { + serializedName: "properties.type", readOnly: true, type: { name: "String" } }, - partnerDatabase: { - serializedName: "properties.partnerDatabase", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - partnerLocation: { - serializedName: "properties.partnerLocation", + blockReason: { + serializedName: "properties.blockReason", readOnly: true, type: { name: "String" } }, - role: { - serializedName: "properties.role", + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "String" } }, - partnerRole: { - serializedName: "properties.partnerRole", + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "DateTime" } }, - replicationMode: { - serializedName: "properties.replicationMode", + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", readOnly: true, type: { name: "DateTime" } }, - percentComplete: { - serializedName: "properties.percentComplete", + percentCompleted: { + serializedName: "properties.percentCompleted", readOnly: true, type: { name: "Number" } }, - replicationState: { - serializedName: "properties.replicationState", + currentRestoredSizeMB: { + serializedName: "properties.currentRestoredSizeMB", readOnly: true, type: { - name: "String" + name: "Number" } }, - isTerminationAllowed: { - serializedName: "properties.isTerminationAllowed", + currentRestorePlanSizeMB: { + serializedName: "properties.currentRestorePlanSizeMB", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - linkType: { - serializedName: "properties.linkType", + currentBackupType: { + serializedName: "properties.currentBackupType", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ImportExportOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportExportOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + }, + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - requestType: { - serializedName: "properties.requestType", + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", readOnly: true, type: { - name: "String" + name: "Number" } }, - queuedTime: { - serializedName: "properties.queuedTime", + numberOfFilesQueued: { + serializedName: "properties.numberOfFilesQueued", readOnly: true, type: { - name: "String" + name: "Number" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + numberOfFilesSkipped: { + serializedName: "properties.numberOfFilesSkipped", readOnly: true, type: { - name: "String" + name: "Number" } }, - blobUri: { - serializedName: "properties.blobUri", + numberOfFilesRestoring: { + serializedName: "properties.numberOfFilesRestoring", readOnly: true, type: { - name: "String" + name: "Number" } }, - serverName: { - serializedName: "properties.serverName", + numberOfFilesRestored: { + serializedName: "properties.numberOfFilesRestored", + readOnly: true, + type: { + name: "Number" + } + }, + numberOfFilesUnrestorable: { + serializedName: "properties.numberOfFilesUnrestorable", + readOnly: true, + type: { + name: "Number" + } + }, + fullBackupSets: { + serializedName: "properties.fullBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + diffBackupSets: { + serializedName: "properties.diffBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + logBackupSets: { + serializedName: "properties.logBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" + } + } + } + } + } + } +}; + +export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const ReplicationLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + partnerServer: { + serializedName: "properties.partnerServer", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + partnerDatabase: { + serializedName: "properties.partnerDatabase", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + partnerLocation: { + serializedName: "properties.partnerLocation", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + role: { + serializedName: "properties.role", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" - } - } - } - } - } - } -}; - -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionBackupOperationResult", - 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" + ] } }, - operationType: { - serializedName: "properties.operationType", + replicationMode: { + serializedName: "properties.replicationMode", readOnly: true, type: { name: "String" } }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", + replicationState: { + serializedName: "properties.replicationState", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + isTerminationAllowed: { + serializedName: "properties.isTerminationAllowed", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - message: { - serializedName: "properties.message", + linkType: { + serializedName: "properties.linkType", readOnly: true, type: { name: "String" @@ -13205,193 +15347,206 @@ export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper } }; -export const LongTermRetentionBackup: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackup", + className: "ManagedDatabaseMoveOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - serverName: { - serializedName: "properties.serverName", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - serverCreateTime: { - serializedName: "properties.serverCreateTime", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" } }, - databaseName: { - serializedName: "properties.databaseName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", + operationMode: { + serializedName: "properties.operationMode", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupTime: { - serializedName: "properties.backupTime", + sourceManagedInstanceName: { + serializedName: "properties.sourceManagedInstanceName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + targetManagedInstanceName: { + serializedName: "properties.targetManagedInstanceName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", readOnly: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + targetManagedInstanceId: { + serializedName: "properties.targetManagedInstanceId", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + }, + sourceDatabaseName: { + serializedName: "properties.sourceDatabaseName", readOnly: true, type: { name: "String" } }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - backupTime: { - serializedName: "properties.backupTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const ManagedInstanceDtc: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "ManagedInstanceDtc", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", + dtcEnabled: { + serializedName: "properties.dtcEnabled", type: { - name: "Composite", - className: "Sku" + name: "Boolean" } }, - location: { - serializedName: "location", + securitySettings: { + serializedName: "properties.securitySettings", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings" } }, - tags: { - serializedName: "tags", + externalDnsSuffixSearchList: { + serializedName: "properties.externalDnsSuffixSearchList", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - databaseName: { - serializedName: "properties.databaseName", + dtcHostNameDnsSuffix: { + serializedName: "properties.dtcHostNameDnsSuffix", readOnly: true, type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - readOnly: true, - type: { - name: "Number" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - deletionDate: { - serializedName: "properties.deletionDate", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + } + } + } +}; + +export const SynapseLinkWorkspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseLinkWorkspace", + modelProperties: { + ...ProxyResource.type.modelProperties, + workspaces: { + serializedName: "properties.workspaces", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspaceInfoProperties" + } + } } - }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + } + } + } +}; + +export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateVirtualClusterDnsServersOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" @@ -13401,52 +15556,37 @@ export const RestorableDroppedDatabase: coreClient.CompositeMapper = { } }; -export const ServerConnectionPolicy: coreClient.CompositeMapper = { +export const ServerConfigurationOption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "ServerConfigurationOption", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + serverConfigurationOptionValue: { + serializedName: "properties.serverConfigurationOptionValue", type: { - name: "String" + name: "Number" } }, - kind: { - serializedName: "kind", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - connectionType: { - serializedName: "properties.connectionType", - type: { - name: "String" - } } } } }; -export const ElasticPool: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPool", + className: "ManagedLedgerDigestUploads", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - kind: { - serializedName: "kind", - readOnly: true, + ...ProxyResource.type.modelProperties, + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { name: "String" } @@ -13457,41 +15597,60 @@ export const ElasticPool: coreClient.CompositeMapper = { type: { name: "String" } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + } + } + } +}; + +export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartStopManagedInstanceSchedule", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "DateTime" + name: "Composite", + className: "SystemData" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + description: { + defaultValue: "", + serializedName: "properties.description", type: { - name: "Number" + name: "String" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + timeZoneId: { + defaultValue: "UTC", + serializedName: "properties.timeZoneId", type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + scheduleList: { + serializedName: "properties.scheduleList", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScheduleItem" + } + } } }, - licenseType: { - serializedName: "properties.licenseType", + nextRunAction: { + serializedName: "properties.nextRunAction", + readOnly: true, type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + nextExecutionTime: { + serializedName: "properties.nextExecutionTime", + readOnly: true, type: { name: "String" } @@ -13565,115 +15724,117 @@ export const JobAgent: coreClient.CompositeMapper = { } }; -export const ManagedDatabase: coreClient.CompositeMapper = { +export const Server: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabase", + className: "Server", modelProperties: { ...TrackedResource.type.modelProperties, - collation: { - serializedName: "properties.collation", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ResourceIdentity" } }, - status: { - serializedName: "properties.status", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", - readOnly: true, + administratorLogin: { + serializedName: "properties.administratorLogin", type: { - name: "DateTime" + name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { - name: "DateTime" + name: "String" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + version: { + serializedName: "properties.version", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - createMode: { - serializedName: "properties.createMode", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { name: "String" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection" + } + } } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + workspaceFeature: { + serializedName: "properties.workspaceFeature", + readOnly: true, type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + federatedClientId: { + serializedName: "properties.federatedClientId", type: { - name: "String" + name: "Uuid" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", + administrators: { + serializedName: "properties.administrators", type: { - name: "Boolean" + name: "Composite", + className: "ServerExternalAdministrator" } }, - lastBackupName: { - serializedName: "properties.lastBackupName", + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", type: { name: "String" } @@ -13682,58 +15843,55 @@ export const ManagedDatabase: coreClient.CompositeMapper = { } }; -export const VirtualCluster: coreClient.CompositeMapper = { +export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualCluster", + className: "RestorableDroppedManagedDatabase", modelProperties: { ...TrackedResource.type.modelProperties, - subnetId: { - serializedName: "properties.subnetId", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - family: { - serializedName: "properties.family", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - childResources: { - serializedName: "properties.childResources", + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const Server: coreClient.CompositeMapper = { +export const ElasticPool: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Server", + className: "ElasticPool", modelProperties: { ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "ResourceIdentity" + className: "Sku" } }, kind: { @@ -13743,99 +15901,55 @@ export const Server: coreClient.CompositeMapper = { name: "String" } }, - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, - type: { - name: "String" - } - }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, - type: { - name: "String" - } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + state: { + serializedName: "properties.state", readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerPrivateEndpointConnection" - } - } - } - }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - workspaceFeature: { - serializedName: "properties.workspaceFeature", - readOnly: true, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "Number" } }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", type: { - name: "String" + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" } }, - federatedClientId: { - serializedName: "properties.federatedClientId", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Uuid" + name: "Boolean" } }, - keyId: { - serializedName: "properties.keyId", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - administrators: { - serializedName: "properties.administrators", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Composite", - className: "ServerExternalAdministrator" + name: "String" } }, - restrictOutboundNetworkAccess: { - serializedName: "properties.restrictOutboundNetworkAccess", + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "String" + name: "Number" } } } @@ -14118,10 +16232,168 @@ export const Database: coreClient.CompositeMapper = { name: "Uuid" } }, - primaryDelegatedIdentityClientId: { - serializedName: "properties.primaryDelegatedIdentityClientId", + sourceResourceId: { + serializedName: "properties.sourceResourceId", type: { - name: "Uuid" + name: "String" + } + } + } + } +}; + +export const ManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", + readOnly: true, + type: { + name: "DateTime" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", + readOnly: true, + type: { + name: "String" + } + }, + catalogCollation: { + serializedName: "properties.catalogCollation", + type: { + name: "String" + } + }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + storageContainerUri: { + serializedName: "properties.storageContainerUri", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + storageContainerIdentity: { + serializedName: "properties.storageContainerIdentity", + type: { + name: "String" + } + }, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", + type: { + name: "String" + } + }, + failoverGroupId: { + serializedName: "properties.failoverGroupId", + readOnly: true, + type: { + name: "String" + } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", + type: { + name: "String" + } + }, + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", + type: { + name: "Boolean" + } + }, + lastBackupName: { + serializedName: "properties.lastBackupName", + type: { + name: "String" + } + } + } + } +}; + +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" + } + } } } } @@ -14340,58 +16612,42 @@ export const ManagedInstance: coreClient.CompositeMapper = { } }; -export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { +export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabase", + className: "FirewallRule", modelProperties: { - ...TrackedResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + ...ProxyResourceWithWritableName.type.modelProperties, + startIpAddress: { + serializedName: "properties.startIpAddress", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - deletionDate: { - serializedName: "properties.deletionDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + endIpAddress: { + serializedName: "properties.endIpAddress", type: { - name: "DateTime" + name: "String" } } } } }; -export const FirewallRule: coreClient.CompositeMapper = { +export const IPv6FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallRule", + className: "IPv6FirewallRule", modelProperties: { ...ProxyResourceWithWritableName.type.modelProperties, - startIpAddress: { - serializedName: "properties.startIpAddress", + startIPv6Address: { + serializedName: "properties.startIPv6Address", type: { name: "String" } }, - endIpAddress: { - serializedName: "properties.endIpAddress", + 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..92a87e276bd9 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, @@ -51,13 +46,7 @@ import { LongTermRetentionPolicy as LongTermRetentionPolicyMapper, MaintenanceWindows as MaintenanceWindowsMapper, ManagedBackupShortTermRetentionPolicy as ManagedBackupShortTermRetentionPolicyMapper, - ManagedDatabase as ManagedDatabaseMapper, - 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 +72,6 @@ import { SyncAgent as SyncAgentMapper, SyncGroup as SyncGroupMapper, SyncMember as SyncMemberMapper, - VirtualClusterUpdate as VirtualClusterUpdateMapper, VirtualNetworkRule as VirtualNetworkRuleMapper, WorkloadClassifier as WorkloadClassifierMapper, WorkloadGroup as WorkloadGroupMapper, @@ -98,9 +86,38 @@ import { CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, + 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, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, + ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, + ManagedDatabase as ManagedDatabaseMapper, + ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, + ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, + CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, + ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, + ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, + SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, + ManagedInstanceDtc as ManagedInstanceDtcMapper, + VirtualClusterUpdate as VirtualClusterUpdateMapper, ManagedInstance as ManagedInstanceMapper, ManagedInstanceUpdate as ManagedInstanceUpdateMapper, - ServerConnectionPolicy as ServerConnectionPolicyMapper + ServerConfigurationOption as ServerConfigurationOptionMapper, + ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, + StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -268,7 +285,7 @@ export const skipToken: OperationQueryParameter = { export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-05-01-preview", + defaultValue: "2022-02-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -287,15 +304,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 +319,6 @@ export const replicaType: OperationQueryParameter = { } }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper -}; - export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: ImportExistingDatabaseDefinitionMapper @@ -320,7 +326,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 +365,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 +384,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 +395,7 @@ export const communicationLinkName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: ServerCommunicationLinkMapper }; @@ -422,42 +411,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 +444,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 +582,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -629,7 +598,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -668,12 +637,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 +713,7 @@ export const encryptionProtectorName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: EncryptionProtectorMapper }; @@ -760,12 +729,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 +750,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 +776,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 +797,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 +818,7 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: JobCredentialMapper }; @@ -936,7 +905,7 @@ export const jobExecutionId: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: JobMapper }; @@ -963,7 +932,7 @@ export const jobVersion: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: JobStepMapper }; @@ -990,7 +959,7 @@ export const targetGroupName: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: JobTargetGroupMapper }; @@ -1016,7 +985,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: LongTermRetentionPolicyMapper }; @@ -1043,7 +1012,7 @@ export const maintenanceWindowName: OperationQueryParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: MaintenanceWindowsMapper }; @@ -1070,7 +1039,7 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: ManagedBackupShortTermRetentionPolicyMapper }; @@ -1116,10 +1085,15 @@ export const interval: OperationQueryParameter = { } }; -export const restoreDetailsName: OperationURLParameter = { - parameterPath: "restoreDetailsName", +export const parameters34: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseSecurityAlertPolicyMapper +}; + +export const tdeName: OperationURLParameter = { + parameterPath: "tdeName", mapper: { - serializedName: "restoreDetailsName", + serializedName: "tdeName", required: true, type: { name: "String" @@ -1127,194 +1101,92 @@ export const restoreDetailsName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseMapper + mapper: ManagedTransparentDataEncryptionMapper }; -export const parameters40: OperationParameter = { +export const administratorName: OperationURLParameter = { + parameterPath: "administratorName", + mapper: { + serializedName: "administratorName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters36: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseUpdateMapper + mapper: ManagedInstanceAdministratorMapper }; -export const parameters41: OperationParameter = { +export const authenticationName: OperationURLParameter = { + parameterPath: "authenticationName", + mapper: { + serializedName: "authenticationName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters37: OperationParameter = { parameterPath: "parameters", - mapper: CompleteDatabaseRestoreDefinitionMapper + mapper: ManagedInstanceAzureADOnlyAuthenticationMapper }; -export const parameters42: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseSecurityAlertPolicyMapper + mapper: ManagedInstanceEncryptionProtectorMapper }; -export const sensitivityLabelSource: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const keyName: OperationURLParameter = { + parameterPath: "keyName", mapper: { - serializedName: "sensitivityLabelSource", + serializedName: "keyName", required: true, type: { - name: "Enum", - allowedValues: ["current", "recommended"] + name: "String" } } }; -export const parameters43: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelMapper + mapper: ManagedInstanceKeyMapper }; -export const sensitivityLabelSource1: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const policyName2: OperationURLParameter = { + parameterPath: "policyName", mapper: { - defaultValue: "current", - isConstant: true, - serializedName: "sensitivityLabelSource", + serializedName: "policyName", + required: true, type: { name: "String" } } }; -export const sensitivityLabelSource2: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", +export const parameters40: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceLongTermRetentionPolicyMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - defaultValue: "recommended", - isConstant: true, - serializedName: "sensitivityLabelSource", + serializedName: "privateEndpointConnectionName", + required: true, 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: { - serializedName: "tdeName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters46: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedTransparentDataEncryptionMapper -}; - -export const administratorName: OperationURLParameter = { - parameterPath: "administratorName", - mapper: { - serializedName: "administratorName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters47: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceAdministratorMapper -}; - -export const authenticationName: OperationURLParameter = { - parameterPath: "authenticationName", - mapper: { - serializedName: "authenticationName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters48: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceAzureADOnlyAuthenticationMapper -}; - -export const parameters49: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceEncryptionProtectorMapper -}; - -export const keyName: OperationURLParameter = { - parameterPath: "keyName", - mapper: { - serializedName: "keyName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters50: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceKeyMapper -}; - -export const policyName2: OperationURLParameter = { - parameterPath: "policyName", - mapper: { - serializedName: "policyName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters51: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceLongTermRetentionPolicyMapper -}; - -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", - mapper: { - serializedName: "privateEndpointConnectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters52: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstancePrivateEndpointConnectionMapper }; @@ -1330,12 +1202,12 @@ export const groupName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: TdeCertificateMapper }; -export const parameters54: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceVulnerabilityAssessmentMapper }; @@ -1351,12 +1223,12 @@ export const restorableDroppedDatabaseId: OperationURLParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: ManagedServerSecurityAlertPolicyMapper }; -export const parameters56: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; @@ -1372,7 +1244,7 @@ export const recoverableDatabaseName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: CreateDatabaseRestorePointDefinitionMapper }; @@ -1388,17 +1260,17 @@ export const restorePointName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: ServerAutomaticTuningMapper }; -export const parameters59: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: ServerAzureADAdministratorMapper }; -export const parameters60: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: ServerAzureADOnlyAuthenticationMapper }; @@ -1414,7 +1286,7 @@ export const devOpsAuditingSettingsName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: ServerDevOpsAuditingSettingsMapper }; @@ -1430,17 +1302,17 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: ServerDnsAliasAcquisitionMapper }; -export const parameters63: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: ServerKeyMapper }; -export const parameters64: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: ServerSecurityAlertPolicyMapper }; @@ -1456,17 +1328,17 @@ export const serverTrustGroupName: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: ServerTrustGroupMapper }; -export const parameters66: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: ServerVulnerabilityAssessmentMapper }; -export const parameters67: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: SqlAgentConfigurationMapper }; @@ -1493,7 +1365,7 @@ export const syncAgentName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: SyncAgentMapper }; @@ -1552,7 +1424,7 @@ export const continuationToken: OperationQueryParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: SyncGroupMapper }; @@ -1568,7 +1440,7 @@ export const syncMemberName: OperationURLParameter = { } }; -export const parameters70: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: SyncMemberMapper }; @@ -1584,22 +1456,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 +1467,7 @@ export const virtualNetworkRuleName: OperationURLParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkRuleMapper }; @@ -1638,17 +1494,29 @@ export const workloadClassifierName: OperationURLParameter = { } }; -export const parameters73: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: WorkloadClassifierMapper }; -export const parameters74: OperationParameter = { +export const parameters62: 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 parameters63: OperationParameter = { parameterPath: "parameters", mapper: LogicalDatabaseTransparentDataEncryptionMapper }; @@ -1664,7 +1532,7 @@ export const policyName3: OperationURLParameter = { } }; -export const parameters76: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: BackupShortTermRetentionPolicyMapper }; @@ -1680,7 +1548,7 @@ export const extensionName: OperationURLParameter = { } }; -export const parameters77: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: DatabaseExtensionsMapper }; @@ -1696,7 +1564,7 @@ export const ledgerDigestUploads: OperationURLParameter = { } }; -export const parameters78: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: LedgerDigestUploadsMapper }; @@ -1712,27 +1580,27 @@ export const outboundRuleFqdn: OperationURLParameter = { } }; -export const parameters79: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: OutboundFirewallRuleMapper }; -export const parameters80: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: ServerMapper }; -export const parameters81: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: ServerUpdateMapper }; -export const parameters82: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: ImportNewDatabaseDefinitionMapper }; -export const parameters83: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: CheckNameAvailabilityRequestMapper }; @@ -1747,7 +1615,7 @@ export const expandChildren: OperationQueryParameter = { } }; -export const parameters84: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: CopyLongTermRetentionBackupParametersMapper }; @@ -1785,7 +1653,19 @@ export const backupName: OperationURLParameter = { } }; -export const parameters85: OperationParameter = { +export const apiVersion5: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-05-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: UpdateLongTermRetentionBackupParametersMapper }; @@ -1810,30 +1690,424 @@ export const databaseState: OperationQueryParameter = { } }; -export const parameters86: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceMapper +export const connectionPolicyName: OperationURLParameter = { + parameterPath: "connectionPolicyName", + mapper: { + serializedName: "connectionPolicyName", + required: true, + type: { + name: "String" + } + } }; -export const parameters87: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceUpdateMapper + mapper: ServerConnectionPolicyMapper }; -export const numberOfQueries: OperationQueryParameter = { - parameterPath: ["options", "numberOfQueries"], +export const apiVersion6: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "numberOfQueries", + defaultValue: "2021-11-01-preview", + isConstant: true, + serializedName: "api-version", type: { - name: "Number" + name: "String" } } }; -export const databases: OperationQueryParameter = { - parameterPath: ["options", "databases"], +export const distributedAvailabilityGroupName: OperationURLParameter = { + parameterPath: "distributedAvailabilityGroupName", mapper: { - serializedName: "databases", + serializedName: "distributedAvailabilityGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters75: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupMapper +}; + +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", + mapper: { + serializedName: "certificateName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters76: OperationParameter = { + parameterPath: "parameters", + mapper: ServerTrustCertificateMapper +}; + +export const parameters77: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const endpointType: OperationURLParameter = { + parameterPath: "endpointType", + mapper: { + serializedName: "endpointType", + required: true, + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + serializedName: "sensitivityLabelSource", + required: true, + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } +}; + +export const parameters78: 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 parameters79: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelUpdateListMapper +}; + +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], + mapper: { + serializedName: "includeDisabledRecommendations", + type: { + name: "Boolean" + } + } +}; + +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: RecommendedSensitivityLabelUpdateListMapper +}; + +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", + mapper: { + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", + type: { + name: "String" + } + } +}; + +export const parameters81: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper +}; + +export const parameters82: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseBlobAuditingPolicyMapper +}; + +export const parameters83: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedDatabaseBlobAuditingPolicyMapper +}; + +export const parameters84: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedServerBlobAuditingPolicyMapper +}; + +export const advancedThreatProtectionName: OperationURLParameter = { + parameterPath: "advancedThreatProtectionName", + mapper: { + serializedName: "advancedThreatProtectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters85: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseAdvancedThreatProtectionMapper +}; + +export const parameters86: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAdvancedThreatProtectionMapper +}; + +export const parameters87: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasCreationMapper +}; + +export const parameters88: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasAcquisitionMapper +}; + +export const baselineName1: OperationURLParameter = { + parameterPath: "baselineName", + mapper: { + serializedName: "baselineName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters89: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper +}; + +export const parameters90: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper +}; + +export const vulnerabilityAssessmentName1: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", + mapper: { + serializedName: "vulnerabilityAssessmentName", + required: true, + type: { + name: "String" + } + } +}; + +export const scanResultId: OperationURLParameter = { + parameterPath: "scanResultId", + mapper: { + serializedName: "scanResultId", + required: true, + type: { + name: "String" + } + } +}; + +export const vulnerabilityAssessmentName2: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", + mapper: { + serializedName: "vulnerabilityAssessmentName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters91: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseAdvancedThreatProtectionMapper +}; + +export const restoreDetailsName: OperationURLParameter = { + parameterPath: "restoreDetailsName", + mapper: { + serializedName: "restoreDetailsName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters92: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMapper +}; + +export const parameters93: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseUpdateMapper +}; + +export const parameters94: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMoveDefinitionMapper +}; + +export const parameters95: OperationParameter = { + parameterPath: "parameters", + mapper: CompleteDatabaseRestoreDefinitionMapper +}; + +export const parameters96: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseStartMoveDefinitionMapper +}; + +export const parameters97: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAdvancedThreatProtectionMapper +}; + +export const linkId: OperationURLParameter = { + parameterPath: "linkId", + mapper: { + serializedName: "linkId", + required: true, + type: { + name: "String" + } + } +}; + +export const systemDatabaseName: OperationQueryParameter = { + parameterPath: "systemDatabaseName", + mapper: { + defaultValue: "master", + isConstant: true, + serializedName: "systemDatabaseName", + type: { + name: "String" + } + } +}; + +export const parameters98: OperationParameter = { + parameterPath: "parameters", + mapper: SqlVulnerabilityAssessmentMapper +}; + +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 parameters99: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceDtcMapper +}; + +export const virtualClusterName: OperationURLParameter = { + parameterPath: "virtualClusterName", + mapper: { + serializedName: "virtualClusterName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters100: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualClusterUpdateMapper +}; + +export const apiVersion8: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-08-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const parameters101: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceMapper +}; + +export const parameters102: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceUpdateMapper +}; + +export const numberOfQueries: OperationQueryParameter = { + parameterPath: ["options", "numberOfQueries"], + mapper: { + serializedName: "numberOfQueries", + type: { + name: "Number" + } + } +}; + +export const databases: OperationQueryParameter = { + parameterPath: ["options", "databases"], + mapper: { + serializedName: "databases", type: { name: "String" } @@ -1860,10 +2134,10 @@ export const observationMetric: OperationQueryParameter = { } }; -export const connectionPolicyName: OperationURLParameter = { - parameterPath: "connectionPolicyName", +export const serverConfigurationOptionName: OperationURLParameter = { + parameterPath: "serverConfigurationOptionName", mapper: { - serializedName: "connectionPolicyName", + serializedName: "serverConfigurationOptionName", required: true, type: { name: "String" @@ -1871,7 +2145,39 @@ export const connectionPolicyName: OperationURLParameter = { } }; -export const parameters88: OperationParameter = { +export const parameters103: OperationParameter = { parameterPath: "parameters", - mapper: ServerConnectionPolicyMapper + mapper: ServerConfigurationOptionMapper +}; + +export const ledgerDigestUploads1: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", + mapper: { + serializedName: "ledgerDigestUploads", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters104: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedLedgerDigestUploadsMapper +}; + +export const startStopScheduleName: OperationURLParameter = { + parameterPath: "startStopScheduleName", + mapper: { + serializedName: "startStopScheduleName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters105: OperationParameter = { + parameterPath: "parameters", + mapper: StartStopManagedInstanceScheduleMapper }; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index 7ac4f5e7a86d..c1509aa29c65 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -439,7 +439,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -470,8 +470,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -503,8 +503,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -527,7 +527,7 @@ const listByDatabaseOperationSpec: 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 392107399fc2..868f7f14e0da 100644 --- a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -215,7 +215,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -237,7 +237,7 @@ const listByDatabaseOperationSpec: 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..07cc20bcc3ad --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts @@ -0,0 +1,332 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.apiVersion6], + 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.apiVersion6], + 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.parameters85, + queryParameters: [Parameters.apiVersion6], + 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: {} + }, + 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 86545d029381..d20f864f6233 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -134,64 +134,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 ); } @@ -220,43 +220,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.apiVersion6], 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.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -265,29 +260,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.parameters82, + queryParameters: [Parameters.apiVersion6], 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 = { diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts index 65eb5fa2761d..51c397630d3e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/databaseColumns.ts @@ -401,7 +401,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.schema, Parameters.table, Parameters.column, @@ -428,7 +428,7 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -451,7 +451,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/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts index a012e10ebee1..db875c7738a8 100644 --- a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -318,7 +318,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, @@ -348,8 +348,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters77, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -372,7 +372,7 @@ const listByDatabaseOperationSpec: 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 99ac81d7e41a..5d8a2b7ef5a7 100644 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseOperations.ts @@ -201,7 +201,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, @@ -222,7 +222,7 @@ const listByDatabaseOperationSpec: 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 de373b268ff9..5f5bd6685017 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -207,7 +207,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -228,7 +228,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/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index e6e162f0491a..f411eabf4d32 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -248,7 +248,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -273,8 +273,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -297,7 +297,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts new file mode 100644 index 000000000000..d187e4c54812 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts @@ -0,0 +1,374 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DatabaseSqlVulnerabilityAssessmentBaselines } 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 { + DatabaseSqlVulnerabilityAssessmentBaselineSet, + VulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams, + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams, + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse, + BaselineName, + DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams, + DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse, + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse +} from "../models"; + +/// +/** Class containing DatabaseSqlVulnerabilityAssessmentBaselines operations. */ +export class DatabaseSqlVulnerabilityAssessmentBaselinesImpl + implements DatabaseSqlVulnerabilityAssessmentBaselines { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseSqlVulnerabilityAssessmentBaselines class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + public listBySqlVulnerabilityAssessment( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlVulnerabilityAssessmentPagingAll( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySqlVulnerabilityAssessmentPagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options, + settings + ); + } + }; + } + + private async *listBySqlVulnerabilityAssessmentPagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySqlVulnerabilityAssessment( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySqlVulnerabilityAssessmentNext( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySqlVulnerabilityAssessmentPagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlVulnerabilityAssessmentPagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessment( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listBySqlVulnerabilityAssessmentOperationSpec + ); + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + options + }, + getOperationSpec + ); + } + + /** + * Add a database's vulnerability assessment rule baseline list. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * ListBySqlVulnerabilityAssessmentNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param nextLink The nextLink from the previous successful call to the + * ListBySqlVulnerabilityAssessment method. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessmentNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + nextLink: string, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + nextLink, + options + }, + listBySqlVulnerabilityAssessmentNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSetListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSet + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSet + }, + default: {} + }, + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSetListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.nextLink, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts new file mode 100644 index 000000000000..ac79d7dcc218 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts @@ -0,0 +1,152 @@ +/* + * 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 { DatabaseSqlVulnerabilityAssessmentExecuteScan } 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 { + VulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +} from "../models"; + +/** Class containing DatabaseSqlVulnerabilityAssessmentExecuteScan operations. */ +export class DatabaseSqlVulnerabilityAssessmentExecuteScanImpl + implements DatabaseSqlVulnerabilityAssessmentExecuteScan { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseSqlVulnerabilityAssessmentExecuteScan class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + async beginExecute( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): 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, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + executeOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + async beginExecuteAndWait( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): Promise { + const poller = await this.beginExecute( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const executeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName + ], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts new file mode 100644 index 000000000000..36fdf3a2ca65 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts @@ -0,0 +1,453 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DatabaseSqlVulnerabilityAssessmentRuleBaselines } 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 { + DatabaseSqlVulnerabilityAssessmentRuleBaseline, + VulnerabilityAssessmentName, + BaselineName, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse +} from "../models"; + +/// +/** Class containing DatabaseSqlVulnerabilityAssessmentRuleBaselines operations. */ +export class DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl + implements DatabaseSqlVulnerabilityAssessmentRuleBaselines { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseSqlVulnerabilityAssessmentRuleBaselines class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + public listByBaseline( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + ): PagedAsyncIterableIterator< + DatabaseSqlVulnerabilityAssessmentRuleBaseline + > { + const iter = this.listByBaselinePagingAll( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByBaselinePagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + options, + settings + ); + } + }; + } + + private async *listByBaselinePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByBaseline( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByBaselineNext( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByBaselinePagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByBaselinePagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + private _listByBaseline( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + options + }, + listByBaselineOperationSpec + ); + } + + /** + * Gets a database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + ruleId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + ruleId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Removes the database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + ruleId, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByBaselineNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param nextLink The nextLink from the previous successful call to the ListByBaseline method. + * @param options The options parameters. + */ + private _listByBaselineNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + nextLink: string, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + baselineName, + nextLink, + options + }, + listByBaselineNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByBaselineOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaseline + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaseline + }, + default: {} + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName1 + ], + serializer +}; +const listByBaselineNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.nextLink, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts new file mode 100644 index 000000000000..48009efc9ded --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -0,0 +1,325 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DatabaseSqlVulnerabilityAssessmentScanResult } 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 { + SqlVulnerabilityAssessmentScanResults, + SQLVulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams, + DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams, + DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse, + DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentScanResultGetResponse, + DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse +} from "../models"; + +/// +/** Class containing DatabaseSqlVulnerabilityAssessmentScanResult operations. */ +export class DatabaseSqlVulnerabilityAssessmentScanResultImpl + implements DatabaseSqlVulnerabilityAssessmentScanResult { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseSqlVulnerabilityAssessmentScanResult class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param options The options parameters. + */ + public listByScan( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByScanPagingAll( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByScanPagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options, + settings + ); + } + }; + } + + private async *listByScanPagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByScan( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByScanNext( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByScanPagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByScanPagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + )) { + yield* page; + } + } + + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param options The options parameters. + */ + private _listByScan( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + listByScanOperationSpec + ); + } + + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param scanResultId The scan result id of the specific result to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + scanResultId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + scanResultId, + options + }, + getOperationSpec + ); + } + + /** + * ListByScanNext + * @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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param nextLink The nextLink from the previous successful call to the ListByScan method. + * @param options The options parameters. + */ + private _listByScanNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + nextLink: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + nextLink, + options + }, + listByScanNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByScanOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/scanResults", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SQLVulnerabilityAssessmentScanListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.scanId, + Parameters.vulnerabilityAssessmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/scanResults/{scanResultId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanResults + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.scanId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanResultId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByScanNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SQLVulnerabilityAssessmentScanListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.nextLink, + Parameters.scanId, + Parameters.vulnerabilityAssessmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..949ccc27efe2 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts @@ -0,0 +1,307 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DatabaseSqlVulnerabilityAssessmentScans } 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 { + SqlVulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams, + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams, + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse, + DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentScansGetResponse, + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse +} from "../models"; + +/// +/** Class containing DatabaseSqlVulnerabilityAssessmentScans operations. */ +export class DatabaseSqlVulnerabilityAssessmentScansImpl + implements DatabaseSqlVulnerabilityAssessmentScans { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseSqlVulnerabilityAssessmentScans class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + public listBySqlVulnerabilityAssessments( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlVulnerabilityAssessmentsPagingAll( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySqlVulnerabilityAssessmentsPagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options, + settings + ); + } + }; + } + + private async *listBySqlVulnerabilityAssessmentsPagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySqlVulnerabilityAssessments( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySqlVulnerabilityAssessmentsNext( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySqlVulnerabilityAssessmentsPagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlVulnerabilityAssessmentsPagingPage( + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + )) { + yield* page; + } + } + + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessments( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listBySqlVulnerabilityAssessmentsOperationSpec + ); + } + + /** + * Get a database vulnerability assessment scan result. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * ListBySqlVulnerabilityAssessmentsNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param nextLink The nextLink from the previous successful call to the + * ListBySqlVulnerabilityAssessments method. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessmentsNext( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + nextLink: string, + options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + nextLink, + options + }, + listBySqlVulnerabilityAssessmentsNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanRecord + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, + Parameters.scanId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.nextLink, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..e19e83db90ae --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,274 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DatabaseSqlVulnerabilityAssessmentsSettings } 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 { + SqlVulnerabilityAssessment, + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams, + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams, + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse, + SqlVulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse, + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse +} from "../models"; + +/// +/** Class containing DatabaseSqlVulnerabilityAssessmentsSettings operations. */ +export class DatabaseSqlVulnerabilityAssessmentsSettingsImpl + implements DatabaseSqlVulnerabilityAssessmentsSettings { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class DatabaseSqlVulnerabilityAssessmentsSettings class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Lists SQL Vulnerability Assessment policies associated with 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. + */ + public listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + serverName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Lists SQL Vulnerability Assessment policies associated with 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. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets SQL Vulnerability Assessment policy for 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + getOperationSpec + ); + } + + /** + * 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?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse + > { + 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}/sqlVulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + 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}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessment + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.vulnerabilityAssessmentName2 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentListResult + }, + default: {} + }, + 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/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts index dd78c3d9135f..47b54e189937 100644 --- a/sdk/sql/arm-sql/src/operations/databaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -236,7 +236,7 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,7 +258,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/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts index 32f4ff1cad05..d89aea370ca3 100644 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ b/sdk/sql/arm-sql/src/operations/databaseUsages.ts @@ -183,7 +183,7 @@ const listByDatabaseOperationSpec: 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 050bf6fa9550..67c7b4737a56 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -381,7 +381,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, @@ -403,7 +403,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -425,7 +425,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -451,7 +451,7 @@ const exportOperationSpec: 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 a14c25883362..5dfd97a76eb2 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -280,7 +280,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -305,8 +305,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -324,7 +324,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, @@ -345,7 +345,7 @@ const listByDatabaseOperationSpec: 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 1f6d601bfeaf..0c4e96437168 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -40,20 +40,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, DatabasesListByServerNextResponse, DatabasesListByElasticPoolNextResponse, DatabasesListInaccessibleByServerNextResponse @@ -858,43 +858,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 ( @@ -932,8 +919,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, @@ -944,69 +931,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 ( @@ -1045,7 +1012,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, @@ -1056,20 +1023,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, @@ -1079,28 +1046,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 ( @@ -1138,8 +1107,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, @@ -1150,46 +1119,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 ( @@ -1228,7 +1227,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, @@ -1239,20 +1238,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, @@ -1262,52 +1261,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 ( @@ -1345,8 +1320,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, @@ -1357,56 +1332,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 ( @@ -1444,8 +1409,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, @@ -1456,31 +1421,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 @@ -1707,25 +1707,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 = { @@ -1743,24 +1754,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 = { @@ -1838,86 +1879,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 e41206404cdd..a43b08cbd602 100644 --- a/sdk/sql/arm-sql/src/operations/deletedServers.ts +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -337,7 +337,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -352,7 +352,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -372,7 +372,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -400,7 +400,7 @@ const recoverOperationSpec: 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..e66b41c391e0 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -0,0 +1,640 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: DistributedAvailabilityGroupsListByInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DistributedAvailabilityGroupsListByInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.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}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + 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.parameters75, + queryParameters: [Parameters.apiVersion6], + 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.apiVersion6], + 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.parameters75, + queryParameters: [Parameters.apiVersion6], + 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: {} + }, + 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 a0e6acea76b6..4f6b0d8c0369 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -201,7 +201,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, @@ -222,7 +222,7 @@ const listByElasticPoolOperationSpec: 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 52b2aa97ea0b..b5914ffa5b20 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -388,7 +388,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -408,7 +408,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -438,8 +438,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,7 +456,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, 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..a1dce8e92f3d --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts @@ -0,0 +1,244 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: EndpointCertificatesListByInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: EndpointCertificatesListByInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.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}/endpointCertificates/{endpointType}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EndpointCertificate + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + 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: {} + }, + 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 11a946179b8f..424e96193ee2 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -134,64 +134,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 ); } @@ -220,43 +220,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.apiVersion6], 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.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -265,29 +260,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.parameters83, + queryParameters: [Parameters.apiVersion6], 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 = { diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index 15477d1dd311..09def0c7001a 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -122,6 +122,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 @@ -236,24 +254,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 @@ -277,6 +277,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.apiVersion6], + 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}", @@ -287,7 +307,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -317,8 +337,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -330,26 +350,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", diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index ed02e982025d..f53b28d37de9 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -675,7 +675,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -705,8 +705,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -723,7 +723,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, @@ -752,8 +752,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -775,7 +775,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -804,7 +804,7 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -834,7 +834,7 @@ const forceFailoverAllowDataLossOperationSpec: 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 884d41bf2994..94abb322a55c 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -256,7 +256,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -280,8 +280,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters25, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -298,7 +298,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, @@ -318,7 +318,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -339,8 +339,8 @@ const replaceOperationSpec: coreClient.OperationSpec = { 202: {}, default: {} }, - requestBody: Parameters.parameters26, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters21, + 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..78f1a71211fd --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts @@ -0,0 +1,326 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServerPagingPage( + resourceGroupName, + serverName, + options, + settings + ); + } + }; + } + + private async *listByServerPagingPage( + resourceGroupName: string, + serverName: string, + options?: IPv6FirewallRulesListByServerOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: IPv6FirewallRulesListByServerResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.apiVersion6], + 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.apiVersion6], + 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.parameters77, + queryParameters: [Parameters.apiVersion6], + 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.apiVersion6], + 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: {} + }, + 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..35daf9511b28 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"; @@ -56,13 +51,9 @@ export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; export * from "./managedDatabaseColumns"; export * from "./managedDatabaseQueries"; -export * from "./managedDatabaseRestoreDetails"; -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 +72,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 +94,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"; @@ -121,7 +108,49 @@ export * from "./servers"; export * from "./usages"; export * from "./longTermRetentionBackups"; export * from "./longTermRetentionManagedInstanceBackups"; -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 "./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 "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; +export * from "./managedDatabaseRestoreDetails"; +export * from "./managedDatabases"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; +export * from "./replicationLinks"; +export * from "./sqlVulnerabilityAssessmentBaseline"; +export * from "./sqlVulnerabilityAssessmentBaselines"; +export * from "./sqlVulnerabilityAssessmentExecuteScan"; +export * from "./sqlVulnerabilityAssessmentRuleBaseline"; +export * from "./sqlVulnerabilityAssessmentRuleBaselines"; +export * from "./sqlVulnerabilityAssessmentScanResult"; +export * from "./sqlVulnerabilityAssessmentScans"; +export * from "./sqlVulnerabilityAssessmentsSettings"; +export * from "./sqlVulnerabilityAssessments"; +export * from "./managedDatabaseMoveOperations"; +export * from "./managedInstanceDtcs"; +export * from "./synapseLinkWorkspaces"; +export * from "./virtualClusters"; +export * from "./managedInstances"; +export * from "./serverConfigurationOptions"; +export * from "./managedLedgerDigestUploadsOperations"; +export * from "./startStopManagedInstanceSchedules"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts index b3e8efcc93c0..b3036b190e0f 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -587,7 +587,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -617,8 +617,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -635,7 +635,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, @@ -655,7 +655,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -684,7 +684,7 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -714,7 +714,7 @@ const forceFailoverAllowDataLossOperationSpec: 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 68308fb5e27f..d1d8a42fea4c 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -534,7 +534,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -563,8 +563,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -580,7 +580,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, @@ -608,8 +608,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -630,7 +630,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -648,7 +648,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 9227eb03ec05..365546320d78 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -483,7 +483,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -503,7 +503,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -533,8 +533,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -551,7 +551,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, @@ -580,8 +580,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters26, + 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 90e7c5cc550a..b67dc4efd62c 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -263,7 +263,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -284,7 +284,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -309,8 +309,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -328,7 +328,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, diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index c8de16cfc0e6..dd73dd5a7dab 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -626,7 +626,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -649,7 +649,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, @@ -680,7 +680,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -704,7 +704,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -733,7 +733,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -765,7 +765,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index 7aa9d691e850..3203761d8b0b 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -262,7 +262,7 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -292,7 +292,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/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index b9ec55ea81ff..7c125fc198f5 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -521,7 +521,7 @@ const listByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -544,7 +544,7 @@ const getByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -568,7 +568,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -590,7 +590,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -616,8 +616,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -636,7 +636,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, diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 98a88c9b0a1d..6f87154e46ed 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -461,7 +461,7 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -493,7 +493,7 @@ const listByStepOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -524,7 +524,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/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index a070e9574d84..f1f4bf42872b 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -263,7 +263,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -284,7 +284,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -309,8 +309,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -328,7 +328,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, diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index 48b0b18d4a1b..7d04aea01fed 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -236,7 +236,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,7 +258,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/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index 101a833f4dfd..4aa7c4854cd3 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -263,7 +263,7 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -284,7 +284,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -309,8 +309,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -328,7 +328,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, diff --git a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts index 9b4f1300814c..4d83ac549ba3 100644 --- a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts @@ -439,7 +439,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -470,8 +470,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters78, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -494,7 +494,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -524,7 +524,7 @@ const disableOperationSpec: 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 785da90b9f81..074883833c80 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -1599,8 +1599,8 @@ const copyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1632,8 +1632,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1656,7 +1656,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1673,7 +1673,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1695,7 +1695,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1720,7 +1720,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1743,7 +1743,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1775,8 +1775,8 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1809,8 +1809,8 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1834,7 +1834,7 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1852,7 +1852,7 @@ const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1875,7 +1875,7 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1901,7 +1901,7 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1925,7 +1925,7 @@ const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts index 2b990504bc32..3a8a9af72c02 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts @@ -1126,7 +1126,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1143,7 +1143,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1165,7 +1165,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1190,7 +1190,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1214,7 +1214,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1236,7 +1236,7 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1254,7 +1254,7 @@ const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1277,7 +1277,7 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1303,7 +1303,7 @@ const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1328,7 +1328,7 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion5, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index 57e28be0f3f2..f7c42cd01364 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -324,7 +324,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -355,8 +355,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -379,7 +379,7 @@ const listByDatabaseOperationSpec: 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 8258d372ade9..05563bcf71e3 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -453,7 +453,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -484,8 +484,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -517,8 +517,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -541,7 +541,7 @@ const listByDatabaseOperationSpec: 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..4e0655f42535 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts @@ -0,0 +1,342 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + managedInstanceName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.apiVersion1], + 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.apiVersion1], + 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.parameters91, + queryParameters: [Parameters.apiVersion1], + 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: {} + }, + 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 4b27bb35b09b..0adf811df6ea 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts @@ -407,7 +407,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.schema, Parameters.table, Parameters.column, @@ -434,7 +434,7 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -457,7 +457,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/managedDatabaseMoveOperations.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts new file mode 100644 index 000000000000..b27e5954e06a --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts @@ -0,0 +1,249 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByLocationPagingPage( + resourceGroupName, + locationName, + options, + settings + ); + } + }; + } + + private async *listByLocationPagingPage( + resourceGroupName: string, + locationName: string, + options?: ManagedDatabaseMoveOperationsListByLocationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedDatabaseMoveOperationsListByLocationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByLocation( + resourceGroupName, + locationName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByLocationNext( + resourceGroupName, + locationName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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: {} + }, + 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 d5d20edb5b56..8fa799c006f5 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -239,7 +239,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -262,7 +262,7 @@ const listByQueryOperationSpec: 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..7a115c256ed4 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.parameters80, + 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..de87fa462433 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.apiVersion1], 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 ae3536d5e2dd..a5f45ef6b40d 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -219,7 +219,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -240,7 +240,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/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index b91d9a6cd10b..57720d7eea5b 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -257,7 +257,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -282,8 +282,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters42, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -306,7 +306,7 @@ const listByDatabaseOperationSpec: 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 3d09bd90b0f8..623085ca3f9e 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -192,7 +192,7 @@ const listByDatabaseOperationSpec: 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 40b816a3e7d4..f582e37faa63 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -558,7 +558,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -586,8 +586,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -608,7 +608,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, @@ -627,7 +627,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, @@ -646,7 +646,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, @@ -672,7 +672,7 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.count ], @@ -691,8 +691,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.parameters79, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -716,7 +716,7 @@ const listRecommendedByDatabaseOperationSpec: 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 a3ac3c08dcd4..bf18f46c3f86 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -242,7 +242,7 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -264,7 +264,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/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts index 9a1aadee22a4..ea8c94bdcdb5 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -260,7 +260,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -285,8 +285,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters46, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -309,7 +309,7 @@ const listByDatabaseOperationSpec: 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 c1d4fba12835..d6694736be3a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -385,7 +385,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, @@ -410,7 +410,7 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -433,7 +433,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -455,7 +455,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/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index f9afdd63d2cb..382a26015909 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -285,7 +285,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -310,8 +310,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -329,7 +329,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, @@ -350,7 +350,7 @@ const listByDatabaseOperationSpec: 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 31a4860bd55f..7e007185e30e 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -31,8 +31,13 @@ import { ManagedDatabaseUpdate, ManagedDatabasesUpdateOptionalParams, ManagedDatabasesUpdateResponse, + ManagedDatabaseMoveDefinition, + ManagedDatabasesCancelMoveOptionalParams, + ManagedDatabasesCompleteMoveOptionalParams, CompleteDatabaseRestoreDefinition, ManagedDatabasesCompleteRestoreOptionalParams, + ManagedDatabaseStartMoveDefinition, + ManagedDatabasesStartMoveOptionalParams, ManagedDatabasesListByInstanceNextResponse, ManagedDatabasesListInaccessibleByInstanceNextResponse } from "../models"; @@ -557,6 +562,206 @@ export class ManagedDatabasesImpl implements ManagedDatabases { return poller.pollUntilDone(); } + /** + * Cancels 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the cancel managed database move operation. + * @param options The options parameters. + */ + async beginCancelMove( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCancelMoveOptionalParams + ): 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, + databaseName, + parameters, + options + }, + cancelMoveOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Cancels 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the cancel managed database move operation. + * @param options The options parameters. + */ + async beginCancelMoveAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCancelMoveOptionalParams + ): Promise { + const poller = await this.beginCancelMove( + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Completes 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the complete managed database move operation. + * @param options The options parameters. + */ + async beginCompleteMove( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCompleteMoveOptionalParams + ): 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, + databaseName, + parameters, + options + }, + completeMoveOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Completes 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the complete managed database move operation. + * @param options The options parameters. + */ + async beginCompleteMoveAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCompleteMoveOptionalParams + ): Promise { + const poller = await this.beginCompleteMove( + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * Completes the restore operation on a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -657,6 +862,106 @@ export class ManagedDatabasesImpl implements ManagedDatabases { return poller.pollUntilDone(); } + /** + * Starts 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the start managed database move operation. + * @param options The options parameters. + */ + async beginStartMove( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseStartMoveDefinition, + options?: ManagedDatabasesStartMoveOptionalParams + ): 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, + databaseName, + parameters, + options + }, + startMoveOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Starts 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the start managed database move operation. + * @param options The options parameters. + */ + async beginStartMoveAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseStartMoveDefinition, + options?: ManagedDatabasesStartMoveOptionalParams + ): Promise { + const poller = await this.beginStartMove( + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * Gets a list of inaccessible managed databases in a managed instance * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -729,7 +1034,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -749,7 +1054,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -779,8 +1084,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters92, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -797,7 +1102,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.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -826,8 +1131,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters40, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters93, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -839,13 +1144,67 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const cancelMoveOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/cancelMove", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + requestBody: Parameters.parameters94, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; +const completeMoveOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeMove", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + requestBody: Parameters.parameters94, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; const completeRestoreOperationSpec: coreClient.OperationSpec = { path: "/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.parameters95, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; +const startMoveOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/startMove", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + requestBody: Parameters.parameters96, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -867,7 +1226,7 @@ const listInaccessibleByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], 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 01fc3c1acd4e..7dc7221bacf0 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -393,7 +393,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -413,7 +413,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -443,8 +443,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters47, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -461,7 +461,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, 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..fc6822c55372 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts @@ -0,0 +1,400 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.apiVersion1], + 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.apiVersion1], + 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.parameters97, + queryParameters: [Parameters.apiVersion1], + 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: {} + }, + 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 b7da19a811d5..c286d2d3ef46 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -401,7 +401,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -431,8 +431,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters48, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -449,7 +449,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, @@ -469,7 +469,7 @@ const listByInstanceOperationSpec: 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..3a8d193f623c --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts @@ -0,0 +1,380 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByManagedInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceDtcsListByManagedInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedInstanceDtcsListByManagedInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByManagedInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByManagedInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.parameters99, + 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: {} + }, + 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 dd9f1a29897f..a0ce79e4a0ba 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -400,7 +400,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, @@ -420,7 +420,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -440,7 +440,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.parameters49, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters38, + 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 e217acd78878..22c0e23bd235 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -385,7 +385,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.filter1], + queryParameters: [Parameters.apiVersion3, Parameters.filter1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -405,7 +405,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -435,8 +435,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters50, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -453,7 +453,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, diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index 80a56e2d7dd3..0f2c12ba4861 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -340,7 +340,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -371,8 +371,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters51, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -395,7 +395,7 @@ const listByDatabaseOperationSpec: 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 0d07576a97af..83f954fa3669 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -214,7 +214,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -234,7 +234,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,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, diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts index f18c172dd3d2..fccbca9d06fe 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -408,7 +408,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -438,8 +438,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters52, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,7 +456,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, @@ -476,7 +476,7 @@ const listByManagedInstanceOperationSpec: 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 8a47584359d8..d4272d26ac39 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -195,7 +195,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -215,7 +215,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/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index 781f73a8f44f..6fa9134b0b83 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.parameters42, + 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 8d7e4a9e448c..b28aeefa6b38 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -265,7 +265,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -289,8 +289,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters54, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -307,7 +307,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, @@ -327,7 +327,7 @@ const listByInstanceOperationSpec: 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 5d7bddf25790..52b7dab05c41 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -17,15 +17,19 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { ManagedInstance, - ManagedInstancesListByInstancePoolNextOptionalParams, - ManagedInstancesListByInstancePoolOptionalParams, - ManagedInstancesListByInstancePoolResponse, ManagedInstancesListNextOptionalParams, ManagedInstancesListOptionalParams, ManagedInstancesListResponse, + ManagedInstancesListByInstancePoolNextOptionalParams, + ManagedInstancesListByInstancePoolOptionalParams, + ManagedInstancesListByInstancePoolResponse, ManagedInstancesListByResourceGroupNextOptionalParams, ManagedInstancesListByResourceGroupOptionalParams, ManagedInstancesListByResourceGroupResponse, + OutboundEnvironmentEndpoint, + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams, + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams, + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse, TopQueries, ManagedInstancesListByManagedInstanceNextOptionalParams, ManagedInstancesListByManagedInstanceOptionalParams, @@ -39,9 +43,12 @@ import { ManagedInstancesUpdateOptionalParams, ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, - ManagedInstancesListByInstancePoolNextResponse, + ManagedInstancesStartOptionalParams, + ManagedInstancesStopOptionalParams, ManagedInstancesListNextResponse, + ManagedInstancesListByInstancePoolNextResponse, ManagedInstancesListByResourceGroupNextResponse, + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse, ManagedInstancesListByManagedInstanceNextResponse } from "../models"; @@ -58,6 +65,60 @@ export class ManagedInstancesImpl implements ManagedInstances { this.client = client; } + /** + * Gets a list of all managed instances in the subscription. + * @param options The options parameters. + */ + public list( + options?: ManagedInstancesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + } + }; + } + + private async *listPagingPage( + options?: ManagedInstancesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedInstancesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: ManagedInstancesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** * Gets a list of all managed instances in an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -144,13 +205,16 @@ export class ManagedInstancesImpl implements ManagedInstances { } /** - * Gets a list of all managed instances in the subscription. + * Gets a list of managed instances in a resource group. + * @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 options The options parameters. */ - public list( - options?: ManagedInstancesListOptionalParams + public listByResourceGroup( + resourceGroupName: string, + options?: ManagedInstancesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -162,26 +226,35 @@ export class ManagedInstancesImpl implements ManagedInstances { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage(options, settings); + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } - private async *listPagingPage( - options?: ManagedInstancesListOptionalParams, + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: ManagedInstancesListByResourceGroupOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: ManagedInstancesListResponse; + let result: ManagedInstancesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(options); + result = await this._listByResourceGroup(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext(continuationToken, options); + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -189,25 +262,35 @@ export class ManagedInstancesImpl implements ManagedInstances { } } - private async *listPagingAll( - options?: ManagedInstancesListOptionalParams + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: ManagedInstancesListByResourceGroupOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { yield* page; } } /** - * Gets a list of managed instances in a resource group. + * Gets the collection of outbound network dependencies for the given 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 listByResourceGroup( + public listOutboundNetworkDependenciesByManagedInstance( resourceGroupName: string, - options?: ManagedInstancesListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + managedInstanceName: string, + options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listOutboundNetworkDependenciesByManagedInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); return { next() { return iter.next(); @@ -219,8 +302,9 @@ export class ManagedInstancesImpl implements ManagedInstances { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( + return this.listOutboundNetworkDependenciesByManagedInstancePagingPage( resourceGroupName, + managedInstanceName, options, settings ); @@ -228,23 +312,29 @@ export class ManagedInstancesImpl implements ManagedInstances { }; } - private async *listByResourceGroupPagingPage( + private async *listOutboundNetworkDependenciesByManagedInstancePagingPage( resourceGroupName: string, - options?: ManagedInstancesListByResourceGroupOptionalParams, + managedInstanceName: string, + options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: ManagedInstancesListByResourceGroupResponse; + ): AsyncIterableIterator { + let result: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); + result = await this._listOutboundNetworkDependenciesByManagedInstance( + resourceGroupName, + managedInstanceName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( + result = await this._listOutboundNetworkDependenciesByManagedInstanceNext( resourceGroupName, + managedInstanceName, continuationToken, options ); @@ -255,12 +345,14 @@ export class ManagedInstancesImpl implements ManagedInstances { } } - private async *listByResourceGroupPagingAll( + private async *listOutboundNetworkDependenciesByManagedInstancePagingAll( resourceGroupName: string, - options?: ManagedInstancesListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( + managedInstanceName: string, + options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listOutboundNetworkDependenciesByManagedInstancePagingPage( resourceGroupName, + managedInstanceName, options )) { yield* page; @@ -352,6 +444,16 @@ export class ManagedInstancesImpl implements ManagedInstances { } } + /** + * Gets a list of all managed instances in the subscription. + * @param options The options parameters. + */ + private _list( + options?: ManagedInstancesListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** * Gets a list of all managed instances in an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -370,16 +472,6 @@ export class ManagedInstancesImpl implements ManagedInstances { ); } - /** - * Gets a list of all managed instances in the subscription. - * @param options The options parameters. - */ - private _list( - options?: ManagedInstancesListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - /** * Gets a list of managed instances in a resource group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -687,21 +779,67 @@ export class ManagedInstancesImpl implements ManagedInstances { } /** - * Get top resource consuming queries of a managed instance. + * Failovers a 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 managedInstanceName The name of the managed instance to failover. * @param options The options parameters. */ - private _listByManagedInstance( + async beginFailover( resourceGroupName: string, managedInstanceName: string, - options?: ManagedInstancesListByManagedInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( + options?: ManagedInstancesFailoverOptionalParams + ): 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, options }, - listByManagedInstanceOperationSpec + failoverOperationSpec ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; } /** @@ -711,10 +849,50 @@ export class ManagedInstancesImpl implements ManagedInstances { * @param managedInstanceName The name of the managed instance to failover. * @param options The options parameters. */ - async beginFailover( + async beginFailoverAndWait( resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams + ): Promise { + const poller = await this.beginFailover( + resourceGroupName, + managedInstanceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets the collection of outbound network dependencies for the given 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 _listOutboundNetworkDependenciesByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + ): Promise< + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listOutboundNetworkDependenciesByManagedInstanceOperationSpec + ); + } + + /** + * Starts the 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. + */ + async beginStart( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesStartOptionalParams ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -758,29 +936,30 @@ export class ManagedInstancesImpl implements ManagedInstances { const lro = new LroImpl( sendOperation, { resourceGroupName, managedInstanceName, options }, - failoverOperationSpec + startOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Failovers a managed instance. + * Starts the 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 to failover. + * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ - async beginFailoverAndWait( + async beginStartAndWait( resourceGroupName: string, managedInstanceName: string, - options?: ManagedInstancesFailoverOptionalParams + options?: ManagedInstancesStartOptionalParams ): Promise { - const poller = await this.beginFailover( + const poller = await this.beginStart( resourceGroupName, managedInstanceName, options @@ -789,22 +968,105 @@ export class ManagedInstancesImpl implements ManagedInstances { } /** - * ListByInstancePoolNext + * Stops the 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 instancePoolName The instance pool name. - * @param nextLink The nextLink from the previous successful call to the ListByInstancePool method. + * @param managedInstanceName The name of the managed instance. * @param options The options parameters. */ - private _listByInstancePoolNext( + async beginStop( resourceGroupName: string, - instancePoolName: string, - nextLink: string, - options?: ManagedInstancesListByInstancePoolNextOptionalParams - ): Promise { + managedInstanceName: string, + options?: ManagedInstancesStopOptionalParams + ): 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, options }, + stopOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Stops the 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. + */ + async beginStopAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesStopOptionalParams + ): Promise { + const poller = await this.beginStop( + resourceGroupName, + managedInstanceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get top resource consuming queries of a 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 _listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesListByManagedInstanceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, instancePoolName, nextLink, options }, - listByInstancePoolNextOperationSpec + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec ); } @@ -823,6 +1085,26 @@ export class ManagedInstancesImpl implements ManagedInstances { ); } + /** + * ListByInstancePoolNext + * @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 instancePoolName The instance pool name. + * @param nextLink The nextLink from the previous successful call to the ListByInstancePool method. + * @param options The options parameters. + */ + private _listByInstancePoolNext( + resourceGroupName: string, + instancePoolName: string, + nextLink: string, + options?: ManagedInstancesListByInstancePoolNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, instancePoolName, nextLink, options }, + listByInstancePoolNextOperationSpec + ); + } + /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -841,6 +1123,29 @@ export class ManagedInstancesImpl implements ManagedInstances { ); } + /** + * ListOutboundNetworkDependenciesByManagedInstanceNext + * @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 + * ListOutboundNetworkDependenciesByManagedInstance method. + * @param options The options parameters. + */ + private _listOutboundNetworkDependenciesByManagedInstanceNext( + resourceGroupName: string, + managedInstanceName: string, + nextLink: string, + options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams + ): Promise< + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, nextLink, options }, + listOutboundNetworkDependenciesByManagedInstanceNextOperationSpec + ); + } + /** * ListByManagedInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -864,9 +1169,9 @@ export class ManagedInstancesImpl implements ManagedInstances { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByInstancePoolOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances", httpMethod: "GET", responses: { 200: { @@ -874,19 +1179,14 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.instancePoolName - ], + queryParameters: [Parameters.expand, Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const listByInstancePoolOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances", httpMethod: "GET", responses: { 200: { @@ -894,8 +1194,13 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], - urlParameters: [Parameters.$host, Parameters.subscriptionId], + queryParameters: [Parameters.expand, Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.instancePoolName + ], headerParameters: [Parameters.accept], serializer }; @@ -909,7 +1214,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -928,7 +1233,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -957,8 +1262,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters86, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters101, + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -974,7 +1279,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1002,8 +1307,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters87, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters102, + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1014,6 +1319,68 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const failoverOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.replicaType, Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + serializer +}; +const listOutboundNetworkDependenciesByManagedInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const startOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/start", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + serializer +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/stop", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName + ], + serializer +}; const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/topqueries", @@ -1025,10 +1392,10 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, Parameters.startTime, Parameters.endTime, Parameters.interval, + Parameters.apiVersion8, Parameters.numberOfQueries, Parameters.databases, Parameters.aggregationFunction, @@ -1043,18 +1410,21 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const failoverOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceListResult + }, + default: {} + }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.nextLink ], + headerParameters: [Parameters.accept], serializer }; const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { @@ -1076,7 +1446,7 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1088,17 +1458,18 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listOutboundNetworkDependenciesByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedInstanceListResult + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection }, default: {} }, @@ -1106,7 +1477,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts new file mode 100644 index 000000000000..5c0023fe46d5 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts @@ -0,0 +1,564 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ManagedLedgerDigestUploadsOperations } 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 { + ManagedLedgerDigestUploads, + ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams, + ManagedLedgerDigestUploadsListByDatabaseOptionalParams, + ManagedLedgerDigestUploadsListByDatabaseResponse, + ManagedLedgerDigestUploadsName, + ManagedLedgerDigestUploadsGetOptionalParams, + ManagedLedgerDigestUploadsGetResponse, + ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams, + ManagedLedgerDigestUploadsCreateOrUpdateResponse, + ManagedLedgerDigestUploadsDisableOptionalParams, + ManagedLedgerDigestUploadsDisableResponse, + ManagedLedgerDigestUploadsListByDatabaseNextResponse +} from "../models"; + +/// +/** Class containing ManagedLedgerDigestUploadsOperations operations. */ +export class ManagedLedgerDigestUploadsOperationsImpl + implements ManagedLedgerDigestUploadsOperations { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ManagedLedgerDigestUploadsOperations class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets all ledger digest upload settings on 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 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?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedLedgerDigestUploadsListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + managedInstanceName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + managedInstanceName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets all ledger digest upload settings on 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 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?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets the current ledger digest upload configuration for 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param ledgerDigestUploads + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + options?: ManagedLedgerDigestUploadsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + ledgerDigestUploads, + options + }, + getOperationSpec + ); + } + + /** + * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger 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 databaseName The name of the database. + * @param ledgerDigestUploads The name of the Ledger Digest Upload Configurations. + * @param parameters The Ledger Digest Storage Endpoint. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + parameters: ManagedLedgerDigestUploads, + options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedLedgerDigestUploadsCreateOrUpdateResponse + > + > { + 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, + databaseName, + ledgerDigestUploads, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger 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 databaseName The name of the database. + * @param ledgerDigestUploads The name of the Ledger Digest Upload Configurations. + * @param parameters The Ledger Digest Storage Endpoint. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + parameters: ManagedLedgerDigestUploads, + options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + databaseName, + ledgerDigestUploads, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger + * 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 databaseName The name of the database. + * @param ledgerDigestUploads + * @param options The options parameters. + */ + async beginDisable( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + options?: ManagedLedgerDigestUploadsDisableOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedLedgerDigestUploadsDisableResponse + > + > { + 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, + databaseName, + ledgerDigestUploads, + options + }, + disableOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger + * 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 databaseName The name of the database. + * @param ledgerDigestUploads + * @param options The options parameters. + */ + async beginDisableAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + options?: ManagedLedgerDigestUploadsDisableOptionalParams + ): Promise { + const poller = await this.beginDisable( + resourceGroupName, + managedInstanceName, + databaseName, + ledgerDigestUploads, + options + ); + return poller.pollUntilDone(); + } + + /** + * 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?: ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams + ): Promise { + 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}/ledgerDigestUploads", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedLedgerDigestUploadsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + 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}/ledgerDigestUploads/{ledgerDigestUploads}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName, + Parameters.ledgerDigestUploads1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + 201: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + 202: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + 204: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + default: {} + }, + requestBody: Parameters.parameters104, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName, + Parameters.ledgerDigestUploads1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const disableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}/disable", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + 201: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + 202: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + 204: { + bodyMapper: Mappers.ManagedLedgerDigestUploads + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.managedInstanceName, + Parameters.ledgerDigestUploads1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedLedgerDigestUploadsListResult + }, + default: {} + }, + 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/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index fc4514483e3c..9d5905e90fdd 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -469,7 +469,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -500,8 +500,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -533,8 +533,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -557,7 +557,7 @@ const listByRestorableDroppedDatabaseOperationSpec: 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..7bcbe518b293 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts @@ -0,0 +1,631 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByManagedInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedServerDnsAliasesListByManagedInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedServerDnsAliasesListByManagedInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByManagedInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByManagedInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.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}/dnsAliases/{dnsAliasName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerDnsAlias + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + 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.parameters87, + queryParameters: [Parameters.apiVersion6], + 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.apiVersion6], + 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.parameters88, + queryParameters: [Parameters.apiVersion6], + 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: {} + }, + 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 1bcee9f6efb9..43a94ffff975 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -310,7 +310,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -340,8 +340,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -363,7 +363,7 @@ const listByInstanceOperationSpec: 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 b5cbf0223cb1..11395fed5450 100644 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ b/sdk/sql/arm-sql/src/operations/operations.ts @@ -125,7 +125,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host], 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 fc44ee7efde4..000000000000 --- a/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts +++ /dev/null @@ -1,174 +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, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -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: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(locationName, options, settings); - } - }; - } - - private async *listByLocationPagingPage( - locationName: string, - options?: OperationsHealthListByLocationOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: OperationsHealthListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(locationName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - locationName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - 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: {} - }, - 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 aea3087af753..1b5169c37bf7 100644 --- a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -381,7 +381,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -411,8 +411,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters79, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -429,7 +429,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, @@ -449,7 +449,7 @@ const listByServerOperationSpec: 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 c8ca340b2474..e8a3f956be11 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -388,7 +388,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -418,8 +418,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -436,7 +436,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, @@ -456,7 +456,7 @@ const listByServerOperationSpec: 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 b0da96f824e7..de58d0c36ac9 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -188,7 +188,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -208,7 +208,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/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts index b4e7f1349547..985bfe9bf237 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.parameters80, + 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 25756f4bfc28..139fa424961a 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -198,7 +198,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -218,7 +218,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/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts index a7a5ced58156..8ee937f6703e 100644 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/replicationLinks.ts @@ -23,13 +23,13 @@ import { ReplicationLinksListByServerNextOptionalParams, ReplicationLinksListByServerOptionalParams, ReplicationLinksListByServerResponse, + ReplicationLinksGetOptionalParams, + ReplicationLinksGetResponse, ReplicationLinksDeleteOptionalParams, ReplicationLinksFailoverOptionalParams, + ReplicationLinksFailoverResponse, ReplicationLinksFailoverAllowDataLossOptionalParams, - UnlinkParameters, - ReplicationLinksUnlinkOptionalParams, - ReplicationLinksGetOptionalParams, - ReplicationLinksGetResponse, + ReplicationLinksFailoverAllowDataLossResponse, ReplicationLinksListByDatabaseNextResponse, ReplicationLinksListByServerNextResponse } from "../models"; @@ -223,42 +223,62 @@ 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. + * @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 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 { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, linkId, options }, - deleteOperationSpec + getOperationSpec ); } /** - * 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 beginFailover( + async beginDelete( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams + options?: ReplicationLinksDeleteOptionalParams ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -302,7 +322,7 @@ export class ReplicationLinksImpl implements ReplicationLinks { const lro = new LroImpl( sendOperation, { resourceGroupName, serverName, databaseName, linkId, options }, - failoverOperationSpec + deleteOperationSpec ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, @@ -313,22 +333,22 @@ export class ReplicationLinksImpl implements ReplicationLinks { } /** - * 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( + async beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams + options?: ReplicationLinksDeleteOptionalParams ): Promise { - const poller = await this.beginFailover( + const poller = await this.beginDelete( resourceGroupName, serverName, databaseName, @@ -339,26 +359,30 @@ 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 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 ( @@ -397,7 +421,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, @@ -408,23 +432,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, @@ -435,27 +458,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 ( @@ -493,15 +519,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, @@ -512,76 +531,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 @@ -645,28 +619,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.apiVersion1], 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.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -675,14 +659,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: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -693,57 +678,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.apiVersion1], 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.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -765,7 +750,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts index bf22893ab596..6ef3a9146c34 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts @@ -189,7 +189,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -209,7 +209,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts index 861ff038afd5..2f3519b6154d 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts @@ -198,7 +198,7 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -218,7 +218,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + 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 1c7239b2fd37..23ac206d6928 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -346,7 +346,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -376,8 +376,8 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters46, + 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, @@ -416,7 +416,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, diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 0b67dcaf0c73..eee263fecef5 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -535,7 +535,7 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.count ], @@ -554,8 +554,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.parameters79, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -579,7 +579,7 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.skipToken, - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.filter1, Parameters.includeDisabledRecommendations ], @@ -598,7 +598,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, @@ -617,7 +617,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, @@ -641,7 +641,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -669,8 +669,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -691,7 +691,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, 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..7bd82e0f57b9 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts @@ -0,0 +1,385 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServerPagingPage( + resourceGroupName, + serverName, + options, + settings + ); + } + }; + } + + private async *listByServerPagingPage( + resourceGroupName: string, + serverName: string, + options?: ServerAdvancedThreatProtectionSettingsListByServerOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerAdvancedThreatProtectionSettingsListByServerResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.apiVersion6], + 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.apiVersion6], + 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.parameters86, + queryParameters: [Parameters.apiVersion6], + 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: {} + }, + 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..70eee17986f9 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.parameters47, + 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 cb49ab65136e..3a5d968089f7 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -383,7 +383,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -413,8 +413,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters59, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -431,7 +431,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, @@ -451,7 +451,7 @@ const listByServerOperationSpec: 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 15a1d4a16b29..f1f8ffff82a0 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -395,7 +395,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -425,8 +425,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -443,7 +443,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, @@ -463,7 +463,7 @@ const listByServerOperationSpec: 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 cc18cacebace..a9a12f06c1b8 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -122,6 +122,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 @@ -234,24 +252,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 @@ -275,6 +275,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.apiVersion6], + 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}", @@ -285,7 +305,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -315,8 +335,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion6], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -328,26 +348,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", diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts index 98d0861d987b..5f43c3f8f7b7 100644 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts @@ -320,7 +320,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/serverConfigurationOptions.ts b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts new file mode 100644 index 000000000000..f233d40aa4eb --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts @@ -0,0 +1,392 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ServerConfigurationOptions } 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 { + ServerConfigurationOption, + ServerConfigurationOptionsListByManagedInstanceNextOptionalParams, + ServerConfigurationOptionsListByManagedInstanceOptionalParams, + ServerConfigurationOptionsListByManagedInstanceResponse, + ServerConfigurationOptionName, + ServerConfigurationOptionsGetOptionalParams, + ServerConfigurationOptionsGetResponse, + ServerConfigurationOptionsCreateOrUpdateOptionalParams, + ServerConfigurationOptionsCreateOrUpdateResponse, + ServerConfigurationOptionsListByManagedInstanceNextResponse +} from "../models"; + +/// +/** Class containing ServerConfigurationOptions operations. */ +export class ServerConfigurationOptionsImpl + implements ServerConfigurationOptions { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class ServerConfigurationOptions class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of managed instance server configuration options. + * @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?: ServerConfigurationOptionsListByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByManagedInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByManagedInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerConfigurationOptionsListByManagedInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerConfigurationOptionsListByManagedInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByManagedInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByManagedInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByManagedInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerConfigurationOptionsListByManagedInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByManagedInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of managed instance server configuration options. + * @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?: ServerConfigurationOptionsListByManagedInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec + ); + } + + /** + * Gets managed instance server configuration option. + * @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 serverConfigurationOptionName The name of the server configuration option. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + serverConfigurationOptionName: ServerConfigurationOptionName, + options?: ServerConfigurationOptionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + serverConfigurationOptionName, + options + }, + getOperationSpec + ); + } + + /** + * Updates managed instance server configuration option. + * @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 serverConfigurationOptionName The name of the server configuration option. + * @param parameters Server configuration option parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + serverConfigurationOptionName: ServerConfigurationOptionName, + parameters: ServerConfigurationOption, + options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServerConfigurationOptionsCreateOrUpdateResponse + > + > { + 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, + serverConfigurationOptionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Updates managed instance server configuration option. + * @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 serverConfigurationOptionName The name of the server configuration option. + * @param parameters Server configuration option parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + serverConfigurationOptionName: ServerConfigurationOptionName, + parameters: ServerConfigurationOption, + options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + managedInstanceName, + serverConfigurationOptionName, + 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?: ServerConfigurationOptionsListByManagedInstanceNextOptionalParams + ): 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}/serverConfigurationOptions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerConfigurationOptionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + 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}/serverConfigurationOptions/{serverConfigurationOptionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerConfigurationOption + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.serverConfigurationOptionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverConfigurationOptions/{serverConfigurationOptionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerConfigurationOption + }, + 201: { + bodyMapper: Mappers.ServerConfigurationOption + }, + 202: { + bodyMapper: Mappers.ServerConfigurationOption + }, + 204: { + bodyMapper: Mappers.ServerConfigurationOption + }, + default: {} + }, + requestBody: Parameters.parameters103, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.serverConfigurationOptionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerConfigurationOptionListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts index 1397ac20a488..3199098ad1b3 100644 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts @@ -298,7 +298,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -328,8 +328,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters88, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -351,7 +351,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts index 1d2a45c356ce..8a610df1cdb4 100644 --- a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -20,6 +20,7 @@ import { ServerDevOpsAuditSettingsListByServerNextOptionalParams, ServerDevOpsAuditSettingsListByServerOptionalParams, ServerDevOpsAuditSettingsListByServerResponse, + DevOpsAuditingSettingsName, ServerDevOpsAuditSettingsGetOptionalParams, ServerDevOpsAuditSettingsGetResponse, ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams, @@ -122,19 +123,36 @@ export class ServerDevOpsAuditSettingsImpl } } + /** + * Lists DevOps audit 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?: ServerDevOpsAuditSettingsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server's DevOps audit 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 serverName The name of the server. - * @param devOpsAuditingSettingsName The name of the devops audit settings. This should always be - * 'default'. + * @param devOpsAuditingSettingsName * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, - devOpsAuditingSettingsName: string, + devOpsAuditingSettingsName: DevOpsAuditingSettingsName, options?: ServerDevOpsAuditSettingsGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -148,15 +166,14 @@ export class ServerDevOpsAuditSettingsImpl * @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 devOpsAuditingSettingsName The name of the devops audit settings. This should always be - * 'default'. + * @param devOpsAuditingSettingsName * @param parameters Properties of DevOps audit settings * @param options The options parameters. */ async beginCreateOrUpdate( resourceGroupName: string, serverName: string, - devOpsAuditingSettingsName: string, + devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams ): Promise< @@ -229,15 +246,14 @@ export class ServerDevOpsAuditSettingsImpl * @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 devOpsAuditingSettingsName The name of the devops audit settings. This should always be - * 'default'. + * @param devOpsAuditingSettingsName * @param parameters Properties of DevOps audit settings * @param options The options parameters. */ async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - devOpsAuditingSettingsName: string, + devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams ): Promise { @@ -251,24 +267,6 @@ export class ServerDevOpsAuditSettingsImpl return poller.pollUntilDone(); } - /** - * Lists DevOps audit 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?: ServerDevOpsAuditSettingsListByServerOptionalParams - ): 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 @@ -292,6 +290,26 @@ export class ServerDevOpsAuditSettingsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerDevOpsAuditSettingsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + 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}/devOpsAuditingSettings/{devOpsAuditingSettingsName}", @@ -302,7 +320,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -332,8 +350,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters61, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -345,26 +363,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerDevOpsAuditSettingsListResult - }, - 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", diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index 121074191084..b4f510d844db 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -478,7 +478,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -508,7 +508,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -524,7 +524,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, @@ -544,7 +544,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -573,8 +573,8 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters51, + 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 93ff032e951a..d15e9cfe4523 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -387,7 +387,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -407,7 +407,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -437,8 +437,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters63, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -455,7 +455,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, diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts index 013860eb26bc..77096439d5c9 100644 --- a/sdk/sql/arm-sql/src/operations/serverOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -166,7 +166,7 @@ const listByServerOperationSpec: 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 c1d541b8c37e..f85f17feb816 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -299,7 +299,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -329,8 +329,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -352,7 +352,7 @@ const listByServerOperationSpec: 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..ebf72f7f91ee --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts @@ -0,0 +1,492 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +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: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: ServerTrustCertificatesListByInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerTrustCertificatesListByInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + 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.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}/serverTrustCertificates/{certificateName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustCertificate + }, + default: {} + }, + queryParameters: [Parameters.apiVersion6], + 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.parameters76, + queryParameters: [Parameters.apiVersion6], + 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.apiVersion6], + 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: {} + }, + 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 429fff707d42..8f2955ba9584 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -518,7 +518,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -548,8 +548,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -566,7 +566,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, @@ -586,7 +586,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -606,7 +606,7 @@ const listByInstanceOperationSpec: 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 7fe58d35a8f8..20761d0fd98e 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -243,7 +243,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -267,8 +267,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -285,7 +285,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, @@ -305,7 +305,7 @@ const listByServerOperationSpec: 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 07acdf208510..9a74623c0375 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -646,7 +646,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -665,7 +665,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3, Parameters.expand], + queryParameters: [Parameters.expand, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -694,8 +694,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters80, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -711,7 +711,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, @@ -739,8 +739,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters81, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -760,7 +760,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 @@ -784,8 +784,8 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters82, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -806,8 +806,8 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts index a5601ff58f3d..c716e72e528e 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.parameters56, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts new file mode 100644 index 000000000000..4fd7186b91ef --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts @@ -0,0 +1,284 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SqlVulnerabilityAssessmentBaseline } 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 { + DatabaseSqlVulnerabilityAssessmentBaselineSet, + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams, + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams, + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse, + BaselineName, + SqlVulnerabilityAssessmentBaselineGetOptionalParams, + SqlVulnerabilityAssessmentBaselineGetResponse, + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse +} from "../models"; + +/// +/** Class containing SqlVulnerabilityAssessmentBaseline operations. */ +export class SqlVulnerabilityAssessmentBaselineImpl + implements SqlVulnerabilityAssessmentBaseline { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentBaseline class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + public listBySqlVulnerabilityAssessment( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlVulnerabilityAssessmentPagingAll( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySqlVulnerabilityAssessmentPagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options, + settings + ); + } + }; + } + + private async *listBySqlVulnerabilityAssessmentPagingPage( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySqlVulnerabilityAssessment( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySqlVulnerabilityAssessmentNext( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySqlVulnerabilityAssessmentPagingAll( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlVulnerabilityAssessmentPagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessment( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + ): Promise< + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, vulnerabilityAssessmentName, options }, + listBySqlVulnerabilityAssessmentOperationSpec + ); + } + + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentBaselineGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + options + }, + getOperationSpec + ); + } + + /** + * ListBySqlVulnerabilityAssessmentNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param nextLink The nextLink from the previous successful call to the + * ListBySqlVulnerabilityAssessment method. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessmentNext( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + nextLink: string, + options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams + ): Promise< + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + nextLink, + options + }, + listBySqlVulnerabilityAssessmentNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSetListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSet + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSetListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts new file mode 100644 index 000000000000..dd9e735356a4 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts @@ -0,0 +1,92 @@ +/* + * 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 { SqlVulnerabilityAssessmentBaselines } 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 { + VulnerabilityAssessmentName, + BaselineName, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams, + SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse +} from "../models"; + +/** Class containing SqlVulnerabilityAssessmentBaselines operations. */ +export class SqlVulnerabilityAssessmentBaselinesImpl + implements SqlVulnerabilityAssessmentBaselines { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentBaselines class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Add a database's vulnerability assessment rule baseline list. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + options?: SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentBaselineSet + }, + default: {} + }, + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts new file mode 100644 index 000000000000..04aa7dd7e0c3 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts @@ -0,0 +1,140 @@ +/* + * 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 { SqlVulnerabilityAssessmentExecuteScan } 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 { + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +} from "../models"; + +/** Class containing SqlVulnerabilityAssessmentExecuteScan operations. */ +export class SqlVulnerabilityAssessmentExecuteScanImpl + implements SqlVulnerabilityAssessmentExecuteScan { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentExecuteScan class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + async beginExecute( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): 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, serverName, vulnerabilityAssessmentName, options }, + executeOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + async beginExecuteAndWait( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): Promise { + const poller = await this.beginExecute( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const executeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName + ], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts new file mode 100644 index 000000000000..f1d302ffee6c --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts @@ -0,0 +1,369 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SqlVulnerabilityAssessmentRuleBaseline } 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 { + DatabaseSqlVulnerabilityAssessmentRuleBaseline, + VulnerabilityAssessmentName, + BaselineName, + SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse, + SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineGetResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse, + SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse +} from "../models"; + +/// +/** Class containing SqlVulnerabilityAssessmentRuleBaseline operations. */ +export class SqlVulnerabilityAssessmentRuleBaselineImpl + implements SqlVulnerabilityAssessmentRuleBaseline { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentRuleBaseline class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a system database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + public listByBaseline( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + ): PagedAsyncIterableIterator< + DatabaseSqlVulnerabilityAssessmentRuleBaseline + > { + const iter = this.listByBaselinePagingAll( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByBaselinePagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + options, + settings + ); + } + }; + } + + private async *listByBaselinePagingPage( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByBaseline( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByBaselineNext( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByBaselinePagingAll( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByBaselinePagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + options + )) { + yield* page; + } + } + + /** + * Gets a system database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + private _listByBaseline( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + options + }, + listByBaselineOperationSpec + ); + } + + /** + * Gets a system database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + ruleId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + options?: SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + ruleId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * ListByBaselineNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param nextLink The nextLink from the previous successful call to the ListByBaseline method. + * @param options The options parameters. + */ + private _listByBaselineNext( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + nextLink: string, + options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + nextLink, + options + }, + listByBaselineNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByBaselineOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaseline + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaseline + }, + default: {} + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByBaselineNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink, + Parameters.vulnerabilityAssessmentName, + Parameters.baselineName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts new file mode 100644 index 000000000000..451b05ebf0bf --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SqlVulnerabilityAssessmentRuleBaselines } 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 { + VulnerabilityAssessmentName, + BaselineName, + SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +} from "../models"; + +/** Class containing SqlVulnerabilityAssessmentRuleBaselines operations. */ +export class SqlVulnerabilityAssessmentRuleBaselinesImpl + implements SqlVulnerabilityAssessmentRuleBaselines { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentRuleBaselines class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Removes the database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + baselineName, + ruleId, + options + }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName1 + ], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts new file mode 100644 index 000000000000..5d2863263bfc --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts @@ -0,0 +1,302 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SqlVulnerabilityAssessmentScanResult } 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 { + SqlVulnerabilityAssessmentScanResults, + SQLVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams, + SqlVulnerabilityAssessmentScanResultListByScanOptionalParams, + SqlVulnerabilityAssessmentScanResultListByScanResponse, + SqlVulnerabilityAssessmentScanResultGetOptionalParams, + SqlVulnerabilityAssessmentScanResultGetResponse, + SqlVulnerabilityAssessmentScanResultListByScanNextResponse +} from "../models"; + +/// +/** Class containing SqlVulnerabilityAssessmentScanResult operations. */ +export class SqlVulnerabilityAssessmentScanResultImpl + implements SqlVulnerabilityAssessmentScanResult { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentScanResult class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param options The options parameters. + */ + public listByScan( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByScanPagingAll( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByScanPagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + options, + settings + ); + } + }; + } + + private async *listByScanPagingPage( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SqlVulnerabilityAssessmentScanResultListByScanResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByScan( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByScanNext( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByScanPagingAll( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByScanPagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + options + )) { + yield* page; + } + } + + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param options The options parameters. + */ + private _listByScan( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + options + }, + listByScanOperationSpec + ); + } + + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param scanResultId The scan result id of the specific result to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + scanResultId: string, + options?: SqlVulnerabilityAssessmentScanResultGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + scanResultId, + options + }, + getOperationSpec + ); + } + + /** + * ListByScanNext + * @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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param nextLink The nextLink from the previous successful call to the ListByScan method. + * @param options The options parameters. + */ + private _listByScanNext( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + nextLink: string, + options?: SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + nextLink, + options + }, + listByScanNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByScanOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/scanResults", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SQLVulnerabilityAssessmentScanListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.scanId, + Parameters.vulnerabilityAssessmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/scanResults/{scanResultId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanResults + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.scanId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanResultId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByScanNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SQLVulnerabilityAssessmentScanListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink, + Parameters.scanId, + Parameters.vulnerabilityAssessmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..d2cc26d34435 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -0,0 +1,281 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SqlVulnerabilityAssessmentScans } 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 { + SqlVulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams, + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams, + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse, + SqlVulnerabilityAssessmentScansGetOptionalParams, + SqlVulnerabilityAssessmentScansGetResponse, + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse +} from "../models"; + +/// +/** Class containing SqlVulnerabilityAssessmentScans operations. */ +export class SqlVulnerabilityAssessmentScansImpl + implements SqlVulnerabilityAssessmentScans { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentScans class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + public listBySqlVulnerabilityAssessments( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlVulnerabilityAssessmentsPagingAll( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySqlVulnerabilityAssessmentsPagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options, + settings + ); + } + }; + } + + private async *listBySqlVulnerabilityAssessmentsPagingPage( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySqlVulnerabilityAssessments( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySqlVulnerabilityAssessmentsNext( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySqlVulnerabilityAssessmentsPagingAll( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlVulnerabilityAssessmentsPagingPage( + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + options + )) { + yield* page; + } + } + + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessments( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): Promise< + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, vulnerabilityAssessmentName, options }, + listBySqlVulnerabilityAssessmentsOperationSpec + ); + } + + /** + * Get a system database vulnerability assessment scan record. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * ListBySqlVulnerabilityAssessmentsNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param nextLink The nextLink from the previous successful call to the + * ListBySqlVulnerabilityAssessments method. + * @param options The options parameters. + */ + private _listBySqlVulnerabilityAssessmentsNext( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + nextLink: string, + options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + ): Promise< + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + nextLink, + options + }, + listBySqlVulnerabilityAssessmentsNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanRecord + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1, Parameters.systemDatabaseName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName, + Parameters.scanId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts new file mode 100644 index 000000000000..31c09b90ea2f --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts @@ -0,0 +1,69 @@ +/* + * 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 { SqlVulnerabilityAssessments } 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 { + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentsDeleteOptionalParams +} from "../models"; + +/** Class containing SqlVulnerabilityAssessments operations. */ +export class SqlVulnerabilityAssessmentsImpl + implements SqlVulnerabilityAssessments { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessments class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Removes SQL Vulnerability Assessment. + * @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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, vulnerabilityAssessmentName, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName + ], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..e704028b3812 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,299 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SqlVulnerabilityAssessmentsSettings } 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 { + SqlVulnerabilityAssessment, + SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams, + SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams, + SqlVulnerabilityAssessmentsSettingsListByServerResponse, + SqlVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentsSettingsGetOptionalParams, + SqlVulnerabilityAssessmentsSettingsGetResponse, + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, + SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse, + SqlVulnerabilityAssessmentsSettingsListByServerNextResponse +} from "../models"; + +/// +/** Class containing SqlVulnerabilityAssessmentsSettings operations. */ +export class SqlVulnerabilityAssessmentsSettingsImpl + implements SqlVulnerabilityAssessmentsSettings { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SqlVulnerabilityAssessmentsSettings class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Lists SQL Vulnerability Assessment policies associated with 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. + */ + public listByServer( + resourceGroupName: string, + serverName: string, + options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServerPagingAll( + resourceGroupName, + serverName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServerPagingPage( + resourceGroupName, + serverName, + options, + settings + ); + } + }; + } + + private async *listByServerPagingPage( + resourceGroupName: string, + serverName: string, + options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SqlVulnerabilityAssessmentsSettingsListByServerResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByServer(resourceGroupName, serverName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServerNext( + resourceGroupName, + serverName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServerPagingAll( + resourceGroupName: string, + serverName: string, + options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServerPagingPage( + resourceGroupName, + serverName, + options + )) { + yield* page; + } + } + + /** + * Lists SQL Vulnerability Assessment policies associated with 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?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + + /** + * Gets SQL Vulnerability Assessment 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, vulnerabilityAssessmentName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates SQL Vulnerability Assessment 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param parameters The requested resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + parameters: SqlVulnerabilityAssessment, + options?: SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + vulnerabilityAssessmentName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * 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?: SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams + ): 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}/sqlVulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + 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}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessment + }, + default: {} + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName2 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessment + }, + 201: { + bodyMapper: Mappers.SqlVulnerabilityAssessment + }, + default: {} + }, + requestBody: Parameters.parameters98, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SqlVulnerabilityAssessmentListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts new file mode 100644 index 000000000000..9d5c8c8b9c7c --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts @@ -0,0 +1,348 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { StartStopManagedInstanceSchedules } 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 { + StartStopManagedInstanceSchedule, + StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams, + StartStopManagedInstanceSchedulesListByInstanceOptionalParams, + StartStopManagedInstanceSchedulesListByInstanceResponse, + StartStopScheduleName, + StartStopManagedInstanceSchedulesGetOptionalParams, + StartStopManagedInstanceSchedulesGetResponse, + StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams, + StartStopManagedInstanceSchedulesCreateOrUpdateResponse, + StartStopManagedInstanceSchedulesDeleteOptionalParams, + StartStopManagedInstanceSchedulesListByInstanceNextResponse +} from "../models"; + +/// +/** Class containing StartStopManagedInstanceSchedules operations. */ +export class StartStopManagedInstanceSchedulesImpl + implements StartStopManagedInstanceSchedules { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class StartStopManagedInstanceSchedules class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Lists the managed instance's Start/Stop schedules. + * @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?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByInstancePagingAll( + resourceGroupName, + managedInstanceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options, + settings + ); + } + }; + } + + private async *listByInstancePagingPage( + resourceGroupName: string, + managedInstanceName: string, + options?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: StartStopManagedInstanceSchedulesListByInstanceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByInstance( + resourceGroupName, + managedInstanceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByInstanceNext( + resourceGroupName, + managedInstanceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByInstancePagingAll( + resourceGroupName: string, + managedInstanceName: string, + options?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByInstancePagingPage( + resourceGroupName, + managedInstanceName, + options + )) { + yield* page; + } + } + + /** + * Lists the managed instance's Start/Stop schedules. + * @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?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets the managed instance's Start/Stop schedule. + * @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 startStopScheduleName Name of the managed instance Start/Stop schedule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + startStopScheduleName: StartStopScheduleName, + options?: StartStopManagedInstanceSchedulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + startStopScheduleName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates the managed instance's Start/Stop schedule. + * @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 startStopScheduleName Name of the managed instance Start/Stop schedule. + * @param parameters The requested managed instance Start/Stop schedule. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + startStopScheduleName: StartStopScheduleName, + parameters: StartStopManagedInstanceSchedule, + options?: StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + startStopScheduleName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the managed instance's Start/Stop schedule. + * @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 startStopScheduleName Name of the managed instance Start/Stop schedule. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + managedInstanceName: string, + startStopScheduleName: StartStopScheduleName, + options?: StartStopManagedInstanceSchedulesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + startStopScheduleName, + options + }, + deleteOperationSpec + ); + } + + /** + * 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?: StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams + ): 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}/startStopSchedules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StartStopManagedInstanceScheduleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + 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}/startStopSchedules/{startStopScheduleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StartStopManagedInstanceSchedule + }, + default: {} + }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.startStopScheduleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/{startStopScheduleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StartStopManagedInstanceSchedule + }, + 201: { + bodyMapper: Mappers.StartStopManagedInstanceSchedule + }, + default: {} + }, + requestBody: Parameters.parameters105, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.startStopScheduleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/{startStopScheduleName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion8], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.startStopScheduleName + ], + serializer +}; +const listByInstanceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StartStopManagedInstanceScheduleListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index c81d4a018732..21f0c1222413 100644 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts @@ -163,7 +163,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,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/synapseLinkWorkspaces.ts b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts new file mode 100644 index 000000000000..0afc123924ac --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts @@ -0,0 +1,216 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SynapseLinkWorkspaces } 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 { + SynapseLinkWorkspace, + SynapseLinkWorkspacesListByDatabaseNextOptionalParams, + SynapseLinkWorkspacesListByDatabaseOptionalParams, + SynapseLinkWorkspacesListByDatabaseResponse, + SynapseLinkWorkspacesListByDatabaseNextResponse +} from "../models"; + +/// +/** Class containing SynapseLinkWorkspaces operations. */ +export class SynapseLinkWorkspacesImpl implements SynapseLinkWorkspaces { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class SynapseLinkWorkspaces class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets all synapselink workspaces for 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. + */ + public listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SynapseLinkWorkspacesListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + serverName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options, + settings + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SynapseLinkWorkspacesListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SynapseLinkWorkspacesListByDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SynapseLinkWorkspacesListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets all synapselink workspaces for 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. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SynapseLinkWorkspacesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * 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?: SynapseLinkWorkspacesListByDatabaseNextOptionalParams + ): Promise { + 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}/linkWorkspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SynapseLinkWorkspaceListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion7], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SynapseLinkWorkspaceListResult + }, + default: {} + }, + 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/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index b9bd75c43154..84b356a1eac1 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -544,7 +544,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -574,8 +574,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters68, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -592,7 +592,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, @@ -612,7 +612,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -632,7 +632,7 @@ const generateKeyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -653,7 +653,7 @@ const listLinkedDatabasesOperationSpec: 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 5dfa5e776422..c449b2f9094e 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -26,7 +26,7 @@ import { SyncGroupsListHubSchemasResponse, SyncGroupLogProperties, SyncGroupsListLogsNextOptionalParams, - Enum60, + SyncGroupsType, SyncGroupsListLogsOptionalParams, SyncGroupsListLogsResponse, SyncGroup, @@ -253,7 +253,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator { const iter = this.listLogsPagingAll( @@ -299,7 +299,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams, settings?: PageSettings ): AsyncIterableIterator { @@ -344,7 +344,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( @@ -605,7 +605,7 @@ export class SyncGroupsImpl implements SyncGroups { syncGroupName: string, startTime: string, endTime: string, - typeParam: Enum60, + typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -1139,7 +1139,7 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1153,7 +1153,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, @@ -1174,7 +1174,7 @@ const listHubSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1197,7 +1197,7 @@ const listLogsOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion3, Parameters.startTime1, Parameters.endTime1, Parameters.typeParam, @@ -1219,7 +1219,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, @@ -1235,7 +1235,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, @@ -1256,7 +1256,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1287,8 +1287,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1306,7 +1306,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, @@ -1336,8 +1336,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1360,7 +1360,7 @@ const listByDatabaseOperationSpec: 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 4da469cdf666..80cc2124727c 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -872,7 +872,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -904,8 +904,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -924,7 +924,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, @@ -955,8 +955,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -980,7 +980,7 @@ const listBySyncGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1002,7 +1002,7 @@ const listMemberSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1020,7 +1020,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, diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index 60b45324a51b..92cb61791ff9 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.parameters42, + 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 56026f2bf621..b4188003f731 100644 --- a/sdk/sql/arm-sql/src/operations/timeZones.ts +++ b/sdk/sql/arm-sql/src/operations/timeZones.ts @@ -163,7 +163,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,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/transparentDataEncryptions.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts index 473e7920004b..4f6889655ff2 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -246,7 +246,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -272,8 +272,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 202: {}, default: {} }, - requestBody: Parameters.parameters75, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -296,7 +296,7 @@ const listByDatabaseOperationSpec: 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 2d1e669e019a..b2be9a59c7bb 100644 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ b/sdk/sql/arm-sql/src/operations/usages.ts @@ -170,7 +170,7 @@ const listByInstancePoolOperationSpec: 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 47dae588ab20..b20d54b92ac5 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -23,14 +23,14 @@ import { VirtualClustersListByResourceGroupNextOptionalParams, VirtualClustersListByResourceGroupOptionalParams, VirtualClustersListByResourceGroupResponse, - VirtualClustersUpdateDnsServersOptionalParams, - VirtualClustersUpdateDnsServersResponse, VirtualClustersGetOptionalParams, VirtualClustersGetResponse, VirtualClustersDeleteOptionalParams, VirtualClusterUpdate, VirtualClustersUpdateOptionalParams, VirtualClustersUpdateResponse, + VirtualClustersUpdateDnsServersOptionalParams, + VirtualClustersUpdateDnsServersResponse, VirtualClustersListNextResponse, VirtualClustersListByResourceGroupNextResponse } from "../models"; @@ -172,24 +172,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. @@ -319,7 +301,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. @@ -390,7 +372,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. @@ -412,6 +394,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. @@ -448,26 +519,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", @@ -478,7 +529,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -493,7 +544,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -512,7 +563,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -527,7 +578,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, @@ -555,8 +606,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -567,6 +618,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", diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index 55d3700d3300..586f191a0f6a 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.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.parameters72, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -435,7 +435,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, @@ -455,7 +455,7 @@ const listByServerOperationSpec: 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 feb69c3391d9..f77628dd9b1c 100644 --- a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -470,7 +470,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -502,8 +502,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -522,7 +522,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, @@ -544,7 +544,7 @@ const listByWorkloadGroupOperationSpec: 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 1acc3d0bb95c..50ee8b6af22a 100644 --- a/sdk/sql/arm-sql/src/operations/workloadGroups.ts +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -429,7 +429,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -460,8 +460,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -479,7 +479,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, @@ -500,7 +500,7 @@ const listByDatabaseOperationSpec: 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/databaseSqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentBaselines.ts new file mode 100644 index 000000000000..3d2865edf3e3 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentBaselines.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 { + DatabaseSqlVulnerabilityAssessmentBaselineSet, + VulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams, + BaselineName, + DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams, + DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a DatabaseSqlVulnerabilityAssessmentBaselines. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselines { + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + listBySqlVulnerabilityAssessment( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams + ): Promise; + /** + * Add a database's vulnerability assessment rule baseline list. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + options?: DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentExecuteScan.ts new file mode 100644 index 000000000000..fefa1012d517 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentExecuteScan.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + VulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +} from "../models"; + +/** Interface representing a DatabaseSqlVulnerabilityAssessmentExecuteScan. */ +export interface DatabaseSqlVulnerabilityAssessmentExecuteScan { + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + beginExecute( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): Promise, void>>; + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + beginExecuteAndWait( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentRuleBaselines.ts new file mode 100644 index 000000000000..c33b5ce65b76 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentRuleBaselines.ts @@ -0,0 +1,108 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DatabaseSqlVulnerabilityAssessmentRuleBaseline, + VulnerabilityAssessmentName, + BaselineName, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a DatabaseSqlVulnerabilityAssessmentRuleBaselines. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselines { + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + listByBaseline( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams + ): Promise; + /** + * Creates or updates a database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + ): Promise< + DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse + >; + /** + * Removes the database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts new file mode 100644 index 000000000000..f28d111d2a45 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -0,0 +1,59 @@ +/* + * 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 { + SqlVulnerabilityAssessmentScanResults, + SQLVulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams, + DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentScanResultGetResponse +} from "../models"; + +/// +/** Interface representing a DatabaseSqlVulnerabilityAssessmentScanResult. */ +export interface DatabaseSqlVulnerabilityAssessmentScanResult { + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param options The options parameters. + */ + listByScan( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param scanResultId The scan result id of the specific result to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + scanResultId: string, + options?: DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..8d893677cc59 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScans.ts @@ -0,0 +1,55 @@ +/* + * 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 { + SqlVulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams, + DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentScansGetResponse +} from "../models"; + +/// +/** Interface representing a DatabaseSqlVulnerabilityAssessmentScans. */ +export interface DatabaseSqlVulnerabilityAssessmentScans { + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + listBySqlVulnerabilityAssessments( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a database vulnerability assessment scan result. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..aa2952ce6349 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,51 @@ +/* + * 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 { + SqlVulnerabilityAssessment, + DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams, + SqlVulnerabilityAssessmentName, + DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams, + DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse +} from "../models"; + +/// +/** Interface representing a DatabaseSqlVulnerabilityAssessmentsSettings. */ +export interface DatabaseSqlVulnerabilityAssessmentsSettings { + /** + * Lists SQL Vulnerability Assessment policies associated with 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. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets SQL Vulnerability Assessment policy for 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, + options?: DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + ): 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..35daf9511b28 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"; @@ -56,13 +51,9 @@ export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; export * from "./managedDatabaseColumns"; export * from "./managedDatabaseQueries"; -export * from "./managedDatabaseRestoreDetails"; -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 +72,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 +94,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"; @@ -121,7 +108,49 @@ export * from "./servers"; export * from "./usages"; export * from "./longTermRetentionBackups"; export * from "./longTermRetentionManagedInstanceBackups"; -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 "./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 "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; +export * from "./managedDatabaseRestoreDetails"; +export * from "./managedDatabases"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; +export * from "./replicationLinks"; +export * from "./sqlVulnerabilityAssessmentBaseline"; +export * from "./sqlVulnerabilityAssessmentBaselines"; +export * from "./sqlVulnerabilityAssessmentExecuteScan"; +export * from "./sqlVulnerabilityAssessmentRuleBaseline"; +export * from "./sqlVulnerabilityAssessmentRuleBaselines"; +export * from "./sqlVulnerabilityAssessmentScanResult"; +export * from "./sqlVulnerabilityAssessmentScans"; +export * from "./sqlVulnerabilityAssessmentsSettings"; +export * from "./sqlVulnerabilityAssessments"; +export * from "./managedDatabaseMoveOperations"; +export * from "./managedInstanceDtcs"; +export * from "./synapseLinkWorkspaces"; +export * from "./virtualClusters"; +export * from "./managedInstances"; +export * from "./serverConfigurationOptions"; +export * from "./managedLedgerDigestUploadsOperations"; +export * from "./startStopManagedInstanceSchedules"; 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/managedDatabases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabases.ts index 11fdc902d23c..dda791d75a97 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabases.ts @@ -20,8 +20,13 @@ import { ManagedDatabaseUpdate, ManagedDatabasesUpdateOptionalParams, ManagedDatabasesUpdateResponse, + ManagedDatabaseMoveDefinition, + ManagedDatabasesCancelMoveOptionalParams, + ManagedDatabasesCompleteMoveOptionalParams, CompleteDatabaseRestoreDefinition, - ManagedDatabasesCompleteRestoreOptionalParams + ManagedDatabasesCompleteRestoreOptionalParams, + ManagedDatabaseStartMoveDefinition, + ManagedDatabasesStartMoveOptionalParams } from "../models"; /// @@ -167,6 +172,70 @@ export interface ManagedDatabases { parameters: ManagedDatabaseUpdate, options?: ManagedDatabasesUpdateOptionalParams ): Promise; + /** + * Cancels 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the cancel managed database move operation. + * @param options The options parameters. + */ + beginCancelMove( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCancelMoveOptionalParams + ): Promise, void>>; + /** + * Cancels 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the cancel managed database move operation. + * @param options The options parameters. + */ + beginCancelMoveAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCancelMoveOptionalParams + ): Promise; + /** + * Completes 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the complete managed database move operation. + * @param options The options parameters. + */ + beginCompleteMove( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCompleteMoveOptionalParams + ): Promise, void>>; + /** + * Completes 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the complete managed database move operation. + * @param options The options parameters. + */ + beginCompleteMoveAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseMoveDefinition, + options?: ManagedDatabasesCompleteMoveOptionalParams + ): Promise; /** * Completes the restore operation on a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -199,4 +268,36 @@ export interface ManagedDatabases { parameters: CompleteDatabaseRestoreDefinition, options?: ManagedDatabasesCompleteRestoreOptionalParams ): Promise; + /** + * Starts 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the start managed database move operation. + * @param options The options parameters. + */ + beginStartMove( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseStartMoveDefinition, + options?: ManagedDatabasesStartMoveOptionalParams + ): Promise, void>>; + /** + * Starts 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters Parameters of the start managed database move operation. + * @param options The options parameters. + */ + beginStartMoveAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: ManagedDatabaseStartMoveDefinition, + options?: ManagedDatabasesStartMoveOptionalParams + ): 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/managedInstances.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts index 001b1f49f3cd..280a41ac42ba 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts @@ -10,9 +10,11 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { ManagedInstance, - ManagedInstancesListByInstancePoolOptionalParams, ManagedInstancesListOptionalParams, + ManagedInstancesListByInstancePoolOptionalParams, ManagedInstancesListByResourceGroupOptionalParams, + OutboundEnvironmentEndpoint, + ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams, TopQueries, ManagedInstancesListByManagedInstanceOptionalParams, ManagedInstancesGetOptionalParams, @@ -23,12 +25,21 @@ import { ManagedInstanceUpdate, ManagedInstancesUpdateOptionalParams, ManagedInstancesUpdateResponse, - ManagedInstancesFailoverOptionalParams + ManagedInstancesFailoverOptionalParams, + ManagedInstancesStartOptionalParams, + ManagedInstancesStopOptionalParams } from "../models"; /// /** Interface representing a ManagedInstances. */ export interface ManagedInstances { + /** + * Gets a list of all managed instances in the subscription. + * @param options The options parameters. + */ + list( + options?: ManagedInstancesListOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a list of all managed instances in an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -41,13 +52,6 @@ export interface ManagedInstances { instancePoolName: string, options?: ManagedInstancesListByInstancePoolOptionalParams ): PagedAsyncIterableIterator; - /** - * Gets a list of all managed instances in the subscription. - * @param options The options parameters. - */ - list( - options?: ManagedInstancesListOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a list of managed instances in a resource group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -58,6 +62,18 @@ export interface ManagedInstances { resourceGroupName: string, options?: ManagedInstancesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the collection of outbound network dependencies for the given 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. + */ + listOutboundNetworkDependenciesByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator; /** * Get top resource consuming queries of a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -196,4 +212,52 @@ export interface ManagedInstances { managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams ): Promise; + /** + * Starts the 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. + */ + beginStart( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesStartOptionalParams + ): Promise, void>>; + /** + * Starts the 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. + */ + beginStartAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesStartOptionalParams + ): Promise; + /** + * Stops the 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. + */ + beginStop( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesStopOptionalParams + ): Promise, void>>; + /** + * Stops the 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. + */ + beginStopAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesStopOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedLedgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedLedgerDigestUploadsOperations.ts new file mode 100644 index 000000000000..32687d352644 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedLedgerDigestUploadsOperations.ts @@ -0,0 +1,136 @@ +/* + * 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 { + ManagedLedgerDigestUploads, + ManagedLedgerDigestUploadsListByDatabaseOptionalParams, + ManagedLedgerDigestUploadsName, + ManagedLedgerDigestUploadsGetOptionalParams, + ManagedLedgerDigestUploadsGetResponse, + ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams, + ManagedLedgerDigestUploadsCreateOrUpdateResponse, + ManagedLedgerDigestUploadsDisableOptionalParams, + ManagedLedgerDigestUploadsDisableResponse +} from "../models"; + +/// +/** Interface representing a ManagedLedgerDigestUploadsOperations. */ +export interface ManagedLedgerDigestUploadsOperations { + /** + * Gets all ledger digest upload settings on 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 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?: ManagedLedgerDigestUploadsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the current ledger digest upload configuration for 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param ledgerDigestUploads + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + options?: ManagedLedgerDigestUploadsGetOptionalParams + ): Promise; + /** + * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger 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 databaseName The name of the database. + * @param ledgerDigestUploads The name of the Ledger Digest Upload Configurations. + * @param parameters The Ledger Digest Storage Endpoint. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + parameters: ManagedLedgerDigestUploads, + options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedLedgerDigestUploadsCreateOrUpdateResponse + > + >; + /** + * Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger 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 databaseName The name of the database. + * @param ledgerDigestUploads The name of the Ledger Digest Upload Configurations. + * @param parameters The Ledger Digest Storage Endpoint. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + parameters: ManagedLedgerDigestUploads, + options?: ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + ): Promise; + /** + * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger + * 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 databaseName The name of the database. + * @param ledgerDigestUploads + * @param options The options parameters. + */ + beginDisable( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + options?: ManagedLedgerDigestUploadsDisableOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ManagedLedgerDigestUploadsDisableResponse + > + >; + /** + * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger + * 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 databaseName The name of the database. + * @param ledgerDigestUploads + * @param options The options parameters. + */ + beginDisableAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + ledgerDigestUploads: ManagedLedgerDigestUploadsName, + options?: ManagedLedgerDigestUploadsDisableOptionalParams + ): 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..44db73ea3dd9 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,113 @@ 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( + beginDelete( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams + options?: ReplicationLinksDeleteOptionalParams ): Promise, void>>; /** - * 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. */ - beginFailoverAndWait( + beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverOptionalParams + options?: ReplicationLinksDeleteOptionalParams ): Promise; /** - * Sets which replica database is primary by failing over from the current primary replica database. - * This operation might result in 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 options The options parameters. - */ - beginFailoverAllowDataLoss( - resourceGroupName: string, - serverName: string, - databaseName: string, - linkId: string, - options?: ReplicationLinksFailoverAllowDataLossOptionalParams - ): Promise, void>>; - /** - * 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. */ - beginFailoverAllowDataLossAndWait( + beginFailover( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - options?: ReplicationLinksFailoverAllowDataLossOptionalParams - ): Promise; + options?: ReplicationLinksFailoverOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ReplicationLinksFailoverResponse + > + >; /** - * Deletes a database replication link in forced or friendly way. + * 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 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. */ - beginUnlink( + beginFailoverAndWait( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - parameters: UnlinkParameters, - options?: ReplicationLinksUnlinkOptionalParams - ): Promise, void>>; + options?: ReplicationLinksFailoverOptionalParams + ): Promise; /** - * 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. */ - beginUnlinkAndWait( + beginFailoverAllowDataLoss( resourceGroupName: string, serverName: string, databaseName: string, linkId: string, - parameters: UnlinkParameters, - options?: ReplicationLinksUnlinkOptionalParams - ): Promise; + options?: ReplicationLinksFailoverAllowDataLossOptionalParams + ): 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 +165,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/serverConfigurationOptions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverConfigurationOptions.ts new file mode 100644 index 000000000000..6d57f6dd1273 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverConfigurationOptions.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 { + ServerConfigurationOption, + ServerConfigurationOptionsListByManagedInstanceOptionalParams, + ServerConfigurationOptionName, + ServerConfigurationOptionsGetOptionalParams, + ServerConfigurationOptionsGetResponse, + ServerConfigurationOptionsCreateOrUpdateOptionalParams, + ServerConfigurationOptionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ServerConfigurationOptions. */ +export interface ServerConfigurationOptions { + /** + * Gets a list of managed instance server configuration options. + * @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?: ServerConfigurationOptionsListByManagedInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets managed instance server configuration option. + * @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 serverConfigurationOptionName The name of the server configuration option. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + serverConfigurationOptionName: ServerConfigurationOptionName, + options?: ServerConfigurationOptionsGetOptionalParams + ): Promise; + /** + * Updates managed instance server configuration option. + * @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 serverConfigurationOptionName The name of the server configuration option. + * @param parameters Server configuration option parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + serverConfigurationOptionName: ServerConfigurationOptionName, + parameters: ServerConfigurationOption, + options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ServerConfigurationOptionsCreateOrUpdateResponse + > + >; + /** + * Updates managed instance server configuration option. + * @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 serverConfigurationOptionName The name of the server configuration option. + * @param parameters Server configuration option parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + managedInstanceName: string, + serverConfigurationOptionName: ServerConfigurationOptionName, + parameters: ServerConfigurationOption, + options?: ServerConfigurationOptionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverDevOpsAuditSettings.ts index 44ffdf85c2ce..0387f13a6a02 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverDevOpsAuditSettings.ts @@ -11,6 +11,7 @@ import { PollerLike, PollOperationState } from "@azure/core-lro"; import { ServerDevOpsAuditingSettings, ServerDevOpsAuditSettingsListByServerOptionalParams, + DevOpsAuditingSettingsName, ServerDevOpsAuditSettingsGetOptionalParams, ServerDevOpsAuditSettingsGetResponse, ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams, @@ -37,14 +38,13 @@ export interface ServerDevOpsAuditSettings { * @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 devOpsAuditingSettingsName The name of the devops audit settings. This should always be - * 'default'. + * @param devOpsAuditingSettingsName * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, - devOpsAuditingSettingsName: string, + devOpsAuditingSettingsName: DevOpsAuditingSettingsName, options?: ServerDevOpsAuditSettingsGetOptionalParams ): Promise; /** @@ -52,15 +52,14 @@ export interface ServerDevOpsAuditSettings { * @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 devOpsAuditingSettingsName The name of the devops audit settings. This should always be - * 'default'. + * @param devOpsAuditingSettingsName * @param parameters Properties of DevOps audit settings * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, serverName: string, - devOpsAuditingSettingsName: string, + devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams ): Promise< @@ -74,15 +73,14 @@ export interface ServerDevOpsAuditSettings { * @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 devOpsAuditingSettingsName The name of the devops audit settings. This should always be - * 'default'. + * @param devOpsAuditingSettingsName * @param parameters Properties of DevOps audit settings * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - devOpsAuditingSettingsName: string, + devOpsAuditingSettingsName: DevOpsAuditingSettingsName, parameters: ServerDevOpsAuditingSettings, options?: ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams ): 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/sqlVulnerabilityAssessmentBaseline.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentBaseline.ts new file mode 100644 index 000000000000..26e33f7d7c8c --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentBaseline.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DatabaseSqlVulnerabilityAssessmentBaselineSet, + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams, + BaselineName, + SqlVulnerabilityAssessmentBaselineGetOptionalParams, + SqlVulnerabilityAssessmentBaselineGetResponse +} from "../models"; + +/// +/** Interface representing a SqlVulnerabilityAssessmentBaseline. */ +export interface SqlVulnerabilityAssessmentBaseline { + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + listBySqlVulnerabilityAssessment( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a list of database's sql vulnerability assessment rule baselines. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentBaselineGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentBaselines.ts new file mode 100644 index 000000000000..68553ae022a1 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentBaselines.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + VulnerabilityAssessmentName, + BaselineName, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams, + SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse +} from "../models"; + +/** Interface representing a SqlVulnerabilityAssessmentBaselines. */ +export interface SqlVulnerabilityAssessmentBaselines { + /** + * Add a database's vulnerability assessment rule baseline list. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput, + options?: SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentExecuteScan.ts new file mode 100644 index 000000000000..9a23bacf6093 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentExecuteScan.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +} from "../models"; + +/** Interface representing a SqlVulnerabilityAssessmentExecuteScan. */ +export interface SqlVulnerabilityAssessmentExecuteScan { + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + beginExecute( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): Promise, void>>; + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + beginExecuteAndWait( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentRuleBaseline.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentRuleBaseline.ts new file mode 100644 index 000000000000..ffa4dbf1c58c --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentRuleBaseline.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 { + DatabaseSqlVulnerabilityAssessmentRuleBaseline, + VulnerabilityAssessmentName, + BaselineName, + SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineGetResponse, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams, + SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a SqlVulnerabilityAssessmentRuleBaseline. */ +export interface SqlVulnerabilityAssessmentRuleBaseline { + /** + * Gets a system database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param options The options parameters. + */ + listByBaseline( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + options?: SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a system database's sql vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams + ): Promise; + /** + * Creates or updates a database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + parameters: DatabaseSqlVulnerabilityAssessmentRuleBaselineInput, + options?: SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentRuleBaselines.ts new file mode 100644 index 000000000000..5f26c8dee233 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentRuleBaselines.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + VulnerabilityAssessmentName, + BaselineName, + SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +} from "../models"; + +/** Interface representing a SqlVulnerabilityAssessmentRuleBaselines. */ +export interface SqlVulnerabilityAssessmentRuleBaselines { + /** + * Removes the database's vulnerability assessment rule baseline. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param baselineName + * @param ruleId The vulnerability assessment rule ID. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + baselineName: BaselineName, + ruleId: string, + options?: SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts new file mode 100644 index 000000000000..859313120118 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts @@ -0,0 +1,55 @@ +/* + * 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 { + SqlVulnerabilityAssessmentScanResults, + SQLVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentScanResultListByScanOptionalParams, + SqlVulnerabilityAssessmentScanResultGetOptionalParams, + SqlVulnerabilityAssessmentScanResultGetResponse +} from "../models"; + +/// +/** Interface representing a SqlVulnerabilityAssessmentScanResult. */ +export interface SqlVulnerabilityAssessmentScanResult { + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param options The options parameters. + */ + listByScan( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a vulnerability assessment scan record 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param scanId The scan id of the SQL Vulnerability Assessment scan to retrieve result from. + * @param scanResultId The scan result id of the specific result to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + scanId: string, + scanResultId: string, + options?: SqlVulnerabilityAssessmentScanResultGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..683551d8503d --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScans.ts @@ -0,0 +1,51 @@ +/* + * 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 { + SqlVulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams, + SqlVulnerabilityAssessmentScansGetOptionalParams, + SqlVulnerabilityAssessmentScansGetResponse +} from "../models"; + +/// +/** Interface representing a SqlVulnerabilityAssessmentScans. */ +export interface SqlVulnerabilityAssessmentScans { + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + listBySqlVulnerabilityAssessments( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a system database vulnerability assessment scan record. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlVulnerabilityAssessmentScansGetOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessments.ts new file mode 100644 index 000000000000..32f50253afce --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessments.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentsDeleteOptionalParams +} from "../models"; + +/** Interface representing a SqlVulnerabilityAssessments. */ +export interface SqlVulnerabilityAssessments { + /** + * Removes SQL Vulnerability Assessment. + * @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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..726cfb9cdcdf --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,66 @@ +/* + * 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 { + SqlVulnerabilityAssessment, + SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams, + SqlVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentsSettingsGetOptionalParams, + SqlVulnerabilityAssessmentsSettingsGetResponse, + VulnerabilityAssessmentName, + SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, + SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a SqlVulnerabilityAssessmentsSettings. */ +export interface SqlVulnerabilityAssessmentsSettings { + /** + * Lists SQL Vulnerability Assessment policies associated with 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. + */ + listByServer( + resourceGroupName: string, + serverName: string, + options?: SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets SQL Vulnerability Assessment 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, + options?: SqlVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise; + /** + * Creates or updates SQL Vulnerability Assessment 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 vulnerabilityAssessmentName The name of the SQL Vulnerability Assessment. + * @param parameters The requested resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serverName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + parameters: SqlVulnerabilityAssessment, + options?: SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/startStopManagedInstanceSchedules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/startStopManagedInstanceSchedules.ts new file mode 100644 index 000000000000..758ade6cda53 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/startStopManagedInstanceSchedules.ts @@ -0,0 +1,80 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + StartStopManagedInstanceSchedule, + StartStopManagedInstanceSchedulesListByInstanceOptionalParams, + StartStopScheduleName, + StartStopManagedInstanceSchedulesGetOptionalParams, + StartStopManagedInstanceSchedulesGetResponse, + StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams, + StartStopManagedInstanceSchedulesCreateOrUpdateResponse, + StartStopManagedInstanceSchedulesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a StartStopManagedInstanceSchedules. */ +export interface StartStopManagedInstanceSchedules { + /** + * Lists the managed instance's Start/Stop schedules. + * @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?: StartStopManagedInstanceSchedulesListByInstanceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the managed instance's Start/Stop schedule. + * @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 startStopScheduleName Name of the managed instance Start/Stop schedule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + startStopScheduleName: StartStopScheduleName, + options?: StartStopManagedInstanceSchedulesGetOptionalParams + ): Promise; + /** + * Creates or updates the managed instance's Start/Stop schedule. + * @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 startStopScheduleName Name of the managed instance Start/Stop schedule. + * @param parameters The requested managed instance Start/Stop schedule. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + managedInstanceName: string, + startStopScheduleName: StartStopScheduleName, + parameters: StartStopManagedInstanceSchedule, + options?: StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the managed instance's Start/Stop schedule. + * @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 startStopScheduleName Name of the managed instance Start/Stop schedule. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + managedInstanceName: string, + startStopScheduleName: StartStopScheduleName, + options?: StartStopManagedInstanceSchedulesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/synapseLinkWorkspaces.ts b/sdk/sql/arm-sql/src/operationsInterfaces/synapseLinkWorkspaces.ts new file mode 100644 index 000000000000..b21b4bb61935 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/synapseLinkWorkspaces.ts @@ -0,0 +1,32 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SynapseLinkWorkspace, + SynapseLinkWorkspacesListByDatabaseOptionalParams +} from "../models"; + +/// +/** Interface representing a SynapseLinkWorkspaces. */ +export interface SynapseLinkWorkspaces { + /** + * Gets all synapselink workspaces for 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. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SynapseLinkWorkspacesListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; +} 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 87ffe5a05045..d0d692bf9f26 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, @@ -60,13 +55,9 @@ import { ManagedBackupShortTermRetentionPoliciesImpl, ManagedDatabaseColumnsImpl, ManagedDatabaseQueriesImpl, - ManagedDatabaseRestoreDetailsImpl, - ManagedDatabasesImpl, ManagedDatabaseSchemasImpl, ManagedDatabaseSecurityAlertPoliciesImpl, ManagedDatabaseSecurityEventsImpl, - ManagedDatabaseSensitivityLabelsImpl, - ManagedDatabaseRecommendedSensitivityLabelsImpl, ManagedDatabaseTablesImpl, ManagedDatabaseTransparentDataEncryptionImpl, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl, @@ -85,13 +76,10 @@ import { ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl, ManagedServerSecurityAlertPoliciesImpl, OperationsImpl, - OperationsHealthOperationsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, RecoverableManagedDatabasesImpl, RestorePointsImpl, - SensitivityLabelsImpl, - RecommendedSensitivityLabelsImpl, ServerAdvisorsImpl, ServerAutomaticTuningOperationsImpl, ServerAzureADAdministratorsImpl, @@ -110,7 +98,6 @@ import { SyncMembersImpl, TdeCertificatesImpl, TimeZonesImpl, - VirtualClustersImpl, VirtualNetworkRulesImpl, WorkloadClassifiersImpl, WorkloadGroupsImpl, @@ -125,10 +112,52 @@ import { UsagesImpl, LongTermRetentionBackupsImpl, LongTermRetentionManagedInstanceBackupsImpl, - ManagedInstancesImpl, RestorableDroppedDatabasesImpl, RestorableDroppedManagedDatabasesImpl, - ServerConnectionPoliciesImpl + ServerConnectionPoliciesImpl, + DistributedAvailabilityGroupsImpl, + ServerTrustCertificatesImpl, + IPv6FirewallRulesImpl, + EndpointCertificatesImpl, + ManagedDatabaseSensitivityLabelsImpl, + ManagedDatabaseRecommendedSensitivityLabelsImpl, + SensitivityLabelsImpl, + RecommendedSensitivityLabelsImpl, + ServerBlobAuditingPoliciesImpl, + DatabaseBlobAuditingPoliciesImpl, + ExtendedDatabaseBlobAuditingPoliciesImpl, + ExtendedServerBlobAuditingPoliciesImpl, + DatabaseAdvancedThreatProtectionSettingsImpl, + ServerAdvancedThreatProtectionSettingsImpl, + ManagedServerDnsAliasesImpl, + DatabaseSqlVulnerabilityAssessmentBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentScanResultImpl, + DatabaseSqlVulnerabilityAssessmentScansImpl, + DatabaseSqlVulnerabilityAssessmentsSettingsImpl, + ManagedDatabaseAdvancedThreatProtectionSettingsImpl, + ManagedDatabaseRestoreDetailsImpl, + ManagedDatabasesImpl, + ManagedInstanceAdvancedThreatProtectionSettingsImpl, + ReplicationLinksImpl, + SqlVulnerabilityAssessmentBaselineImpl, + SqlVulnerabilityAssessmentBaselinesImpl, + SqlVulnerabilityAssessmentExecuteScanImpl, + SqlVulnerabilityAssessmentRuleBaselineImpl, + SqlVulnerabilityAssessmentRuleBaselinesImpl, + SqlVulnerabilityAssessmentScanResultImpl, + SqlVulnerabilityAssessmentScansImpl, + SqlVulnerabilityAssessmentsSettingsImpl, + SqlVulnerabilityAssessmentsImpl, + ManagedDatabaseMoveOperationsImpl, + ManagedInstanceDtcsImpl, + SynapseLinkWorkspacesImpl, + VirtualClustersImpl, + ManagedInstancesImpl, + ServerConfigurationOptionsImpl, + ManagedLedgerDigestUploadsOperationsImpl, + StartStopManagedInstanceSchedulesImpl } from "./operations"; import { RecoverableDatabases, @@ -137,16 +166,11 @@ import { GeoBackupPolicies, Databases, ElasticPools, - ReplicationLinks, ServerCommunicationLinks, ServiceObjectives, ElasticPoolActivities, ElasticPoolDatabaseActivities, ServerUsages, - ExtendedDatabaseBlobAuditingPolicies, - ExtendedServerBlobAuditingPolicies, - ServerBlobAuditingPolicies, - DatabaseBlobAuditingPolicies, DatabaseAdvisors, DatabaseAutomaticTuningOperations, DatabaseColumns, @@ -181,13 +205,9 @@ import { ManagedBackupShortTermRetentionPolicies, ManagedDatabaseColumns, ManagedDatabaseQueries, - ManagedDatabaseRestoreDetails, - ManagedDatabases, ManagedDatabaseSchemas, ManagedDatabaseSecurityAlertPolicies, ManagedDatabaseSecurityEvents, - ManagedDatabaseSensitivityLabels, - ManagedDatabaseRecommendedSensitivityLabels, ManagedDatabaseTables, ManagedDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessmentRuleBaselines, @@ -206,13 +226,10 @@ import { ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies, ManagedServerSecurityAlertPolicies, Operations, - OperationsHealthOperations, PrivateEndpointConnections, PrivateLinkResources, RecoverableManagedDatabases, RestorePoints, - SensitivityLabels, - RecommendedSensitivityLabels, ServerAdvisors, ServerAutomaticTuningOperations, ServerAzureADAdministrators, @@ -231,7 +248,6 @@ import { SyncMembers, TdeCertificates, TimeZones, - VirtualClusters, VirtualNetworkRules, WorkloadClassifiers, WorkloadGroups, @@ -246,10 +262,52 @@ import { Usages, LongTermRetentionBackups, LongTermRetentionManagedInstanceBackups, - ManagedInstances, RestorableDroppedDatabases, RestorableDroppedManagedDatabases, - ServerConnectionPolicies + ServerConnectionPolicies, + DistributedAvailabilityGroups, + ServerTrustCertificates, + IPv6FirewallRules, + EndpointCertificates, + ManagedDatabaseSensitivityLabels, + ManagedDatabaseRecommendedSensitivityLabels, + SensitivityLabels, + RecommendedSensitivityLabels, + ServerBlobAuditingPolicies, + DatabaseBlobAuditingPolicies, + ExtendedDatabaseBlobAuditingPolicies, + ExtendedServerBlobAuditingPolicies, + DatabaseAdvancedThreatProtectionSettings, + ServerAdvancedThreatProtectionSettings, + ManagedServerDnsAliases, + DatabaseSqlVulnerabilityAssessmentBaselines, + DatabaseSqlVulnerabilityAssessmentExecuteScan, + DatabaseSqlVulnerabilityAssessmentRuleBaselines, + DatabaseSqlVulnerabilityAssessmentScanResult, + DatabaseSqlVulnerabilityAssessmentScans, + DatabaseSqlVulnerabilityAssessmentsSettings, + ManagedDatabaseAdvancedThreatProtectionSettings, + ManagedDatabaseRestoreDetails, + ManagedDatabases, + ManagedInstanceAdvancedThreatProtectionSettings, + ReplicationLinks, + SqlVulnerabilityAssessmentBaseline, + SqlVulnerabilityAssessmentBaselines, + SqlVulnerabilityAssessmentExecuteScan, + SqlVulnerabilityAssessmentRuleBaseline, + SqlVulnerabilityAssessmentRuleBaselines, + SqlVulnerabilityAssessmentScanResult, + SqlVulnerabilityAssessmentScans, + SqlVulnerabilityAssessmentsSettings, + SqlVulnerabilityAssessments, + ManagedDatabaseMoveOperations, + ManagedInstanceDtcs, + SynapseLinkWorkspaces, + VirtualClusters, + ManagedInstances, + ServerConfigurationOptions, + ManagedLedgerDigestUploadsOperations, + StartStopManagedInstanceSchedules } from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; @@ -284,7 +342,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/9.1.1`; + const packageDetails = `azsdk-js-arm-sql/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -343,7 +401,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); @@ -351,16 +408,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 @@ -413,10 +460,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { ); this.managedDatabaseColumns = new ManagedDatabaseColumnsImpl(this); this.managedDatabaseQueries = new ManagedDatabaseQueriesImpl(this); - this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( - this - ); - this.managedDatabases = new ManagedDatabasesImpl(this); this.managedDatabaseSchemas = new ManagedDatabaseSchemasImpl(this); this.managedDatabaseSecurityAlertPolicies = new ManagedDatabaseSecurityAlertPoliciesImpl( this @@ -424,12 +467,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 @@ -476,17 +513,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 @@ -515,7 +547,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,12 +569,114 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( this ); - this.managedInstances = new ManagedInstancesImpl(this); this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( 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.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.databaseSqlVulnerabilityAssessmentBaselines = new DatabaseSqlVulnerabilityAssessmentBaselinesImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentExecuteScan = new DatabaseSqlVulnerabilityAssessmentExecuteScanImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentRuleBaselines = new DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentScanResult = new DatabaseSqlVulnerabilityAssessmentScanResultImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentScans = new DatabaseSqlVulnerabilityAssessmentScansImpl( + this + ); + this.databaseSqlVulnerabilityAssessmentsSettings = new DatabaseSqlVulnerabilityAssessmentsSettingsImpl( + this + ); + this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( + this + ); + this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( + this + ); + this.managedDatabases = new ManagedDatabasesImpl(this); + this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( + this + ); + this.replicationLinks = new ReplicationLinksImpl(this); + this.sqlVulnerabilityAssessmentBaseline = new SqlVulnerabilityAssessmentBaselineImpl( + this + ); + this.sqlVulnerabilityAssessmentBaselines = new SqlVulnerabilityAssessmentBaselinesImpl( + this + ); + this.sqlVulnerabilityAssessmentExecuteScan = new SqlVulnerabilityAssessmentExecuteScanImpl( + this + ); + this.sqlVulnerabilityAssessmentRuleBaseline = new SqlVulnerabilityAssessmentRuleBaselineImpl( + this + ); + this.sqlVulnerabilityAssessmentRuleBaselines = new SqlVulnerabilityAssessmentRuleBaselinesImpl( + this + ); + this.sqlVulnerabilityAssessmentScanResult = new SqlVulnerabilityAssessmentScanResultImpl( + this + ); + this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansImpl( + this + ); + this.sqlVulnerabilityAssessmentsSettings = new SqlVulnerabilityAssessmentsSettingsImpl( + this + ); + this.sqlVulnerabilityAssessments = new SqlVulnerabilityAssessmentsImpl( + this + ); + this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( + this + ); + this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); + this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); + this.virtualClusters = new VirtualClustersImpl(this); + this.managedInstances = new ManagedInstancesImpl(this); + this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); + this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( + this + ); + this.startStopManagedInstanceSchedules = new StartStopManagedInstanceSchedulesImpl( + this + ); } recoverableDatabases: RecoverableDatabases; @@ -552,16 +685,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; @@ -596,13 +724,9 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedBackupShortTermRetentionPolicies: ManagedBackupShortTermRetentionPolicies; managedDatabaseColumns: ManagedDatabaseColumns; managedDatabaseQueries: ManagedDatabaseQueries; - managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; - managedDatabases: ManagedDatabases; managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; - managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; - managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; @@ -621,13 +745,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; @@ -646,7 +767,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { syncMembers: SyncMembers; tdeCertificates: TdeCertificates; timeZones: TimeZones; - virtualClusters: VirtualClusters; virtualNetworkRules: VirtualNetworkRules; workloadClassifiers: WorkloadClassifiers; workloadGroups: WorkloadGroups; @@ -661,8 +781,50 @@ export class SqlManagementClient extends coreClient.ServiceClient { usages: Usages; longTermRetentionBackups: LongTermRetentionBackups; longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; - managedInstances: ManagedInstances; restorableDroppedDatabases: RestorableDroppedDatabases; restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; serverConnectionPolicies: ServerConnectionPolicies; + distributedAvailabilityGroups: DistributedAvailabilityGroups; + serverTrustCertificates: ServerTrustCertificates; + iPv6FirewallRules: IPv6FirewallRules; + endpointCertificates: EndpointCertificates; + managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; + sensitivityLabels: SensitivityLabels; + recommendedSensitivityLabels: RecommendedSensitivityLabels; + serverBlobAuditingPolicies: ServerBlobAuditingPolicies; + databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; + extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; + extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; + managedServerDnsAliases: ManagedServerDnsAliases; + databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; + databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; + databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; + databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; + databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; + databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; + managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; + managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; + managedDatabases: ManagedDatabases; + managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; + replicationLinks: ReplicationLinks; + sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; + sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; + sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; + sqlVulnerabilityAssessmentRuleBaseline: SqlVulnerabilityAssessmentRuleBaseline; + sqlVulnerabilityAssessmentRuleBaselines: SqlVulnerabilityAssessmentRuleBaselines; + sqlVulnerabilityAssessmentScanResult: SqlVulnerabilityAssessmentScanResult; + sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; + sqlVulnerabilityAssessmentsSettings: SqlVulnerabilityAssessmentsSettings; + sqlVulnerabilityAssessments: SqlVulnerabilityAssessments; + managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; + managedInstanceDtcs: ManagedInstanceDtcs; + synapseLinkWorkspaces: SynapseLinkWorkspaces; + virtualClusters: VirtualClusters; + managedInstances: ManagedInstances; + serverConfigurationOptions: ServerConfigurationOptions; + managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; + startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; } 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"