From e63f0d4d680733870f29fc4ecf51fed997a65ad7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 14 Aug 2023 19:06:55 +0000 Subject: [PATCH] CodeGen from PR 25295 in Azure/azure-rest-api-specs Merge a06ff8e00261a0a0084288e97c74fd38386cf45f into 48f33ad8fdc31b0d4c91bf4972a2b3245315d33a --- sdk/sql/arm-sql/CHANGELOG.md | 238 +- sdk/sql/arm-sql/_meta.json | 8 +- sdk/sql/arm-sql/package.json | 16 +- sdk/sql/arm-sql/review/arm-sql.api.md | 1036 +- sdk/sql/arm-sql/src/models/index.ts | 18276 ++++++++-------- sdk/sql/arm-sql/src/models/mappers.ts | 15344 ++++++------- sdk/sql/arm-sql/src/models/parameters.ts | 1911 +- .../backupShortTermRetentionPolicies.ts | 110 +- .../arm-sql/src/operations/capabilities.ts | 2 +- .../src/operations/dataMaskingPolicies.ts | 81 +- .../src/operations/dataMaskingRules.ts | 147 +- .../dataWarehouseUserActivitiesOperations.ts | 66 +- ...atabaseAdvancedThreatProtectionSettings.ts | 20 +- .../src/operations/databaseAdvisors.ts | 18 +- .../databaseAutomaticTuningOperations.ts | 16 +- .../databaseBlobAuditingPolicies.ts | 20 +- .../arm-sql/src/operations/databaseColumns.ts | 18 +- .../databaseEncryptionProtectors.ts | 8 +- .../databaseExtensionsOperations.ts | 100 +- .../src/operations/databaseOperations.ts | 68 +- .../operations/databaseRecommendedActions.ts | 16 +- .../arm-sql/src/operations/databaseSchemas.ts | 12 +- .../databaseSecurityAlertPolicies.ts | 90 +- ...baseSqlVulnerabilityAssessmentBaselines.ts | 22 +- ...seSqlVulnerabilityAssessmentExecuteScan.ts | 4 +- ...SqlVulnerabilityAssessmentRuleBaselines.ts | 38 +- ...aseSqlVulnerabilityAssessmentScanResult.ts | 34 +- ...databaseSqlVulnerabilityAssessmentScans.ts | 10 +- ...baseSqlVulnerabilityAssessmentsSettings.ts | 14 +- .../arm-sql/src/operations/databaseTables.ts | 10 +- .../arm-sql/src/operations/databaseUsages.ts | 8 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 20 +- .../databaseVulnerabilityAssessmentScans.ts | 230 +- .../databaseVulnerabilityAssessments.ts | 100 +- sdk/sql/arm-sql/src/operations/databases.ts | 358 +- .../arm-sql/src/operations/deletedServers.ts | 54 +- .../distributedAvailabilityGroups.ts | 177 +- .../src/operations/elasticPoolActivities.ts | 151 - .../elasticPoolDatabaseActivities.ts | 152 - .../src/operations/elasticPoolOperations.ts | 70 +- .../arm-sql/src/operations/elasticPools.ts | 282 +- .../src/operations/encryptionProtectors.ts | 24 +- .../src/operations/endpointCertificates.ts | 10 +- .../extendedDatabaseBlobAuditingPolicies.ts | 20 +- .../extendedServerBlobAuditingPolicies.ts | 20 +- .../arm-sql/src/operations/failoverGroups.ts | 44 +- .../arm-sql/src/operations/firewallRules.ts | 170 +- .../src/operations/geoBackupPolicies.ts | 195 +- .../src/operations/iPv6FirewallRules.ts | 24 +- sdk/sql/arm-sql/src/operations/index.ts | 143 +- .../src/operations/instanceFailoverGroups.ts | 30 +- .../arm-sql/src/operations/instancePools.ts | 258 +- sdk/sql/arm-sql/src/operations/jobAgents.ts | 32 +- .../arm-sql/src/operations/jobCredentials.ts | 22 +- .../arm-sql/src/operations/jobExecutions.ts | 272 +- .../src/operations/jobStepExecutions.ts | 10 +- sdk/sql/arm-sql/src/operations/jobSteps.ts | 338 +- .../src/operations/jobTargetExecutions.ts | 226 +- .../arm-sql/src/operations/jobTargetGroups.ts | 22 +- sdk/sql/arm-sql/src/operations/jobVersions.ts | 10 +- sdk/sql/arm-sql/src/operations/jobs.ts | 22 +- .../ledgerDigestUploadsOperations.ts | 100 +- .../operations/longTermRetentionBackups.ts | 1320 +- ...longTermRetentionManagedInstanceBackups.ts | 536 +- .../operations/longTermRetentionPolicies.ts | 104 +- .../maintenanceWindowOptionsOperations.ts | 6 +- .../maintenanceWindowsOperations.ts | 14 +- ...managedBackupShortTermRetentionPolicies.ts | 110 +- ...atabaseAdvancedThreatProtectionSettings.ts | 26 +- .../src/operations/managedDatabaseColumns.ts | 16 +- .../managedDatabaseMoveOperations.ts | 18 +- .../src/operations/managedDatabaseQueries.ts | 10 +- ...gedDatabaseRecommendedSensitivityLabels.ts | 6 +- .../managedDatabaseRestoreDetails.ts | 4 +- .../src/operations/managedDatabaseSchemas.ts | 10 +- .../managedDatabaseSecurityAlertPolicies.ts | 90 +- .../managedDatabaseSecurityEvents.ts | 10 +- .../managedDatabaseSensitivityLabels.ts | 397 +- .../src/operations/managedDatabaseTables.ts | 10 +- ...anagedDatabaseTransparentDataEncryption.ts | 94 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 20 +- ...gedDatabaseVulnerabilityAssessmentScans.ts | 260 +- ...managedDatabaseVulnerabilityAssessments.ts | 98 +- .../src/operations/managedDatabases.ts | 60 +- .../managedInstanceAdministrators.ts | 22 +- ...nstanceAdvancedThreatProtectionSettings.ts | 26 +- ...nagedInstanceAzureADOnlyAuthentications.ts | 94 +- .../src/operations/managedInstanceDtcs.ts | 18 +- .../managedInstanceEncryptionProtectors.ts | 212 +- .../src/operations/managedInstanceKeys.ts | 22 +- ...anagedInstanceLongTermRetentionPolicies.ts | 187 +- .../operations/managedInstanceOperations.ts | 14 +- ...nagedInstancePrivateEndpointConnections.ts | 98 +- .../managedInstancePrivateLinkResources.ts | 10 +- .../managedInstanceTdeCertificates.ts | 6 +- ...managedInstanceVulnerabilityAssessments.ts | 96 +- .../src/operations/managedInstances.ts | 256 +- .../managedLedgerDigestUploadsOperations.ts | 22 +- ...atabaseBackupShortTermRetentionPolicies.ts | 124 +- .../src/operations/managedServerDnsAliases.ts | 30 +- .../managedServerSecurityAlertPolicies.ts | 106 +- ...networkSecurityPerimeterConfigurations.ts} | 230 +- sdk/sql/arm-sql/src/operations/operations.ts | 2 +- .../src/operations/outboundFirewallRules.ts | 107 +- .../operations/privateEndpointConnections.ts | 24 +- .../src/operations/privateLinkResources.ts | 12 +- .../recommendedSensitivityLabels.ts | 8 +- .../src/operations/recoverableDatabases.ts | 16 +- .../operations/recoverableManagedDatabases.ts | 10 +- .../src/operations/replicationLinks.ts | 32 +- .../operations/restorableDroppedDatabases.ts | 14 +- .../restorableDroppedManagedDatabases.ts | 10 +- .../arm-sql/src/operations/restorePoints.ts | 26 +- .../src/operations/sensitivityLabels.ts | 367 +- .../serverAdvancedThreatProtectionSettings.ts | 20 +- .../arm-sql/src/operations/serverAdvisors.ts | 18 +- .../serverAutomaticTuningOperations.ts | 16 +- .../operations/serverAzureADAdministrators.ts | 94 +- .../serverAzureADOnlyAuthentications.ts | 94 +- .../operations/serverBlobAuditingPolicies.ts | 20 +- .../operations/serverConfigurationOptions.ts | 18 +- .../operations/serverConnectionPolicies.ts | 90 +- .../operations/serverDevOpsAuditSettings.ts | 20 +- .../src/operations/serverDnsAliases.ts | 98 +- sdk/sql/arm-sql/src/operations/serverKeys.ts | 24 +- .../src/operations/serverOperations.ts | 8 +- .../operations/serverSecurityAlertPolicies.ts | 102 +- .../src/operations/serverTrustCertificates.ts | 22 +- .../src/operations/serverTrustGroups.ts | 100 +- .../arm-sql/src/operations/serverUsages.ts | 79 +- .../serverVulnerabilityAssessments.ts | 94 +- sdk/sql/arm-sql/src/operations/servers.ts | 64 +- .../src/operations/serviceObjectives.ts | 178 - sdk/sql/arm-sql/src/operations/sqlAgent.ts | 12 +- .../sqlVulnerabilityAssessmentBaseline.ts | 12 +- .../sqlVulnerabilityAssessmentBaselines.ts | 10 +- .../sqlVulnerabilityAssessmentExecuteScan.ts | 4 +- .../sqlVulnerabilityAssessmentRuleBaseline.ts | 30 +- ...sqlVulnerabilityAssessmentRuleBaselines.ts | 8 +- .../sqlVulnerabilityAssessmentScanResult.ts | 34 +- .../sqlVulnerabilityAssessmentScans.ts | 10 +- .../operations/sqlVulnerabilityAssessments.ts | 4 +- .../sqlVulnerabilityAssessmentsSettings.ts | 22 +- .../startStopManagedInstanceSchedules.ts | 22 +- .../src/operations/subscriptionUsages.ts | 4 +- .../src/operations/synapseLinkWorkspaces.ts | 8 +- sdk/sql/arm-sql/src/operations/syncAgents.ts | 104 +- sdk/sql/arm-sql/src/operations/syncGroups.ts | 866 +- sdk/sql/arm-sql/src/operations/syncMembers.ts | 198 +- .../arm-sql/src/operations/tdeCertificates.ts | 8 +- sdk/sql/arm-sql/src/operations/timeZones.ts | 4 +- .../operations/transparentDataEncryptions.ts | 20 +- sdk/sql/arm-sql/src/operations/usages.ts | 6 +- .../arm-sql/src/operations/virtualClusters.ts | 30 +- .../src/operations/virtualNetworkRules.ts | 94 +- .../src/operations/workloadClassifiers.ts | 118 +- .../arm-sql/src/operations/workloadGroups.ts | 100 +- .../dataMaskingPolicies.ts | 31 +- .../operationsInterfaces/dataMaskingRules.ts | 5 + .../databaseExtensionsOperations.ts | 4 +- ...aseSqlVulnerabilityAssessmentScanResult.ts | 6 +- .../databaseVulnerabilityAssessmentScans.ts | 44 +- .../src/operationsInterfaces/databases.ts | 34 - .../distributedAvailabilityGroups.ts | 47 +- .../elasticPoolActivities.ts | 32 - .../elasticPoolDatabaseActivities.ts | 32 - .../src/operationsInterfaces/elasticPools.ts | 34 - .../src/operationsInterfaces/firewallRules.ts | 36 +- .../operationsInterfaces/geoBackupPolicies.ts | 38 +- .../arm-sql/src/operationsInterfaces/index.ts | 143 +- .../src/operationsInterfaces/instancePools.ts | 16 +- .../src/operationsInterfaces/jobExecutions.ts | 72 +- .../src/operationsInterfaces/jobSteps.ts | 58 +- .../jobTargetExecutions.ts | 18 +- .../longTermRetentionBackups.ts | 176 +- ...longTermRetentionManagedInstanceBackups.ts | 32 +- .../longTermRetentionPolicies.ts | 4 +- .../managedDatabaseSensitivityLabels.ts | 53 +- ...gedDatabaseVulnerabilityAssessmentScans.ts | 46 +- .../managedInstanceEncryptionProtectors.ts | 60 +- ...anagedInstanceLongTermRetentionPolicies.ts | 41 +- .../operationsInterfaces/managedInstances.ts | 53 +- .../managedServerSecurityAlertPolicies.ts | 8 +- .../networkSecurityPerimeterConfigurations.ts | 82 + .../outboundFirewallRules.ts | 4 - .../operationsInterfaces/sensitivityLabels.ts | 69 +- .../serverCommunicationLinks.ts | 101 - .../serverSecurityAlertPolicies.ts | 8 +- .../src/operationsInterfaces/serverUsages.ts | 2 +- .../operationsInterfaces/serviceObjectives.ts | 46 - .../sqlVulnerabilityAssessmentScanResult.ts | 6 +- .../src/operationsInterfaces/syncGroups.ts | 148 +- sdk/sql/arm-sql/src/sqlManagementClient.ts | 720 +- sdk/sql/arm-sql/test/sampleTest.ts | 43 + sdk/sql/arm-sql/tsconfig.json | 10 +- 195 files changed, 26454 insertions(+), 25562 deletions(-) delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts rename sdk/sql/arm-sql/src/operations/{serverCommunicationLinks.ts => networkSecurityPerimeterConfigurations.ts} (56%) delete mode 100644 sdk/sql/arm-sql/src/operations/serviceObjectives.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts create mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts delete mode 100644 sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts create mode 100644 sdk/sql/arm-sql/test/sampleTest.ts diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index a8e651a411a7..fc83e4b8f420 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,34 +1,248 @@ # Release History - -## 10.1.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 10.1.0-beta.1 (2023-07-28) + +## 11.0.0-beta.1 (2023-08-14) **Features** + - Added operation group NetworkSecurityPerimeterConfigurations + - Added operation DistributedAvailabilityGroups.beginSetRole + - Added operation DistributedAvailabilityGroups.beginSetRoleAndWait - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait + - Added operation GeoBackupPolicies.list + - Added operation ManagedDatabaseSensitivityLabels.listByDatabase + - Added operation ManagedInstanceLongTermRetentionPolicies.beginDelete + - Added operation ManagedInstanceLongTermRetentionPolicies.beginDeleteAndWait + - Added operation ManagedInstances.beginRefreshStatus + - Added operation ManagedInstances.beginRefreshStatusAndWait + - Added operation SensitivityLabels.listByDatabase + - Added Interface CertificateInfo + - Added Interface DataMaskingRulesListByDatabaseNextOptionalParams + - Added Interface DistributedAvailabilityGroupDatabase + - Added Interface DistributedAvailabilityGroupsCreateOrUpdateRequestBody + - Added Interface DistributedAvailabilityGroupSetRole + - Added Interface DistributedAvailabilityGroupsSetRoleOptionalParams + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponse - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + - Added Interface FreeLimitExhaustionBehaviorCapability + - Added Interface GeoBackupPoliciesListNextOptionalParams + - Added Interface GeoBackupPoliciesListOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + - Added Interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + - Added Interface ManagedInstancesRefreshStatusHeaders + - Added Interface ManagedInstancesRefreshStatusOptionalParams + - Added Interface MaxLimitRangeCapability + - Added Interface NetworkIsolationSettingsAutoGenerated + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationListResult + - Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + - Added Interface NSPConfigAccessRule + - Added Interface NSPConfigAccessRuleProperties + - Added Interface NSPConfigAssociation + - Added Interface NSPConfigNetworkSecurityPerimeterRule + - Added Interface NSPConfigPerimeter + - Added Interface NSPConfigProfile + - Added Interface NSPProvisioningIssue + - Added Interface NSPProvisioningIssueProperties + - Added Interface PhaseDetails + - Added Interface RefreshExternalGovernanceStatusOperationResultMI + - Added Interface SensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface SensitivityLabelsListByDatabaseOptionalParams + - Added Interface ServerUsagesListByServerNextOptionalParams + - Added Interface UpsertManagedServerOperationStepWithEstimatesAndDuration + - Added Type Alias DataMaskingPolicyName + - Added Type Alias DataMaskingRulesListByDatabaseNextResponse + - Added Type Alias DistributedAvailabilityGroupsSetRoleResponse - Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse + - Added Type Alias FreeLimitExhaustionBehavior + - Added Type Alias FreemiumType + - Added Type Alias GeoBackupPoliciesListNextResponse + - Added Type Alias GeoBackupPoliciesListResponse + - Added Type Alias HybridSecondaryUsage + - Added Type Alias HybridSecondaryUsageDetected + - Added Type Alias InstanceRole + - Added Type Alias LinkRole + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseResponse + - Added Type Alias ManagedInstanceLongTermRetentionPoliciesDeleteResponse + - Added Type Alias ManagedInstancesRefreshStatusResponse + - Added Type Alias ManagedInstancesStartResponse + - Added Type Alias ManagedInstancesStopResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServerNextResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServerResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse + - Added Type Alias Phase + - Added Type Alias ReplicaConnectedState + - Added Type Alias ReplicaSynchronizationHealth + - Added Type Alias ReplicationModeType + - Added Type Alias RoleChangeType + - Added Type Alias SecurityAlertPolicyNameAutoGenerated + - Added Type Alias SensitivityLabelsListByDatabaseNextResponse + - Added Type Alias SensitivityLabelsListByDatabaseResponse + - Added Type Alias ServerUsagesListByServerNextResponse + - Added Type Alias Status + - Interface Database has a new optional parameter encryptionProtectorAutoRotation + - Interface Database has a new optional parameter freeLimitExhaustionBehavior + - Interface Database has a new optional parameter useFreeLimit + - Interface DatabaseExtensions has a new optional parameter administratorLogin + - Interface DatabaseExtensions has a new optional parameter administratorLoginPassword + - Interface DatabaseExtensions has a new optional parameter authenticationType + - Interface DatabaseExtensions has a new optional parameter databaseEdition + - Interface DatabaseExtensions has a new optional parameter maxSizeBytes + - Interface DatabaseExtensions has a new optional parameter networkIsolation + - Interface DatabaseExtensions has a new optional parameter serviceObjectiveName + - Interface DatabaseOperation has a new optional parameter operationPhaseDetails + - Interface DatabaseUpdate has a new optional parameter encryptionProtectorAutoRotation + - Interface DatabaseUpdate has a new optional parameter freeLimitExhaustionBehavior + - Interface DatabaseUpdate has a new optional parameter useFreeLimit + - Interface DataMaskingRuleListResult has a new optional parameter nextLink + - Interface DistributedAvailabilityGroup has a new optional parameter databases + - Interface DistributedAvailabilityGroup has a new optional parameter distributedAvailabilityGroupName + - Interface DistributedAvailabilityGroup has a new optional parameter instanceAvailabilityGroupName + - Interface DistributedAvailabilityGroup has a new optional parameter instanceLinkRole + - Interface DistributedAvailabilityGroup has a new optional parameter partnerAvailabilityGroupName + - Interface DistributedAvailabilityGroup has a new optional parameter partnerEndpoint + - Interface DistributedAvailabilityGroup has a new optional parameter partnerLinkRole + - Interface EditionCapability has a new optional parameter zonePinning - Interface ElasticPool has a new optional parameter availabilityZone - Interface ElasticPool has a new optional parameter minCapacity - Interface ElasticPool has a new optional parameter preferredEnclaveType + - Interface ElasticPoolEditionCapability has a new optional parameter zonePinning - Interface ElasticPoolUpdate has a new optional parameter availabilityZone - Interface ElasticPoolUpdate has a new optional parameter minCapacity - Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType + - Interface FailoverGroupReadOnlyEndpoint has a new optional parameter targetServer + - Interface FailoverGroupUpdate has a new optional parameter partnerServers + - Interface GeoBackupPolicyListResult has a new optional parameter nextLink + - Interface ImportExportExtensionsOperationResult has a new optional parameter blobUri + - Interface ImportExportExtensionsOperationResult has a new optional parameter privateEndpointConnections + - Interface ImportExportExtensionsOperationResult has a new optional parameter queuedTime + - Interface LongTermRetentionBackup has a new optional parameter isBackupImmutable + - Interface LongTermRetentionPolicy has a new optional parameter makeBackupsImmutable - Interface ManagedDatabase has a new optional parameter isLedgerOn - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn + - Interface ManagedInstance has a new optional parameter createTime + - Interface ManagedInstance has a new optional parameter externalGovernanceStatus + - Interface ManagedInstance has a new optional parameter hybridSecondaryUsage + - Interface ManagedInstance has a new optional parameter hybridSecondaryUsageDetected + - Interface ManagedInstance has a new optional parameter isGeneralPurposeV2 + - Interface ManagedInstance has a new optional parameter pricingModel + - Interface ManagedInstance has a new optional parameter storageIOps + - Interface ManagedInstance has a new optional parameter storageThroughputMBps + - Interface ManagedInstance has a new optional parameter virtualClusterId + - Interface ManagedInstanceEditionCapability has a new optional parameter isGeneralPurposeV2 + - Interface ManagedInstanceFamilyCapability has a new optional parameter zoneRedundant + - Interface ManagedInstancePrivateLinkProperties has a new optional parameter requiredZoneNames + - Interface ManagedInstanceUpdate has a new optional parameter createTime + - Interface ManagedInstanceUpdate has a new optional parameter externalGovernanceStatus + - Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsage + - Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsageDetected + - Interface ManagedInstanceUpdate has a new optional parameter isGeneralPurposeV2 + - Interface ManagedInstanceUpdate has a new optional parameter pricingModel + - Interface ManagedInstanceUpdate has a new optional parameter storageIOps + - Interface ManagedInstanceUpdate has a new optional parameter storageThroughputMBps + - Interface ManagedInstanceUpdate has a new optional parameter virtualClusterId + - Interface ManagedInstanceVcoresCapability has a new optional parameter includedStorageIOps + - Interface ManagedInstanceVcoresCapability has a new optional parameter includedStorageThroughputMBps + - Interface ManagedInstanceVcoresCapability has a new optional parameter iopsIncludedValueOverrideFactorPerSelectedStorageGB + - Interface ManagedInstanceVcoresCapability has a new optional parameter iopsMinValueOverrideFactorPerSelectedStorageGB + - Interface ManagedInstanceVcoresCapability has a new optional parameter supportedStorageIOps + - Interface ManagedInstanceVcoresCapability has a new optional parameter supportedStorageThroughputMBps + - Interface ManagedInstanceVcoresCapability has a new optional parameter throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB + - Interface ManagedInstanceVcoresCapability has a new optional parameter throughputMBpsMinValueOverrideFactorPerSelectedStorageGB - Interface PrivateEndpointConnection has a new optional parameter groupIds + - Interface ReplicationLink has a new optional parameter partnerDatabaseId + - Interface Server has a new optional parameter isIPv6Enabled + - Interface ServerUpdate has a new optional parameter isIPv6Enabled + - Interface ServerUsageListResult has a new optional parameter nextLink + - Interface ServiceObjectiveCapability has a new optional parameter supportedFreeLimitExhaustionBehaviors + - Interface ServiceObjectiveCapability has a new optional parameter zonePinning + - Interface SqlManagementClientOptionalParams has a new optional parameter apiVersion - Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime + - Added Enum KnownDataMaskingPolicyName + - Added Enum KnownFreeLimitExhaustionBehavior + - Added Enum KnownFreemiumType + - Added Enum KnownHybridSecondaryUsage + - Added Enum KnownHybridSecondaryUsageDetected + - Added Enum KnownInstanceRole + - Added Enum KnownLinkRole + - Added Enum KnownPhase + - Added Enum KnownReplicaConnectedState + - Added Enum KnownReplicaSynchronizationHealth + - Added Enum KnownReplicationModeType + - Added Enum KnownRoleChangeType + - Added Enum KnownSecurityAlertPolicyNameAutoGenerated + - Added Enum KnownStatus + - Enum KnownOperationMode has a new value Export + - Enum KnownOperationMode has a new value Import + - Enum KnownStorageCapabilityStorageAccountType has a new value Gzrs + +**Breaking Changes** + + - Removed operation group ElasticPoolActivities + - Removed operation group ElasticPoolDatabaseActivities + - Removed operation group ServerCommunicationLinks + - Removed operation group ServiceObjectives + - Removed operation Databases.listMetricDefinitions + - Removed operation Databases.listMetrics + - Removed operation ElasticPools.listMetricDefinitions + - Removed operation ElasticPools.listMetrics + - Removed operation GeoBackupPolicies.listByDatabase + - Operation DatabaseSqlVulnerabilityAssessmentScanResult.get has a new signature + - Operation DatabaseSqlVulnerabilityAssessmentScanResult.listByScan has a new signature + - Operation DataMaskingPolicies.createOrUpdate has a new signature + - Operation DataMaskingPolicies.get has a new signature + - Operation DataMaskingRules.createOrUpdate has a new signature + - Operation DataMaskingRules.listByDatabase has a new signature + - Operation DistributedAvailabilityGroups.beginCreateOrUpdate has a new signature + - Operation DistributedAvailabilityGroups.beginCreateOrUpdateAndWait has a new signature + - Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature + - Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature + - Operation ManagedServerSecurityAlertPolicies.get has a new signature + - Operation OutboundFirewallRules.beginCreateOrUpdate has a new signature + - Operation OutboundFirewallRules.beginCreateOrUpdateAndWait has a new signature + - Operation ServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature + - Operation ServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature + - Operation ServerSecurityAlertPolicies.get has a new signature + - Operation SqlVulnerabilityAssessmentScanResult.get has a new signature + - Operation SqlVulnerabilityAssessmentScanResult.listByScan has a new signature + - Interface DistributedAvailabilityGroup no longer has parameter lastHardenedLsn + - Interface DistributedAvailabilityGroup no longer has parameter linkState + - Interface DistributedAvailabilityGroup no longer has parameter primaryAvailabilityGroupName + - Interface DistributedAvailabilityGroup no longer has parameter secondaryAvailabilityGroupName + - Interface DistributedAvailabilityGroup no longer has parameter sourceEndpoint + - Interface DistributedAvailabilityGroup no longer has parameter sourceReplicaId + - Interface DistributedAvailabilityGroup no longer has parameter targetDatabase + - Interface DistributedAvailabilityGroup no longer has parameter targetReplicaId + - Interface ManagedInstanceEditionCapability no longer has parameter zoneRedundant + - Interface ServerUsage no longer has parameter name + - Interface ServerUsage no longer has parameter nextResetTime + - Interface ServerUsage no longer has parameter resourceName + - Type of parameter replicationMode of interface DistributedAvailabilityGroup is changed from ReplicationMode to ReplicationModeType + - Type of parameter networkIsolation of interface ImportNewDatabaseDefinition is changed from NetworkIsolationSettings to NetworkIsolationSettingsAutoGenerated + - Type of parameter provisioningState of interface ManagedInstance is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState + - Type of parameter stepsList of interface ManagedInstanceOperationSteps is changed from UpsertManagedServerOperationStep[] to UpsertManagedServerOperationStepWithEstimatesAndDuration[] + - Type of parameter provisioningState of interface ManagedInstanceUpdate is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState + - Class SqlManagementClient no longer has parameter elasticPoolActivities + - Class SqlManagementClient no longer has parameter elasticPoolDatabaseActivities + - Class SqlManagementClient no longer has parameter serverCommunicationLinks + - Class SqlManagementClient no longer has parameter serviceObjectives + - Removed Enum KnownManagedInstancePropertiesProvisioningState + - Removed Enum KnownPrimaryAggregationType + - Removed Enum KnownReplicationMode + - Removed Enum KnownServiceObjectiveName + - Removed Enum KnownSQLVulnerabilityAssessmentName + - Removed Enum KnownUnitDefinitionType + - Removed Enum KnownUnitType + - Removed Enum KnownUpsertManagedServerOperationStepStatus ## 10.0.0 (2023-03-22) diff --git a/sdk/sql/arm-sql/_meta.json b/sdk/sql/arm-sql/_meta.json index 7df3bf29f1a5..e235fa116042 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "4f77103cef1d89060d97aba0fb6a719d133cbd3c", + "commit": "8f34b63f536ea3c10dcc35e393460bd7e76d34ec", "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.5 --generate-sample=true", + "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.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index f4d2298ff855..fe2333ac40c1 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -3,12 +3,12 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SqlManagementClient.", - "version": "10.1.0-beta.2", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql" +} \ 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 082cf688a209..7cee50629e74 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -223,6 +223,13 @@ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; // @public export type CatalogCollationType = string; +// @public +export interface CertificateInfo { + readonly certificateId?: string; + readonly certificateName?: string; + readonly expiryDate?: Date; +} + // @public export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; @@ -290,8 +297,10 @@ export interface Database extends TrackedResource { readonly earliestRestoreDate?: Date; elasticPoolId?: string; encryptionProtector?: string; + encryptionProtectorAutoRotation?: boolean; readonly failoverGroupId?: string; federatedClientId?: string; + freeLimitExhaustionBehavior?: FreeLimitExhaustionBehavior; highAvailabilityReplicaCount?: number; identity?: DatabaseIdentity; readonly isInfraEncryptionEnabled?: boolean; @@ -326,6 +335,7 @@ export interface Database extends TrackedResource { sourceDatabaseId?: string; sourceResourceId?: string; readonly status?: DatabaseStatus; + useFreeLimit?: boolean; zoneRedundant?: boolean; } @@ -575,7 +585,14 @@ export interface DatabaseEncryptionProtectorsRevertOptionalParams extends coreCl // @public export interface DatabaseExtensions extends ProxyResource { + administratorLogin?: string; + administratorLoginPassword?: string; + authenticationType?: string; + databaseEdition?: string; + maxSizeBytes?: string; + networkIsolation?: NetworkIsolationSettings; operationMode?: OperationMode; + serviceObjectiveName?: string; storageKey?: string; storageKeyType?: StorageKeyType; storageUri?: string; @@ -660,6 +677,7 @@ export interface DatabaseOperation extends ProxyResource { readonly isUserError?: boolean; readonly operation?: string; readonly operationFriendlyName?: string; + readonly operationPhaseDetails?: PhaseDetails; readonly percentComplete?: number; readonly serverName?: string; readonly startTime?: Date; @@ -751,8 +769,6 @@ export interface Databases { listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: DatabasesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; listByServer(resourceGroupName: string, serverName: string, options?: DatabasesListByServerOptionalParams): PagedAsyncIterableIterator; listInaccessibleByServer(resourceGroupName: string, serverName: string, options?: DatabasesListInaccessibleByServerOptionalParams): PagedAsyncIterableIterator; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: DatabasesListMetricsOptionalParams): PagedAsyncIterableIterator; rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: ResourceMoveDefinition, options?: DatabasesRenameOptionalParams): Promise; } @@ -941,20 +957,6 @@ export interface DatabasesListInaccessibleByServerOptionalParams extends coreCli // @public export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; -// @public -export interface DatabasesListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; - -// @public -export interface DatabasesListMetricsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DatabasesListMetricsResponse = MetricListResult; - // @public export interface DatabasesPauseOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1095,8 +1097,8 @@ export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineRespons // @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; + 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 @@ -1263,8 +1265,10 @@ export interface DatabaseUpdate { readonly earliestRestoreDate?: Date; elasticPoolId?: string; encryptionProtector?: string; + encryptionProtectorAutoRotation?: boolean; readonly failoverGroupId?: string; federatedClientId?: string; + freeLimitExhaustionBehavior?: FreeLimitExhaustionBehavior; highAvailabilityReplicaCount?: number; identity?: DatabaseIdentity; readonly isInfraEncryptionEnabled?: boolean; @@ -1299,6 +1303,7 @@ export interface DatabaseUpdate { tags?: { [propertyName: string]: string; }; + useFreeLimit?: boolean; zoneRedundant?: boolean; } @@ -1483,8 +1488,8 @@ export type DataMaskingFunction = "Default" | "CCN" | "Email" | "Number" | "SSN" // @public export interface DataMaskingPolicies { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingPoliciesGetOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingPoliciesGetOptionalParams): Promise; } // @public @@ -1511,6 +1516,9 @@ export interface DataMaskingPolicy extends ProxyResource { readonly maskingLevel?: string; } +// @public +export type DataMaskingPolicyName = string; + // @public export interface DataMaskingRule extends ProxyResource { aliasName?: string; @@ -1531,13 +1539,14 @@ export interface DataMaskingRule extends ProxyResource { // @public export interface DataMaskingRuleListResult { - value?: DataMaskingRule[]; + readonly nextLink?: string; + readonly value?: DataMaskingRule[]; } // @public export interface DataMaskingRules { - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } // @public @@ -1547,6 +1556,13 @@ export interface DataMaskingRulesCreateOrUpdateOptionalParams extends coreClient // @public export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +// @public +export interface DataMaskingRulesListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; + // @public export interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient.OperationOptions { } @@ -1555,10 +1571,10 @@ export interface DataMaskingRulesListByDatabaseOptionalParams extends coreClient export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; // @public -export type DataMaskingRuleState = "Disabled" | "Enabled"; +export type DataMaskingRuleState = "Enabled" | "Disabled"; // @public -export type DataMaskingState = "Disabled" | "Enabled"; +export type DataMaskingState = "Enabled" | "Disabled"; // @public export interface DataWarehouseUserActivities extends ProxyResource { @@ -1679,24 +1695,49 @@ export type DiffBackupIntervalInHours = number; // @public export interface DistributedAvailabilityGroup extends ProxyResource { + readonly databases?: DistributedAvailabilityGroupDatabase[]; readonly distributedAvailabilityGroupId?: string; + readonly distributedAvailabilityGroupName?: string; + readonly instanceAvailabilityGroupName?: string; + readonly instanceLinkRole?: LinkRole; + readonly partnerAvailabilityGroupName?: string; + readonly partnerEndpoint?: string; + readonly partnerLinkRole?: LinkRole; + replicationMode?: ReplicationModeType; +} + +// @public +export interface DistributedAvailabilityGroupDatabase { + readonly connectedState?: ReplicaConnectedState; + readonly databaseName?: string; + readonly instanceRedoReplicationLagSeconds?: number; + readonly instanceReplicaId?: string; + readonly instanceSendReplicationLagSeconds?: number; + readonly lastBackupLsn?: string; + readonly lastBackupTime?: Date; + readonly lastCommitLsn?: string; + readonly lastCommitTime?: Date; readonly lastHardenedLsn?: string; - readonly linkState?: string; - primaryAvailabilityGroupName?: string; - replicationMode?: ReplicationMode; - secondaryAvailabilityGroupName?: string; - sourceEndpoint?: string; - readonly sourceReplicaId?: string; - targetDatabase?: string; - readonly targetReplicaId?: string; + readonly lastHardenedTime?: Date; + readonly lastReceivedLsn?: string; + readonly lastReceivedTime?: Date; + readonly lastSentLsn?: string; + readonly lastSentTime?: Date; + readonly mostRecentLinkError?: string; + readonly partnerAuthCertValidity?: CertificateInfo; + readonly partnerReplicaId?: string; + readonly replicaState?: string; + readonly synchronizationHealth?: ReplicaSynchronizationHealth; } // @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; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise, DistributedAvailabilityGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; + beginSetRole(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupSetRole, options?: DistributedAvailabilityGroupsSetRoleOptionalParams): Promise, DistributedAvailabilityGroupsSetRoleResponse>>; + beginSetRoleAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroupSetRole, options?: DistributedAvailabilityGroupsSetRoleOptionalParams): 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; @@ -1709,6 +1750,15 @@ export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams exten updateIntervalInMs?: number; } +// @public +export interface DistributedAvailabilityGroupsCreateOrUpdateRequestBody { + primaryAvailabilityGroupName?: string; + replicationMode?: ReplicationModeType; + secondaryAvailabilityGroupName?: string; + sourceEndpoint?: string; + targetDatabase?: string; +} + // @public export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; @@ -1718,6 +1768,12 @@ export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreC updateIntervalInMs?: number; } +// @public +export interface DistributedAvailabilityGroupSetRole { + instanceRole: InstanceRole; + roleChangeType: RoleChangeType; +} + // @public export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { } @@ -1745,6 +1801,15 @@ export interface DistributedAvailabilityGroupsListResult { readonly value?: DistributedAvailabilityGroup[]; } +// @public +export interface DistributedAvailabilityGroupsSetRoleOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup; + // @public export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1768,6 +1833,7 @@ export interface EditionCapability { readonly status?: CapabilityStatus; readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; readonly supportedStorageCapabilities?: StorageCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } @@ -1788,91 +1854,13 @@ export interface ElasticPool extends TrackedResource { zoneRedundant?: boolean; } -// @public -export interface ElasticPoolActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; - -// @public -export interface ElasticPoolActivity extends ProxyResource { - readonly elasticPoolName?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - location?: string; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedDatabaseDtuCap?: number; - readonly requestedDatabaseDtuGuarantee?: number; - readonly requestedDatabaseDtuMax?: number; - readonly requestedDatabaseDtuMin?: number; - readonly requestedDtu?: number; - readonly requestedDtuGuarantee?: number; - readonly requestedElasticPoolName?: string; - readonly requestedStorageLimitInGB?: number; - readonly requestedStorageLimitInMB?: number; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; -} - -// @public -export interface ElasticPoolActivityListResult { - value: ElasticPoolActivity[]; -} - -// @public -export interface ElasticPoolDatabaseActivities { - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; - -// @public -export interface ElasticPoolDatabaseActivity extends ProxyResource { - readonly currentElasticPoolName?: string; - readonly currentServiceObjective?: string; - readonly databaseName?: string; - readonly endTime?: Date; - readonly errorCode?: number; - readonly errorMessage?: string; - readonly errorSeverity?: number; - location?: string; - readonly operation?: string; - readonly operationId?: string; - readonly percentComplete?: number; - readonly requestedElasticPoolName?: string; - readonly requestedServiceObjective?: string; - readonly serverName?: string; - readonly startTime?: Date; - readonly state?: string; -} - -// @public -export interface ElasticPoolDatabaseActivityListResult { - value: ElasticPoolDatabaseActivity[]; -} - // @public export interface ElasticPoolEditionCapability { readonly name?: string; reason?: string; readonly status?: CapabilityStatus; readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } @@ -1984,8 +1972,6 @@ export interface ElasticPools { beginUpdateAndWait(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: ElasticPoolUpdate, options?: ElasticPoolsUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ElasticPoolsListByServerOptionalParams): PagedAsyncIterableIterator; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: ElasticPoolsListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: ElasticPoolsListMetricsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2031,20 +2017,6 @@ export interface ElasticPoolsListByServerOptionalParams extends coreClient.Opera // @public export type ElasticPoolsListByServerResponse = ElasticPoolListResult; -// @public -export interface ElasticPoolsListMetricDefinitionsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; - -// @public -export interface ElasticPoolsListMetricsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ElasticPoolsListMetricsResponse = MetricListResult; - // @public export type ElasticPoolState = string; @@ -2190,6 +2162,26 @@ export interface EndpointDetail { readonly port?: number; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export interface ExportDatabaseDefinition { administratorLogin: string; @@ -2343,6 +2335,7 @@ export interface FailoverGroupListResult { // @public export interface FailoverGroupReadOnlyEndpoint { failoverPolicy?: ReadOnlyEndpointFailoverPolicy; + targetServer?: string; } // @public @@ -2453,6 +2446,7 @@ export type FailoverGroupsUpdateResponse = FailoverGroup; // @public export interface FailoverGroupUpdate { databases?: string[]; + partnerServers?: PartnerInfo[]; readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; readWriteEndpoint?: FailoverGroupReadWriteEndpoint; tags?: { @@ -2526,11 +2520,23 @@ export interface FirewallRulesReplaceOptionalParams extends coreClient.Operation // @public export type FirewallRulesReplaceResponse = FirewallRule; +// @public +export type FreeLimitExhaustionBehavior = string; + +// @public +export interface FreeLimitExhaustionBehaviorCapability { + readonly exhaustionBehaviorType?: FreeLimitExhaustionBehavior; + readonly status?: CapabilityStatus; +} + +// @public +export type FreemiumType = string; + // @public export interface GeoBackupPolicies { createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, options?: GeoBackupPoliciesCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, options?: GeoBackupPoliciesGetOptionalParams): Promise; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; + list(resourceGroupName: string, serverName: string, databaseName: string, options?: GeoBackupPoliciesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2548,34 +2554,48 @@ export interface GeoBackupPoliciesGetOptionalParams extends coreClient.Operation export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; // @public -export interface GeoBackupPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions { +export interface GeoBackupPoliciesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + +// @public +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions { } // @public -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; // @public export interface GeoBackupPolicy extends ProxyResource { readonly kind?: string; readonly location?: string; - state: GeoBackupPolicyState; + state?: GeoBackupPolicyState; readonly storageType?: string; } // @public export interface GeoBackupPolicyListResult { - value?: GeoBackupPolicy[]; + readonly nextLink?: string; + readonly value?: GeoBackupPolicy[]; } // @public export type GeoBackupPolicyName = string; // @public -export type GeoBackupPolicyState = "Disabled" | "Enabled"; +export type GeoBackupPolicyState = "Enabled" | "Disabled"; // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export type HybridSecondaryUsage = string; + +// @public +export type HybridSecondaryUsageDetected = string; + // @public export type IdentityType = string; @@ -2601,9 +2621,12 @@ export interface ImportExportExtensionsOperationListResult { // @public export interface ImportExportExtensionsOperationResult extends ProxyResource { + readonly blobUri?: string; readonly databaseName?: string; readonly errorMessage?: string; readonly lastModifiedTime?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; + readonly queuedTime?: string; readonly requestId?: string; readonly requestType?: string; readonly serverName?: string; @@ -2632,7 +2655,7 @@ export interface ImportNewDatabaseDefinition { databaseName?: string; edition?: string; maxSizeBytes?: string; - networkIsolation?: NetworkIsolationSettings; + networkIsolation?: NetworkIsolationSettingsAutoGenerated; serviceObjectiveName?: string; storageKey: string; storageKeyType: StorageKeyType; @@ -2860,6 +2883,9 @@ export interface InstancePoolVcoresCapability { readonly value?: number; } +// @public +export type InstanceRole = string; + // @public export interface IPv6FirewallRule extends ProxyResourceWithWritableName { endIPv6Address?: string; @@ -3733,6 +3759,11 @@ export enum KnownDatabaseStatus { Suspect = "Suspect" } +// @public +export enum KnownDataMaskingPolicyName { + Default = "Default" +} + // @public export enum KnownDataWarehouseUserActivityName { Current = "current" @@ -3802,11 +3833,35 @@ export enum KnownFailoverGroupReplicationRole { Secondary = "Secondary" } +// @public +export enum KnownFreeLimitExhaustionBehavior { + AutoPause = "AutoPause", + BillOverUsage = "BillOverUsage" +} + +// @public +export enum KnownFreemiumType { + Freemium = "Freemium", + Regular = "Regular" +} + // @public export enum KnownGeoBackupPolicyName { Default = "Default" } +// @public +export enum KnownHybridSecondaryUsage { + Active = "Active", + Passive = "Passive" +} + +// @public +export enum KnownHybridSecondaryUsageDetected { + Active = "Active", + Passive = "Passive" +} + // @public export enum KnownIdentityType { None = "None", @@ -3827,6 +3882,12 @@ export enum KnownInstancePoolLicenseType { LicenseIncluded = "LicenseIncluded" } +// @public +export enum KnownInstanceRole { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownJobAgentState { Creating = "Creating", @@ -3879,6 +3940,12 @@ export enum KnownLedgerDigestUploadsName { Current = "current" } +// @public +export enum KnownLinkRole { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownLogSizeUnit { Gigabytes = "Gigabytes", @@ -3934,25 +4001,6 @@ export enum KnownManagedInstanceLongTermRetentionPolicyName { Default = "default" } -// @public -export enum KnownManagedInstancePropertiesProvisioningState { - Accepted = "Accepted", - Canceled = "Canceled", - Created = "Created", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - Failed = "Failed", - NotSpecified = "NotSpecified", - Registering = "Registering", - Running = "Running", - Succeeded = "Succeeded", - TimedOut = "TimedOut", - Unknown = "Unknown", - Unrecognized = "Unrecognized", - Updating = "Updating" -} - // @public export enum KnownManagedInstanceProxyOverride { Default = "Default", @@ -4017,6 +4065,8 @@ export enum KnownMoveOperationMode { // @public export enum KnownOperationMode { + Export = "Export", + Import = "Import", PolybaseImport = "PolybaseImport" } @@ -4038,13 +4088,11 @@ export enum KnownPerformanceLevelUnit { } // @public -export enum KnownPrimaryAggregationType { - Average = "Average", - Count = "Count", - Maximum = "Maximum", - Minimum = "Minimum", - None = "None", - Total = "Total" +export enum KnownPhase { + Catchup = "Catchup", + Copying = "Copying", + CutoverInProgress = "CutoverInProgress", + WaitingForCutover = "WaitingForCutover" } // @public @@ -4129,6 +4177,19 @@ export enum KnownRecommendedActionCurrentState { Verifying = "Verifying" } +// @public +export enum KnownReplicaConnectedState { + Connected = "CONNECTED", + Disconnected = "DISCONNECTED" +} + +// @public +export enum KnownReplicaSynchronizationHealth { + Healthy = "HEALTHY", + NOTHealthy = "NOT_HEALTHY", + PartiallyHealthy = "PARTIALLY_HEALTHY" +} + // @public export enum KnownReplicationLinkType { GEO = "GEO", @@ -4137,7 +4198,7 @@ export enum KnownReplicationLinkType { } // @public -export enum KnownReplicationMode { +export enum KnownReplicationModeType { Async = "Async", Sync = "Sync" } @@ -4161,6 +4222,12 @@ export enum KnownRestoreDetailsName { Default = "Default" } +// @public +export enum KnownRoleChangeType { + Forced = "Forced", + Planned = "Planned" +} + // @public export enum KnownRuleSeverity { High = "High", @@ -4207,6 +4274,11 @@ export enum KnownSecondaryType { // @public export enum KnownSecurityAlertPolicyName { + Default = "default" +} + +// @public +export enum KnownSecurityAlertPolicyNameAutoGenerated { Default = "Default" } @@ -4253,75 +4325,6 @@ export enum KnownServerWorkspaceFeature { Disconnected = "Disconnected" } -// @public -export enum KnownServiceObjectiveName { - Basic = "Basic", - DS100 = "DS100", - DS1000 = "DS1000", - DS1200 = "DS1200", - DS1500 = "DS1500", - DS200 = "DS200", - DS2000 = "DS2000", - DS300 = "DS300", - DS400 = "DS400", - DS500 = "DS500", - DS600 = "DS600", - DW100 = "DW100", - DW1000 = "DW1000", - DW10000C = "DW10000c", - DW1000C = "DW1000c", - DW1200 = "DW1200", - DW1500 = "DW1500", - DW15000C = "DW15000c", - DW1500C = "DW1500c", - DW200 = "DW200", - DW2000 = "DW2000", - DW2000C = "DW2000c", - DW2500C = "DW2500c", - DW300 = "DW300", - DW3000 = "DW3000", - DW30000C = "DW30000c", - DW3000C = "DW3000c", - DW400 = "DW400", - DW500 = "DW500", - DW5000C = "DW5000c", - DW600 = "DW600", - DW6000 = "DW6000", - DW6000C = "DW6000c", - DW7500C = "DW7500c", - ElasticPool = "ElasticPool", - Free = "Free", - P1 = "P1", - P11 = "P11", - P15 = "P15", - P2 = "P2", - P3 = "P3", - P4 = "P4", - P6 = "P6", - PRS1 = "PRS1", - PRS2 = "PRS2", - PRS4 = "PRS4", - PRS6 = "PRS6", - S0 = "S0", - S1 = "S1", - S12 = "S12", - S2 = "S2", - S3 = "S3", - S4 = "S4", - S6 = "S6", - S7 = "S7", - S9 = "S9", - System = "System", - System0 = "System0", - System1 = "System1", - System2 = "System2", - System2L = "System2L", - System3 = "System3", - System3L = "System3L", - System4 = "System4", - System4L = "System4L" -} - // @public export enum KnownServicePrincipalType { None = "None", @@ -4340,23 +4343,29 @@ export enum KnownSqlAgentConfigurationPropertiesState { } // @public -export enum KnownSQLVulnerabilityAssessmentName { +export enum KnownSqlVulnerabilityAssessmentName { Default = "default" } // @public -export enum KnownSqlVulnerabilityAssessmentName { +export enum KnownStartStopScheduleName { Default = "default" } // @public -export enum KnownStartStopScheduleName { - Default = "default" +export enum KnownStatus { + Canceled = "Canceled", + Completed = "Completed", + Failed = "Failed", + InProgress = "InProgress", + NotStarted = "NotStarted", + SlowedDown = "SlowedDown" } // @public export enum KnownStorageCapabilityStorageAccountType { GRS = "GRS", + Gzrs = "GZRS", LRS = "LRS", ZRS = "ZRS" } @@ -4452,36 +4461,6 @@ export enum KnownTransparentDataEncryptionName { Current = "current" } -// @public -export enum KnownUnitDefinitionType { - Bytes = "Bytes", - BytesPerSecond = "BytesPerSecond", - Count = "Count", - CountPerSecond = "CountPerSecond", - Percent = "Percent", - Seconds = "Seconds" -} - -// @public -export enum KnownUnitType { - Bytes = "bytes", - BytesPerSecond = "bytesPerSecond", - Count = "count", - CountPerSecond = "countPerSecond", - Percent = "percent", - Seconds = "seconds" -} - -// @public -export enum KnownUpsertManagedServerOperationStepStatus { - Canceled = "Canceled", - Completed = "Completed", - Failed = "Failed", - InProgress = "InProgress", - NotStarted = "NotStarted", - SlowedDown = "SlowedDown" -} - // @public export enum KnownVirtualNetworkRuleState { Deleting = "Deleting", @@ -4585,6 +4564,9 @@ export interface LicenseTypeCapability { readonly status?: CapabilityStatus; } +// @public +export type LinkRole = string; + // @public export interface LocationCapabilities { readonly name?: string; @@ -4633,6 +4615,7 @@ export interface LongTermRetentionBackup extends ProxyResource { readonly backupTime?: Date; readonly databaseDeletionTime?: Date; readonly databaseName?: string; + isBackupImmutable?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; readonly serverCreateTime?: Date; readonly serverName?: string; @@ -5015,6 +4998,7 @@ export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionP // @public export interface LongTermRetentionPolicy extends ProxyResource { + makeBackupsImmutable?: boolean; monthlyRetention?: string; weeklyRetention?: string; weekOfYear?: number; @@ -5599,6 +5583,7 @@ export interface ManagedDatabaseSensitivityLabels { disableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams): Promise; enableRecommendation(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: ManagedDatabaseSensitivityLabelsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams): Promise; @@ -5630,6 +5615,21 @@ export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreC // @public export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +// @public +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +// @public +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; + // @public export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } @@ -5936,20 +5936,26 @@ export interface ManagedInstance extends TrackedResource { administratorLoginPassword?: string; administrators?: ManagedInstanceExternalAdministrator; collation?: string; + readonly createTime?: Date; readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; readonly dnsZone?: string; dnsZonePartner?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; readonly fullyQualifiedDomainName?: string; + hybridSecondaryUsage?: HybridSecondaryUsage; + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; identity?: ResourceIdentity; instancePoolId?: string; + isGeneralPurposeV2?: boolean; keyId?: string; licenseType?: ManagedInstanceLicenseType; maintenanceConfigurationId?: string; managedInstanceCreateMode?: ManagedServerCreateMode; minimalTlsVersion?: string; + pricingModel?: FreemiumType; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly provisioningState?: ProvisioningState; proxyOverride?: ManagedInstanceProxyOverride; publicDataEndpointEnabled?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -5958,10 +5964,13 @@ export interface ManagedInstance extends TrackedResource { sku?: Sku; sourceManagedInstanceId?: string; readonly state?: string; + storageIOps?: number; storageSizeInGB?: number; + storageThroughputMBps?: number; subnetId?: string; timezoneId?: string; vCores?: number; + readonly virtualClusterId?: string; zoneRedundant?: boolean; } @@ -6207,12 +6216,12 @@ export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { // @public export interface ManagedInstanceEditionCapability { + readonly isGeneralPurposeV2?: boolean; readonly name?: string; reason?: string; readonly status?: CapabilityStatus; readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; readonly supportedStorageCapabilities?: StorageCapability[]; - readonly zoneRedundant?: boolean; } // @public @@ -6295,6 +6304,7 @@ export interface ManagedInstanceFamilyCapability { readonly status?: CapabilityStatus; readonly supportedLicenseTypes?: LicenseTypeCapability[]; readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly zoneRedundant?: boolean; } // @public @@ -6390,6 +6400,8 @@ export interface ManagedInstanceLongTermRetentionBackupListResult { export interface ManagedInstanceLongTermRetentionPolicies { beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams): Promise, ManagedInstanceLongTermRetentionPoliciesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams): Promise; get(resourceGroupName: string, managedInstanceName: string, databaseName: string, policyName: ManagedInstanceLongTermRetentionPolicyName, options?: ManagedInstanceLongTermRetentionPoliciesGetOptionalParams): Promise; listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator; } @@ -6404,8 +6416,17 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; // @public -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { -} +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; + +// @public +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { +} // @public export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; @@ -6514,7 +6535,7 @@ export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInst // @public export interface ManagedInstanceOperationSteps { readonly currentStep?: number; - readonly stepsList?: UpsertManagedServerOperationStep[]; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; readonly totalSteps?: string; } @@ -6616,6 +6637,7 @@ export interface ManagedInstancePrivateLinkListResult { export interface ManagedInstancePrivateLinkProperties { readonly groupId?: string; readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; } // @public @@ -6652,9 +6674,6 @@ export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { status: string; } -// @public -export type ManagedInstancePropertiesProvisioningState = string; - // @public export type ManagedInstanceProxyOverride = string; @@ -6677,10 +6696,12 @@ 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; + beginRefreshStatus(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesRefreshStatusOptionalParams): Promise, ManagedInstancesRefreshStatusResponse>>; + beginRefreshStatusAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesRefreshStatusOptionalParams): Promise; + beginStart(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise, ManagedInstancesStartResponse>>; + beginStartAndWait(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams): Promise; + beginStop(resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams): Promise, ManagedInstancesStopResponse>>; + 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; @@ -6801,18 +6822,39 @@ export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResp // @public export type ManagedInstancesListResponse = ManagedInstanceListResult; +// @public +export interface ManagedInstancesRefreshStatusHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ManagedInstancesRefreshStatusOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstancesRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResultMI; + // @public export interface ManagedInstancesStartOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ManagedInstancesStartResponse = ManagedInstance; + // @public export interface ManagedInstancesStopOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ManagedInstancesStopResponse = ManagedInstance; + // @public export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6840,20 +6882,26 @@ export interface ManagedInstanceUpdate { administratorLoginPassword?: string; administrators?: ManagedInstanceExternalAdministrator; collation?: string; + readonly createTime?: Date; readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; readonly dnsZone?: string; dnsZonePartner?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; readonly fullyQualifiedDomainName?: string; + hybridSecondaryUsage?: HybridSecondaryUsage; + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; identity?: ResourceIdentity; instancePoolId?: string; + isGeneralPurposeV2?: boolean; keyId?: string; licenseType?: ManagedInstanceLicenseType; maintenanceConfigurationId?: string; managedInstanceCreateMode?: ManagedServerCreateMode; minimalTlsVersion?: string; + pricingModel?: FreemiumType; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ManagedInstancePecProperty[]; - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly provisioningState?: ProvisioningState; proxyOverride?: ManagedInstanceProxyOverride; publicDataEndpointEnabled?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -6862,26 +6910,37 @@ export interface ManagedInstanceUpdate { sku?: Sku; sourceManagedInstanceId?: string; readonly state?: string; + storageIOps?: number; storageSizeInGB?: number; + storageThroughputMBps?: number; subnetId?: string; tags?: { [propertyName: string]: string; }; timezoneId?: string; vCores?: number; + readonly virtualClusterId?: string; zoneRedundant?: boolean; } // @public export interface ManagedInstanceVcoresCapability { readonly includedMaxSize?: MaxSizeCapability; + readonly includedStorageIOps?: number; + readonly includedStorageThroughputMBps?: number; readonly instancePoolSupported?: boolean; + readonly iopsIncludedValueOverrideFactorPerSelectedStorageGB?: number; + readonly iopsMinValueOverrideFactorPerSelectedStorageGB?: number; readonly name?: string; reason?: string; readonly standaloneSupported?: boolean; readonly status?: CapabilityStatus; readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; + readonly supportedStorageIOps?: MaxLimitRangeCapability; readonly supportedStorageSizes?: MaxSizeRangeCapability[]; + readonly supportedStorageThroughputMBps?: MaxLimitRangeCapability; + readonly throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB?: number; + readonly throughputMBpsMinValueOverrideFactorPerSelectedStorageGB?: number; readonly value?: number; } @@ -7148,9 +7207,9 @@ export interface ManagedServerDnsAliasListResult { // @public export interface ManagedServerSecurityAlertPolicies { - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise; listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams): PagedAsyncIterableIterator; } @@ -7220,6 +7279,15 @@ export interface ManagedTransparentDataEncryptionListResult { // @public export type ManagementOperationState = string; +// @public +export interface MaxLimitRangeCapability { + readonly maxValue?: number; + readonly minValue?: number; + reason?: string; + readonly scaleSize?: number; + readonly status?: CapabilityStatus; +} + // @public export interface MaxSizeCapability { readonly limit?: number; @@ -7240,79 +7308,174 @@ export interface MaxSizeRangeCapability { export type MaxSizeUnit = string; // @public -export interface Metric { - readonly endTime?: Date; - readonly metricValues?: MetricValue[]; - readonly name?: MetricName; - readonly startTime?: Date; - readonly timeGrain?: string; - readonly unit?: UnitType; +export type MetricType = string; + +// @public +export interface MinCapacityCapability { + reason?: string; + readonly status?: CapabilityStatus; + readonly value?: number; } // @public -export interface MetricAvailability { - readonly retention?: string; - readonly timeGrain?: string; +export type MoveOperationMode = string; + +// @public +export interface Name { + localizedValue?: string; + value?: string; } // @public -export interface MetricDefinition { - readonly metricAvailabilities?: MetricAvailability[]; - readonly name?: MetricName; - readonly primaryAggregationType?: PrimaryAggregationType; - readonly resourceUri?: string; - readonly unit?: UnitDefinitionType; +export interface NetworkIsolationSettings { + sqlServerResourceId?: string; + storageAccountResourceId?: string; } // @public -export interface MetricDefinitionListResult { - value: MetricDefinition[]; +export interface NetworkIsolationSettingsAutoGenerated { + sqlServerResourceId?: string; + storageAccountResourceId?: string; } // @public -export interface MetricListResult { - value: Metric[]; +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + // (undocumented) + networkSecurityPerimeter?: NSPConfigPerimeter; + // (undocumented) + profile?: NSPConfigProfile; + // (undocumented) + provisioningIssues?: NSPProvisioningIssue[]; + // (undocumented) + provisioningState?: string; + // (undocumented) + resourceAssociation?: NSPConfigAssociation; } // @public -export interface MetricName { - readonly localizedValue?: string; - readonly value?: string; +export interface NetworkSecurityPerimeterConfigurationListResult { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; } // @public -export type MetricType = string; +export interface NetworkSecurityPerimeterConfigurations { + beginReconcile(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; + beginReconcileAndWait(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface MetricValue { - readonly average?: number; - readonly count?: number; - readonly maximum?: number; - readonly minimum?: number; - readonly timestamp?: Date; - readonly total?: number; +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface MinCapacityCapability { - reason?: string; - readonly status?: CapabilityStatus; - readonly value?: number; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions { } // @public -export type MoveOperationMode = string; +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; // @public -export interface Name { - localizedValue?: string; - value?: string; +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkIsolationSettings { - sqlServerResourceId?: string; - storageAccountResourceId?: string; +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; + +// @public (undocumented) +export interface NSPConfigAccessRule { + // (undocumented) + name?: string; + // (undocumented) + properties?: NSPConfigAccessRuleProperties; +} + +// @public (undocumented) +export interface NSPConfigAccessRuleProperties { + // (undocumented) + addressPrefixes?: string[]; + // (undocumented) + direction?: string; + // (undocumented) + fullyQualifiedDomainNames?: string[]; + // (undocumented) + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; + // (undocumented) + subscriptions?: string[]; +} + +// @public (undocumented) +export interface NSPConfigAssociation { + // (undocumented) + accessMode?: string; + // (undocumented) + name?: string; +} + +// @public (undocumented) +export interface NSPConfigNetworkSecurityPerimeterRule { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public (undocumented) +export interface NSPConfigPerimeter { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public (undocumented) +export interface NSPConfigProfile { + // (undocumented) + accessRules?: NSPConfigAccessRule[]; + // (undocumented) + accessRulesVersion?: string; + // (undocumented) + name?: string; +} + +// @public (undocumented) +export interface NSPProvisioningIssue { + // (undocumented) + name?: string; + // (undocumented) + properties?: NSPProvisioningIssueProperties; +} + +// @public (undocumented) +export interface NSPProvisioningIssueProperties { + // (undocumented) + description?: string; + // (undocumented) + issueType?: string; + // (undocumented) + severity?: string; + // (undocumented) + suggestedAccessRules?: string[]; + // (undocumented) + suggestedResourceIds?: string[]; } // @public @@ -7333,14 +7496,6 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationImpact { - readonly changeValueAbsolute?: number; - readonly changeValueRelative?: number; - readonly name?: string; - readonly unit?: string; -} - // @public export interface OperationListResult { readonly nextLink?: string; @@ -7397,8 +7552,8 @@ export interface OutboundFirewallRuleListResult { // @public export interface OutboundFirewallRules { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise, OutboundFirewallRulesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesDeleteOptionalParams): Promise; get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: OutboundFirewallRulesGetOptionalParams): Promise; @@ -7467,7 +7622,15 @@ export interface PerformanceLevelCapability { export type PerformanceLevelUnit = string; // @public -export type PrimaryAggregationType = string; +export type Phase = string; + +// @public +export interface PhaseDetails { + readonly phase?: Phase; + readonly phaseInformation?: { + [propertyName: string]: string; + }; +} // @public export type PrincipalType = string; @@ -7884,6 +8047,16 @@ export interface RefreshExternalGovernanceStatusOperationResult extends ProxyRes readonly status?: string; } +// @public +export interface RefreshExternalGovernanceStatusOperationResultMI extends ProxyResource { + readonly errorMessage?: string; + readonly managedInstanceName?: string; + readonly queuedTime?: string; + readonly requestId?: string; + readonly requestType?: string; + readonly status?: string; +} + // @public export interface Remediation { readonly automated?: boolean; @@ -7892,11 +8065,18 @@ export interface Remediation { readonly scripts?: string[]; } +// @public +export type ReplicaConnectedState = string; + +// @public +export type ReplicaSynchronizationHealth = string; + // @public export interface ReplicationLink extends ProxyResource { readonly isTerminationAllowed?: boolean; readonly linkType?: ReplicationLinkType; readonly partnerDatabase?: string; + readonly partnerDatabaseId?: string; readonly partnerLocation?: string; readonly partnerRole?: ReplicationRole; readonly partnerServer?: string; @@ -7989,7 +8169,7 @@ export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; export type ReplicationLinkType = string; // @public -export type ReplicationMode = string; +export type ReplicationModeType = string; // @public export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy"; @@ -8187,6 +8367,9 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult; // @public export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +// @public +export type RoleChangeType = string; + // @public export type RuleSeverity = string; @@ -8216,6 +8399,9 @@ export type SecondaryType = string; // @public export type SecurityAlertPolicyName = string; +// @public +export type SecurityAlertPolicyNameAutoGenerated = string; + // @public export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; @@ -8292,6 +8478,7 @@ export interface SensitivityLabels { disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsDisableRecommendationOptionalParams): Promise; enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: SensitivityLabelsEnableRecommendationOptionalParams): Promise; get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: SensitivityLabelsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListByDatabaseOptionalParams): PagedAsyncIterableIterator; listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListCurrentByDatabaseOptionalParams): PagedAsyncIterableIterator; listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serverName: string, databaseName: string, parameters: SensitivityLabelUpdateList, options?: SensitivityLabelsUpdateOptionalParams): Promise; @@ -8323,6 +8510,21 @@ export interface SensitivityLabelsGetOptionalParams extends coreClient.Operation // @public export type SensitivityLabelsGetResponse = SensitivityLabel; +// @public +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +// @public +export interface SensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; + // @public export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions { } @@ -8395,6 +8597,7 @@ export interface Server extends TrackedResource { federatedClientId?: string; readonly fullyQualifiedDomainName?: string; identity?: ResourceIdentity; + isIPv6Enabled?: ServerNetworkAccessFlag; keyId?: string; readonly kind?: string; minimalTlsVersion?: string; @@ -8675,55 +8878,6 @@ export interface ServerBlobAuditingPolicyListResult { readonly value?: ServerBlobAuditingPolicy[]; } -// @public -export interface ServerCommunicationLink extends ProxyResource { - readonly kind?: string; - readonly location?: string; - partnerServer?: string; - readonly state?: string; -} - -// @public -export interface ServerCommunicationLinkListResult { - value?: ServerCommunicationLink[]; -} - -// @public -export interface ServerCommunicationLinks { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise, ServerCommunicationLinksCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: ServerCommunicationLink, options?: ServerCommunicationLinksCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksDeleteOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: ServerCommunicationLinksGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServerCommunicationLinksListByServerOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; - -// @public -export interface ServerCommunicationLinksDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ServerCommunicationLinksGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; - -// @public -export interface ServerCommunicationLinksListByServerOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; - // @public export interface ServerConfigurationOption extends ProxyResource { readonly provisioningState?: ProvisioningState; @@ -9143,9 +9297,9 @@ export interface ServersDeleteOptionalParams extends coreClient.OperationOptions // @public export interface ServerSecurityAlertPolicies { - beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise; listByServer(resourceGroupName: string, serverName: string, options?: ServerSecurityAlertPoliciesListByServerOptionalParams): PagedAsyncIterableIterator; } @@ -9401,6 +9555,7 @@ export interface ServerUpdate { federatedClientId?: string; readonly fullyQualifiedDomainName?: string; identity?: ResourceIdentity; + isIPv6Enabled?: ServerNetworkAccessFlag; keyId?: string; minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; @@ -9416,19 +9571,17 @@ export interface ServerUpdate { } // @public -export interface ServerUsage { +export interface ServerUsage extends ProxyResource { readonly currentValue?: number; readonly displayName?: string; readonly limit?: number; - readonly name?: string; - readonly nextResetTime?: Date; - readonly resourceName?: string; readonly unit?: string; } // @public export interface ServerUsageListResult { - value: ServerUsage[]; + readonly nextLink?: string; + readonly value?: ServerUsage[]; } // @public @@ -9436,6 +9589,13 @@ export interface ServerUsages { listByServer(resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ServerUsagesListByServerNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; + // @public export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions { } @@ -9509,15 +9669,6 @@ export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabi // @public export type ServerWorkspaceFeature = string; -// @public -export interface ServiceObjective extends ProxyResource { - readonly description?: string; - readonly enabled?: boolean; - readonly isDefault?: boolean; - readonly isSystem?: boolean; - readonly serviceObjectiveName?: string; -} - // @public export interface ServiceObjectiveCapability { readonly computeModel?: string; @@ -9529,41 +9680,15 @@ export interface ServiceObjectiveCapability { readonly sku?: Sku; readonly status?: CapabilityStatus; readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; + readonly supportedFreeLimitExhaustionBehaviors?: FreeLimitExhaustionBehaviorCapability[]; readonly supportedLicenseTypes?: LicenseTypeCapability[]; readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; readonly supportedMaxSizes?: MaxSizeRangeCapability[]; readonly supportedMinCapacities?: MinCapacityCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } -// @public -export interface ServiceObjectiveListResult { - value: ServiceObjective[]; -} - -// @public -export type ServiceObjectiveName = string; - -// @public -export interface ServiceObjectives { - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: ServiceObjectivesGetOptionalParams): Promise; - listByServer(resourceGroupName: string, serverName: string, options?: ServiceObjectivesListByServerOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ServiceObjectivesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServiceObjectivesGetResponse = ServiceObjective; - -// @public -export interface ServiceObjectivesListByServerOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; - // @public export interface ServicePrincipal { readonly clientId?: string; @@ -9587,13 +9712,6 @@ export interface Sku { tier?: string; } -// @public -export interface SloUsageMetric { - readonly inRangeTimeRatio?: number; - readonly serviceLevelObjective?: ServiceObjectiveName; - readonly serviceLevelObjectiveId?: string; -} - // @public export interface SqlAgent { createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: SqlAgentConfiguration, options?: SqlAgentCreateOrUpdateOptionalParams): Promise; @@ -9628,6 +9746,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SqlManagementClientOptionalParams); // (undocumented) + apiVersion: string; + // (undocumented) backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; // (undocumented) capabilities: Capabilities; @@ -9688,10 +9808,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) distributedAvailabilityGroups: DistributedAvailabilityGroups; // (undocumented) - elasticPoolActivities: ElasticPoolActivities; - // (undocumented) - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - // (undocumented) elasticPoolOperations: ElasticPoolOperations; // (undocumented) elasticPools: ElasticPools; @@ -9814,6 +9930,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operations: Operations; // (undocumented) outboundFirewallRules: OutboundFirewallRules; @@ -9850,8 +9968,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverBlobAuditingPolicies: ServerBlobAuditingPolicies; // (undocumented) - serverCommunicationLinks: ServerCommunicationLinks; - // (undocumented) serverConfigurationOptions: ServerConfigurationOptions; // (undocumented) serverConnectionPolicies: ServerConnectionPolicies; @@ -9876,8 +9992,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverVulnerabilityAssessments: ServerVulnerabilityAssessments; // (undocumented) - serviceObjectives: ServiceObjectives; - // (undocumented) sqlAgent: SqlAgent; // (undocumented) sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; @@ -9932,6 +10046,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { // @public export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; + apiVersion?: string; endpoint?: string; } @@ -9998,9 +10113,6 @@ export interface SqlVulnerabilityAssessmentListResult { readonly value?: SqlVulnerabilityAssessment[]; } -// @public -export type SQLVulnerabilityAssessmentName = string; - // @public export type SqlVulnerabilityAssessmentName = string; @@ -10095,8 +10207,8 @@ export interface SqlVulnerabilityAssessmentScanRecordListResult { // @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; + 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 @@ -10261,6 +10373,9 @@ export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopM // @public export type StartStopScheduleName = string; +// @public +export type Status = string; + // @public export interface StorageCapability { reason?: string; @@ -10945,12 +11060,6 @@ export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTr // @public export type TransparentDataEncryptionState = "Enabled" | "Disabled"; -// @public -export type UnitDefinitionType = string; - -// @public -export type UnitType = string; - // @public export interface UpdateLongTermRetentionBackupParameters { requestedBackupStorageRedundancy?: BackupStorageRedundancy; @@ -10974,18 +11083,21 @@ export interface UpsertManagedServerOperationParameters { } // @public (undocumented) -export interface UpsertManagedServerOperationStep { +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { // (undocumented) name?: string; // (undocumented) order?: number; // (undocumented) - status?: UpsertManagedServerOperationStepStatus; + status?: Status; + // (undocumented) + stepEndTime?: Date; + // (undocumented) + stepStartTime?: Date; + // (undocumented) + timeElapsed?: string; } -// @public -export type UpsertManagedServerOperationStepStatus = string; - // @public export interface Usage { readonly currentValue?: number; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index 7c2533b73bdb..62657e5cec98 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -8,6 +8,20 @@ import * as coreClient from "@azure/core-client"; +/** A list of short term retention policies. */ +export interface BackupShortTermRetentionPolicyListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: BackupShortTermRetentionPolicy[]; + /** + * 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; +} + /** ARM resource. */ export interface Resource { /** @@ -27,222 +41,118 @@ export interface Resource { readonly type?: string; } -/** The response to a list data masking rules request. */ -export interface DataMaskingRuleListResult { - /** The list of database data masking rules. */ - value?: DataMaskingRule[]; -} - -/** The response to a list geo backup policies request. */ -export interface GeoBackupPolicyListResult { - /** The list of geo backup policies. */ - value?: GeoBackupPolicy[]; -} - -/** The response to a list database metrics request. */ -export interface MetricListResult { - /** The list of metrics for the database. */ - value: Metric[]; -} - -/** Database metrics. */ -export interface Metric { - /** - * 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 startTime?: Date; - /** - * 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 endTime?: Date; - /** - * The time step to be used to summarize the metric values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeGrain?: string; - /** - * The unit of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: UnitType; +/** A list of server auditing settings. */ +export interface ServerBlobAuditingPolicyListResult { /** - * The name information for the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: MetricName; + readonly value?: ServerBlobAuditingPolicy[]; /** - * The metric values for the specified time window and timestep. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricValues?: MetricValue[]; + readonly nextLink?: string; } -/** A database metric name. */ -export interface MetricName { +/** A list of database auditing settings. */ +export interface DatabaseBlobAuditingPolicyListResult { /** - * The name of the database metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly value?: DatabaseBlobAuditingPolicy[]; /** - * The friendly name of the database metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; + readonly nextLink?: string; } -/** Represents database metrics. */ -export interface MetricValue { - /** - * The number of values for the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly count?: number; - /** - * The average value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly average?: number; - /** - * The max value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximum?: number; - /** - * The min value of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimum?: number; +/** A list of database extended auditing settings. */ +export interface ExtendedDatabaseBlobAuditingPolicyListResult { /** - * The metric timestamp (ISO-8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timestamp?: Date; + readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; /** - * The total value of the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly total?: number; -} - -/** The response to a list database metric definitions request. */ -export interface MetricDefinitionListResult { - /** The list of metric definitions for the database. */ - value: MetricDefinition[]; + readonly nextLink?: string; } -/** A database metric definition. */ -export interface MetricDefinition { - /** - * The name information for the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: MetricName; - /** - * The primary aggregation type defining how metric values are displayed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly primaryAggregationType?: PrimaryAggregationType; - /** - * The resource uri of the database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceUri?: string; +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { /** - * The unit of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: UnitDefinitionType; + readonly value?: ExtendedServerBlobAuditingPolicy[]; /** - * The list of database metric availabilities for the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricAvailabilities?: MetricAvailability[]; + readonly nextLink?: string; } -/** A metric availability value. */ -export interface MetricAvailability { +/** The list of database data masking rules. */ +export interface DataMaskingRuleListResult { /** - * The length of retention for the database metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly retention?: string; + readonly value?: DataMaskingRule[]; /** - * The granularity of the database metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeGrain?: string; -} - -/** A list of server communication links. */ -export interface ServerCommunicationLinkListResult { - /** The list of server communication links. */ - value?: ServerCommunicationLink[]; -} - -/** Represents the response to a get database service objectives request. */ -export interface ServiceObjectiveListResult { - /** The list of database service objectives. */ - value: ServiceObjective[]; -} - -/** Represents the response to a list elastic pool activity request. */ -export interface ElasticPoolActivityListResult { - /** The list of elastic pool activities. */ - value: ElasticPoolActivity[]; -} - -/** Represents the response to a list elastic pool database activity request. */ -export interface ElasticPoolDatabaseActivityListResult { - /** The list of elastic pool database activities. */ - value: ElasticPoolDatabaseActivity[]; -} - -/** Represents the response to a list server metrics request. */ -export interface ServerUsageListResult { - /** The list of server metrics for the server. */ - value: ServerUsage[]; + readonly nextLink?: string; } -/** Represents server metrics. */ -export interface ServerUsage { - /** - * Name of the server usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceName?: string; - /** - * The metric display name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivitiesListResult { /** - * The current value of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly value?: DataWarehouseUserActivities[]; /** - * The current limit of the metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly nextLink?: string; +} + +/** A list of the database's Advanced Threat Protection configurations. */ +export interface DatabaseAdvancedThreatProtectionListResult { /** - * The units of the metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly value?: DatabaseAdvancedThreatProtection[]; /** - * The next reset time for the metric (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 nextResetTime?: Date; + readonly nextLink?: string; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ @@ -382,13 +292,13 @@ export interface DatabaseColumnListResult { readonly nextLink?: string; } -/** A list of database schemas. */ -export interface DatabaseSchemaListResult { +/** Import export operation extensions list. */ +export interface ImportExportExtensionsOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSchema[]; + readonly value?: ImportExportExtensionsOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -396,43 +306,40 @@ export interface DatabaseSchemaListResult { readonly nextLink?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** A list of the database's security alert policies. */ -export interface DatabaseSecurityAlertListResult { +/** Contains the private endpoint connection requests status. */ +export interface PrivateEndpointConnectionRequestStatus { /** - * Array of results. + * Resource id for which the private endpoint is created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSecurityAlertPolicy[]; + readonly privateLinkServiceId?: string; /** - * Link to retrieve next page of results. + * The connection name for the private endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly privateEndpointConnectionName?: string; + /** + * Status of this private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; } -/** A list of database tables. */ -export interface DatabaseTableListResult { +/** Contains the ARM resources for which to create private endpoint connection. */ +export interface NetworkIsolationSettings { + /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ + storageAccountResourceId?: string; + /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ + sqlServerResourceId?: string; +} + +/** The response to a list database operations request */ +export interface DatabaseOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseTable[]; + readonly value?: DatabaseOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -440,43 +347,27 @@ export interface DatabaseTableListResult { readonly nextLink?: string; } -/** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { - /** The rule baseline result */ - result: string[]; -} - -/** Properties of a Vulnerability Assessment recurring scans. */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** Recurring scans state. */ - isEnabled?: boolean; - /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ - emailSubscriptionAdmins?: boolean; - /** Specifies an array of e-mail addresses to which the scan notification is sent. */ - emails?: string[]; -} - -/** A list of the database's vulnerability assessments. */ -export interface DatabaseVulnerabilityAssessmentListResult { +/** The phase details properties of a database operation. */ +export interface PhaseDetails { /** - * Array of results. + * The operation phase. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseVulnerabilityAssessment[]; + readonly phase?: Phase; /** - * Link to retrieve next page of results. + * The operation phase information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly phaseInformation?: { [propertyName: string]: string }; } -/** A list of vulnerability assessment scan records. */ -export interface VulnerabilityAssessmentScanRecordListResult { +/** A list of database schemas. */ +export interface DatabaseSchemaListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VulnerabilityAssessmentScanRecord[]; + readonly value?: DatabaseSchema[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -484,27 +375,27 @@ export interface VulnerabilityAssessmentScanRecordListResult { readonly nextLink?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface VulnerabilityAssessmentScanError { +/** A list of the database's security alert policies. */ +export interface DatabaseSecurityAlertListResult { /** - * The error code. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: DatabaseSecurityAlertPolicy[]; /** - * The error message. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivitiesListResult { +/** A list of SQL Vulnerability Assessments baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DataWarehouseUserActivities[]; + readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -512,13 +403,13 @@ export interface DataWarehouseUserActivitiesListResult { readonly nextLink?: string; } -/** A list of deleted servers. */ -export interface DeletedServerListResult { +/** A list of SQL Vulnerability Assessments rule baseline. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DeletedServer[]; + readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -526,13 +417,13 @@ export interface DeletedServerListResult { readonly nextLink?: string; } -/** The response to a list elastic pool operations request */ -export interface ElasticPoolOperationListResult { +/** 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?: ElasticPoolOperation[]; + 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. @@ -540,96 +431,157 @@ export interface ElasticPoolOperationListResult { readonly nextLink?: string; } -/** A list of server encryption protectors. */ -export interface EncryptionProtectorListResult { +/** SQL Vulnerability Assessment remediation Details. */ +export interface Remediation { /** - * Array of results. + * SQL Vulnerability Assessment remediation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EncryptionProtector[]; + readonly description?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment remediation script. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** ARM resource. */ -export interface ResourceWithWritableName { + readonly scripts?: string[]; /** - * Resource ID. + * SQL Vulnerability Assessment is remediation automated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; - /** Resource name. */ - name?: string; + readonly automated?: boolean; /** - * Resource type. + * 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 type?: string; + readonly portalLink?: string; } -/** The response to a list firewall rules request */ -export interface FirewallRuleListResult { +/** SQL Vulnerability Assessment baseline adjusted results */ +export interface BaselineAdjustedResult { /** - * Array of results. + * SQL Vulnerability Assessment baseline details * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FirewallRule[]; + readonly baseline?: Baseline; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment baseline status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: RuleStatus; + /** + * 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 resultsNotInBaseline?: string[][]; + /** + * SQL Vulnerability Assessment results that are in baseline. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultsOnlyInBaseline?: string[][]; } -/** A list of server firewall rules. */ -export interface FirewallRuleList { - values?: FirewallRule[]; +/** SQL Vulnerability Assessment baseline Details */ +export interface Baseline { + /** + * SQL Vulnerability Assessment baseline expected results + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expectedResults?: string[][]; + /** + * SQL Vulnerability Assessment baseline update time (UTC) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedTime?: Date; } -/** 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; +/** SQL Vulnerability Assessment rule metadata details. */ +export interface VaRule { + /** + * 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 severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly severity?: RuleSeverity; + /** + * SQL Vulnerability Assessment rule category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly category?: string; + /** + * SQL Vulnerability Assessment rule type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ruleType?: RuleType; + /** + * SQL Vulnerability Assessment rule title. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * SQL Vulnerability Assessment rule description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * SQL Vulnerability Assessment rule rationale. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rationale?: string; + /** + * SQL Vulnerability Assessment rule query details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryCheck?: QueryCheck; + /** + * SQL Vulnerability Assessment benchmark references. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly benchmarkReferences?: BenchmarkReference[]; } -/** An update to an Instance pool. */ -export interface InstancePoolUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** SQL Vulnerability Assessment query check object. */ +export interface QueryCheck { + /** + * SQL Vulnerability Assessment rule query. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly query?: string; + /** + * SQL Vulnerability Assessment query expected result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expectedResult?: string[][]; + /** + * 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 columnNames?: string[]; } -/** A list of Azure SQL instance pools. */ -export interface InstancePoolListResult { +/** SQL Vulnerability Assessment benchmark reference */ +export interface BenchmarkReference { /** - * Array of results. + * SQL Vulnerability Assessment benchmark name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstancePool[]; + readonly benchmark?: string; /** - * Link to retrieve next page of results. + * SQL Vulnerability Assessment benchmark reference. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly reference?: string; } -/** A list of Azure SQL job agents. */ -export interface JobAgentListResult { +/** A list of vulnerability assessment scan records. */ +export interface SqlVulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobAgent[]; + readonly value?: SqlVulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -637,19 +589,27 @@ export interface JobAgentListResult { readonly nextLink?: string; } -/** An update to an Azure SQL job agent. */ -export interface JobAgentUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Properties of a vulnerability assessment scan error. */ +export interface SqlVulnerabilityAssessmentScanError { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -/** A list of job credentials. */ -export interface JobCredentialListResult { +/** A list of SQL Vulnerability Assessments. */ +export interface SqlVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobCredential[]; + readonly value?: SqlVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -657,13 +617,13 @@ export interface JobCredentialListResult { readonly nextLink?: string; } -/** A list of job executions. */ -export interface JobExecutionListResult { +/** A list of database tables. */ +export interface DatabaseTableListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobExecution[]; + readonly value?: DatabaseTable[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -671,32 +631,33 @@ export interface JobExecutionListResult { readonly nextLink?: string; } -/** The target that a job execution is executed on. */ -export interface JobExecutionTarget { - /** - * The type of the target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: JobTargetType; +/** A list of database usage metrics. */ +export interface DatabaseUsageListResult { /** - * The server name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly value?: DatabaseUsage[]; /** - * The database name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly nextLink?: string; } -/** A list of jobs. */ -export interface JobListResult { +/** Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. */ +export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { + /** The rule baseline result */ + result: string[]; +} + +/** A list of vulnerability assessment scan records. */ +export interface VulnerabilityAssessmentScanRecordListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Job[]; + readonly value?: VulnerabilityAssessmentScanRecord[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -704,27 +665,27 @@ export interface JobListResult { readonly nextLink?: string; } -/** Scheduling properties of a job. */ -export interface JobSchedule { - /** Schedule start time. */ - startTime?: Date; - /** Schedule end time. */ - endTime?: Date; - /** Schedule interval type */ - type?: JobScheduleType; - /** Whether or not the schedule is enabled. */ - enabled?: boolean; - /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ - interval?: string; +/** Properties of a vulnerability assessment scan error. */ +export interface VulnerabilityAssessmentScanError { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -/** A list of job steps. */ -export interface JobStepListResult { +/** A list of the database's vulnerability assessments. */ +export interface DatabaseVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobStep[]; + readonly value?: DatabaseVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -732,57 +693,23 @@ export interface JobStepListResult { readonly nextLink?: string; } -/** The action to be executed by a job step. */ -export interface JobStepAction { - /** Type of action being executed by the job step. */ - type?: JobStepActionType; - /** The source of the action to execute. */ - source?: JobStepActionSource; - /** The action value, for example the text of the T-SQL script to execute. */ - value: string; -} - -/** The output configuration of a job step. */ -export interface JobStepOutput { - /** The output destination type. */ - type?: JobStepOutputType; - /** The output destination subscription id. */ - subscriptionId?: string; - /** The output destination resource group. */ - resourceGroupName?: string; - /** The output destination server name. */ - serverName: string; - /** The output destination database. */ - databaseName: string; - /** The output destination schema. */ - schemaName?: string; - /** The output destination table. */ - tableName: string; - /** The resource ID of the credential to use to connect to the output destination. */ - credential: string; -} - -/** The execution options of a job step. */ -export interface JobStepExecutionOptions { - /** Execution timeout for the job step. */ - timeoutSeconds?: number; - /** Maximum number of times the job step will be reattempted if the first attempt fails. */ - retryAttempts?: number; - /** Initial delay between retries for job step execution. */ - initialRetryIntervalSeconds?: number; - /** The maximum amount of time to wait between retries for job step execution. */ - maximumRetryIntervalSeconds?: number; - /** The backoff multiplier for the time between retries. */ - retryIntervalBackoffMultiplier?: number; +/** Properties of a Vulnerability Assessment recurring scans. */ +export interface VulnerabilityAssessmentRecurringScansProperties { + /** Recurring scans state. */ + isEnabled?: boolean; + /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ + emailSubscriptionAdmins?: boolean; + /** Specifies an array of e-mail addresses to which the scan notification is sent. */ + emails?: string[]; } -/** A list of target groups. */ -export interface JobTargetGroupListResult { +/** A list of databases. */ +export interface DatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: JobTargetGroup[]; + readonly value?: Database[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -790,648 +717,980 @@ export interface JobTargetGroupListResult { readonly nextLink?: string; } -/** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ -export interface JobTarget { - /** Whether the target is included or excluded from the group. */ - membershipType?: JobTargetGroupMembershipType; - /** The target type. */ - type: JobTargetType; - /** The target server name. */ - serverName?: string; - /** The target database name. */ - databaseName?: string; - /** The target elastic pool name. */ - elasticPoolName?: string; - /** The target shard map. */ - shardMapName?: string; - /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ - refreshCredential?: 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; } -/** A list of job versions. */ -export interface JobVersionListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: JobVersion[]; +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseIdentity { + /** The identity type */ + type?: DatabaseIdentityType; /** - * Link to retrieve next page of results. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly tenantId?: string; + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: DatabaseUserIdentity }; } -/** The location capability. */ -export interface LocationCapabilities { - /** - * The location name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The list of supported server versions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportedServerVersions?: ServerVersionCapability[]; +/** Azure Active Directory identity configuration for a resource. */ +export interface DatabaseUserIdentity { /** - * The list of supported managed instance versions. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; + readonly principalId?: string; /** - * The status of the capability. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly clientId?: string; } -/** The server capability */ -export interface ServerVersionCapability { +/** Database level key used for encryption at rest. */ +export interface DatabaseKey { /** - * The server version name. + * The database key type. Only supported value is 'AzureKeyVault'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly type?: DatabaseKeyType; /** - * The list of supported database editions. + * Thumbprint of the database key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedEditions?: EditionCapability[]; + readonly thumbprint?: string; /** - * The list of supported elastic pool editions. + * The database key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; + readonly creationDate?: Date; /** - * The status of the capability. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly subregion?: string; } -/** The edition capability. */ -export interface EditionCapability { +/** 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 database edition name. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly name?: string; + 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 list of supported service objectives for the edition. + * The status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; + readonly status?: DatabaseStatus; /** - * Whether or not zone redundancy is supported for the edition. + * The ID of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly databaseId?: string; /** - * The read scale capability for the edition. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly readScale?: ReadScaleCapability; + readonly creationDate?: Date; /** - * The list of supported storage capabilities for this edition + * 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 supportedStorageCapabilities?: StorageCapability[]; + readonly currentServiceObjectiveName?: string; /** - * The status of the capability. + * 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 status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The service objectives capability. */ -export interface ServiceObjectiveCapability { + readonly requestedServiceObjectiveName?: string; /** - * The unique ID of the service objective. + * The default secondary region for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly defaultSecondaryLocation?: string; /** - * The service objective name. + * 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 name?: string; + 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 list of supported maximum database sizes. + * The max log size for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly maxLogSizeBytes?: number; /** - * The performance level. + * 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 performanceLevel?: PerformanceLevelCapability; + 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 sku. + * The name and tier of the SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: Sku; - /** - * List of supported license types. + 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 supportedLicenseTypes?: LicenseTypeCapability[]; + 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 included (free) max size. + * 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 includedMaxSize?: MaxSizeCapability; + readonly pausedDate?: Date; /** - * Whether or not zone redundancy is supported for the service objective. + * 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 zoneRedundant?: boolean; + 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; /** - * Supported time range for auto pause delay + * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; + readonly isInfraEncryptionEnabled?: boolean; + /** The Client id used for cross tenant per database CMK scenario */ + federatedClientId?: string; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; + /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ + encryptionProtector?: string; + /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Whether or not the database uses free monthly limits. Allowed on one database in a subscription. */ + useFreeLimit?: boolean; /** - * List of supported min capacities - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the behavior when monthly free limits are exhausted for the free database. + * + * AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month. + * + * BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed. */ - readonly supportedMinCapacities?: MinCapacityCapability[]; + freeLimitExhaustionBehavior?: FreeLimitExhaustionBehavior; /** - * The compute model - * NOTE: This property will not be serialized. It can only be populated by the server. + * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. + * + * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. + * + * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. + * + * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. */ - readonly computeModel?: string; + manualCutover?: boolean; /** - * List of supported maintenance configurations + * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. + * + * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. + * + * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. + * + * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. + */ + performCutover?: boolean; + /** The flag to enable or disable auto rotation of database encryption protector AKV key. */ + encryptionProtectorAutoRotation?: boolean; +} + +/** 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 deleted servers. */ +export interface DeletedServerListResult { + /** + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + readonly value?: DeletedServer[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The maximum size range capability. */ -export interface MaxSizeRangeCapability { +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * Minimum value. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly minValue?: MaxSizeCapability; + readonly value?: DistributedAvailabilityGroup[]; /** - * Maximum value. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: MaxSizeCapability; + readonly nextLink?: string; +} + +/** Database specific information */ +export interface DistributedAvailabilityGroupDatabase { /** - * Scale/step size for discrete values between the minimum value and the maximum value. + * The name of the database in link * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scaleSize?: MaxSizeCapability; + readonly databaseName?: string; /** - * Size of transaction log. + * Managed instance replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logSize?: LogSizeCapability; + readonly instanceReplicaId?: string; /** - * The status of the capability. + * SQL server replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The maximum size capability. */ -export interface MaxSizeCapability { + readonly partnerReplicaId?: string; /** - * The maximum size limit (see 'unit' for the units). + * Current link state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly replicaState?: string; /** - * The units that the limit is expressed in. + * Link health state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: MaxSizeUnit; -} - -/** The log size capability. */ -export interface LogSizeCapability { + readonly synchronizationHealth?: ReplicaSynchronizationHealth; /** - * The log size limit (see 'unit' for the units). + * Link connected state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly connectedState?: ReplicaConnectedState; /** - * The units that the limit is expressed in. + * Last received LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: LogSizeUnit; -} - -/** The performance level capability. */ -export interface PerformanceLevelCapability { + readonly lastReceivedLsn?: string; /** - * Performance level value. + * Last received LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly lastReceivedTime?: Date; /** - * Unit type used to measure performance level. + * Last sent LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; -} - -/** The license type capability */ -export interface LicenseTypeCapability { + readonly lastSentLsn?: string; /** - * License type identifier. + * Last sent LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly lastSentTime?: Date; /** - * The status of the capability. + * Last commit LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** Supported auto pause delay time range */ -export interface AutoPauseDelayTimeRange { + readonly lastCommitLsn?: string; /** - * Minimum value + * Last commit LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly minValue?: number; + readonly lastCommitTime?: Date; /** - * Maximum value + * Last hardened LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: number; + readonly lastHardenedLsn?: string; /** - * Step value for discrete values between the minimum value and the maximum value. + * Last hardened LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepSize?: number; + readonly lastHardenedTime?: Date; /** - * Default value is no value is provided + * Last backup LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly default?: number; + readonly lastBackupLsn?: string; /** - * Unit of time that delay is expressed in + * Last backup LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PauseDelayTimeUnit; + readonly lastBackupTime?: Date; /** - * Value that is used to not pause (infinite delay before pause) + * The most recent link connection error description * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly doNotPauseValue?: number; -} - -/** The min capacity capability */ -export interface MinCapacityCapability { + readonly mostRecentLinkError?: string; /** - * Min capacity value + * SQL server certificate validity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly partnerAuthCertValidity?: CertificateInfo; /** - * The status of the capability. + * Replication lag when Managed Instance link side is primary * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly instanceSendReplicationLagSeconds?: number; + /** + * Redo lag when Managed Instance link side is primary + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceRedoReplicationLagSeconds?: number; } -/** The maintenance configuration capability */ -export interface MaintenanceConfigurationCapability { +/** Certificate information */ +export interface CertificateInfo { /** - * Maintenance configuration name + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly certificateName?: string; /** - * Whether or not zone redundancy is supported for the maintenance configuration. + * The certificate ID * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly certificateId?: string; /** - * The status of the capability. + * The certificate expiry date * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly expiryDate?: Date; } -/** The read scale capability. */ -export interface ReadScaleCapability { +/** Information for creating and updating distributed availability group */ +export interface DistributedAvailabilityGroupsCreateOrUpdateRequestBody { + /** 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?: ReplicationModeType; +} + +/** Distributed availability group failover request. */ +export interface DistributedAvailabilityGroupSetRole { + /** New role of managed instance in a distributed availability group, can be Primary or Secondary. */ + instanceRole: InstanceRole; + /** The type of the role change, can be Planned or Forced. */ + roleChangeType: RoleChangeType; +} + +/** The response to a list elastic pool operations request */ +export interface ElasticPoolOperationListResult { /** - * The maximum number of read scale replicas. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxNumberOfReplicas?: number; + readonly value?: ElasticPoolOperation[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The storage account type capability. */ -export interface StorageCapability { +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * The storage account type for the database's backups. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageAccountType?: StorageCapabilityStorageAccountType; + readonly value?: ElasticPool[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The elastic pool edition capability. */ -export interface ElasticPoolEditionCapability { +/** 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; + /** Minimal capacity that serverless pool will not shrink below, if not paused */ + minCapacity?: 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; + /** Type of enclave requested on the elastic pool. */ + preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Specifies the availability zone the pool's primary replica is pinned to. */ + availabilityZone?: AvailabilityZoneType; +} + +/** A list of server encryption protectors. */ +export interface EncryptionProtectorListResult { /** - * The elastic pool edition name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: EncryptionProtector[]; /** - * The list of supported elastic pool DTU levels for the edition. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly nextLink?: string; +} + +/** A list of endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { /** - * Whether or not zone redundancy is supported for the edition. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly value?: EndpointCertificate[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The Elastic Pool performance level capability. */ -export interface ElasticPoolPerformanceLevelCapability { - /** - * The performance level for the pool. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly performanceLevel?: PerformanceLevelCapability; +/** A list of failover groups. */ +export interface FailoverGroupListResult { /** - * The sku. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: Sku; + readonly value?: FailoverGroup[]; /** - * List of supported license types. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly nextLink?: string; +} + +/** Read-write endpoint of the failover group instance. */ +export interface FailoverGroupReadWriteEndpoint { + /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverPolicy: ReadWriteEndpointFailoverPolicy; + /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** Read-only endpoint of the failover group instance. */ +export interface FailoverGroupReadOnlyEndpoint { + /** Failover policy of the read-only endpoint for the failover group. */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; + /** The target partner server where the read-only endpoint points to. */ + targetServer?: string; +} + +/** Partner server information for the failover group. */ +export interface PartnerInfo { + /** Resource identifier of the partner server. */ + id: string; /** - * The maximum number of databases supported. + * Geo location of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxDatabaseCount?: number; + readonly location?: string; /** - * The included (free) max size for this performance level. + * Replication role of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly replicationRole?: FailoverGroupReplicationRole; +} + +/** A failover group update request. */ +export interface FailoverGroupUpdate { + /** 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; + /** List of databases in the failover group. */ + databases?: string[]; + /** List of partner server information for the failover group. */ + partnerServers?: PartnerInfo[]; +} + +/** The response to a list firewall rules request */ +export interface FirewallRuleListResult { /** - * The list of supported max sizes. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly value?: FirewallRule[]; /** - * The list of supported per database max sizes. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; + readonly nextLink?: string; +} + +/** ARM resource. */ +export interface ResourceWithWritableName { /** - * The list of supported per database max performance levels. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; + readonly id?: string; + /** Resource name. */ + name?: string; /** - * Whether or not zone redundancy is supported for the performance level. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly type?: string; +} + +/** A list of server firewall rules. */ +export interface FirewallRuleList { + values?: FirewallRule[]; +} + +/** The list of geo backup policies. */ +export interface GeoBackupPolicyListResult { /** - * List of supported maintenance configurations + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + readonly value?: GeoBackupPolicy[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The max per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { /** - * The maximum performance level per database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly value?: IPv6FirewallRule[]; /** - * Unit type used to measure performance level. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly nextLink?: string; +} + +/** A list of instance failover groups. */ +export interface InstanceFailoverGroupListResult { /** - * The list of supported min database performance levels. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; + readonly value?: InstanceFailoverGroup[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The minimum per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { +/** Read-write endpoint of the failover group instance. */ +export interface InstanceFailoverGroupReadWriteEndpoint { + /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverPolicy: ReadWriteEndpointFailoverPolicy; + /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** Read-only endpoint of the failover group instance. */ +export interface InstanceFailoverGroupReadOnlyEndpoint { + /** Failover policy of the read-only endpoint for the failover group. */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +} + +/** Partner region information for the failover group. */ +export interface PartnerRegionInfo { + /** Geo location of the partner managed instances. */ + location?: string; /** - * The minimum performance level per database. + * Replication role of the partner managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; +} + +/** Pairs of Managed Instances in the failover group. */ +export interface ManagedInstancePairInfo { + /** Id of Primary Managed Instance in pair. */ + primaryManagedInstanceId?: string; + /** Id of Partner Managed Instance in pair. */ + partnerManagedInstanceId?: string; +} + +/** A list of Azure SQL instance pools. */ +export interface InstancePoolListResult { /** - * Unit type used to measure performance level. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PerformanceLevelUnit; + readonly value?: InstancePool[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The managed instance capability */ -export interface ManagedInstanceVersionCapability { +/** An update to an Instance pool. */ +export interface InstancePoolUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of Azure SQL job agents. */ +export interface JobAgentListResult { /** - * The server version name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: JobAgent[]; /** - * The list of supported managed instance editions. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedEditions?: ManagedInstanceEditionCapability[]; - /** - * The list of supported instance pool editions. - * NOTE: This property will not be serialized. It can only be populated by the server. + readonly nextLink?: string; +} + +/** An update to an Azure SQL job agent. */ +export interface JobAgentUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of job credentials. */ +export interface JobCredentialListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; + readonly value?: JobCredential[]; /** - * The status of the capability. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly nextLink?: string; } -/** The managed server capability */ -export interface ManagedInstanceEditionCapability { +/** A list of job executions. */ +export interface JobExecutionListResult { /** - * The managed server version name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: JobExecution[]; /** - * The supported families. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; + readonly nextLink?: string; +} + +/** The target that a job execution is executed on. */ +export interface JobExecutionTarget { /** - * The list of supported storage capabilities for this edition + * The type of the target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageCapabilities?: StorageCapability[]; + readonly type?: JobTargetType; /** - * Whether or not zone redundancy is supported for the edition. + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly zoneRedundant?: boolean; + readonly serverName?: string; /** - * The status of the capability. + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly databaseName?: string; } -/** The managed server family capability. */ -export interface ManagedInstanceFamilyCapability { +/** A list of job steps. */ +export interface JobStepListResult { /** - * Family name. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: JobStep[]; /** - * SKU name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: string; + readonly nextLink?: string; +} + +/** The action to be executed by a job step. */ +export interface JobStepAction { + /** Type of action being executed by the job step. */ + type?: JobStepActionType; + /** The source of the action to execute. */ + source?: JobStepActionSource; + /** The action value, for example the text of the T-SQL script to execute. */ + value: string; +} + +/** The output configuration of a job step. */ +export interface JobStepOutput { + /** The output destination type. */ + type?: JobStepOutputType; + /** The output destination subscription id. */ + subscriptionId?: string; + /** The output destination resource group. */ + resourceGroupName?: string; + /** The output destination server name. */ + serverName: string; + /** The output destination database. */ + databaseName: string; + /** The output destination schema. */ + schemaName?: string; + /** The output destination table. */ + tableName: string; + /** The resource ID of the credential to use to connect to the output destination. */ + credential: string; +} + +/** The execution options of a job step. */ +export interface JobStepExecutionOptions { + /** Execution timeout for the job step. */ + timeoutSeconds?: number; + /** Maximum number of times the job step will be reattempted if the first attempt fails. */ + retryAttempts?: number; + /** Initial delay between retries for job step execution. */ + initialRetryIntervalSeconds?: number; + /** The maximum amount of time to wait between retries for job step execution. */ + maximumRetryIntervalSeconds?: number; + /** The backoff multiplier for the time between retries. */ + retryIntervalBackoffMultiplier?: number; +} + +/** A list of target groups. */ +export interface JobTargetGroupListResult { /** - * List of supported license types. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly value?: JobTargetGroup[]; /** - * List of supported virtual cores values. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly nextLink?: string; +} + +/** A job target, for example a specific database or a container of databases that is evaluated during job execution. */ +export interface JobTarget { + /** Whether the target is included or excluded from the group. */ + membershipType?: JobTargetGroupMembershipType; + /** The target type. */ + type: JobTargetType; + /** The target server name. */ + serverName?: string; + /** The target database name. */ + databaseName?: string; + /** The target elastic pool name. */ + elasticPoolName?: string; + /** The target shard map. */ + shardMapName?: string; + /** The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. */ + refreshCredential?: string; +} + +/** A list of job versions. */ +export interface JobVersionListResult { /** - * The status of the capability. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly value?: JobVersion[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** The managed instance virtual cores capability. */ -export interface ManagedInstanceVcoresCapability { +/** A list of jobs. */ +export interface JobListResult { /** - * The virtual cores identifier. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: Job[]; /** - * The virtual cores value. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly nextLink?: string; +} + +/** Scheduling properties of a job. */ +export interface JobSchedule { + /** Schedule start time. */ + startTime?: Date; + /** Schedule end time. */ + endTime?: Date; + /** Schedule interval type */ + type?: JobScheduleType; + /** Whether or not the schedule is enabled. */ + enabled?: boolean; + /** Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format. */ + interval?: string; +} + +/** A list of ledger digest upload settings. */ +export interface LedgerDigestUploadsListResult { /** - * Included size. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly includedMaxSize?: MaxSizeCapability; + readonly value?: LedgerDigestUploads[]; /** - * Storage size ranges. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageSizes?: MaxSizeRangeCapability[]; + readonly nextLink?: string; +} + +/** The location capability. */ +export interface LocationCapabilities { /** - * True if this service objective is supported for managed instances in an instance pool. + * The location name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instancePoolSupported?: boolean; + readonly name?: string; /** - * True if this service objective is supported for standalone managed instances. + * The list of supported server versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly standaloneSupported?: boolean; + readonly supportedServerVersions?: ServerVersionCapability[]; /** - * List of supported maintenance configurations + * The list of supported managed instance versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; + readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1441,13 +1700,23 @@ export interface ManagedInstanceVcoresCapability { reason?: string; } -/** The maintenance configuration capability */ -export interface ManagedInstanceMaintenanceConfigurationCapability { +/** The server capability */ +export interface ServerVersionCapability { /** - * Maintenance configuration name + * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; + /** + * The list of supported database editions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedEditions?: EditionCapability[]; + /** + * The list of supported elastic pool editions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1457,44 +1726,38 @@ export interface ManagedInstanceMaintenanceConfigurationCapability { reason?: string; } -/** The instance pool capability */ -export interface InstancePoolEditionCapability { +/** The edition capability. */ +export interface EditionCapability { /** - * The instance pool version name. + * The database edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The supported families. + * The list of supported service objectives for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: InstancePoolFamilyCapability[]; + readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; /** - * The status of the capability. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** The instance pool family capability. */ -export interface InstancePoolFamilyCapability { + readonly zoneRedundant?: boolean; /** - * Family name. + * The read scale capability for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly readScale?: ReadScaleCapability; /** - * List of supported license types. + * The list of supported storage capabilities for this edition * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly supportedStorageCapabilities?: StorageCapability[]; /** - * List of supported virtual cores values. + * Whether or not zone pinning is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; + readonly zonePinning?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1504,849 +1767,733 @@ export interface InstancePoolFamilyCapability { reason?: string; } -/** The managed instance virtual cores capability. */ -export interface InstancePoolVcoresCapability { - /** - * The virtual cores identifier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The virtual cores value. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: number; +/** The service objectives capability. */ +export interface ServiceObjectiveCapability { /** - * Storage limit. + * The unique ID of the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageLimit?: MaxSizeCapability; + readonly id?: string; /** - * The status of the capability. + * The service objective name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; -} - -/** A list of long term retention policies. */ -export interface LongTermRetentionPolicyListResult { + readonly name?: string; /** - * Array of results. + * The list of supported maximum database sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LongTermRetentionPolicy[]; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * Link to retrieve next page of results. + * The performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Maintenance window time range. */ -export interface MaintenanceWindowTimeRange { - /** Day of maintenance window. */ - dayOfWeek?: DayOfWeek; - /** Start time minutes offset from 12am. */ - startTime?: string; - /** Duration of maintenance window in minutes. */ - duration?: string; -} - -/** A list of short term retention policies. */ -export interface ManagedBackupShortTermRetentionPolicyListResult { + readonly performanceLevel?: PerformanceLevelCapability; /** - * Array of results. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedBackupShortTermRetentionPolicy[]; + readonly sku?: Sku; /** - * Link to retrieve next page of results. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Execution statistics for one particular query */ -export interface ManagedInstanceQueryStatistics { + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Array of results. + * The included (free) max size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: QueryStatistics[]; + readonly includedMaxSize?: MaxSizeCapability; /** - * Link to retrieve next page of results. + * Whether or not zone redundancy is supported for the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a query execution statistics. */ -export interface QueryStatisticsProperties { + readonly zoneRedundant?: boolean; /** - * Database name of the database in which this query was executed. + * Supported time range for auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** - * Unique query id (unique within one database). + * List of supported min capacities * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly supportedMinCapacities?: MinCapacityCapability[]; /** - * The start time for the metric (ISO-8601 format). + * The compute model * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly computeModel?: string; /** - * The end time for the metric (ISO-8601 format). + * List of supported maintenance configurations * 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[]; -} - -/** Properties of a query metrics interval. */ -export interface QueryMetricInterval { + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * The start time for the metric interval (ISO-8601 format). + * Whether or not zone pinning is supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalStartTime?: string; + readonly zonePinning?: boolean; /** - * Interval type (length). + * List of supported free limit exhaustion behaviors * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly supportedFreeLimitExhaustionBehaviors?: FreeLimitExhaustionBehaviorCapability[]; /** - * Execution count of a query in this interval. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executionCount?: number; - /** List of metric objects for this interval */ - metrics?: QueryMetricProperties[]; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Properties of a topquery metric in one interval. */ -export interface QueryMetricProperties { +/** The maximum size range capability. */ +export interface MaxSizeRangeCapability { /** - * The name information for the metric. + * Minimum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly minValue?: MaxSizeCapability; /** - * The UI appropriate name for the metric. + * Maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly maxValue?: MaxSizeCapability; /** - * The unit of the metric. + * Scale/step size for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QueryMetricUnitType; + readonly scaleSize?: MaxSizeCapability; /** - * The value of the metric. + * Size of transaction log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly logSize?: LogSizeCapability; /** - * Metric value when min() aggregate function is used over the interval. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly min?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The maximum size capability. */ +export interface MaxSizeCapability { /** - * Metric value when max() aggregate function is used over the interval. + * The maximum size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly limit?: number; /** - * Metric value when avg() aggregate function is used over the interval. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly avg?: number; + readonly unit?: MaxSizeUnit; +} + +/** The log size capability. */ +export interface LogSizeCapability { /** - * Metric value when sum() aggregate function is used over the interval. + * The log size limit (see 'unit' for the units). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sum?: number; + readonly limit?: number; /** - * Metric value when stdev aggregate function is used over the interval. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stdev?: number; + readonly unit?: LogSizeUnit; } -/** A list of the managed database's security alert policies. */ -export interface ManagedDatabaseSecurityAlertPolicyListResult { +/** The performance level capability. */ +export interface PerformanceLevelCapability { /** - * Array of results. + * Performance level value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabaseSecurityAlertPolicy[]; + readonly value?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly unit?: PerformanceLevelUnit; } -/** A list of security events. */ -export interface SecurityEventCollection { +/** The license type capability */ +export interface LicenseTypeCapability { /** - * Array of results. + * License type identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecurityEvent[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** The properties of a security event sql injection additional properties. */ -export interface SecurityEventSqlInjectionAdditionalProperties { - /** - * The threat ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly threatId?: string; +/** Supported auto pause delay time range */ +export interface AutoPauseDelayTimeRange { /** - * The statement + * Minimum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statement?: string; + readonly minValue?: number; /** - * The statement highlight offset + * Maximum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightOffset?: number; + readonly maxValue?: number; /** - * The statement highlight length + * Step value for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightLength?: number; + readonly stepSize?: number; /** - * The sql error code + * Default value is no value is provided * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly default?: number; /** - * The sql error severity + * Unit of time that delay is expressed in * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly unit?: PauseDelayTimeUnit; /** - * The sql error message + * Value that is used to not pause (infinite delay before pause) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly doNotPauseValue?: number; } -/** A list of managed transparent data encryptions */ -export interface ManagedTransparentDataEncryptionListResult { +/** The min capacity capability */ +export interface MinCapacityCapability { /** - * Array of results. + * Min capacity value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedTransparentDataEncryption[]; + readonly value?: number; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed instance administrators. */ -export interface ManagedInstanceAdministratorListResult { +/** The maintenance configuration capability */ +export interface MaintenanceConfigurationCapability { /** - * Array of results. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAdministrator[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * Whether or not zone redundancy is supported for the maintenance configuration. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly zoneRedundant?: boolean; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of active directory only authentications. */ -export interface ManagedInstanceAzureADOnlyAuthListResult { +/** Supported free limit exhaustion behavior options */ +export interface FreeLimitExhaustionBehaviorCapability { /** - * Array of results. + * Free limit exhaustion behavior type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; + readonly exhaustionBehaviorType?: FreeLimitExhaustionBehavior; /** - * Link to retrieve next page of results. + * Free limit exhaustion behavior status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; } -/** A list of managed instance encryption protectors. */ -export interface ManagedInstanceEncryptionProtectorListResult { +/** The read scale capability. */ +export interface ReadScaleCapability { /** - * Array of results. + * The maximum number of read scale replicas. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceEncryptionProtector[]; + readonly maxNumberOfReplicas?: number; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of managed instance keys. */ -export interface ManagedInstanceKeyListResult { +/** The storage account type capability. */ +export interface StorageCapability { /** - * Array of results. + * The storage account type for the database's backups. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceKey[]; + readonly storageAccountType?: StorageCapabilityStorageAccountType; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of long term retention policies. */ -export interface ManagedInstanceLongTermRetentionPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ManagedInstanceLongTermRetentionPolicy[]; +/** The elastic pool edition capability. */ +export interface ElasticPoolEditionCapability { /** - * Link to retrieve next page of results. + * The elastic pool edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The response to a list managed instance operations request */ -export interface ManagedInstanceOperationListResult { + readonly name?: string; /** - * Array of results. + * The list of supported elastic pool DTU levels for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceOperation[]; + readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; /** - * Link to retrieve next page of results. + * Whether or not zone redundancy is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The parameters of a managed instance operation. */ -export interface ManagedInstanceOperationParametersPair { + readonly zoneRedundant?: boolean; /** - * The current parameters. + * Whether or not zone pinning is supported for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentParameters?: UpsertManagedServerOperationParameters; + readonly zonePinning?: boolean; /** - * The requested parameters. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedParameters?: UpsertManagedServerOperationParameters; -} - -export interface UpsertManagedServerOperationParameters { - family?: string; - tier?: string; - vCores?: number; - storageSizeInGB?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** The steps of a managed instance operation. */ -export interface ManagedInstanceOperationSteps { +/** The Elastic Pool performance level capability. */ +export interface ElasticPoolPerformanceLevelCapability { /** - * The total number of operation steps. + * The performance level for the pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalSteps?: string; + readonly performanceLevel?: PerformanceLevelCapability; /** - * The number of current operation steps. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentStep?: number; + readonly sku?: Sku; /** - * The operation steps list. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepsList?: UpsertManagedServerOperationStep[]; -} - -export interface UpsertManagedServerOperationStep { - order?: number; - name?: string; - status?: UpsertManagedServerOperationStepStatus; -} - -/** Properties of a private endpoint connection. */ -export interface ManagedInstancePrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: ManagedInstancePrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * State of the Private Endpoint Connection. + * The maximum number of databases supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -export interface ManagedInstancePrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: string; - /** The private link service connection description. */ - description: string; + readonly maxDatabaseCount?: number; /** - * The private link service connection description. + * The included (free) max size for this performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: string; -} - -/** A list of private endpoint connections. */ -export interface ManagedInstancePrivateEndpointConnectionListResult { + readonly includedMaxSize?: MaxSizeCapability; /** - * Array of results. + * The list of supported max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateEndpointConnection[]; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * Link to retrieve next page of results. + * The list of supported per database max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of private link resources */ -export interface ManagedInstancePrivateLinkListResult { + readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; /** - * Array of results. + * The list of supported per database max performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateLink[]; + readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; /** - * Link to retrieve next page of results. + * Whether or not zone redundancy is supported for the performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a private link resource. */ -export interface ManagedInstancePrivateLinkProperties { + readonly zoneRedundant?: boolean; /** - * The private link resource group id. + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * The private link resource required member names. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the ManagedInstance's vulnerability assessments. */ -export interface ManagedInstanceVulnerabilityAssessmentListResult { +/** The max per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** - * Array of results. + * The maximum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceVulnerabilityAssessment[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of the managed Server's security alert policies. */ -export interface ManagedServerSecurityAlertPolicyListResult { + readonly unit?: PerformanceLevelUnit; /** - * Array of results. + * The list of supported min database performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerSecurityAlertPolicy[]; + readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Result of the request to list SQL operations. */ -export interface OperationListResult { +/** The minimum per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** - * Array of results. + * The minimum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly unit?: PerformanceLevelUnit; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** SQL REST API operation definition. */ -export interface Operation { +/** The managed instance capability */ +export interface ManagedInstanceVersionCapability { /** - * The name of the operation being performed on this particular object. + * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The localized display information for this particular operation / action. + * The list of supported managed instance editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly display?: OperationDisplay; + readonly supportedEditions?: ManagedInstanceEditionCapability[]; /** - * The intended executor of the operation. + * The list of supported instance pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly origin?: OperationOrigin; + readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; /** - * Additional descriptions for the operation. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: { [propertyName: string]: Record }; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Display metadata associated with the operation. */ -export interface OperationDisplay { +/** The managed server capability */ +export interface ManagedInstanceEditionCapability { /** - * The localized friendly form of the resource provider name. + * The managed server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly name?: string; /** - * The localized friendly form of the resource type related to this action/operation. + * Whether or not this is a GPv2 variant of General Purpose edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly isGeneralPurposeV2?: boolean; /** - * The localized friendly name for the operation. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; /** - * The localized friendly description for the operation. + * The list of supported storage capabilities for this edition * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly supportedStorageCapabilities?: StorageCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of private endpoint connections. */ -export interface PrivateEndpointConnectionListResult { +/** The managed server family capability. */ +export interface ManagedInstanceFamilyCapability { /** - * Array of results. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: PrivateEndpointConnection[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * SKU name. * 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. */ - privateEndpoint?: PrivateEndpointProperty; + readonly sku?: string; /** - * Group IDs. + * Whether or not zone redundancy is supported for the family. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupIds?: string[]; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly zoneRedundant?: boolean; /** - * State of the private endpoint connection. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; -} - -export interface PrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -export interface PrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: PrivateLinkServiceConnectionStateStatus; - /** The private link service connection description. */ - description: string; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The actions required for private link service connection. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; + readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { +/** The managed instance virtual cores capability. */ +export interface ManagedInstanceVcoresCapability { /** - * Array of results. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: PrivateLinkResource[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { + readonly value?: number; /** - * The private link resource group id. + * Included size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly includedMaxSize?: MaxSizeCapability; /** - * The private link resource required member names. + * Storage size ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly supportedStorageSizes?: MaxSizeRangeCapability[]; /** - * The private link resource required zone names. + * Included storage IOps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredZoneNames?: string[]; -} - -/** A list of recoverable managed databases. */ -export interface RecoverableManagedDatabaseListResult { + readonly includedStorageIOps?: number; /** - * Array of results. + * Storage IOps ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableManagedDatabase[]; + readonly supportedStorageIOps?: MaxLimitRangeCapability; /** - * Link to retrieve next page of results. + * Min IOps override factor per selected storage GB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of long term retention backups. */ -export interface RestorePointListResult { + readonly iopsMinValueOverrideFactorPerSelectedStorageGB?: number; /** - * Array of results. + * Included IOps override factor per selected storage GB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorePoint[]; + readonly iopsIncludedValueOverrideFactorPerSelectedStorageGB?: number; /** - * Link to retrieve next page of results. + * Included storage throughput MBps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Contains the information necessary to perform a create database restore point operation. */ -export interface CreateDatabaseRestorePointDefinition { - /** The restore point label to apply */ - restorePointLabel: string; -} - -/** Automatic tuning properties for individual advisors. */ -export interface AutomaticTuningServerOptions { - /** Automatic tuning option desired state. */ - desiredState?: AutomaticTuningOptionModeDesired; + readonly includedStorageThroughputMBps?: number; /** - * Automatic tuning option actual state. + * Storage throughput MBps ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningOptionModeActual; + readonly supportedStorageThroughputMBps?: MaxLimitRangeCapability; /** - * Reason code if desired and actual state are different. + * Min throughput MBps override factor per selected storage GB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonCode?: number; + readonly throughputMBpsMinValueOverrideFactorPerSelectedStorageGB?: number; /** - * Reason description if desired and actual state are different. + * Included throughput MBps override factor per selected storage GB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonDesc?: AutomaticTuningServerReason; -} - -/** A list of active directory administrators. */ -export interface AdministratorListResult { + readonly throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB?: number; /** - * Array of results. + * True if this service objective is supported for managed instances in an instance pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAzureADAdministrator[]; + readonly instancePoolSupported?: boolean; /** - * Link to retrieve next page of results. + * True if this service objective is supported for standalone managed instances. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of active directory only authentications. */ -export interface AzureADOnlyAuthListResult { + readonly standaloneSupported?: boolean; /** - * Array of results. + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAzureADOnlyAuthentication[]; + readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of server DevOps audit settings. */ -export interface ServerDevOpsAuditSettingsListResult { +/** The maximum limit range capability. */ +export interface MaxLimitRangeCapability { /** - * Array of results. + * Minimum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDevOpsAuditingSettings[]; + readonly minValue?: number; /** - * Link to retrieve next page of results. + * Maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server DNS aliases. */ -export interface ServerDnsAliasListResult { + readonly maxValue?: number; /** - * Array of results. + * Scale/step size for discrete values between the minimum value and the maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDnsAlias[]; + readonly scaleSize?: number; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A server dns alias acquisition request. */ -export interface ServerDnsAliasAcquisition { - /** The id of the server alias that will be acquired to point to this server instead. */ - oldServerDnsAliasId: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of server keys. */ -export interface ServerKeyListResult { +/** The maintenance configuration capability */ +export interface ManagedInstanceMaintenanceConfigurationCapability { /** - * Array of results. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerKey[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** The response to a list server operations request */ -export interface ServerOperationListResult { +/** The instance pool capability */ +export interface InstancePoolEditionCapability { /** - * Array of results. + * The instance pool version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerOperation[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly supportedFamilies?: InstancePoolFamilyCapability[]; + /** + * The status of the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the server's security alert policies. */ -export interface LogicalServerSecurityAlertPolicyListResult { +/** The instance pool family capability. */ +export interface InstancePoolFamilyCapability { /** - * Array of results. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerSecurityAlertPolicy[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Server info for the server trust group. */ -export interface ServerInfo { - /** Server Id. */ - serverId: string; -} - -/** A list of server trust groups. */ -export interface ServerTrustGroupListResult { + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Array of results. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustGroup[]; + readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of the server's vulnerability assessments. */ -export interface ServerVulnerabilityAssessmentListResult { +/** The managed instance virtual cores capability. */ +export interface InstancePoolVcoresCapability { /** - * Array of results. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerVulnerabilityAssessment[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of subscription usage metrics in a location. */ -export interface SubscriptionUsageListResult { + readonly value?: number; /** - * Array of results. + * Storage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SubscriptionUsage[]; + readonly storageLimit?: MaxSizeCapability; /** - * Link to retrieve next page of results. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of sync agents. */ -export interface SyncAgentListResult { +/** 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?: SyncAgent[]; + 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. @@ -2354,22 +2501,49 @@ export interface SyncAgentListResult { readonly nextLink?: string; } -/** Properties of an Azure SQL Database sync agent key. */ -export interface SyncAgentKeyProperties { - /** - * Key of sync agent. - * NOTE: This property will not be serialized. It can only be populated by the server. +/** 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 for managed database(s). */ +export interface ManagedInstanceLongTermRetentionBackupListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly syncAgentKey?: string; + readonly value?: ManagedInstanceLongTermRetentionBackup[]; + /** + * 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 sync agent linked databases. */ -export interface SyncAgentLinkedDatabaseListResult { +/** A list of long term retention policies. */ +export interface LongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncAgentLinkedDatabase[]; + readonly value?: LongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2377,13 +2551,23 @@ export interface SyncAgentLinkedDatabaseListResult { readonly nextLink?: string; } -/** A list of sync database ID properties. */ -export interface SyncDatabaseIdListResult { +/** Maintenance window time range. */ +export interface MaintenanceWindowTimeRange { + /** Day of maintenance window. */ + dayOfWeek?: DayOfWeek; + /** Start time minutes offset from 12am. */ + startTime?: string; + /** Duration of maintenance window in minutes. */ + duration?: string; +} + +/** A list of short term retention policies. */ +export interface ManagedBackupShortTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncDatabaseIdProperties[]; + readonly value?: ManagedBackupShortTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2391,22 +2575,27 @@ export interface SyncDatabaseIdListResult { readonly nextLink?: string; } -/** Properties of the sync database id. */ -export interface SyncDatabaseIdProperties { +/** A list of the managed database's Advanced Threat Protection settings. */ +export interface ManagedDatabaseAdvancedThreatProtectionListResult { /** - * ARM resource id of sync database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly value?: ManagedDatabaseAdvancedThreatProtection[]; + /** + * 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 sync schema properties. */ -export interface SyncFullSchemaPropertiesListResult { +/** List of managed database move operations. */ +export interface ManagedDatabaseMoveOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncFullSchemaProperties[]; + readonly value?: ManagedDatabaseMoveOperationResult[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2414,169 +2603,166 @@ export interface SyncFullSchemaPropertiesListResult { readonly nextLink?: string; } -/** Properties of the database full schema. */ -export interface SyncFullSchemaProperties { +/** Execution statistics for one particular query */ +export interface ManagedInstanceQueryStatistics { /** - * List of tables in the database full schema. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tables?: SyncFullSchemaTable[]; + readonly value?: QueryStatistics[]; /** - * Last update time of the database schema. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUpdateTime?: Date; + readonly nextLink?: string; } -/** Properties of the table in the database full schema. */ -export interface SyncFullSchemaTable { +/** Properties of a query execution statistics. */ +export interface QueryStatisticsProperties { /** - * List of columns in the table of database full schema. + * 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 columns?: SyncFullSchemaTableColumn[]; + readonly databaseName?: string; /** - * Error id of the table. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorId?: string; + readonly queryId?: string; /** - * If there is error in the table. + * 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 hasError?: boolean; + readonly startTime?: string; /** - * Name of the table. + * 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 name?: string; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; +} + +/** Properties of a query metrics interval. */ +export interface QueryMetricInterval { /** - * Quoted name of the table. + * The start time for the metric interval (ISO-8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; + readonly intervalStartTime?: string; + /** + * Interval type (length). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly intervalType?: QueryTimeGrainType; + /** + * Execution count of a query in this interval. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly executionCount?: number; + /** List of metric objects for this interval */ + metrics?: QueryMetricProperties[]; } -/** Properties of the column in the table of database full schema. */ -export interface SyncFullSchemaTableColumn { +/** Properties of a topquery metric in one interval. */ +export interface QueryMetricProperties { /** - * Data size of the column. + * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataSize?: string; + readonly name?: string; /** - * Data type of the column. + * The UI appropriate name for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataType?: string; + readonly displayName?: string; /** - * Error id of the column. + * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorId?: string; + readonly unit?: QueryMetricUnitType; /** - * If there is error in the table. + * The value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hasError?: boolean; + readonly value?: number; /** - * If it is the primary key of the table. + * Metric value when min() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isPrimaryKey?: boolean; + readonly min?: number; /** - * Name of the column. + * Metric value when max() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly max?: number; /** - * Quoted name of the column. + * Metric value when avg() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; -} - -/** A list of sync group log properties. */ -export interface SyncGroupLogListResult { + readonly avg?: number; /** - * Array of results. + * Metric value when sum() aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncGroupLogProperties[]; + readonly sum?: number; /** - * Link to retrieve next page of results. + * Metric value when stdev aggregate function is used over the interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly stdev?: number; } -/** Properties of an Azure SQL Database sync group log. */ -export interface SyncGroupLogProperties { +/** The managed database's restore details backup set properties. */ +export interface ManagedDatabaseRestoreDetailsBackupSetProperties { /** - * Timestamp of the sync group log. + * Backup set status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timestamp?: Date; + readonly status?: string; /** - * Type of the sync group log. + * First stripe name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: SyncGroupLogType; + readonly firstStripeName?: string; /** - * Source of the sync group log. + * Number of stripes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly source?: string; + readonly numberOfStripes?: number; /** - * Details of the sync group log. + * Backup size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: string; + readonly backupSizeMB?: number; /** - * TracingId of the sync group log. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tracingId?: string; + readonly restoreStartedTimestampUtc?: Date; /** - * OperationStatus of the sync group log. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationStatus?: string; -} - -/** Properties of sync group schema. */ -export interface SyncGroupSchema { - /** List of tables in sync group schema. */ - tables?: SyncGroupSchemaTable[]; - /** Name of master sync member where the schema is from. */ - masterSyncMemberName?: string; -} - -/** Properties of table in sync group schema. */ -export interface SyncGroupSchemaTable { - /** List of columns in sync group schema. */ - columns?: SyncGroupSchemaTableColumn[]; - /** Quoted name of sync group schema table. */ - quotedName?: string; + readonly restoreFinishedTimestampUtc?: Date; } -/** Properties of column in sync group table. */ -export interface SyncGroupSchemaTableColumn { - /** Quoted name of sync group table column. */ - quotedName?: string; - /** Data size of the column. */ - dataSize?: string; - /** Data type of the column. */ - dataType?: string; +/** The managed database's restore details unrestorable file properties. */ +export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { + /** + * File name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; } -/** A list of sync groups. */ -export interface SyncGroupListResult { +/** A list of the managed database's security alert policies. */ +export interface ManagedDatabaseSecurityAlertPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncGroup[]; + readonly value?: ManagedDatabaseSecurityAlertPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2584,13 +2770,13 @@ export interface SyncGroupListResult { readonly nextLink?: string; } -/** A list of Azure SQL Database sync members. */ -export interface SyncMemberListResult { +/** A list of security events. */ +export interface SecurityEventCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SyncMember[]; + readonly value?: SecurityEvent[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2598,27 +2784,52 @@ export interface SyncMemberListResult { readonly nextLink?: string; } -/** A list of time zones. */ -export interface TimeZoneListResult { +/** The properties of a security event sql injection additional properties. */ +export interface SecurityEventSqlInjectionAdditionalProperties { /** - * Array of results. + * The threat ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TimeZone[]; + readonly threatId?: string; /** - * Link to retrieve next page of results. + * The statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly statement?: string; + /** + * The statement highlight offset + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statementHighlightOffset?: number; + /** + * The statement highlight length + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statementHighlightLength?: number; + /** + * The sql error code + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorCode?: number; + /** + * The sql error severity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorSeverity?: number; + /** + * The sql error message + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; +} -/** A list of virtual network rules. */ -export interface VirtualNetworkRuleListResult { +/** 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?: VirtualNetworkRule[]; + 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. @@ -2626,13 +2837,23 @@ export interface VirtualNetworkRuleListResult { readonly nextLink?: string; } -/** A list of workload classifiers for a workload group. */ -export interface WorkloadClassifierListResult { +/** 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 { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: WorkloadClassifier[]; + readonly value?: ManagedTransparentDataEncryption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2640,13 +2861,13 @@ export interface WorkloadClassifierListResult { readonly nextLink?: string; } -/** A list of workload groups. */ -export interface WorkloadGroupListResult { +/** 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?: WorkloadGroup[]; + 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. @@ -2654,13 +2875,98 @@ export interface WorkloadGroupListResult { readonly nextLink?: string; } -/** A list of short term retention policies. */ -export interface BackupShortTermRetentionPolicyListResult { +/** 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 resource identifier of the cross-subscription source database associated with create operation of this database. */ + crossSubscriptionSourceDatabaseId?: string; + /** The restorable dropped database resource id to restore when creating this database. */ + restorableDroppedDatabaseId?: string; + /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ + crossSubscriptionRestorableDroppedDatabaseId?: 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; + /** Target managed instance id used in cross-subscription restore. */ + crossSubscriptionTargetManagedInstanceId?: 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; +} + +/** 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 managed instance administrators. */ +export interface ManagedInstanceAdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: BackupShortTermRetentionPolicy[]; + readonly value?: ManagedInstanceAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2668,13 +2974,13 @@ export interface BackupShortTermRetentionPolicyListResult { readonly nextLink?: string; } -/** Import export operation extensions list. */ -export interface ImportExportExtensionsOperationListResult { +/** A list of the managed instance's Advanced Threat Protection settings. */ +export interface ManagedInstanceAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ImportExportExtensionsOperationResult[]; + readonly value?: ManagedInstanceAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2682,13 +2988,13 @@ export interface ImportExportExtensionsOperationListResult { readonly nextLink?: string; } -/** The response to a list database operations request */ -export interface DatabaseOperationListResult { +/** A list of active directory only authentications. */ +export interface ManagedInstanceAzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseOperation[]; + readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2696,13 +3002,13 @@ export interface DatabaseOperationListResult { readonly nextLink?: string; } -/** A list of database usage metrics. */ -export interface DatabaseUsageListResult { +/** A list of managed instance's DTCs. */ +export interface ManagedInstanceDtcListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseUsage[]; + readonly value?: ManagedInstanceDtc[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2710,13 +3016,37 @@ export interface DatabaseUsageListResult { readonly nextLink?: string; } -/** A list of ledger digest upload settings. */ -export interface LedgerDigestUploadsListResult { +/** 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 managed instance encryption protectors. */ +export interface ManagedInstanceEncryptionProtectorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LedgerDigestUploads[]; + readonly value?: ManagedInstanceEncryptionProtector[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2724,13 +3054,13 @@ export interface LedgerDigestUploadsListResult { readonly nextLink?: string; } -/** A list of outbound rules. */ -export interface OutboundFirewallRuleListResult { +/** A list of managed instance keys. */ +export interface ManagedInstanceKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundFirewallRule[]; + readonly value?: ManagedInstanceKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2738,13 +3068,13 @@ export interface OutboundFirewallRuleListResult { readonly nextLink?: string; } -/** A list of usages. */ -export interface UsageListResult { +/** A list of long term retention policies. */ +export interface ManagedInstanceLongTermRetentionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Usage[]; + readonly value?: ManagedInstanceLongTermRetentionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2752,82 +3082,76 @@ export interface UsageListResult { readonly nextLink?: string; } -/** ARM usage. */ -export interface Usage { +/** The response to a list managed instance operations request */ +export interface ManagedInstanceOperationListResult { /** - * 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?: ManagedInstanceOperation[]; /** - * Resource name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: Name; + readonly nextLink?: string; +} + +/** The parameters of a managed instance operation. */ +export interface ManagedInstanceOperationParametersPair { /** - * Resource type. + * The current parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly currentParameters?: UpsertManagedServerOperationParameters; /** - * Usage unit. + * The requested parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly requestedParameters?: UpsertManagedServerOperationParameters; +} + +export interface UpsertManagedServerOperationParameters { + family?: string; + tier?: string; + vCores?: number; + storageSizeInGB?: number; +} + +/** The steps of a managed instance operation. */ +export interface ManagedInstanceOperationSteps { /** - * Usage current value. + * The total number of operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly totalSteps?: string; /** - * Usage limit. + * The number of current operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly currentStep?: number; /** - * Usage requested limit. + * The operation steps list. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedLimit?: number; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; } -/** ARM Usage Name */ -export interface Name { - /** Usage name value */ - value?: string; - /** Usage name localized value. */ - localizedValue?: 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; -} - -/** 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; +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { + stepStartTime?: Date; + stepEndTime?: Date; + timeElapsed?: string; + order?: number; + name?: string; + status?: Status; } -/** A list of long term retention backups. */ -export interface LongTermRetentionBackupListResult { +/** A list of private endpoint connections. */ +export interface ManagedInstancePrivateEndpointConnectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LongTermRetentionBackup[]; + readonly value?: ManagedInstancePrivateEndpointConnection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2835,27 +3159,43 @@ export interface LongTermRetentionBackupListResult { readonly nextLink?: string; } -/** A list of long term retention backups for managed database(s). */ -export interface ManagedInstanceLongTermRetentionBackupListResult { +/** Properties of a private endpoint connection. */ +export interface ManagedInstancePrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: ManagedInstancePrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** - * Array of results. + * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceLongTermRetentionBackup[]; + readonly provisioningState?: string; +} + +export interface ManagedInstancePrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; +} + +export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: string; + /** The private link service connection description. */ + description: string; /** - * Link to retrieve next page of results. + * The private link service connection description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly actionsRequired?: string; } -/** A list of restorable dropped managed databases. */ -export interface RestorableDroppedManagedDatabaseListResult { +/** A list of private link resources */ +export interface ManagedInstancePrivateLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedManagedDatabase[]; + readonly value?: ManagedInstancePrivateLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2863,41 +3203,32 @@ export interface RestorableDroppedManagedDatabaseListResult { readonly nextLink?: string; } -/** A list of server connection policy objects. */ -export interface ServerConnectionPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ServerConnectionPolicy[]; +/** Properties of a private link resource. */ +export interface ManagedInstancePrivateLinkProperties { /** - * Link to retrieve next page of results. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of distributed availability groups in instance. */ -export interface DistributedAvailabilityGroupsListResult { + readonly groupId?: string; /** - * Array of results. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DistributedAvailabilityGroup[]; + readonly requiredMembers?: string[]; /** - * Link to retrieve next page of results. + * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly requiredZoneNames?: string[]; } -/** A list of server trust certificates in instance. */ -export interface ServerTrustCertificatesListResult { +/** A list of the ManagedInstance's vulnerability assessments. */ +export interface ManagedInstanceVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustCertificate[]; + readonly value?: ManagedInstanceVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2905,13 +3236,13 @@ export interface ServerTrustCertificatesListResult { readonly nextLink?: string; } -/** A list of endpoint certificates on the target instance. */ -export interface EndpointCertificateListResult { +/** A list of managed instances. */ +export interface ManagedInstanceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EndpointCertificate[]; + readonly value?: ManagedInstance[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2919,175 +3250,225 @@ export interface EndpointCertificateListResult { readonly nextLink?: string; } -/** A list of sensitivity labels. */ -export interface SensitivityLabelListResult { +/** Azure Active Directory identity configuration for a resource. */ +export interface ResourceIdentity { + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { [propertyName: string]: UserIdentity }; /** - * Array of results. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SensitivityLabel[]; + readonly principalId?: string; + /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ + type?: IdentityType; /** - * Link to retrieve next page of results. + * The Azure Active Directory tenant id. * 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[]; + readonly tenantId?: string; } -/** A list of server auditing settings. */ -export interface ServerBlobAuditingPolicyListResult { +/** Azure Active Directory identity configuration for a resource. */ +export interface UserIdentity { /** - * Array of results. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerBlobAuditingPolicy[]; + readonly principalId?: string; /** - * Link to retrieve next page of results. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly clientId?: string; } -/** A list of database auditing settings. */ -export interface DatabaseBlobAuditingPolicyListResult { +/** A private endpoint connection under a managed instance */ +export interface ManagedInstancePecProperty { /** - * Array of results. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseBlobAuditingPolicy[]; + readonly id?: string; /** - * Link to retrieve next page of results. + * Private endpoint connection properties * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; } -/** 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[]; +/** 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 { /** - * Link to retrieve next page of results. + * The Azure Active Directory application object id. * 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 { + readonly principalId?: string; /** - * Array of results. + * The Azure Active Directory application client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ExtendedServerBlobAuditingPolicy[]; + readonly clientId?: string; /** - * Link to retrieve next page of results. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly tenantId?: string; + /** Service principal type. */ + type?: ServicePrincipalType; } -/** A list of the database's Advanced Threat Protection configurations. */ -export interface DatabaseAdvancedThreatProtectionListResult { +/** 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 }; /** - * Array of results. + * Provisioning state of managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseAdvancedThreatProtection[]; + readonly provisioningState?: ProvisioningState; /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the mode of 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. */ - readonly nextLink?: string; -} - -/** A list of the server's Advanced Threat Protection configurations. */ -export interface LogicalServerAdvancedThreatProtectionListResult { + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * Array of results. + * 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 value?: ServerAdvancedThreatProtection[]; + readonly fullyQualifiedDomainName?: string; + /** Whether or not this is a GPv2 variant of General Purpose edition. */ + isGeneralPurposeV2?: boolean; + /** 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; /** - * Link to retrieve next page of results. + * The state of the managed instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of managed server DNS aliases. */ -export interface ManagedServerDnsAliasListResult { + 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; + /** Hybrid secondary usage. Possible values are 'Active' (default value) and 'Passive' (customer uses the secondary as Passive DR). */ + hybridSecondaryUsage?: HybridSecondaryUsage; /** - * Array of results. + * Hybrid secondary usage detected. Possible values are 'Active' (customer does not meet the requirements to use the secondary as Passive DR) and 'Passive' (customer meets the requirements to use the secondary as Passive DR). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerDnsAlias[]; + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; + /** 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; + /** Storage IOps. Minimum value: 120. Maximum value: 120000. Increments of 1 IOps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageIOps?: number; + /** Storage throughput in MBps. Minimum value: 25. Maximum value: 4000. Increments of 1 MBps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageThroughputMBps?: number; + /** Collation of the managed instance. */ + collation?: string; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A managed server dns alias creation request. */ -export interface ManagedServerDnsAliasCreation { - /** Whether or not DNS record should be created for this alias. */ - createDnsRecord?: boolean; -} - -/** A managed server DNS alias acquisition request. */ -export interface ManagedServerDnsAliasAcquisition { - /** The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. */ - oldManagedServerDnsAliasResourceId: string; -} - -/** A list of the managed database's Advanced Threat Protection settings. */ -export interface ManagedDatabaseAdvancedThreatProtectionListResult { + 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; /** - * Array of results. + * 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 value?: ManagedDatabaseAdvancedThreatProtection[]; + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A list of the managed instance's Advanced Threat Protection settings. */ -export interface ManagedInstanceAdvancedThreatProtectionListResult { + 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; /** - * Array of results. + * Virtual cluster resource id for the Managed Instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceAdvancedThreatProtection[]; + readonly virtualClusterId?: string; /** - * Link to retrieve next page of results. + * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly externalGovernanceStatus?: ExternalGovernanceStatus; + /** Weather or not Managed Instance is freemium. */ + pricingModel?: FreemiumType; + /** + * Specifies the point in time (ISO8601 format) of the Managed Instance creation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createTime?: Date; } -/** A list of replication links. */ -export interface ReplicationLinkListResult { +/** A collection of endpoints that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpointCollection { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ReplicationLink[]; + readonly value?: OutboundEnvironmentEndpoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3095,119 +3476,99 @@ export interface ReplicationLinkListResult { readonly nextLink?: string; } -/** List of managed database move operations. */ -export interface ManagedDatabaseMoveOperationListResult { +/** An endpoint that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpoint { /** - * Array of results. + * 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. */ - readonly value?: ManagedDatabaseMoveOperationResult[]; + readonly category?: string; /** - * Link to retrieve next page of results. + * 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. */ - readonly nextLink?: string; + readonly endpoints?: EndpointDependency[]; } -/** A list of managed instance's DTCs. */ -export interface ManagedInstanceDtcListResult { +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDependency { /** - * Array of results. + * The domain name of the dependency. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstanceDtc[]; + readonly domainName?: string; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; + readonly endpointDetails?: EndpointDetail[]; } -/** 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; +/** A domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDetail { + /** + * The port an endpoint is connected to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly port?: 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; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; } -/** A list of synapselink workspaces */ -export interface SynapseLinkWorkspaceListResult { +/** The error detail. */ +export interface ErrorDetail { /** - * Array of results. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SynapseLinkWorkspace[]; + readonly code?: string; /** - * Link to retrieve next page of results. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** 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 { + readonly message?: string; /** - * Array of results. + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VirtualCluster[]; + readonly target?: string; /** - * Link to retrieve next page of results. + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** An update request for virtual cluster. */ -export interface VirtualClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * Subnet resource ID for the virtual cluster. + * The additional info type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly type?: string; /** - * List of resources in this virtual cluster. + * The additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; + readonly info?: Record; } -/** A list of instance failover groups. */ -export interface InstanceFailoverGroupListResult { +/** A list of top resource consuming queries on managed instance */ +export interface TopQueriesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstanceFailoverGroup[]; + readonly value?: TopQueries[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3215,89 +3576,62 @@ export interface InstanceFailoverGroupListResult { readonly nextLink?: string; } -/** Read-write endpoint of the failover group instance. */ -export interface InstanceFailoverGroupReadWriteEndpoint { - /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; - /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** Read-only endpoint of the failover group instance. */ -export interface InstanceFailoverGroupReadOnlyEndpoint { - /** Failover policy of the read-only endpoint for the failover group. */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** Partner region information for the failover group. */ -export interface PartnerRegionInfo { - /** Geo location of the partner managed instances. */ - location?: string; +export interface TopQueries { /** - * Replication role of the partner managed instances. + * Requested number of top queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; -} - -/** Pairs of Managed Instances in the failover group. */ -export interface ManagedInstancePairInfo { - /** Id of Primary Managed Instance in pair. */ - primaryManagedInstanceId?: string; - /** Id of Partner Managed Instance in pair. */ - partnerManagedInstanceId?: string; -} - -/** The managed database's restore details backup set properties. */ -export interface ManagedDatabaseRestoreDetailsBackupSetProperties { + readonly numberOfQueries?: number; /** - * Backup set status. + * Aggregation function used to calculate query metrics. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly aggregationFunction?: string; /** - * First stripe name. + * Metric used to rank queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly firstStripeName?: string; + readonly observationMetric?: string; /** - * Number of stripes. + * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfStripes?: number; + readonly intervalType?: QueryTimeGrainType; /** - * Backup size. + * 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 backupSizeMB?: number; + readonly startTime?: string; /** - * Last restored file time. + * 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 restoreStartedTimestampUtc?: Date; + readonly endTime?: string; + /** List of top resource consuming queries with appropriate metric data */ + queries?: QueryStatisticsProperties[]; +} + +/** A list of ledger digest upload settings. */ +export interface ManagedLedgerDigestUploadsListResult { /** - * Last restored file time. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreFinishedTimestampUtc?: Date; -} - -/** The managed database's restore details unrestorable file properties. */ -export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { + readonly value?: ManagedLedgerDigestUploads[]; /** - * File name. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly nextLink?: string; } -/** A list of databases. */ -export interface DatabaseListResult { +/** A list of managed server DNS aliases. */ +export interface ManagedServerDnsAliasListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Database[]; + readonly value?: ManagedServerDnsAlias[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3305,305 +3639,260 @@ export interface DatabaseListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseIdentity { - /** The identity type */ - type?: DatabaseIdentityType; - /** - * The Azure Active Directory tenant id. - * 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 }; +/** A managed server dns alias creation request. */ +export interface ManagedServerDnsAliasCreation { + /** Whether or not DNS record should be created for this alias. */ + createDnsRecord?: boolean; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseUserIdentity { +/** A managed server DNS alias acquisition request. */ +export interface ManagedServerDnsAliasAcquisition { + /** The resource ID of the managed server DNS alias that will be acquired to point to this managed server instead. */ + oldManagedServerDnsAliasResourceId: string; +} + +/** A list of the managed Server's security alert policies. */ +export interface ManagedServerSecurityAlertPolicyListResult { /** - * The Azure Active Directory principal id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly value?: ManagedServerSecurityAlertPolicy[]; /** - * The Azure Active Directory 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; } -/** Database level key used for encryption at rest. */ -export interface DatabaseKey { +/** A list of NSP configurations for a server. */ +export interface NetworkSecurityPerimeterConfigurationListResult { /** - * The database key type. Only supported value is 'AzureKeyVault'. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: DatabaseKeyType; + readonly value?: NetworkSecurityPerimeterConfiguration[]; /** - * Thumbprint of the database key. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly nextLink?: string; +} + +export interface NSPConfigPerimeter { + id?: string; + perimeterGuid?: string; + location?: string; +} + +export interface NSPConfigAssociation { + name?: string; + accessMode?: string; +} + +export interface NSPConfigProfile { + name?: string; + accessRulesVersion?: string; + accessRules?: NSPConfigAccessRule[]; +} + +export interface NSPConfigAccessRule { + name?: string; + properties?: NSPConfigAccessRuleProperties; +} + +export interface NSPConfigAccessRuleProperties { + direction?: string; + addressPrefixes?: string[]; + fullyQualifiedDomainNames?: string[]; + subscriptions?: string[]; + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; +} + +export interface NSPConfigNetworkSecurityPerimeterRule { + id?: string; + perimeterGuid?: string; + location?: string; +} + +export interface NSPProvisioningIssue { + name?: string; + properties?: NSPProvisioningIssueProperties; +} + +export interface NSPProvisioningIssueProperties { + issueType?: string; + severity?: string; + description?: string; + suggestedResourceIds?: string[]; + suggestedAccessRules?: string[]; +} + +/** Result of the request to list SQL operations. */ +export interface OperationListResult { /** - * The database key creation date. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly value?: Operation[]; /** - * Subregion of the server key. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; + readonly nextLink?: string; } -/** 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 }; +/** SQL REST API operation definition. */ +export interface Operation { /** - * 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. + * The name of the operation being performed on this particular object. + * 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 name?: string; /** - * The status of the database. + * The localized display information for this particular operation / action. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DatabaseStatus; + readonly display?: OperationDisplay; /** - * The ID of the database. + * The intended executor of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly origin?: OperationOrigin; /** - * The creation date of the database (ISO8601 format). + * Additional descriptions for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly properties?: { [propertyName: string]: Record }; +} + +/** Display metadata associated with the operation. */ +export interface OperationDisplay { /** - * The current service level objective name of the database. + * The localized friendly form of the resource provider name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjectiveName?: string; + readonly provider?: string; /** - * The requested service level objective name of the database. + * The localized friendly form of the resource type related to this action/operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly resource?: string; /** - * The default secondary region for this database. + * The localized friendly name for the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; + readonly operation?: string; /** - * Failover Group resource identifier that this database belongs to. + * The localized friendly description for the operation. * 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 description?: string; +} + +/** A list of outbound rules. */ +export interface OutboundFirewallRuleListResult { /** - * 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?: OutboundFirewallRule[]; /** - * 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. 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; + readonly nextLink?: string; +} + +/** A list of private endpoint connections. */ +export interface PrivateEndpointConnectionListResult { /** - * 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?: PrivateEndpointConnection[]; /** - * 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; +} + +/** Properties of a private endpoint connection. */ +export interface PrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pausedDate?: Date; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * State of the private endpoint connection. * 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 provisioningState?: PrivateEndpointProvisioningState; +} + +export interface PrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; +} + +export interface PrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: PrivateLinkServiceConnectionStateStatus; + /** The private link service connection description. */ + description: string; /** - * Infra encryption is enabled for this database. + * The actions required for private link service connection. * 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 ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; - /** The azure key vault URI of the database if it's configured with per Database Customer Managed Keys. */ - encryptionProtector?: string; - /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ - preferredEnclaveType?: AlwaysEncryptedEnclaveType; + readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { /** - * Whether or not customer controlled manual cutover needs to be done during Update Database operation to Hyperscale tier. - * - * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier. - * - * When manualCutover is specified, the scaling operation will wait for user input to trigger cutover to Hyperscale database. - * - * To trigger cutover, please provide 'performCutover' parameter when the Scaling operation is in Waiting state. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - manualCutover?: boolean; + readonly value?: PrivateLinkResource[]; /** - * To trigger customer controlled manual cutover during the wait state while Scaling operation is in progress. - * - * This property parameter is only applicable for scaling operations that are initiated along with 'manualCutover' parameter. - * - * This property is only applicable when scaling database from Business Critical/General Purpose/Premium/Standard tier to Hyperscale tier is already in progress. - * - * When performCutover is specified, the scaling operation will trigger cutover and perform role-change to Hyperscale database. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - performCutover?: boolean; -} - -/** 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 ARM resources for which to create private endpoint connection. */ -export interface NetworkIsolationSettings { - /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ - storageAccountResourceId?: string; - /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ - sqlServerResourceId?: string; + readonly nextLink?: string; } -/** Contains the private endpoint connection requests status. */ -export interface PrivateEndpointConnectionRequestStatus { +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { /** - * Resource id for which the private endpoint is created. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateLinkServiceId?: string; + readonly groupId?: string; /** - * The connection name for the private endpoint. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnectionName?: string; + readonly requiredMembers?: string[]; /** - * Status of this private endpoint connection. + * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: 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 a resource move (rename). */ -export interface ResourceMoveDefinition { - /** The target ID for the resource */ - id: string; + readonly requiredZoneNames?: string[]; } -/** The result of an elastic pool list request. */ -export interface ElasticPoolListResult { +/** A list of recoverable databases. */ +export interface RecoverableDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ElasticPool[]; + readonly value?: RecoverableDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3611,47 +3900,13 @@ export interface ElasticPoolListResult { 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; - /** Minimal capacity that serverless pool will not shrink below, if not paused */ - minCapacity?: 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; - /** Type of enclave requested on the elastic pool. */ - preferredEnclaveType?: AlwaysEncryptedEnclaveType; - /** Specifies the availability zone the pool's primary replica is pinned to. */ - availabilityZone?: AvailabilityZoneType; -} - -/** A list of managed databases. */ -export interface ManagedDatabaseListResult { +/** A list of recoverable managed databases. */ +export interface RecoverableManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedDatabase[]; + readonly value?: RecoverableManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3659,98 +3914,41 @@ export interface ManagedDatabaseListResult { 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; +/** A list of replication links. */ +export interface ReplicationLinkListResult { /** - * Creation date of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly value?: ReplicationLink[]; /** - * Earliest restore point in time for point in time restore. + * Link to retrieve next page of results. * 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 nextLink?: string; +} + +/** A list of restorable dropped databases. */ +export interface RestorableDroppedDatabaseListResult { /** - * Geo paired region. + * Array of results. * 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 resource identifier of the cross-subscription source database associated with create operation of this database. */ - crossSubscriptionSourceDatabaseId?: string; - /** The restorable dropped database resource id to restore when creating this database. */ - restorableDroppedDatabaseId?: string; - /** The restorable cross-subscription dropped database resource id to restore when creating this database. */ - crossSubscriptionRestorableDroppedDatabaseId?: 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; + readonly value?: RestorableDroppedDatabase[]; /** - * Instance Failover Group resource identifier that this managed 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; - /** 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; - /** Target managed instance id used in cross-subscription restore. */ - crossSubscriptionTargetManagedInstanceId?: 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; -} - -/** 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; + readonly nextLink?: string; } -/** A list of managed instances. */ -export interface ManagedInstanceListResult { +/** A list of restorable dropped managed databases. */ +export interface RestorableDroppedManagedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstance[]; + readonly value?: RestorableDroppedManagedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3758,192 +3956,110 @@ export interface ManagedInstanceListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface ResourceIdentity { - /** The resource ids of the user assigned identities to use */ - userAssignedIdentities?: { [propertyName: string]: UserIdentity }; +/** A list of long term retention backups. */ +export interface RestorePointListResult { /** - * The Azure Active Directory principal id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; - /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */ - type?: IdentityType; + readonly value?: RestorePoint[]; /** - * The Azure Active Directory tenant id. + * 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; } -/** Azure Active Directory identity configuration for a resource. */ -export interface UserIdentity { +/** Contains the information necessary to perform a create database restore point operation. */ +export interface CreateDatabaseRestorePointDefinition { + /** The restore point label to apply */ + restorePointLabel: string; +} + +/** A list of the server's Advanced Threat Protection configurations. */ +export interface LogicalServerAdvancedThreatProtectionListResult { /** - * The Azure Active Directory principal id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly value?: ServerAdvancedThreatProtection[]; /** - * The Azure Active Directory 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 private endpoint connection under a managed instance */ -export interface ManagedInstancePecProperty { +/** Automatic tuning properties for individual advisors. */ +export interface AutomaticTuningServerOptions { + /** Automatic tuning option desired state. */ + desiredState?: AutomaticTuningOptionModeDesired; /** - * Resource ID. + * Automatic tuning option actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly actualState?: AutomaticTuningOptionModeActual; /** - * Private endpoint connection properties + * Reason code if desired and actual state are different. * 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; -} - -/** The managed instance's service principal configuration for a resource. */ -export interface ServicePrincipal { + readonly reasonCode?: number; /** - * The Azure Active Directory application object id. + * Reason description if desired and actual state are different. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly reasonDesc?: AutomaticTuningServerReason; +} + +/** A list of active directory administrators. */ +export interface AdministratorListResult { /** - * The Azure Active Directory application client id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly value?: ServerAzureADAdministrator[]; /** - * The Azure Active Directory tenant id. + * 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; - /** Service principal type. */ - type?: ServicePrincipalType; + readonly nextLink?: string; } -/** 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 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; +/** A list of active directory only authentications. */ +export interface AzureADOnlyAuthListResult { /** - * The state of the managed instance. + * Array 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: 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; + readonly value?: ServerAzureADOnlyAuthentication[]; /** - * The Dns Zone that the managed instance 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 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; + readonly nextLink?: string; +} + +/** A list of server configuration options. */ +export interface ServerConfigurationOptionListResult { /** - * 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?: ServerConfigurationOption[]; /** - * 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 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; + readonly nextLink?: string; } -/** A collection of endpoints that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpointCollection { +/** A list of server connection policy objects. */ +export interface ServerConnectionPolicyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundEnvironmentEndpoint[]; + readonly value?: ServerConnectionPolicy[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3951,50 +4067,47 @@ export interface OutboundEnvironmentEndpointCollection { readonly nextLink?: string; } -/** An endpoint that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpoint { +/** A list of server DevOps audit settings. */ +export interface ServerDevOpsAuditSettingsListResult { /** - * The type of service accessed by the managed instance service, e.g., Azure Storage, Azure Active Directory, etc. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly value?: ServerDevOpsAuditingSettings[]; /** - * The endpoints that the managed instance service communicates with in order to function correctly. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpoints?: EndpointDependency[]; + readonly nextLink?: string; } -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDependency { +/** A list of server DNS aliases. */ +export interface ServerDnsAliasListResult { /** - * The domain name of the dependency. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly domainName?: string; + readonly value?: ServerDnsAlias[]; /** - * The IP Addresses and Ports used when connecting to DomainName. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpointDetails?: EndpointDetail[]; + readonly nextLink?: string; } -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDetail { - /** - * The port an endpoint is connected to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly port?: number; +/** A server dns alias acquisition request. */ +export interface ServerDnsAliasAcquisition { + /** The id of the server alias that will be acquired to point to this server instead. */ + oldServerDnsAliasId: string; } -/** A list of top resource consuming queries on managed instance */ -export interface TopQueriesListResult { +/** A list of server keys. */ +export interface ServerKeyListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopQueries[]; + readonly value?: ServerKey[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4002,48 +4115,41 @@ export interface TopQueriesListResult { readonly nextLink?: string; } -export interface TopQueries { - /** - * Requested number of top queries. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfQueries?: number; - /** - * Aggregation function used to calculate query metrics. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly aggregationFunction?: string; +/** The response to a list server operations request */ +export interface ServerOperationListResult { /** - * Metric used to rank queries. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly observationMetric?: string; + readonly value?: ServerOperation[]; /** - * Interval type (length). + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly nextLink?: string; +} + +/** A list of the server's security alert policies. */ +export interface LogicalServerSecurityAlertPolicyListResult { /** - * The start time for the metric (ISO-8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly value?: ServerSecurityAlertPolicy[]; /** - * The end time for the metric (ISO-8601 format). + * Link to retrieve next page of results. * 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[]; + readonly nextLink?: string; } -/** A list of ledger digest upload settings. */ -export interface ManagedLedgerDigestUploadsListResult { +/** A list of server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedLedgerDigestUploads[]; + readonly value?: ServerTrustCertificate[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4051,13 +4157,13 @@ export interface ManagedLedgerDigestUploadsListResult { readonly nextLink?: string; } -/** A list of recoverable databases. */ -export interface RecoverableDatabaseListResult { +/** A list of server trust groups. */ +export interface ServerTrustGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableDatabase[]; + readonly value?: ServerTrustGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4065,13 +4171,19 @@ export interface RecoverableDatabaseListResult { readonly nextLink?: string; } -/** A list of restorable dropped databases. */ -export interface RestorableDroppedDatabaseListResult { +/** Server info for the server trust group. */ +export interface ServerInfo { + /** Server Id. */ + serverId: string; +} + +/** A list of server usage metrics. */ +export interface ServerUsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorableDroppedDatabase[]; + readonly value?: ServerUsage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4079,13 +4191,13 @@ export interface RestorableDroppedDatabaseListResult { readonly nextLink?: string; } -/** A list of server configuration options. */ -export interface ServerConfigurationOptionListResult { +/** A list of the server's vulnerability assessments. */ +export interface ServerVulnerabilityAssessmentListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerConfigurationOption[]; + readonly value?: ServerVulnerabilityAssessment[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4213,6 +4325,8 @@ export interface ServerUpdate { 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; + /** Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + isIPv6Enabled?: ServerNetworkAccessFlag; /** * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4243,7 +4357,15 @@ export interface ImportNewDatabaseDefinition { /** Authentication type. */ authenticationType?: string; /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; + networkIsolation?: NetworkIsolationSettingsAutoGenerated; +} + +/** Contains the ARM resources for which to create private endpoint connection. */ +export interface NetworkIsolationSettingsAutoGenerated { + /** The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter. */ + storageAccountResourceId?: string; + /** The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation. */ + sqlServerResourceId?: string; } /** Managed instance's Start/Stop schedule list result. */ @@ -4272,13 +4394,13 @@ export interface ScheduleItem { stopTime: string; } -/** A list of transparent data encryptions */ -export interface LogicalDatabaseTransparentDataEncryptionListResult { +/** A list of subscription usage metrics in a location. */ +export interface SubscriptionUsageListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LogicalDatabaseTransparentDataEncryption[]; + readonly value?: SubscriptionUsage[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4286,13 +4408,13 @@ export interface LogicalDatabaseTransparentDataEncryptionListResult { readonly nextLink?: string; } -/** A list of failover groups. */ -export interface FailoverGroupListResult { +/** A list of synapselink workspaces */ +export interface SynapseLinkWorkspaceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FailoverGroup[]; + readonly value?: SynapseLinkWorkspace[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4300,55 +4422,44 @@ export interface FailoverGroupListResult { readonly nextLink?: string; } -/** Read-write endpoint of the failover group instance. */ -export interface FailoverGroupReadWriteEndpoint { - /** Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; - /** Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** Read-only endpoint of the failover group instance. */ -export interface FailoverGroupReadOnlyEndpoint { - /** Failover policy of the read-only endpoint for the failover group. */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +/** Properties of a Synapse link workspaces */ +export interface SynapseLinkWorkspaceInfoProperties { + /** Synapse link workspace id. */ + workspaceId?: string; + /** Link connection name. */ + linkConnectionName?: string; } -/** Partner server information for the failover group. */ -export interface PartnerInfo { - /** Resource identifier of the partner server. */ - id: string; +/** A list of sync agents. */ +export interface SyncAgentListResult { /** - * Geo location of the partner server. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly value?: SyncAgent[]; /** - * Replication role of the partner server. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; + readonly nextLink?: string; } -/** A failover group update request. */ -export interface FailoverGroupUpdate { - /** 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; - /** List of databases in the failover group. */ - databases?: string[]; +/** Properties of an Azure SQL Database sync agent key. */ +export interface SyncAgentKeyProperties { + /** + * Key of sync agent. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly syncAgentKey?: string; } -/** The response to a list IPv6 firewall rules request */ -export interface IPv6FirewallRuleListResult { +/** A list of sync agent linked databases. */ +export interface SyncAgentLinkedDatabaseListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: IPv6FirewallRule[]; + readonly value?: SyncAgentLinkedDatabase[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4356,13 +4467,13 @@ export interface IPv6FirewallRuleListResult { readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { +/** A list of sync database ID properties. */ +export interface SyncDatabaseIdListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; + readonly value?: SyncDatabaseIdProperties[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4370,27 +4481,22 @@ export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; +/** Properties of the sync database id. */ +export interface SyncDatabaseIdProperties { /** - * Link to retrieve next page of results. + * ARM resource id of sync database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly id?: string; } -/** A list of vulnerability assessment scan results. */ -export interface SQLVulnerabilityAssessmentScanListResult { +/** A list of sync groups. */ +export interface SyncGroupListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessmentScanResults[]; + readonly value?: SyncGroup[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4398,185 +4504,197 @@ export interface SQLVulnerabilityAssessmentScanListResult { readonly nextLink?: string; } -/** SQL Vulnerability Assessment remediation Details. */ -export interface Remediation { +/** Properties of sync group schema. */ +export interface SyncGroupSchema { + /** List of tables in sync group schema. */ + tables?: SyncGroupSchemaTable[]; + /** Name of master sync member where the schema is from. */ + masterSyncMemberName?: string; +} + +/** Properties of table in sync group schema. */ +export interface SyncGroupSchemaTable { + /** List of columns in sync group schema. */ + columns?: SyncGroupSchemaTableColumn[]; + /** Quoted name of sync group schema table. */ + quotedName?: string; +} + +/** Properties of column in sync group table. */ +export interface SyncGroupSchemaTableColumn { + /** Quoted name of sync group table column. */ + quotedName?: string; + /** Data size of the column. */ + dataSize?: string; + /** Data type of the column. */ + dataType?: string; +} + +/** A list of sync schema properties. */ +export interface SyncFullSchemaPropertiesListResult { /** - * SQL Vulnerability Assessment remediation description. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly value?: SyncFullSchemaProperties[]; /** - * SQL Vulnerability Assessment remediation script. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scripts?: string[]; + readonly nextLink?: string; +} + +/** Properties of the database full schema. */ +export interface SyncFullSchemaProperties { /** - * SQL Vulnerability Assessment is remediation automated. + * List of tables in the database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly automated?: boolean; + readonly tables?: SyncFullSchemaTable[]; /** - * SQL Vulnerability Assessment optional link to remediate in Azure Portal. + * Last update time of the database schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly portalLink?: string; + readonly lastUpdateTime?: Date; } -/** SQL Vulnerability Assessment baseline adjusted results */ -export interface BaselineAdjustedResult { - /** - * SQL Vulnerability Assessment baseline details - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly baseline?: Baseline; +/** Properties of the table in the database full schema. */ +export interface SyncFullSchemaTable { /** - * SQL Vulnerability Assessment baseline status + * List of columns in the table of database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: RuleStatus; + readonly columns?: SyncFullSchemaTableColumn[]; /** - * SQL Vulnerability Assessment results that are not in baseline + * Error id of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsNotInBaseline?: string[][]; + readonly errorId?: string; /** - * SQL Vulnerability Assessment results that are in baseline. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsOnlyInBaseline?: string[][]; -} - -/** SQL Vulnerability Assessment baseline Details */ -export interface Baseline { + readonly hasError?: boolean; /** - * SQL Vulnerability Assessment baseline expected results + * Name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResults?: string[][]; + readonly name?: string; /** - * SQL Vulnerability Assessment baseline update time (UTC) + * Quoted name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedTime?: Date; + readonly quotedName?: string; } -/** SQL Vulnerability Assessment rule metadata details. */ -export interface VaRule { +/** Properties of the column in the table of database full schema. */ +export interface SyncFullSchemaTableColumn { /** - * SQL Vulnerability Assessment rule Id. + * Data size of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleId?: string; + readonly dataSize?: string; /** - * SQL Vulnerability Assessment rule severity. + * Data type of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly severity?: RuleSeverity; + readonly dataType?: string; /** - * SQL Vulnerability Assessment rule category. + * Error id of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly errorId?: string; /** - * SQL Vulnerability Assessment rule type. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleType?: RuleType; + readonly hasError?: boolean; /** - * SQL Vulnerability Assessment rule title. + * If it is the primary key of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly isPrimaryKey?: boolean; /** - * SQL Vulnerability Assessment rule description. + * Name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly name?: string; /** - * SQL Vulnerability Assessment rule rationale. + * Quoted name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rationale?: string; + readonly quotedName?: string; +} + +/** A list of sync group log properties. */ +export interface SyncGroupLogListResult { /** - * SQL Vulnerability Assessment rule query details. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryCheck?: QueryCheck; + readonly value?: SyncGroupLogProperties[]; /** - * SQL Vulnerability Assessment benchmark references. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmarkReferences?: BenchmarkReference[]; + readonly nextLink?: string; } -/** SQL Vulnerability Assessment query check object. */ -export interface QueryCheck { +/** Properties of an Azure SQL Database sync group log. */ +export interface SyncGroupLogProperties { /** - * SQL Vulnerability Assessment rule query. + * Timestamp of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly query?: string; + readonly timestamp?: Date; /** - * SQL Vulnerability Assessment query expected result. + * Type of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResult?: string[][]; + readonly type?: SyncGroupLogType; /** - * SQL Vulnerability Assessment column names of query expected result. + * Source of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly columnNames?: string[]; -} - -/** SQL Vulnerability Assessment benchmark reference */ -export interface BenchmarkReference { + readonly source?: string; /** - * SQL Vulnerability Assessment benchmark name + * Details of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmark?: string; + readonly details?: string; /** - * SQL Vulnerability Assessment benchmark reference. + * TracingId of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reference?: string; -} - -/** A list of vulnerability assessment scan records. */ -export interface SqlVulnerabilityAssessmentScanRecordListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SqlVulnerabilityAssessmentScanRecord[]; + readonly tracingId?: string; /** - * Link to retrieve next page of results. + * OperationStatus of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly operationStatus?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface SqlVulnerabilityAssessmentScanError { +/** A list of Azure SQL Database sync members. */ +export interface SyncMemberListResult { /** - * The error code. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: SyncMember[]; /** - * The error message. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments. */ -export interface SqlVulnerabilityAssessmentListResult { +/** A list of time zones. */ +export interface TimeZoneListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessment[]; + readonly value?: TimeZone[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4584,397 +4702,751 @@ export interface SqlVulnerabilityAssessmentListResult { readonly nextLink?: string; } -/** A Slo Usage Metric. */ -export interface SloUsageMetric { - /** - * The serviceLevelObjective for SLO usage metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceLevelObjective?: ServiceObjectiveName; +/** A list of transparent data encryptions */ +export interface LogicalDatabaseTransparentDataEncryptionListResult { /** - * The serviceLevelObjectiveId for SLO usage metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjectiveId?: string; + readonly value?: LogicalDatabaseTransparentDataEncryption[]; /** - * Gets or sets inRangeTimeRatio for SLO usage metric. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inRangeTimeRatio?: number; + readonly nextLink?: string; } -/** The impact of an operation, both in absolute and relative terms. */ -export interface OperationImpact { - /** - * The name of the impact dimension. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * 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 unit?: string; +/** A list of usages. */ +export interface UsageListResult { /** - * The absolute impact to dimension. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueAbsolute?: number; + readonly value?: Usage[]; /** - * The relative impact to dimension (null if not applicable) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueRelative?: number; -} - -/** 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 }; + readonly nextLink?: string; } -/** ARM proxy resource. */ -export interface ProxyResourceWithWritableName - extends ResourceWithWritableName {} - -/** Represents a database data masking policy. */ -export interface DataMaskingPolicy extends ProxyResource { +/** ARM usage. */ +export interface Usage { /** - * The location of the data masking policy. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly id?: string; /** - * The kind of data masking policy. Metadata, used for Azure portal. + * Resource name. * 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 name?: Name; /** - * The list of the application principals. This is a legacy parameter and is no longer used. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationPrincipals?: string; + readonly type?: string; /** - * The masking level. This is a legacy parameter and is no longer used. + * Usage unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maskingLevel?: string; -} - -/** Represents a database data masking rule. */ -export interface DataMaskingRule extends ProxyResource { + readonly unit?: string; /** - * The location of the data masking rule. + * Usage current value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly currentValue?: number; /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. + * Usage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly limit?: number; /** - * The rule Id. + * Usage requested limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly idPropertiesId?: string; - /** The alias name. This is a legacy parameter and is no longer used. */ - aliasName?: string; - /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ - ruleState?: DataMaskingRuleState; - /** The schema name on which the data masking rule is applied. */ - schemaName?: string; - /** The table name on which the data masking rule is applied. */ - tableName?: string; - /** The column name on which the data masking rule is applied. */ - columnName?: string; - /** The masking function that is used for the data masking rule. */ - maskingFunction?: DataMaskingFunction; - /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberFrom?: string; - /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberTo?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ - prefixSize?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ - suffixSize?: string; - /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ - replacementString?: string; + readonly requestedLimit?: number; } -/** A database geo backup policy. */ -export interface GeoBackupPolicy extends ProxyResource { - /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; +/** ARM Usage Name */ +export interface Name { + /** Usage name value */ + value?: string; + /** Usage name localized value. */ + localizedValue?: string; +} + +/** A list of virtual clusters. */ +export interface VirtualClusterListResult { /** - * 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?: VirtualCluster[]; /** - * 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 { - /** - * Communication link location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; +/** An update request for virtual cluster. */ +export interface VirtualClusterUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Communication link kind. This property is used for Azure Portal metadata. + * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; /** - * The state. + * List of resources in this virtual cluster. * 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 childResources?: string[]; } -/** Represents a database service objective. */ -export interface ServiceObjective extends ProxyResource { - /** - * The name for the service objective. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceObjectiveName?: string; +/** A list of virtual network rules. */ +export interface VirtualNetworkRuleListResult { /** - * Gets whether the service level objective is the default service objective. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefault?: boolean; + readonly value?: VirtualNetworkRule[]; /** - * Gets whether the service level objective is a system service objective. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isSystem?: boolean; + readonly nextLink?: string; +} + +/** A list of workload classifiers for a workload group. */ +export interface WorkloadClassifierListResult { /** - * The description for the service level objective. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly value?: WorkloadClassifier[]; /** - * Gets whether the service level objective is enabled. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly enabled?: boolean; + readonly nextLink?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; +/** A list of workload groups. */ +export interface WorkloadGroupListResult { /** - * The time the operation finished (ISO8601 format). + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly value?: WorkloadGroup[]; /** - * The error code if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly nextLink?: string; +} + +/** 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 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 server blob auditing policy. */ +export interface ServerBlobAuditingPolicy extends ProxyResource { /** - * The error message if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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) + * */ - readonly errorMessage?: string; + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The error severity if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly errorSeverity?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The operation name. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly operation?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * The unique operation ID. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly operationId?: string; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The percentage complete if available. - * 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 percentComplete?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A database blob auditing policy. */ +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * The requested max DTU per database if available. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuMax?: number; + readonly kind?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * The requested min DTU per database if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly requestedDatabaseDtuMin?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The requested DTU for the pool if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly requestedDtu?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The requested name for the elastic pool if available. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly requestedElasticPoolName?: string; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The 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. + * 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 requestedStorageLimitInGB?: number; + 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; /** - * The name of the elastic pool. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - readonly elasticPoolName?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * 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. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly serverName?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * The time the operation started (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly startTime?: Date; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The current state of the operation. - * 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 state?: string; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** An extended server blob auditing policy. */ +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * The requested storage limit in MB. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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) */ - readonly requestedStorageLimitInMB?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * The requested per database DTU guarantee. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * */ - readonly requestedDatabaseDtuGuarantee?: number; + isAzureMonitorTargetEnabled?: boolean; /** - * The requested per database DTU cap. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly requestedDatabaseDtuCap?: number; + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; /** - * The requested DTU guarantee. - * 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 requestedDtuGuarantee?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** - * The database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * The time the operation finished (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * The error code if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: number; - /** - * The error message if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * The error severity if available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorSeverity?: number; +/** A database data masking policy. */ +export interface DataMaskingPolicy extends ProxyResource { /** - * The operation name. + * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly location?: string; /** - * The unique operation ID. + * 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 operationId?: string; + readonly kind?: string; + /** The state of the data masking policy. */ + dataMaskingState?: DataMaskingState; + /** The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. */ + exemptPrincipals?: string; /** - * The percentage complete if available. + * 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 percentComplete?: number; + readonly applicationPrincipals?: string; /** - * The name for the elastic pool the database is moving into if available. + * The masking level. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly maskingLevel?: string; +} + +/** A database data masking rule. */ +export interface DataMaskingRule extends ProxyResource { /** - * The name of the current elastic pool the database is in if available. + * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentElasticPoolName?: string; + readonly location?: string; /** - * The name of the current service objective if available. + * The kind of Data Masking Rule. Metadata, used for Azure portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjective?: string; + readonly kind?: string; /** - * The name of the requested service objective if available. + * The rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjective?: string; + readonly idPropertiesId?: 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 alias name. This is a legacy parameter and is no longer used. */ + aliasName?: 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; +} + +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivities extends ProxyResource { /** - * The name of the server the elastic pool is in. + * Count of running and suspended queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly activeQueriesCount?: number; +} + +/** A database Advanced Threat Protection. */ +export interface DatabaseAdvancedThreatProtection extends ProxyResource { /** - * The time the operation started (ISO8601 format). + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The current state of the operation. + * 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?: string; + readonly creationTime?: Date; } /** Database, Server or Elastic Pool Recommended Action. */ @@ -5169,158 +5641,93 @@ export interface DatabaseColumn extends ProxyResource { 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?: 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; - /** - * 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 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 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; +/** An Extension operation result resource. */ +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** - * The scan end time (UTC). + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly requestId?: string; /** - * The scan errors. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: VulnerabilityAssessmentScanError[]; + readonly requestType?: string; /** - * The scan results storage container path. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageContainerPath?: string; + readonly lastModifiedTime?: string; /** - * The number of failed security checks. + * Server name. * 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 serverName?: string; /** - * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * Database name. * 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 databaseName?: string; /** - * Count of running and suspended queries. + * Operation status. * 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 status?: string; /** - * The version of the deleted server. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly errorMessage?: string; /** - * The deletion time of the deleted server. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionTime?: Date; + readonly queuedTime?: string; /** - * The original ID of the server before deletion. + * Blob URI. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly originalId?: string; + readonly blobUri?: string; /** - * The fully qualified domain name of the server. + * 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 fullyQualifiedDomainName?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } -/** A elastic pool operation. */ -export interface ElasticPoolOperation extends ProxyResource { +/** An Import, Export, or PolybaseImport resource. */ +export interface DatabaseExtensions extends ProxyResource { + /** Operation mode of the operation: Import, Export, or PolybaseImport. */ + operationMode?: OperationMode; + /** Storage key type: StorageAccessKey or SharedAccessKey. */ + storageKeyType?: StorageKeyType; + /** Storage key for the storage account. */ + storageKey?: string; + /** Storage Uri for the storage account. */ + storageUri?: string; + /** Administrator login name. */ + administratorLogin?: string; + /** Administrator login password. */ + administratorLoginPassword?: string; + /** Authentication type: SQL authentication or AD password. */ + authenticationType?: string; + /** Database edition for the newly created database in the case of an import operation. */ + databaseEdition?: string; + /** Database service level objective for the newly created database in the case of an import operation. */ + serviceObjectiveName?: string; + /** Database max size in bytes for the newly created database in the case of an import operation. */ + maxSizeBytes?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + +/** A database operation. */ +export interface DatabaseOperation extends ProxyResource { /** - * The name of the elastic pool the operation is being performed on. + * 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 elasticPoolName?: string; + readonly databaseName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5350,7 +5757,7 @@ export interface ElasticPoolOperation extends ProxyResource { * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly state?: ManagementOperationState; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5386,691 +5793,554 @@ export interface ElasticPoolOperation 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 { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * Resource location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * Subregion of the encryption protector. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subregion?: string; - /** The name of the server key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - 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. + * The operation phase details. * 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; + readonly operationPhaseDetails?: PhaseDetails; } -/** 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; -} +/** A database schema resource. */ +export interface DatabaseSchema extends ProxyResource {} -/** An execution of a job */ -export interface JobExecution extends ProxyResource { +/** A database security alert policy. */ +export interface DatabaseSecurityAlertPolicy extends ProxyResource { /** - * The job version number. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobVersion?: number; + 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; /** - * The job step 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 stepName?: string; + readonly creationTime?: Date; +} + +/** A database sql vulnerability assessment baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSet + extends ProxyResource { /** - * The job step id. + * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepId?: number; + 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 { /** - * The unique identifier of the job execution. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobExecutionId?: string; + 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 { /** - * The detailed state of the job execution. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lifecycle?: JobExecutionLifecycle; + readonly systemData?: SystemData; + /** The rule baseline result */ + results?: string[][]; +} + +/** A database sql vulnerability assessment rule baseline input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + extends ProxyResource { /** - * The ARM provisioning state of the job execution. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result */ + results?: string[][]; +} + +export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { /** - * The time that the job execution was created. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly systemData?: SystemData; /** - * The time that the job execution started. + * SQL Vulnerability Assessment rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly ruleId?: string; /** - * The time that the job execution completed. + * SQL Vulnerability Assessment rule result status. * 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 status?: RuleStatus; /** - * Start time of the current attempt. + * SQL Vulnerability Assessment error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentAttemptStartTime?: Date; + readonly errorMessage?: string; /** - * The last status or error message. + * SQL Vulnerability Assessment is the query results trimmed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastMessage?: string; + readonly isTrimmed?: boolean; /** - * The target that this execution is executed on. + * SQL Vulnerability Assessment query results that was run. * 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 queryResults?: string[][]; /** - * The job version number. + * SQL Vulnerability Assessment the remediation details. * 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 remediation?: Remediation; /** - * Database name of the database in which this query was executed. + * SQL Vulnerability Assessment rule result adjusted with baseline. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly baselineAdjustedResult?: BaselineAdjustedResult; /** - * Unique query id (unique within one database). + * SQL Vulnerability Assessment rule metadata. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly ruleMetadata?: VaRule; +} + +/** A vulnerability assessment scan record. */ +export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { /** - * The start time for the metric (ISO-8601 format). + * SystemData of SqlVulnerabilityAssessmentScanRecordResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly systemData?: SystemData; /** - * The end time for the metric (ISO-8601 format). + * The scan ID. * 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 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; + readonly scanId?: string; /** - * Specifies the UTC creation time of the policy. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A security event. */ -export interface SecurityEvent extends ProxyResource { + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * The time when the security event occurred. + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly eventTime?: Date; + readonly state?: VulnerabilityAssessmentScanState; /** - * The type of the security event. + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventType?: SecurityEventType; + readonly startTime?: Date; /** - * The subscription name + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subscription?: string; + readonly endTime?: Date; /** - * The server name + * 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 + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly database?: string; /** - * The IP address of the client who executed the statement. + * The SQL version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientIp?: string; + readonly sqlVersion?: string; /** - * The application used to execute the statement. + * The number of failed rules with high severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationName?: string; + readonly highSeverityFailedRulesCount?: number; /** - * The principal user who executed the statement + * The number of failed rules with medium severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalName?: string; + readonly mediumSeverityFailedRulesCount?: number; /** - * The sql injection additional properties, populated only if the type of the security event is sql injection. + * The number of failed rules with low severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; + 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; + /** + * The last scan time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastScanTime?: Date; } -/** A managed database transparent data encryption state. */ -export interface ManagedTransparentDataEncryption extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; +/** 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; } -/** 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 database table resource. */ +export interface DatabaseTable extends ProxyResource { + /** The table temporal type. */ + temporalType?: TableTemporalType; + /** Whether or not the table is memory optimized. */ + memoryOptimized?: boolean; } -/** Azure Active Directory only authentication. */ -export interface ManagedInstanceAzureADOnlyAuthentication +/** Usage metric of a database. */ +export interface DatabaseUsage extends ProxyResource { + /** + * User-readable name of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Current value of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentValue?: number; + /** + * Boundary value of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly limit?: number; + /** + * Unit of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; +} + +/** A database vulnerability assessment rule baseline. */ +export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; } -/** The managed instance encryption protector. */ -export interface ManagedInstanceEncryptionProtector extends ProxyResource { +/** A vulnerability assessment scan record. */ +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The scan ID. * 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; + readonly scanId?: string; /** - * The URI of the server key. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * Thumbprint of the server key. + * The scan status. * 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 { + readonly state?: VulnerabilityAssessmentScanState; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The scan start time (UTC). * 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; + readonly startTime?: Date; /** - * Thumbprint of the key. + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly endTime?: Date; /** - * The key creation date. + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * Key auto rotation opt-in flag. Either true or false. + * The scan results storage container path. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; + readonly storageContainerPath?: string; + /** + * The number of failed security checks. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFailedSecurityChecks?: number; } -/** A 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 database Vulnerability Assessment scan export resource. */ +export interface DatabaseVulnerabilityAssessmentScansExport + extends ProxyResource { + /** + * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly exportedReportLocation?: string; } -/** A managed instance operation. */ -export interface ManagedInstanceOperation extends ProxyResource { +/** 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. 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 ImportExport operation result resource. */ +export interface ImportExportOperationResult extends ProxyResource { /** - * The name of the managed instance the operation is being performed on. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly requestId?: string; /** - * The name of operation. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly requestType?: string; /** - * The friendly name of operation. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly queuedTime?: string; /** - * The percentage of the operation completed. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly lastModifiedTime?: string; /** - * The operation start time. + * Blob Uri. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly blobUri?: string; /** - * The operation state. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly serverName?: string; /** - * The operation error code. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly databaseName?: string; /** - * The operation error description. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly status?: string; /** - * The operation error severity. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly errorMessage?: string; /** - * Whether or not the error is a user error. + * 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 isUserError?: boolean; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; +} + +/** A deleted server. */ +export interface DeletedServer extends ProxyResource { /** - * The estimated completion time of the operation. + * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly version?: string; /** - * The operation description. + * The deletion time of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly deletionTime?: Date; /** - * Whether the operation can be cancelled. + * The original ID of the server before deletion. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly originalId?: string; /** - * The operation parameters. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationParameters?: ManagedInstanceOperationParametersPair; + readonly fullyQualifiedDomainName?: string; +} + +/** Distributed availability group between box and Sql Managed Instance. */ +export interface DistributedAvailabilityGroup extends ProxyResource { /** - * The operation steps. + * Name of the distributed availability group * 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 distributedAvailabilityGroupName?: string; /** - * State of the Private Endpoint Connection. + * ID of the distributed availability group * 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 distributedAvailabilityGroupId?: string; + /** Replication mode of the link */ + replicationMode?: ReplicationModeType; /** - * The private link resource group id. + * SQL server side link role * 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 partnerLinkRole?: LinkRole; /** - * SystemData of SecurityAlertPolicyResource. + * SQL server side availability group name * 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 partnerAvailabilityGroupName?: string; /** - * Specifies the UTC creation time of the policy. + * SQL server side endpoint - IP or DNS resolvable name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A private endpoint connection */ -export interface PrivateEndpointConnection extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; + readonly partnerEndpoint?: string; /** - * Group IDs. + * Managed instance side link role * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupIds?: string[]; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly instanceLinkRole?: LinkRole; /** - * State of the private endpoint connection. + * Managed instance side availability group name * 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 instanceAvailabilityGroupName?: string; /** - * The private link resource group id. + * Databases in the distributed availability group * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: PrivateLinkResourceProperties; + readonly databases?: DistributedAvailabilityGroupDatabase[]; } -/** A recoverable managed database resource. */ -export interface RecoverableManagedDatabase extends ProxyResource { +/** A elastic pool operation. */ +export interface ElasticPoolOperation extends ProxyResource { /** - * The last available backup date. + * 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 lastAvailableBackupDate?: string; -} - -/** Database restore points. */ -export interface RestorePoint extends ProxyResource { + readonly elasticPoolName?: string; /** - * Resource location. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly operation?: string; /** - * The type of restore point + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointType?: RestorePointType; + readonly operationFriendlyName?: string; /** - * The earliest time to which this database can be restored + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly percentComplete?: number; /** - * The time the backup was taken + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCreationDate?: Date; + readonly serverName?: string; /** - * The label of restore point for backup request by user + * The operation start time. * 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 startTime?: Date; /** - * Automatic tuning actual state. + * The operation state. * 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 state?: string; /** - * Azure Active Directory only Authentication enabled. + * The operation error code. * 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 errorCode?: number; /** - * SystemData of ServerDevOpsAuditSettingsResource. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly errorDescription?: string; /** - * 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) - * + * The operation error severity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly errorSeverity?: number; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Whether or not the error is a user error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isUserError?: boolean; + /** + * The estimated completion time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly estimatedCompletionTime?: Date; + /** + * The operation description. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** A server DNS alias. */ -export interface ServerDnsAlias extends ProxyResource { + readonly description?: string; /** - * The fully qualified DNS record for alias + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly isCancellable?: boolean; } -/** A server key. */ -export interface ServerKey extends ProxyResource { +/** The server encryption protector. */ +export interface EncryptionProtector extends ProxyResource { /** * Kind of encryption protector. This is metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6082,476 +6352,473 @@ export interface ServerKey extends ProxyResource { */ readonly location?: string; /** - * Subregion of the server key. + * Subregion of the encryption protector. * 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'. */ + /** The name of the server key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ serverKeyType?: ServerKeyType; - /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; + /** + * 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; +} + +/** Certificate used on an endpoint on the Managed Instance. */ +export interface EndpointCertificate extends ProxyResource { + /** The certificate public blob */ + publicBlob?: string; +} + +/** A failover group. */ +export interface FailoverGroup extends ProxyResource { /** - * The server key creation date. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + 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; /** - * Key auto rotation opt-in flag. Either true or false. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; + readonly replicationRole?: FailoverGroupReplicationRole; + /** + * Replication state of the failover group instance. + * 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[]; } -/** A server operation. */ -export interface ServerOperation extends ProxyResource { +/** A Geo backup policy. */ +export interface GeoBackupPolicy extends ProxyResource { /** - * The name of operation. + * Backup policy 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. + * 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 operationFriendlyName?: string; + readonly kind?: string; + /** The state of the geo backup policy. */ + state?: GeoBackupPolicyState; /** - * The percentage of the operation completed. + * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly storageType?: string; +} + +/** An instance failover group. */ +export interface InstanceFailoverGroup extends ProxyResource { + /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ + secondaryType?: SecondaryInstanceType; + /** Read-write endpoint of the failover group instance. */ + readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; + /** Read-only endpoint of the failover group instance. */ + readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; /** - * The name of the server. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** - * The operation start time. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + 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 { /** - * The operation state. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly jobVersion?: number; /** - * The operation error code. + * The job step name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly stepName?: string; /** - * The operation error description. + * The job step id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly stepId?: number; /** - * The operation error severity. + * The unique identifier of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly jobExecutionId?: string; /** - * Whether or not the error is a user error. + * The detailed state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly lifecycle?: JobExecutionLifecycle; /** - * The estimated completion time of the operation. + * The ARM provisioning state of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly provisioningState?: ProvisioningState; /** - * The operation description. + * The time that the job execution was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly createTime?: Date; /** - * Whether the operation can be cancelled. + * The time that the job execution started. * 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 startTime?: Date; /** - * SystemData of SecurityAlertPolicyResource. + * The time that the job execution completed. * 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 endTime?: Date; + /** Number of times the job execution has been attempted. */ + currentAttempts?: number; /** - * Specifies the UTC creation time of the policy. + * Start time of the current attempt. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly currentAttemptStartTime?: Date; + /** + * The last status or error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastMessage?: string; + /** + * The target that this execution is executed on. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: JobExecutionTarget; } -/** 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 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 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 group of job targets. */ +export interface JobTargetGroup extends ProxyResource { + /** Members of the target group. */ + members?: JobTarget[]; } -/** A recoverable managed database resource. */ -export interface SqlAgentConfiguration extends ProxyResource { - /** The state of Sql Agent. */ - state?: SqlAgentConfigurationPropertiesState; -} +/** A job version. */ +export interface JobVersion extends ProxyResource {} -/** Usage Metric of a Subscription in a Location. */ -export interface SubscriptionUsage extends ProxyResource { - /** - * User-readable name of the metric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; +/** A job. */ +export interface Job extends ProxyResource { + /** User-defined description of the job. */ + description?: string; /** - * Current value of the metric. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly version?: number; + /** Schedule properties of the job. */ + schedule?: JobSchedule; +} + +/** 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; /** - * Boundary value of the metric. + * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly state?: LedgerDigestUploadsState; +} + +/** A long term retention backup. */ +export interface LongTermRetentionBackup extends ProxyResource { /** - * Unit of the metric. + * 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 unit?: string; -} - -/** An Azure SQL Database sync agent. */ -export interface SyncAgent extends ProxyResource { + readonly serverName?: string; /** - * Name of the sync agent. + * The create time of the server. * 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 serverCreateTime?: Date; /** - * Last alive time of the sync agent. + * 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 lastAliveTime?: Date; + readonly databaseName?: string; /** - * State of the sync agent. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: SyncAgentState; + readonly databaseDeletionTime?: Date; /** - * If the sync agent version is up to date. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUpToDate?: boolean; + readonly backupTime?: Date; /** - * Expiration time of the sync agent version. + * 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 expiryTime?: Date; + readonly backupExpirationTime?: Date; /** - * Version of the sync agent. + * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The storage redundancy type of the backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** The setting whether the LTR backup is immutable */ + isBackupImmutable?: boolean; } -/** An Azure SQL Database sync agent linked database. */ -export interface SyncAgentLinkedDatabase extends ProxyResource { +/** A LongTermRetentionBackup operation result resource. */ +export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** - * Type of the sync agent linked database. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseType?: SyncMemberDbType; + readonly requestId?: string; /** - * Id of the sync agent linked database. + * Operation type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly operationType?: string; /** - * Description of the sync agent linked database. + * Source backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly fromBackupResourceId?: string; /** - * Server name of the sync agent linked database. + * Target backup resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly toBackupResourceId?: string; /** - * Database name of the sync agent linked 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 databaseName?: string; + readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; /** - * User name of the sync agent linked database. + * Operation status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userName?: string; + readonly status?: string; + /** + * Progress message + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: 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; +/** A long term retention backup for a managed database. */ +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * Last sync time of the sync group. + * The managed instance that the backup database belongs to. * 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 managedInstanceName?: string; /** - * Sync state of the sync group. + * The create time of the instance. * 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; + readonly managedInstanceCreateTime?: Date; /** - * Private endpoint name of the sync group if use private link connection is enabled. + * 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 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 databaseName?: string; /** - * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + * The delete time of the database * 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 databaseDeletionTime?: Date; /** - * Sync state of the sync member. + * The time the backup was taken * 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 backupTime?: Date; /** - * The time zone id + * 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 timeZoneId?: string; + readonly backupExpirationTime?: Date; /** - * The time zone display name + * The storage redundancy type of the backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly backupStorageRedundancy?: BackupStorageRedundancy; } -/** 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; - /** - * Virtual Network Rule State - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: VirtualNetworkRuleState; +/** A long term retention policy. */ +export interface LongTermRetentionPolicy extends ProxyResource { + /** The setting whether to make LTR backups immutable */ + makeBackupsImmutable?: boolean; + /** 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; } -/** 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; +/** 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; } -/** 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; +/** Maintenance windows. */ +export interface MaintenanceWindows extends ProxyResource { + timeRanges?: MaintenanceWindowTimeRange[]; } /** A short term retention policy. */ -export interface BackupShortTermRetentionPolicy extends ProxyResource { +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { /** The backup retention period in days. This is how many days Point-in-Time Restore will be supported. */ retentionDays?: number; - /** 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 { +/** A managed database Advanced Threat Protection. */ +export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { /** - * Request Id. + * SystemData of AdvancedThreatProtectionResource. * 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 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; /** - * 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 managed database move operation. */ +export interface ManagedDatabaseMoveOperationResult extends ProxyResource { /** - * Last modified time. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: string; + readonly operation?: string; /** - * Server name. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly operationFriendlyName?: string; /** - * Database name. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly startTime?: Date; /** - * Operation status. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly state?: ManagementOperationState; /** - * Error message. + * Operation mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; -} - -/** A database operation. */ -export interface DatabaseOperation extends ProxyResource { + readonly operationMode?: MoveOperationMode; /** - * The name of the database the operation is being performed on. + * Source Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly sourceManagedInstanceName?: string; /** - * The name of operation. + * Target Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly targetManagedInstanceName?: string; /** - * The friendly name of operation. + * Source Managed Instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly sourceManagedInstanceId?: string; /** - * The percentage of the operation completed. + * Target Managed instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly targetManagedInstanceId?: string; /** - * The name of the server. + * Source database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly sourceDatabaseName?: string; /** - * The operation start time. + * Target database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly targetDatabaseName?: string; /** - * The operation state. + * Is move operation cancellable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly isCancellable?: boolean; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6572,261 +6839,223 @@ export interface DatabaseOperation extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; - /** - * The estimated completion time of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedCompletionTime?: Date; - /** - * The operation description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Whether the operation can be cancelled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isCancellable?: boolean; } -/** Usage metric of a database. */ -export interface DatabaseUsage extends ProxyResource { +/** Database query. */ +export interface ManagedInstanceQuery extends ProxyResource { + /** Query text. */ + queryText?: string; +} + +export interface QueryStatistics extends ProxyResource { /** - * User-readable name of the metric. + * 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 displayName?: string; + readonly databaseName?: string; /** - * Current value of the metric. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly queryId?: string; /** - * Boundary value of the metric. + * 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 limit?: number; + readonly startTime?: string; /** - * Unit of the metric. + * 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 unit?: string; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; } -/** 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 managed database restore details. */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** - * Specifies the state of ledger digest upload. + * Restore type. * 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 typePropertiesType?: string; /** - * The state of the outbound rule. + * Restore status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** A LongTermRetentionBackup operation result resource. */ -export interface LongTermRetentionBackupOperationResult extends ProxyResource { + readonly status?: string; /** - * Request Id. + * The reason why restore is in Blocked state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly blockReason?: string; /** - * Operation type. + * Last uploaded file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationType?: string; + readonly lastUploadedFileName?: string; /** - * Source backup resource id + * Last uploaded file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fromBackupResourceId?: string; + readonly lastUploadedFileTime?: Date; /** - * Target backup resource id + * Last restored file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly toBackupResourceId?: string; + readonly lastRestoredFileName?: string; /** - * The storage redundancy type of the copied backup + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; + readonly lastRestoredFileTime?: Date; /** - * Operation status + * Percent completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly percentCompleted?: number; /** - * Progress message + * Current restored size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -/** A long term retention backup. */ -export interface LongTermRetentionBackup extends ProxyResource { + readonly currentRestoredSizeMB?: number; /** - * The server name that the backup database belong to. + * Current restore plan size MB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly currentRestorePlanSizeMB?: number; /** - * The create time of the server. + * Current backup type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverCreateTime?: Date; + readonly currentBackupType?: string; /** - * The name of the database the backup belong to + * Current restoring file name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly currentRestoringFileName?: string; /** - * The delete time of the database + * Number of files detected. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly numberOfFilesDetected?: number; /** - * The time the backup was taken + * Number of files queued. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly numberOfFilesQueued?: number; /** - * The time the long term retention backup will expire. + * Number of files skipped. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly numberOfFilesSkipped?: number; /** - * The storage redundancy type of the backup + * Number of files restoring. * 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; -} - -/** A long term retention backup for a managed database. */ -export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { + readonly numberOfFilesRestoring?: number; /** - * The managed instance that the backup database belongs to. + * Number of files restored. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly numberOfFilesRestored?: number; /** - * The create time of the instance. + * Number of files unrestorable. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceCreateTime?: Date; + readonly numberOfFilesUnrestorable?: number; /** - * The name of the database the backup belong to + * Full backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * The delete time of the database + * Diff backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * The time the backup was taken + * Log backup sets. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * The time the long term retention backup will expire. + * Unrestorable files. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; +} + +/** 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 storage redundancy type of the backup + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; + readonly creationTime?: Date; } -/** A server connection policy */ -export interface ServerConnectionPolicy extends ProxyResource { +/** A security event. */ +export interface SecurityEvent extends ProxyResource { /** - * Resource location. + * The time when the security event occurred. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly eventTime?: Date; /** - * Metadata used for the Azure portal experience. + * The type of the security event. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; - /** The server connection type. */ - connectionType?: ServerConnectionType; -} - -/** 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; + readonly securityEventType?: SecurityEventType; /** - * The distributed availability group id + * The subscription name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly distributedAvailabilityGroupId?: string; + readonly subscription?: string; /** - * The source replica id + * The server name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceReplicaId?: string; + readonly server?: string; /** - * The target replica id + * The database name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetReplicaId?: string; + readonly database?: string; /** - * The link state + * 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 linkState?: string; + readonly clientIp?: string; /** - * The last hardened lsn + * The application used to execute the statement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastHardenedLsn?: string; -} - -/** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */ -export interface ServerTrustCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: string; + readonly applicationName?: string; /** - * The certificate thumbprint + * The principal user who executed the statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly principalName?: string; /** - * The certificate name + * 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 certificateName?: string; -} - -/** Certificate used on an endpoint on the Managed Instance. */ -export interface EndpointCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: string; + readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } /** A sensitivity label. */ @@ -6891,488 +7120,335 @@ export interface RecommendedSensitivityLabelUpdate extends ProxyResource { column?: string; } -/** A server blob auditing policy. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +/** 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; +} + +/** A managed instance Advanced Threat Protection. */ +export interface ManagedInstanceAdvancedThreatProtection 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) - * + * SystemData of AdvancedThreatProtectionResource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDevopsAuditEnabled?: boolean; - /** Specifies the number of days to keep in the audit logs in the storage account. */ - retentionDays?: number; + readonly 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 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) + * 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; +} + +/** Azure Active Directory only authentication. */ +export interface ManagedInstanceAzureADOnlyAuthentication + extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: 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; +} + +/** 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. */ + weeklyRetention?: string; + /** The monthly retention policy for an LTR backup. */ + monthlyRetention?: string; + /** The yearly retention policy for an LTR backup. */ + yearlyRetention?: string; + /** The week of year to take the yearly backup. */ + weekOfYear?: number; +} + +/** A managed instance operation. */ +export interface ManagedInstanceOperation extends ProxyResource { + /** + * The name of the managed instance the operation is being performed on. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedInstanceName?: string; + /** + * The name of operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The friendly name of operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationFriendlyName?: string; + /** + * The percentage of the operation completed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** + * The 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; + /** + * 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. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly errorDescription?: 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 operation error severity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly errorSeverity?: number; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * Whether or not the error is a user error. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly isUserError?: boolean; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The estimated completion time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** A database blob auditing policy. */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { + readonly estimatedCompletionTime?: Date; /** - * Resource kind. + * The operation description. * 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 description?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * 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) + * Whether the operation can be cancelled. + * 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 isCancellable?: boolean; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * The operation parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * 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 operation steps. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + 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; /** - * 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) + * State of the Private Endpoint Connection. + * 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 provisioningState?: 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; +/** A private link resource */ +export interface ManagedInstancePrivateLink extends ProxyResource { /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * 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) + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: ManagedInstancePrivateLinkProperties; +} + +/** A TDE certificate that can be uploaded into a server. */ +export 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; +} + +/** An RefreshExternalGovernanceStatus operation result resource. */ +export interface RefreshExternalGovernanceStatusOperationResultMI + extends ProxyResource { + /** + * Request Id. + * 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 requestId?: 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) - * + * Request type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly requestType?: 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. + * Queued time. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly queuedTime?: 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) + * Managed instance name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** An extended server blob auditing policy. */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { + readonly managedInstanceName?: string; /** - * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * Operation status. + * 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 status?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * DBCC_GROUP - * DATABASE_OWNERSHIP_CHANGE_GROUP - * DATABASE_CHANGE_GROUP - * LEDGER_OPERATION_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. - * - * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Error message. + * 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 errorMessage?: string; +} + +/** 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 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) - * + * Specifies the state of ledger digest upload. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly state?: ManagedLedgerDigestUploadsState; +} + +/** A managed server DNS alias. */ +export interface ManagedServerDnsAlias extends ProxyResource { /** - * 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 fully qualified DNS record for managed server alias + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly azureDnsRecord?: 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 fully qualified public DNS record for managed server alias + * 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 publicAzureDnsRecord?: string; } -/** A database Advanced Threat Protection. */ -export interface DatabaseAdvancedThreatProtection extends ProxyResource { +/** A managed server security alert policy. */ +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** - * SystemData of AdvancedThreatProtectionResource. + * 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 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 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; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7380,66 +7456,84 @@ export interface DatabaseAdvancedThreatProtection extends ProxyResource { readonly creationTime?: Date; } -/** A server Advanced Threat Protection. */ -export interface ServerAdvancedThreatProtection extends ProxyResource { +/** NSP Configuration for a server. */ +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + provisioningState?: string; + networkSecurityPerimeter?: NSPConfigPerimeter; + resourceAssociation?: NSPConfigAssociation; + profile?: NSPConfigProfile; + provisioningIssues?: NSPProvisioningIssue[]; +} + +/** An Azure SQL DB Server Outbound Firewall Rule. */ +export interface OutboundFirewallRule extends ProxyResource { /** - * SystemData of AdvancedThreatProtectionResource. + * The state of the outbound rule. * 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; + readonly provisioningState?: string; +} + +/** A private endpoint connection */ +export interface PrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Group IDs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. + * 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 { /** - * Specifies the UTC creation time of the policy. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly properties?: PrivateLinkResourceProperties; } -/** A managed server DNS alias. */ -export interface ManagedServerDnsAlias extends ProxyResource { +/** A recoverable database resource. */ +export interface RecoverableDatabase extends ProxyResource { /** - * The fully qualified DNS record for managed server alias + * The edition of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly edition?: string; /** - * The fully qualified public DNS record for managed server alias + * The service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicAzureDnsRecord?: string; -} - -/** A managed database Advanced Threat Protection. */ -export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { + readonly serviceLevelObjective?: string; /** - * SystemData of AdvancedThreatProtectionResource. + * The elastic pool name of the database * 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; + readonly elasticPoolName?: string; /** - * Specifies the UTC creation time of the policy. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly lastAvailableBackupDate?: Date; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; } -/** 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; +/** A recoverable managed database resource. */ +export interface RecoverableManagedDatabase extends ProxyResource { /** - * Specifies the UTC creation time of the policy. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly lastAvailableBackupDate?: string; } /** A replication link. */ @@ -7454,6 +7548,11 @@ export interface ReplicationLink extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partnerDatabase?: string; + /** + * Resource partner database Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly partnerDatabaseId?: string; /** * Resource partner location. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7501,405 +7600,398 @@ export interface ReplicationLink extends ProxyResource { 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; +/** 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 }; /** - * Source Managed Instance name. + * The name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceManagedInstanceName?: string; + readonly databaseName?: string; /** - * Target Managed Instance name. + * 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 targetManagedInstanceName?: string; + readonly maxSizeBytes?: number; /** - * Source Managed Instance resource id. + * The creation date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceManagedInstanceId?: string; + readonly creationDate?: Date; /** - * Target Managed instance resource id. + * The deletion date of the database (ISO8601 format). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetManagedInstanceId?: string; + readonly deletionDate?: Date; /** - * Source database name. + * 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 sourceDatabaseName?: string; + readonly earliestRestoreDate?: Date; /** - * Target database name. + * 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 targetDatabaseName?: string; + readonly backupStorageRedundancy?: BackupStorageRedundancy; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; +} + +/** Database restore points. */ +export interface RestorePoint extends ProxyResource { /** - * Is move operation cancellable. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly location?: string; /** - * The operation error code. + * The type of restore point * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly restorePointType?: RestorePointType; /** - * The operation error description. + * 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 errorDescription?: string; + readonly earliestRestoreDate?: Date; /** - * The operation error severity. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly restorePointCreationDate?: Date; /** - * Whether or not the error is a user error. + * 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 isUserError?: boolean; + readonly restorePointLabel?: string; } -/** 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[]; +/** A server Advanced Threat Protection. */ +export interface ServerAdvancedThreatProtection extends ProxyResource { /** - * Host name dns suffix of managed instance DTC. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dtcHostNameDnsSuffix?: string; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * Provisioning state of managed instance DTC. + * Specifies the UTC creation time of the policy. * 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[]; + readonly creationTime?: Date; } -/** A refresh DNS servers operation. */ -export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { +/** Server-level Automatic Tuning. */ +export interface ServerAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningServerMode; /** - * The status of the DNS refresh operation. + * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DNSRefreshOperationStatus; + readonly actualState?: AutomaticTuningServerMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningServerOptions }; } -/** An instance failover group. */ -export interface InstanceFailoverGroup extends ProxyResource { - /** Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ - secondaryType?: SecondaryInstanceType; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: InstanceFailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; - /** - * Local replication role of the failover group instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; +/** 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; /** - * Replication state of the failover group instance. + * Azure Active Directory only Authentication enabled. * 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[]; + readonly azureADOnlyAuthentication?: boolean; } -/** 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; +/** Azure Active Directory only authentication. */ +export interface ServerAzureADOnlyAuthentication extends ProxyResource { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** A server configuration option */ +export interface ServerConfigurationOption extends ProxyResource { + /** Value of the server configuration option. */ + serverConfigurationOptionValue?: number; /** - * Current restore plan size MB. + * Provisioning state of server configuration option. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestorePlanSizeMB?: number; + readonly provisioningState?: ProvisioningState; +} + +/** A server connection policy */ +export interface ServerConnectionPolicy extends ProxyResource { /** - * Current backup type. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupType?: string; + readonly location?: string; /** - * Current restoring file name. + * Metadata used for the Azure portal experience. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoringFileName?: string; + readonly kind?: string; + /** The server connection type. */ + connectionType?: ServerConnectionType; +} + +/** A server DevOps auditing settings. */ +export interface ServerDevOpsAuditingSettings extends ProxyResource { /** - * Number of files detected. + * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesDetected?: number; + readonly systemData?: SystemData; /** - * Number of files queued. - * 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 numberOfFilesQueued?: 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; /** - * Number of files skipped. - * 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 numberOfFilesSkipped?: number; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A server DNS alias. */ +export interface ServerDnsAlias extends ProxyResource { /** - * Number of files restoring. + * The fully qualified DNS record for alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestoring?: number; + readonly azureDnsRecord?: string; +} + +/** A server key. */ +export interface ServerKey extends ProxyResource { /** - * Number of files restored. + * 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 numberOfFilesRestored?: number; + readonly kind?: string; /** - * Number of files unrestorable. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesUnrestorable?: number; + readonly location?: string; /** - * Full backup sets. + * Subregion of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + 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. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion' */ + uri?: string; /** - * Diff backup sets. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly thumbprint?: string; /** - * Log backup sets. + * The server key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly creationDate?: Date; /** - * Unrestorable files. + * 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 unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; + readonly autoRotationEnabled?: boolean; } -/** An ImportExport operation result resource. */ -export interface ImportExportOperationResult extends ProxyResource { +/** A server operation. */ +export interface ServerOperation extends ProxyResource { /** - * Request Id. + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly operation?: string; /** - * Request type. + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestType?: string; + readonly operationFriendlyName?: string; /** - * Queued time. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queuedTime?: string; + readonly percentComplete?: number; /** - * Last modified time. + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: string; + readonly serverName?: string; /** - * Blob Uri. + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly blobUri?: string; + readonly startTime?: Date; /** - * Server name. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly state?: ManagementOperationState; /** - * Database name. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly errorCode?: number; /** - * Operation status. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly errorDescription?: string; /** - * Error message. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly errorSeverity?: number; /** - * Gets the status of private endpoints associated with this request. + * 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 privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; -} - -/** 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; + readonly isUserError?: boolean; /** - * Specifies the state of ledger digest upload. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagedLedgerDigestUploadsState; -} - -/** A recoverable database resource. */ -export interface RecoverableDatabase extends ProxyResource { + readonly estimatedCompletionTime?: Date; /** - * The edition of the database. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly edition?: string; + readonly description?: string; /** - * The service level objective name 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 serviceLevelObjective?: string; + readonly isCancellable?: boolean; +} + +/** A server security alert policy. */ +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * The elastic pool name of the database + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: 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; /** - * The last available backup date. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAvailableBackupDate?: Date; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; + readonly creationTime?: Date; } -/** 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 }; +/** 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 name of the database. + * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly thumbprint?: string; /** - * The max size of the database expressed in bytes. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxSizeBytes?: number; + readonly certificateName?: string; +} + +/** 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[]; +} + +/** Usage metric of a server. */ +export interface ServerUsage extends ProxyResource { /** - * The creation date of the database (ISO8601 format). + * 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; /** - * The deletion date of the database (ISO8601 format). + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly currentValue?: number; /** - * The earliest restore date of the database (ISO8601 format). + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly limit?: number; /** - * The storage account type used to store backups for this database. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; - /** The resource ids of the user assigned identities to use */ - keys?: { [propertyName: string]: DatabaseKey }; + readonly unit?: string; } -/** 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; +/** 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 RefreshExternalGovernanceStatus operation result resource. */ @@ -7937,6 +8029,12 @@ export interface RefreshExternalGovernanceStatusOperationResult readonly errorMessage?: string; } +/** A recoverable managed database resource. */ +export interface SqlAgentConfiguration extends ProxyResource { + /** The state of Sql Agent. */ + state?: SqlAgentConfigurationPropertiesState; +} + /** Managed instance's Start/Stop schedule. */ export interface StartStopManagedInstanceSchedule extends ProxyResource { /** @@ -7962,310 +8060,252 @@ export interface StartStopManagedInstanceSchedule extends ProxyResource { readonly nextExecutionTime?: string; } -/** A logical database transparent data encryption state. */ -export interface LogicalDatabaseTransparentDataEncryption - extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; -} - -/** A failover group. */ -export interface FailoverGroup extends ProxyResource { - /** - * Resource location. - * 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; - /** - * Local replication role of the failover group instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationRole?: FailoverGroupReplicationRole; +/** Usage Metric of a Subscription in a Location. */ +export interface SubscriptionUsage extends ProxyResource { /** - * Replication state of the failover group instance. + * User-readable name of the metric. * 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[]; -} - -/** A database sql vulnerability assessment baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSet - extends ProxyResource { + readonly displayName?: string; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. + * Current value of the metric. * 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 { + readonly currentValue?: number; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. + * Boundary value of the metric. * 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 { + readonly limit?: number; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The rule baseline result */ - results?: string[][]; + readonly unit?: 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[][]; +/** Synapse link workspace resource */ +export interface SynapseLinkWorkspace extends ProxyResource { + /** List of all synapselink workspaces */ + workspaces?: SynapseLinkWorkspaceInfoProperties[]; } -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; +/** An Azure SQL Database sync agent. */ +export interface SyncAgent extends ProxyResource { /** - * SQL Vulnerability Assessment error message. + * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly namePropertiesName?: string; + /** ARM resource id of the sync database in the sync agent. */ + syncDatabaseId?: string; /** - * SQL Vulnerability Assessment is the query results trimmed. + * Last alive time of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isTrimmed?: boolean; + readonly lastAliveTime?: Date; /** - * SQL Vulnerability Assessment query results that was run. + * State of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryResults?: string[][]; + readonly state?: SyncAgentState; /** - * SQL Vulnerability Assessment the remediation details. + * 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 remediation?: Remediation; + readonly isUpToDate?: boolean; /** - * SQL Vulnerability Assessment rule result adjusted with baseline. + * Expiration time of the sync agent version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly baselineAdjustedResult?: BaselineAdjustedResult; + readonly expiryTime?: Date; /** - * SQL Vulnerability Assessment rule metadata. + * Version of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleMetadata?: VaRule; + readonly version?: string; } -/** 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; +/** An Azure SQL Database sync agent linked database. */ +export interface SyncAgentLinkedDatabase extends ProxyResource { /** - * The number of total passed rules. + * Type of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalPassedRulesCount?: number; + readonly databaseType?: SyncMemberDbType; /** - * The number of total failed rules. + * Id of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalFailedRulesCount?: number; + readonly databaseId?: string; /** - * The number of total rules assessed. + * Description of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalRulesCount?: number; + readonly description?: string; /** - * Baseline created for this database, and has one or more rules. + * Server name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isBaselineApplied?: boolean; + readonly serverName?: string; /** - * The last scan time. + * Database name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastScanTime?: Date; -} - -/** A SQL Vulnerability Assessment. */ -export interface SqlVulnerabilityAssessment extends ProxyResource { + readonly databaseName?: string; /** - * SystemData of SqlVulnerabilityAssessmentResource. + * User name of the sync agent linked database. * 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; -} - -/** 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; + */ + readonly userName?: string; } -/** An Azure SQL job agent. */ -export interface JobAgent extends TrackedResource { - /** The name and tier of the SKU. */ +/** An Azure SQL Database sync group. */ +export interface SyncGroup extends ProxyResource { + /** The name and capacity of the SKU. */ sku?: Sku; - /** Resource ID of the database to store job metadata in. */ - databaseId?: string; + /** Sync interval of the sync group. */ + interval?: number; /** - * The state of the job agent. + * Last sync time of the sync group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: JobAgentState; + 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; + /** + * Sync state of the sync group. + * 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; } -/** A restorable dropped managed database resource. */ -export interface RestorableDroppedManagedDatabase extends TrackedResource { +/** 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 name 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 databaseName?: string; + 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 creation date of the database (ISO8601 format). + * Sync state of the sync member. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly syncState?: SyncMemberState; +} + +/** Time Zone property. */ +export interface TimeZone extends ProxyResource { /** - * The deletion date of the database (ISO8601 format). + * The time zone id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionDate?: Date; + readonly timeZoneId?: string; /** - * The earliest restore date of the database (ISO8601 format). + * The time zone display name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly displayName?: string; } -/** An Azure SQL virtual cluster. */ -export interface VirtualCluster extends TrackedResource { +/** A logical database transparent data encryption state. */ +export interface LogicalDatabaseTransparentDataEncryption + extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** A refresh DNS servers operation. */ +export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { /** - * Subnet resource ID for the virtual cluster. + * The status of the DNS refresh operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly status?: DNSRefreshOperationStatus; +} + +/** 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; /** - * List of resources in this virtual cluster. + * Virtual Network Rule State * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: 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 database resource. */ @@ -8439,6 +8479,16 @@ export interface Database extends TrackedResource { encryptionProtector?: string; /** Type of enclave requested on the database i.e. Default or VBS enclaves. */ preferredEnclaveType?: AlwaysEncryptedEnclaveType; + /** Whether or not the database uses free monthly limits. Allowed on one database in a subscription. */ + useFreeLimit?: boolean; + /** + * Specifies the behavior when monthly free limits are exhausted for the free database. + * + * AutoPause: The database will be auto paused upon exhaustion of free limits for remainder of the month. + * + * BillForUsage: The database will continue to be online upon exhaustion of free limits and any overage will be billed. + */ + freeLimitExhaustionBehavior?: FreeLimitExhaustionBehavior; /** * The resource identifier of the source associated with the create operation of this database. * @@ -8477,6 +8527,8 @@ export interface Database extends TrackedResource { performCutover?: boolean; /** Specifies the availability zone the database is pinned to. */ availabilityZone?: AvailabilityZoneType; + /** The flag to enable or disable auto rotation of database encryption protector AKV key. */ + encryptionProtectorAutoRotation?: boolean; } /** An elastic pool. */ @@ -8527,6 +8579,31 @@ export interface ElasticPool extends TrackedResource { availabilityZone?: AvailabilityZoneType; } +/** 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; +} + /** A managed database resource. */ export interface ManagedDatabase extends TrackedResource { /** Collation of the managed database. */ @@ -8596,8 +8673,11 @@ export interface ManagedInstance extends TrackedResource { 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; + /** + * Provisioning state of managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** * Specifies the mode of database creation. * @@ -8611,6 +8691,8 @@ export interface ManagedInstance extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly fullyQualifiedDomainName?: string; + /** Whether or not this is a GPv2 variant of General Purpose edition. */ + isGeneralPurposeV2?: boolean; /** 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). */ @@ -8624,10 +8706,21 @@ export interface ManagedInstance extends TrackedResource { 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; + /** Hybrid secondary usage. Possible values are 'Active' (default value) and 'Passive' (customer uses the secondary as Passive DR). */ + hybridSecondaryUsage?: HybridSecondaryUsage; + /** + * Hybrid secondary usage detected. Possible values are 'Active' (customer does not meet the requirements to use the secondary as Passive DR) and 'Passive' (customer meets the requirements to use the secondary as Passive DR). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hybridSecondaryUsageDetected?: HybridSecondaryUsageDetected; /** 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; + /** Storage IOps. Minimum value: 120. Maximum value: 120000. Increments of 1 IOps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageIOps?: number; + /** Storage throughput in MBps. Minimum value: 25. Maximum value: 4000. Increments of 1 MBps allowed only. Maximum value depends on the selected hardware family and number of vCores. */ + storageThroughputMBps?: number; /** Collation of the managed instance. */ collation?: string; /** @@ -8682,6 +8775,47 @@ export interface ManagedInstance extends TrackedResource { administrators?: ManagedInstanceExternalAdministrator; /** The managed instance's service principal. */ servicePrincipal?: ServicePrincipal; + /** + * Virtual cluster resource id for the Managed Instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly virtualClusterId?: string; + /** + * Status of external governance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly externalGovernanceStatus?: ExternalGovernanceStatus; + /** Weather or not Managed Instance is freemium. */ + pricingModel?: FreemiumType; + /** + * Specifies the point in time (ISO8601 format) of the Managed Instance creation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createTime?: Date; +} + +/** 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 Azure SQL Database server. */ @@ -8733,6 +8867,8 @@ export interface Server extends TrackedResource { 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; + /** Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + isIPv6Enabled?: ServerNetworkAccessFlag; /** * Status of external governance. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -8740,6 +8876,22 @@ export interface Server extends TrackedResource { readonly externalGovernanceStatus?: ExternalGovernanceStatus; } +/** An Azure SQL virtual cluster. */ +export interface VirtualCluster extends TrackedResource { + /** + * Subnet resource ID for the virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; + /** + * List of resources in this virtual cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly childResources?: string[]; +} + /** A server firewall rule. */ export interface FirewallRule extends ProxyResourceWithWritableName { /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ @@ -8748,123 +8900,125 @@ export interface FirewallRule extends ProxyResourceWithWritableName { 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 startIpv6Address. */ - endIPv6Address?: 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; +} + +/** Defines headers for FailoverGroups_tryPlannedBeforeForcedFailover operation. */ +export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { + location?: string; +} + +/** Defines headers for ManagedInstances_refreshStatus operation. */ +export interface ManagedInstancesRefreshStatusHeaders { + location?: 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; -/** Defines headers for FailoverGroups_tryPlannedBeforeForcedFailover operation. */ -export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { - location?: string; +/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownShortTermRetentionPolicyName { + /** Default */ + Default = "default" } -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { +/** + * 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 DataMaskingPolicyName} that the service accepts. */ +export enum KnownDataMaskingPolicyName { /** Default */ Default = "Default" } /** - * Defines values for GeoBackupPolicyName. \ - * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, + * Defines values for DataMaskingPolicyName. \ + * {@link KnownDataMaskingPolicyName} can be used interchangeably with DataMaskingPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ -export type GeoBackupPolicyName = string; +export type DataMaskingPolicyName = 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" +/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ +export enum KnownDataWarehouseUserActivityName { + /** Current */ + Current = "current" } /** - * Defines values for UnitType. \ - * {@link KnownUnitType} can be used interchangeably with UnitType, + * 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 - * **count** \ - * **bytes** \ - * **seconds** \ - * **percent** \ - * **countPerSecond** \ - * **bytesPerSecond** + * **current** */ -export type UnitType = string; +export type DataWarehouseUserActivityName = 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" +/** 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 PrimaryAggregationType. \ - * {@link KnownPrimaryAggregationType} can be used interchangeably with PrimaryAggregationType, + * 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 - * **None** \ - * **Average** \ - * **Count** \ - * **Minimum** \ - * **Maximum** \ - * **Total** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type PrimaryAggregationType = string; +export type CreatedByType = 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" +/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ +export enum KnownAdvancedThreatProtectionName { + /** Default */ + Default = "Default" } /** - * Defines values for UnitDefinitionType. \ - * {@link KnownUnitDefinitionType} can be used interchangeably with UnitDefinitionType, + * 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 - * **Count** \ - * **Bytes** \ - * **Seconds** \ - * **Percent** \ - * **CountPerSecond** \ - * **BytesPerSecond** + * **Default** */ -export type UnitDefinitionType = string; +export type AdvancedThreatProtectionName = string; /** Known values of {@link RecommendedActionCurrentState} that the service accepts. */ export enum KnownRecommendedActionCurrentState { @@ -8977,212 +9131,83 @@ export enum KnownColumnDataType { /** Varchar */ Varchar = "varchar", /** Binary */ - Binary = "binary", - /** Char */ - Char = "char", - /** Timestamp */ - Timestamp = "timestamp", - /** Nvarchar */ - Nvarchar = "nvarchar", - /** Nchar */ - Nchar = "nchar", - /** Xml */ - Xml = "xml", - /** Sysname */ - Sysname = "sysname" -} - -/** - * Defines values for ColumnDataType. \ - * {@link KnownColumnDataType} can be used interchangeably with ColumnDataType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **image** \ - * **text** \ - * **uniqueidentifier** \ - * **date** \ - * **time** \ - * **datetime2** \ - * **datetimeoffset** \ - * **tinyint** \ - * **smallint** \ - * **int** \ - * **smalldatetime** \ - * **real** \ - * **money** \ - * **datetime** \ - * **float** \ - * **sql_variant** \ - * **ntext** \ - * **bit** \ - * **decimal** \ - * **numeric** \ - * **smallmoney** \ - * **bigint** \ - * **hierarchyid** \ - * **geometry** \ - * **geography** \ - * **varbinary** \ - * **varchar** \ - * **binary** \ - * **char** \ - * **timestamp** \ - * **nvarchar** \ - * **nchar** \ - * **xml** \ - * **sysname** - */ -export type ColumnDataType = string; - -/** Known values of {@link TableTemporalType} that the service accepts. */ -export enum KnownTableTemporalType { - /** NonTemporalTable */ - NonTemporalTable = "NonTemporalTable", - /** HistoryTable */ - HistoryTable = "HistoryTable", - /** SystemVersionedTemporalTable */ - SystemVersionedTemporalTable = "SystemVersionedTemporalTable" -} - -/** - * Defines values for TableTemporalType. \ - * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NonTemporalTable** \ - * **HistoryTable** \ - * **SystemVersionedTemporalTable** - */ -export type TableTemporalType = string; - -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { - /** Default */ - Default = "Default" -} - -/** - * Defines values for SecurityAlertPolicyName. \ - * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** - */ -export type SecurityAlertPolicyName = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ -export enum KnownVulnerabilityAssessmentName { - /** Default */ - Default = "default" -} - -/** - * Defines values for VulnerabilityAssessmentName. \ - * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type VulnerabilityAssessmentName = string; - -/** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanTriggerType { - /** OnDemand */ - OnDemand = "OnDemand", - /** Recurring */ - Recurring = "Recurring" -} - -/** - * Defines values for VulnerabilityAssessmentScanTriggerType. \ - * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OnDemand** \ - * **Recurring** - */ -export type VulnerabilityAssessmentScanTriggerType = string; - -/** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ -export enum KnownVulnerabilityAssessmentScanState { - /** Passed */ - Passed = "Passed", - /** Failed */ - Failed = "Failed", - /** FailedToRun */ - FailedToRun = "FailedToRun", - /** InProgress */ - InProgress = "InProgress" -} - -/** - * Defines values for VulnerabilityAssessmentScanState. \ - * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Passed** \ - * **Failed** \ - * **FailedToRun** \ - * **InProgress** - */ -export type VulnerabilityAssessmentScanState = string; - -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - /** Current */ - Current = "current" + Binary = "binary", + /** Char */ + Char = "char", + /** Timestamp */ + Timestamp = "timestamp", + /** Nvarchar */ + Nvarchar = "nvarchar", + /** Nchar */ + Nchar = "nchar", + /** Xml */ + Xml = "xml", + /** Sysname */ + Sysname = "sysname" } /** - * Defines values for DataWarehouseUserActivityName. \ - * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * 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 - * **current** + * **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 DataWarehouseUserActivityName = string; +export type ColumnDataType = string; -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - /** ServiceManaged */ - ServiceManaged = "ServiceManaged", - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link TableTemporalType} that the service accepts. */ +export enum KnownTableTemporalType { + /** NonTemporalTable */ + NonTemporalTable = "NonTemporalTable", + /** HistoryTable */ + HistoryTable = "HistoryTable", + /** SystemVersionedTemporalTable */ + SystemVersionedTemporalTable = "SystemVersionedTemporalTable" } /** - * Defines values for ServerKeyType. \ - * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * 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 - * **ServiceManaged** \ - * **AzureKeyVault** + * **NonTemporalTable** \ + * **HistoryTable** \ + * **SystemVersionedTemporalTable** */ -export type ServerKeyType = string; +export type TableTemporalType = string; /** Known values of {@link EncryptionProtectorName} that the service accepts. */ export enum KnownEncryptionProtectorName { @@ -9199,1028 +9224,1088 @@ export enum KnownEncryptionProtectorName { */ export type EncryptionProtectorName = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link OperationMode} that the service accepts. */ +export enum KnownOperationMode { + /** PolybaseImport */ + PolybaseImport = "PolybaseImport", + /** Import */ + Import = "Import", + /** Export */ + Export = "Export" } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **PolybaseImport** \ + * **Import** \ + * **Export** */ -export type InstancePoolLicenseType = string; +export type OperationMode = 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 StorageKeyType} that the service accepts. */ +export enum KnownStorageKeyType { + /** SharedAccessKey */ + SharedAccessKey = "SharedAccessKey", + /** StorageAccessKey */ + StorageAccessKey = "StorageAccessKey" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * 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 - * **Creating** \ - * **Ready** \ - * **Updating** \ - * **Deleting** \ - * **Disabled** + * **SharedAccessKey** \ + * **StorageAccessKey** */ -export type JobAgentState = string; +export type StorageKeyType = string; -/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ -export enum KnownJobExecutionLifecycle { - /** Created */ - Created = "Created", +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + /** Pending */ + Pending = "Pending", /** 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" + /** CancelInProgress */ + CancelInProgress = "CancelInProgress", + /** Cancelled */ + Cancelled = "Cancelled" } /** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, + * 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 - * **Created** \ + * **Pending** \ * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ * **Succeeded** \ - * **SucceededWithSkipped** \ * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** + * **CancelInProgress** \ + * **Cancelled** */ -export type JobExecutionLifecycle = string; +export type ManagementOperationState = 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" +/** Known values of {@link Phase} that the service accepts. */ +export enum KnownPhase { + /** Copying */ + Copying = "Copying", + /** Catchup */ + Catchup = "Catchup", + /** WaitingForCutover */ + WaitingForCutover = "WaitingForCutover", + /** CutoverInProgress */ + CutoverInProgress = "CutoverInProgress" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * Defines values for Phase. \ + * {@link KnownPhase} can be used interchangeably with Phase, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Created** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Copying** \ + * **Catchup** \ + * **WaitingForCutover** \ + * **CutoverInProgress** */ -export type ProvisioningState = string; +export type Phase = 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" +/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ +export enum KnownSecurityAlertPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for JobTargetType. \ - * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, + * 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 - * **TargetGroup** \ - * **SqlDatabase** \ - * **SqlElasticPool** \ - * **SqlShardMap** \ - * **SqlServer** + * **default** */ -export type JobTargetType = string; +export type SecurityAlertPolicyName = string; -/** Known values of {@link JobStepActionType} that the service accepts. */ -export enum KnownJobStepActionType { - /** TSql */ - TSql = "TSql" +/** 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 BaselineName} that the service accepts. */ +export enum KnownBaselineName { + /** Default */ + Default = "default" +} + +/** + * 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 + * **default** + */ +export type BaselineName = string; + +/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSqlVulnerabilityAssessmentName { + /** Default */ + Default = "default" } /** - * Defines values for JobStepActionType. \ - * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * 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 - * **TSql** + * **default** */ -export type JobStepActionType = string; +export type SqlVulnerabilityAssessmentName = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - /** Inline */ - Inline = "Inline" +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** NonFinding */ + NonFinding = "NonFinding", + /** Finding */ + Finding = "Finding", + /** InternalError */ + InternalError = "InternalError" } /** - * Defines values for JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * 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 - * **Inline** + * **NonFinding** \ + * **Finding** \ + * **InternalError** */ -export type JobStepActionSource = string; +export type RuleStatus = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - /** SqlDatabase */ - SqlDatabase = "SqlDatabase" +/** 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 JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * 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 - * **SqlDatabase** + * **High** \ + * **Medium** \ + * **Low** \ + * **Informational** \ + * **Obsolete** */ -export type JobStepOutputType = string; +export type RuleSeverity = 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 RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Binary */ + Binary = "Binary", + /** BaselineExpected */ + BaselineExpected = "BaselineExpected", + /** PositiveList */ + PositiveList = "PositiveList", + /** NegativeList */ + NegativeList = "NegativeList" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * 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 - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Binary** \ + * **BaselineExpected** \ + * **PositiveList** \ + * **NegativeList** */ -export type CapabilityGroup = string; +export type RuleType = 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 VulnerabilityAssessmentScanTriggerType} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanTriggerType { + /** OnDemand */ + OnDemand = "OnDemand", + /** Recurring */ + Recurring = "Recurring" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **OnDemand** \ + * **Recurring** */ -export type MaxSizeUnit = string; +export type VulnerabilityAssessmentScanTriggerType = 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 VulnerabilityAssessmentScanState} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanState { + /** Passed */ + Passed = "Passed", + /** Failed */ + Failed = "Failed", + /** FailedToRun */ + FailedToRun = "FailedToRun", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **Passed** \ + * **Failed** \ + * **FailedToRun** \ + * **InProgress** */ -export type LogSizeUnit = string; +export type VulnerabilityAssessmentScanState = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - /** DTU */ - DTU = "DTU", - /** VCores */ - VCores = "VCores" +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + /** None */ + None = "None", + /** UserAssigned */ + UserAssigned = "UserAssigned" } /** - * Defines values for PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * 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 - * **DTU** \ - * **VCores** + * **None** \ + * **UserAssigned** */ -export type PerformanceLevelUnit = string; +export type DatabaseIdentityType = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - /** Minutes */ - Minutes = "Minutes" +/** 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 PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * 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 - * **Minutes** + * **Default** \ + * **Copy** \ + * **Secondary** \ + * **PointInTimeRestore** \ + * **Restore** \ + * **Recovery** \ + * **RestoreExternalBackup** \ + * **RestoreExternalBackupSecondary** \ + * **RestoreLongTermRetentionBackup** \ + * **OnlineSecondary** */ -export type PauseDelayTimeUnit = string; +export type CreateMode = 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 SampleName} that the service accepts. */ +export enum KnownSampleName { + /** AdventureWorksLT */ + AdventureWorksLT = "AdventureWorksLT", + /** WideWorldImportersStd */ + WideWorldImportersStd = "WideWorldImportersStd", + /** WideWorldImportersFull */ + WideWorldImportersFull = "WideWorldImportersFull" } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * 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 - * **GRS** \ - * **LRS** \ - * **ZRS** + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** */ -export type StorageCapabilityStorageAccountType = string; - -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - /** Default */ - Default = "default" +export type SampleName = string; + +/** 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 LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * 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 - * **default** + * **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 LongTermRetentionPolicyName = string; +export type DatabaseStatus = 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 CatalogCollationType} that the service accepts. */ +export enum KnownCatalogCollationType { + /** DatabaseDefault */ + DatabaseDefault = "DATABASE_DEFAULT", + /** SQLLatin1GeneralCP1CIAS */ + SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } /** - * Defines values for DayOfWeek. \ - * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * 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 - * **Sunday** \ - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** */ -export type DayOfWeek = string; +export type CatalogCollationType = string; -/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for ManagedShortTermRetentionPolicyName. \ - * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * 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 - * **default** + * **LicenseIncluded** \ + * **BasePrice** */ -export type ManagedShortTermRetentionPolicyName = string; +export type DatabaseLicenseType = string; -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - /** PT1H */ - PT1H = "PT1H", - /** P1D */ - P1D = "P1D" +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for QueryTimeGrainType. \ - * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * 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 - * **PT1H** \ - * **P1D** + * **Enabled** \ + * **Disabled** */ -export type QueryTimeGrainType = string; +export type DatabaseReadScale = 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" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + /** Geo */ + Geo = "Geo", + /** Named */ + Named = "Named", + /** Standby */ + Standby = "Standby" } /** - * Defines values for QueryMetricUnitType. \ - * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * 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 - * **percentage** \ - * **KB** \ - * **microseconds** \ - * **count** + * **Geo** \ + * **Named** \ + * **Standby** */ -export type QueryMetricUnitType = string; +export type SecondaryType = string; -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - /** Current */ - Current = "current" +/** 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 TransparentDataEncryptionName. \ - * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, + * 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 - * **current** + * **Geo** \ + * **Local** \ + * **Zone** \ + * **GeoZone** */ -export type TransparentDataEncryptionName = string; +export type BackupStorageRedundancy = string; -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link DatabaseKeyType} that the service accepts. */ +export enum KnownDatabaseKeyType { + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for ManagedInstanceAdministratorType. \ - * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * Defines values for DatabaseKeyType. \ + * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **AzureKeyVault** */ -export type ManagedInstanceAdministratorType = string; +export type DatabaseKeyType = string; -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ +export enum KnownAlwaysEncryptedEnclaveType { + /** Default */ + Default = "Default", + /** VBS */ + VBS = "VBS" } /** - * Defines values for AdministratorName. \ - * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * Defines values for AlwaysEncryptedEnclaveType. \ + * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, * 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" + * **Default** \ + * **VBS** + */ +export type AlwaysEncryptedEnclaveType = string; + +/** Known values of {@link FreeLimitExhaustionBehavior} that the service accepts. */ +export enum KnownFreeLimitExhaustionBehavior { + /** AutoPause */ + AutoPause = "AutoPause", + /** BillOverUsage */ + BillOverUsage = "BillOverUsage" } /** - * Defines values for AuthenticationName. \ - * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, + * Defines values for FreeLimitExhaustionBehavior. \ + * {@link KnownFreeLimitExhaustionBehavior} can be used interchangeably with FreeLimitExhaustionBehavior, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **AutoPause** \ + * **BillOverUsage** */ -export type AuthenticationName = string; +export type FreeLimitExhaustionBehavior = string; -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link AvailabilityZoneType} that the service accepts. */ +export enum KnownAvailabilityZoneType { + /** NoPreference */ + NoPreference = "NoPreference", + /** One */ + One = "1", + /** Two */ + Two = "2", + /** Three */ + Three = "3" } /** - * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ - * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * Defines values for AvailabilityZoneType. \ + * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **NoPreference** \ + * **1** \ + * **2** \ + * **3** */ -export type ManagedInstanceLongTermRetentionPolicyName = string; +export type AvailabilityZoneType = 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" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + /** Primary */ + Primary = "Primary", + /** ReadableSecondary */ + ReadableSecondary = "ReadableSecondary" } /** - * Defines values for ManagementOperationState. \ - * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * 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 - * **Pending** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **CancelInProgress** \ - * **Cancelled** + * **Primary** \ + * **ReadableSecondary** */ -export type ManagementOperationState = string; +export type ReplicaType = 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" +/** Known values of {@link ReplicationModeType} that the service accepts. */ +export enum KnownReplicationModeType { + /** Async */ + Async = "Async", + /** Sync */ + Sync = "Sync" } /** - * Defines values for UpsertManagedServerOperationStepStatus. \ - * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, + * Defines values for ReplicationModeType. \ + * {@link KnownReplicationModeType} can be used interchangeably with ReplicationModeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotStarted** \ - * **InProgress** \ - * **SlowedDown** \ - * **Completed** \ - * **Failed** \ - * **Canceled** + * **Async** \ + * **Sync** */ -export type UpsertManagedServerOperationStepStatus = string; +export type ReplicationModeType = string; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - /** User */ - User = "user", - /** System */ - System = "system" +/** Known values of {@link LinkRole} that the service accepts. */ +export enum KnownLinkRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for OperationOrigin. \ - * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, + * Defines values for LinkRole. \ + * {@link KnownLinkRole} can be used interchangeably with LinkRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **user** \ - * **system** + * **Primary** \ + * **Secondary** */ -export type OperationOrigin = string; +export type LinkRole = 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" +/** Known values of {@link ReplicaSynchronizationHealth} that the service accepts. */ +export enum KnownReplicaSynchronizationHealth { + /** NOTHealthy */ + NOTHealthy = "NOT_HEALTHY", + /** PartiallyHealthy */ + PartiallyHealthy = "PARTIALLY_HEALTHY", + /** Healthy */ + Healthy = "HEALTHY" } /** - * Defines values for PrivateLinkServiceConnectionStateStatus. \ - * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, + * Defines values for ReplicaSynchronizationHealth. \ + * {@link KnownReplicaSynchronizationHealth} can be used interchangeably with ReplicaSynchronizationHealth, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **NOT_HEALTHY** \ + * **PARTIALLY_HEALTHY** \ + * **HEALTHY** */ -export type PrivateLinkServiceConnectionStateStatus = string; +export type ReplicaSynchronizationHealth = string; -/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - /** None */ - None = "None" +/** Known values of {@link ReplicaConnectedState} that the service accepts. */ +export enum KnownReplicaConnectedState { + /** Disconnected */ + Disconnected = "DISCONNECTED", + /** Connected */ + Connected = "CONNECTED" } /** - * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ - * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, + * Defines values for ReplicaConnectedState. \ + * {@link KnownReplicaConnectedState} can be used interchangeably with ReplicaConnectedState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** + * **DISCONNECTED** \ + * **CONNECTED** */ -export type PrivateLinkServiceConnectionStateActionsRequire = string; +export type ReplicaConnectedState = 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" +/** Known values of {@link InstanceRole} that the service accepts. */ +export enum KnownInstanceRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for PrivateEndpointProvisioningState. \ - * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, + * Defines values for InstanceRole. \ + * {@link KnownInstanceRole} can be used interchangeably with InstanceRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Approving** \ - * **Ready** \ - * **Dropping** \ - * **Failed** \ - * **Rejecting** + * **Primary** \ + * **Secondary** */ -export type PrivateEndpointProvisioningState = string; +export type InstanceRole = string; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link RoleChangeType} that the service accepts. */ +export enum KnownRoleChangeType { + /** Forced */ + Forced = "Forced", + /** Planned */ + Planned = "Planned" } /** - * Defines values for AdministratorType. \ - * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, + * Defines values for RoleChangeType. \ + * {@link KnownRoleChangeType} can be used interchangeably with RoleChangeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **Forced** \ + * **Planned** */ -export type AdministratorType = string; +export type RoleChangeType = string; -/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ -export enum KnownDevOpsAuditingSettingsName { - /** Default */ - Default = "Default" +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for DevOpsAuditingSettingsName. \ - * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, + * 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 - * **Default** + * **Creating** \ + * **Ready** \ + * **Disabled** */ -export type DevOpsAuditingSettingsName = string; +export type ElasticPoolState = string; -/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ -export enum KnownServerTrustGroupPropertiesTrustScopesItem { - /** GlobalTransactions */ - GlobalTransactions = "GlobalTransactions", - /** ServiceBroker */ - ServiceBroker = "ServiceBroker" +/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ +export enum KnownElasticPoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for ServerTrustGroupPropertiesTrustScopesItem. \ - * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, + * 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 - * **GlobalTransactions** \ - * **ServiceBroker** + * **LicenseIncluded** \ + * **BasePrice** */ -export type ServerTrustGroupPropertiesTrustScopesItem = string; +export type ElasticPoolLicenseType = string; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + /** ServiceManaged */ + ServiceManaged = "ServiceManaged", + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for SqlAgentConfigurationPropertiesState. \ - * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, + * 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 - * **Enabled** \ - * **Disabled** + * **ServiceManaged** \ + * **AzureKeyVault** */ -export type SqlAgentConfigurationPropertiesState = string; +export type ServerKeyType = string; -/** Known values of {@link SyncAgentState} that the service accepts. */ -export enum KnownSyncAgentState { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** NeverConnected */ - NeverConnected = "NeverConnected" +/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadWriteEndpointFailoverPolicy { + /** Manual */ + Manual = "Manual", + /** Automatic */ + Automatic = "Automatic" } /** - * Defines values for SyncAgentState. \ - * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * 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 - * **Online** \ - * **Offline** \ - * **NeverConnected** + * ### Known values supported by the service + * **Manual** \ + * **Automatic** */ -export type SyncAgentState = string; +export type ReadWriteEndpointFailoverPolicy = string; -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - /** AzureSqlDatabase */ - AzureSqlDatabase = "AzureSqlDatabase", - /** SqlServerDatabase */ - SqlServerDatabase = "SqlServerDatabase" +/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadOnlyEndpointFailoverPolicy { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" } /** - * Defines values for SyncMemberDbType. \ - * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * 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 - * **AzureSqlDatabase** \ - * **SqlServerDatabase** + * **Disabled** \ + * **Enabled** */ -export type SyncMemberDbType = string; +export type ReadOnlyEndpointFailoverPolicy = 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" +/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for SyncGroupsType. \ - * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Primary** \ + * **Secondary** */ -export type SyncGroupsType = string; +export type FailoverGroupReplicationRole = 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" +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + /** Default */ + Default = "Default" } /** - * Defines values for SyncGroupLogType. \ - * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Default** */ -export type SyncGroupLogType = string; +export type GeoBackupPolicyName = string; -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - /** HubWin */ - HubWin = "HubWin", - /** MemberWin */ - MemberWin = "MemberWin" +/** Known values of {@link SecondaryInstanceType} that the service accepts. */ +export enum KnownSecondaryInstanceType { + /** Geo */ + Geo = "Geo", + /** Standby */ + Standby = "Standby" } /** - * Defines values for SyncConflictResolutionPolicy. \ - * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * Defines values for SecondaryInstanceType. \ + * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HubWin** \ - * **MemberWin** + * **Geo** \ + * **Standby** */ -export type SyncConflictResolutionPolicy = string; +export type SecondaryInstanceType = 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" +/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ +export enum KnownInstanceFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for SyncGroupState. \ - * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, + * 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 - * **NotReady** \ - * **Error** \ - * **Warning** \ - * **Progressing** \ - * **Good** + * **Primary** \ + * **Secondary** */ -export type SyncGroupState = string; +export type InstanceFailoverGroupReplicationRole = string; -/** Known values of {@link SyncDirection} that the service accepts. */ -export enum KnownSyncDirection { - /** Bidirectional */ - Bidirectional = "Bidirectional", - /** OneWayMemberToHub */ - OneWayMemberToHub = "OneWayMemberToHub", - /** OneWayHubToMember */ - OneWayHubToMember = "OneWayHubToMember" +/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for SyncDirection. \ - * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, + * 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 - * **Bidirectional** \ - * **OneWayMemberToHub** \ - * **OneWayHubToMember** + * **LicenseIncluded** \ + * **BasePrice** */ -export type SyncDirection = string; +export type InstancePoolLicenseType = 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" +/** 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 SyncMemberState. \ - * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, + * 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 - * **SyncInProgress** \ - * **SyncSucceeded** \ - * **SyncFailed** \ - * **DisabledTombstoneCleanup** \ - * **DisabledBackupRestore** \ - * **SyncSucceededWithWarnings** \ - * **SyncCancelling** \ - * **SyncCancelled** \ - * **UnProvisioned** \ - * **Provisioning** \ - * **Provisioned** \ - * **ProvisionFailed** \ - * **DeProvisioning** \ - * **DeProvisioned** \ - * **DeProvisionFailed** \ - * **Reprovisioning** \ - * **ReprovisionFailed** \ - * **UnReprovisioned** + * **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 SyncMemberState = string; +export type JobExecutionLifecycle = string; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - /** Initializing */ - Initializing = "Initializing", +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Created */ + Created = "Created", /** InProgress */ InProgress = "InProgress", - /** Ready */ - Ready = "Ready", + /** Succeeded */ + Succeeded = "Succeeded", /** Failed */ Failed = "Failed", - /** Deleting */ - Deleting = "Deleting", - /** Unknown */ - Unknown = "Unknown" + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for VirtualNetworkRuleState. \ - * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, + * 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 - * **Initializing** \ + * **Created** \ * **InProgress** \ - * **Ready** \ + * **Succeeded** \ * **Failed** \ - * **Deleting** \ - * **Unknown** + * **Canceled** */ -export type VirtualNetworkRuleState = string; +export type ProvisioningState = string; -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** 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 ShortTermRetentionPolicyName. \ - * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * 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 - * **default** + * **TargetGroup** \ + * **SqlDatabase** \ + * **SqlElasticPool** \ + * **SqlShardMap** \ + * **SqlServer** */ -export type ShortTermRetentionPolicyName = string; +export type JobTargetType = string; -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - /** Twelve */ - Twelve = 12, - /** TwentyFour */ - TwentyFour = 24 +/** Known values of {@link JobStepActionType} that the service accepts. */ +export enum KnownJobStepActionType { + /** TSql */ + TSql = "TSql" } /** - * Defines values for DiffBackupIntervalInHours. \ - * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * 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 - * **12** \ - * **24** + * **TSql** */ -export type DiffBackupIntervalInHours = number; +export type JobStepActionType = string; -/** Known values of {@link OperationMode} that the service accepts. */ -export enum KnownOperationMode { - /** PolybaseImport */ - PolybaseImport = "PolybaseImport" +/** Known values of {@link JobStepActionSource} that the service accepts. */ +export enum KnownJobStepActionSource { + /** Inline */ + Inline = "Inline" } /** - * Defines values for OperationMode. \ - * {@link KnownOperationMode} can be used interchangeably with OperationMode, + * 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 - * **PolybaseImport** + * **Inline** */ -export type OperationMode = string; +export type JobStepActionSource = string; -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - /** SharedAccessKey */ - SharedAccessKey = "SharedAccessKey", - /** StorageAccessKey */ - StorageAccessKey = "StorageAccessKey" +/** Known values of {@link JobStepOutputType} that the service accepts. */ +export enum KnownJobStepOutputType { + /** SqlDatabase */ + SqlDatabase = "SqlDatabase" } /** - * Defines values for StorageKeyType. \ - * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * 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 - * **SharedAccessKey** \ - * **StorageAccessKey** + * **SqlDatabase** */ -export type StorageKeyType = string; +export type JobStepOutputType = string; /** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ export enum KnownLedgerDigestUploadsName { @@ -10237,29 +10322,140 @@ export enum KnownLedgerDigestUploadsName { */ export type LedgerDigestUploadsName = 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" +/** 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", + /** Gzrs */ + Gzrs = "GZRS" } /** - * Defines values for BackupStorageRedundancy. \ - * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, + * 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 - * **Geo** \ - * **Local** \ - * **Zone** \ - * **GeoZone** + * **GRS** \ + * **LRS** \ + * **ZRS** \ + * **GZRS** */ -export type BackupStorageRedundancy = string; +export type StorageCapabilityStorageAccountType = string; /** Known values of {@link DatabaseState} that the service accepts. */ export enum KnownDatabaseState { @@ -10282,446 +10478,383 @@ export enum KnownDatabaseState { */ export type DatabaseState = string; -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { /** Default */ Default = "default" } /** - * Defines values for ConnectionPolicyName. \ - * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, + * 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 ConnectionPolicyName = string; +export type LongTermRetentionPolicyName = string; -/** Known values of {@link ServerConnectionType} that the service accepts. */ -export enum KnownServerConnectionType { - /** Default */ - Default = "Default", - /** Redirect */ - Redirect = "Redirect", - /** Proxy */ - Proxy = "Proxy" +/** 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 ServerConnectionType. \ - * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, + * 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 - * **Default** \ - * **Redirect** \ - * **Proxy** + * **Sunday** \ + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** */ -export type ServerConnectionType = string; +export type DayOfWeek = string; -/** Known values of {@link ReplicationMode} that the service accepts. */ -export enum KnownReplicationMode { - /** Async */ - Async = "Async", - /** Sync */ - Sync = "Sync" +/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedShortTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for ReplicationMode. \ - * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, + * 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 - * **Async** \ - * **Sync** + * **default** */ -export type ReplicationMode = string; +export type ManagedShortTermRetentionPolicyName = string; -/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ -export enum KnownAdvancedThreatProtectionName { - /** Default */ - Default = "Default" +/** Known values of {@link MoveOperationMode} that the service accepts. */ +export enum KnownMoveOperationMode { + /** Move */ + Move = "Move", + /** Copy */ + Copy = "Copy" } /** - * Defines values for AdvancedThreatProtectionName. \ - * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, + * Defines values for MoveOperationMode. \ + * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Move** \ + * **Copy** */ -export type AdvancedThreatProtectionName = string; +export type MoveOperationMode = string; -/** 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" +/** Known values of {@link QueryTimeGrainType} that the service accepts. */ +export enum KnownQueryTimeGrainType { + /** PT1H */ + PT1H = "PT1H", + /** P1D */ + P1D = "P1D" } /** - * Defines values for ReplicationState. \ - * {@link KnownReplicationState} can be used interchangeably with ReplicationState, + * 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 - * **PENDING** \ - * **SEEDING** \ - * **CATCH_UP** \ - * **SUSPENDED** + * **PT1H** \ + * **P1D** */ -export type ReplicationState = string; +export type QueryTimeGrainType = string; -/** Known values of {@link ReplicationLinkType} that the service accepts. */ -export enum KnownReplicationLinkType { - /** GEO */ - GEO = "GEO", - /** Named */ - Named = "NAMED", - /** Standby */ - Standby = "STANDBY" +/** 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 ReplicationLinkType. \ - * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, + * 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 - * **GEO** \ - * **NAMED** \ - * **STANDBY** + * **percentage** \ + * **KB** \ + * **microseconds** \ + * **count** */ -export type ReplicationLinkType = string; +export type QueryMetricUnitType = string; -/** Known values of {@link MoveOperationMode} that the service accepts. */ -export enum KnownMoveOperationMode { - /** Move */ - Move = "Move", - /** Copy */ - Copy = "Copy" +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { + /** Default */ + Default = "Default" } /** - * Defines values for MoveOperationMode. \ - * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, + * 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 - * **Move** \ - * **Copy** + * **Default** */ -export type MoveOperationMode = string; +export type RestoreDetailsName = string; -/** Known values of {@link DtcName} that the service accepts. */ -export enum KnownDtcName { +/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { /** Current */ Current = "current" } /** - * Defines values for DtcName. \ - * {@link KnownDtcName} can be used interchangeably with DtcName, + * 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 DtcName = string; - -/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ -export enum KnownDNSRefreshOperationStatus { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" -} - -/** - * 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 - * **Succeeded** \ - * **Failed** \ - * **InProgress** - */ -export type DNSRefreshOperationStatus = string; +export type TransparentDataEncryptionName = string; -/** Known values of {@link SecondaryInstanceType} that the service accepts. */ -export enum KnownSecondaryInstanceType { - /** Geo */ - Geo = "Geo", - /** Standby */ - Standby = "Standby" +/** 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", + /** Stopping */ + Stopping = "Stopping", + /** Stopped */ + Stopped = "Stopped", + /** Starting */ + Starting = "Starting", + /** DbMoving */ + DbMoving = "DbMoving", + /** DbCopying */ + DbCopying = "DbCopying" } /** - * Defines values for SecondaryInstanceType. \ - * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, + * 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 - * **Geo** \ - * **Standby** + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** \ + * **DbMoving** \ + * **DbCopying** */ -export type SecondaryInstanceType = string; +export type ManagedDatabaseStatus = string; -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - /** Manual */ - Manual = "Manual", - /** Automatic */ - Automatic = "Automatic" +/** 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 ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, + * 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 - * **Manual** \ - * **Automatic** + * **Default** \ + * **RestoreExternalBackup** \ + * **PointInTimeRestore** \ + * **Recovery** \ + * **RestoreLongTermRetentionBackup** */ -export type ReadWriteEndpointFailoverPolicy = string; +export type ManagedDatabaseCreateMode = string; -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" +/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ +export enum KnownManagedInstanceAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * 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 - * **Disabled** \ - * **Enabled** + * **ActiveDirectory** */ -export type ReadOnlyEndpointFailoverPolicy = string; +export type ManagedInstanceAdministratorType = string; -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link AdministratorName} that the service accepts. */ +export enum KnownAdministratorName { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **ActiveDirectory** */ -export type InstanceFailoverGroupReplicationRole = string; +export type AdministratorName = string; -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { +/** Known values of {@link AuthenticationName} that the service accepts. */ +export enum KnownAuthenticationName { /** Default */ Default = "Default" } /** - * Defines values for RestoreDetailsName. \ - * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * 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 RestoreDetailsName = string; +export type AuthenticationName = string; -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { - /** None */ - None = "None", - /** UserAssigned */ - UserAssigned = "UserAssigned" +/** Known values of {@link DtcName} that the service accepts. */ +export enum KnownDtcName { + /** Current */ + Current = "current" } /** - * Defines values for DatabaseIdentityType. \ - * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, + * 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 - * **None** \ - * **UserAssigned** + * **current** */ -export type DatabaseIdentityType = string; +export type DtcName = string; -/** Known values of {@link CreateMode} that the service accepts. */ -export enum KnownCreateMode { +/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedInstanceLongTermRetentionPolicyName { /** 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" + Default = "default" } /** - * Defines values for SampleName. \ - * {@link KnownSampleName} can be used interchangeably with SampleName, + * 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 - * **AdventureWorksLT** \ - * **WideWorldImportersStd** \ - * **WideWorldImportersFull** + * **default** */ -export type SampleName = string; +export type ManagedInstanceLongTermRetentionPolicyName = string; -/** 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" +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** NotStarted */ + NotStarted = "NotStarted", + /** InProgress */ + InProgress = "InProgress", + /** SlowedDown */ + SlowedDown = "SlowedDown", + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for DatabaseStatus. \ - * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, * 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** + * **NotStarted** \ + * **InProgress** \ + * **SlowedDown** \ + * **Completed** \ + * **Failed** \ + * **Canceled** */ -export type DatabaseStatus = string; +export type Status = string; -/** Known values of {@link CatalogCollationType} that the service accepts. */ -export enum KnownCatalogCollationType { - /** DatabaseDefault */ - DatabaseDefault = "DATABASE_DEFAULT", - /** SQLLatin1GeneralCP1CIAS */ - SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" +/** 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 CatalogCollationType. \ - * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * 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 - * **DATABASE_DEFAULT** \ - * **SQL_Latin1_General_CP1_CI_AS** + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** */ -export type CatalogCollationType = string; +export type IdentityType = string; -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { + /** Default */ + Default = "Default", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore" +} + +/** + * 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; + +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ @@ -10729,521 +10862,476 @@ export enum KnownDatabaseLicenseType { } /** - * Defines values for DatabaseLicenseType. \ - * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, + * 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 DatabaseLicenseType = string; +export type ManagedInstanceLicenseType = string; -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link HybridSecondaryUsage} that the service accepts. */ +export enum KnownHybridSecondaryUsage { + /** Active */ + Active = "Active", + /** Passive */ + Passive = "Passive" } /** - * Defines values for DatabaseReadScale. \ - * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, + * Defines values for HybridSecondaryUsage. \ + * {@link KnownHybridSecondaryUsage} can be used interchangeably with HybridSecondaryUsage, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Active** \ + * **Passive** */ -export type DatabaseReadScale = string; +export type HybridSecondaryUsage = string; -/** Known values of {@link SecondaryType} that the service accepts. */ -export enum KnownSecondaryType { - /** Geo */ - Geo = "Geo", - /** Named */ - Named = "Named", - /** Standby */ - Standby = "Standby" +/** Known values of {@link HybridSecondaryUsageDetected} that the service accepts. */ +export enum KnownHybridSecondaryUsageDetected { + /** Active */ + Active = "Active", + /** Passive */ + Passive = "Passive" } /** - * Defines values for SecondaryType. \ - * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, + * Defines values for HybridSecondaryUsageDetected. \ + * {@link KnownHybridSecondaryUsageDetected} can be used interchangeably with HybridSecondaryUsageDetected, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Geo** \ - * **Named** \ - * **Standby** + * **Active** \ + * **Passive** */ -export type SecondaryType = string; +export type HybridSecondaryUsageDetected = string; -/** Known values of {@link DatabaseKeyType} that the service accepts. */ -export enum KnownDatabaseKeyType { - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + /** Proxy */ + Proxy = "Proxy", + /** Redirect */ + Redirect = "Redirect", + /** Default */ + Default = "Default" } /** - * Defines values for DatabaseKeyType. \ - * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, + * 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 - * **AzureKeyVault** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type DatabaseKeyType = string; +export type ManagedInstanceProxyOverride = string; -/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ -export enum KnownAlwaysEncryptedEnclaveType { - /** Default */ - Default = "Default", - /** VBS */ - VBS = "VBS" +/** Known values of {@link AdministratorType} that the service accepts. */ +export enum KnownAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for AlwaysEncryptedEnclaveType. \ - * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, + * 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 - * **Default** \ - * **VBS** + * **ActiveDirectory** */ -export type AlwaysEncryptedEnclaveType = string; +export type AdministratorType = string; -/** Known values of {@link AvailabilityZoneType} that the service accepts. */ -export enum KnownAvailabilityZoneType { - /** NoPreference */ - NoPreference = "NoPreference", - /** One */ - One = "1", - /** Two */ - Two = "2", - /** Three */ - Three = "3" +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + /** User */ + User = "User", + /** Group */ + Group = "Group", + /** Application */ + Application = "Application" } /** - * Defines values for AvailabilityZoneType. \ - * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, + * 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 - * **NoPreference** \ - * **1** \ - * **2** \ - * **3** + * **User** \ + * **Group** \ + * **Application** */ -export type AvailabilityZoneType = string; +export type PrincipalType = string; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - /** Primary */ - Primary = "Primary", - /** ReadableSecondary */ - ReadableSecondary = "ReadableSecondary" +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned" } /** - * Defines values for ReplicaType. \ - * {@link KnownReplicaType} can be used interchangeably with ReplicaType, + * 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 - * **Primary** \ - * **ReadableSecondary** + * **None** \ + * **SystemAssigned** */ -export type ReplicaType = string; +export type ServicePrincipalType = string; -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - /** Creating */ - Creating = "Creating", - /** Ready */ - Ready = "Ready", +/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ +export enum KnownExternalGovernanceStatus { + /** Enabled */ + Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, + * Defines values for ExternalGovernanceStatus. \ + * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, * 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 ExternalGovernanceStatus = string; -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link FreemiumType} that the service accepts. */ +export enum KnownFreemiumType { + /** Regular */ + Regular = "Regular", + /** Freemium */ + Freemium = "Freemium" +} + +/** + * Defines values for FreemiumType. \ + * {@link KnownFreemiumType} can be used interchangeably with FreemiumType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Regular** \ + * **Freemium** + */ +export type FreemiumType = string; + +/** 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 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; + +/** 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 ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type ElasticPoolLicenseType = string; +export type MetricType = string; -/** Known values of {@link ManagedDatabaseStatus} that the service accepts. */ -export enum KnownManagedDatabaseStatus { - /** Online */ - Online = "Online", - /** Offline */ - Offline = "Offline", - /** Shutdown */ - Shutdown = "Shutdown", - /** Creating */ - Creating = "Creating", - /** Inaccessible */ - Inaccessible = "Inaccessible", - /** Restoring */ - Restoring = "Restoring", - /** Updating */ - Updating = "Updating", - /** Stopping */ - Stopping = "Stopping", - /** Stopped */ - Stopped = "Stopped", - /** Starting */ - Starting = "Starting", - /** DbMoving */ - DbMoving = "DbMoving", - /** DbCopying */ - DbCopying = "DbCopying" +/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for ManagedDatabaseStatus. \ - * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * 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 - * **Online** \ - * **Offline** \ - * **Shutdown** \ - * **Creating** \ - * **Inaccessible** \ - * **Restoring** \ - * **Updating** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** \ - * **DbMoving** \ - * **DbCopying** + * **Enabled** \ + * **Disabled** */ -export type ManagedDatabaseStatus = string; +export type ManagedLedgerDigestUploadsState = string; -/** Known values of {@link ManagedDatabaseCreateMode} that the service accepts. */ -export enum KnownManagedDatabaseCreateMode { - /** Default */ - Default = "Default", - /** RestoreExternalBackup */ - RestoreExternalBackup = "RestoreExternalBackup", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore", - /** Recovery */ - Recovery = "Recovery", - /** RestoreLongTermRetentionBackup */ - RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup" +/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsName { + /** Current */ + Current = "current" } /** - * Defines values for ManagedDatabaseCreateMode. \ - * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * 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** \ - * **RestoreExternalBackup** \ - * **PointInTimeRestore** \ - * **Recovery** \ - * **RestoreLongTermRetentionBackup** + * **current** */ -export type ManagedDatabaseCreateMode = string; +export type ManagedLedgerDigestUploadsName = 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" +/** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */ +export enum KnownSecurityAlertPolicyNameAutoGenerated { + /** Default */ + Default = "Default" } /** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * Defines values for SecurityAlertPolicyNameAutoGenerated. \ + * {@link KnownSecurityAlertPolicyNameAutoGenerated} can be used interchangeably with SecurityAlertPolicyNameAutoGenerated, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** + * **Default** */ -export type IdentityType = string; +export type SecurityAlertPolicyNameAutoGenerated = string; -/** 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" +/** Known values of {@link OperationOrigin} that the service accepts. */ +export enum KnownOperationOrigin { + /** User */ + User = "user", + /** System */ + System = "system" } /** - * Defines values for ManagedInstancePropertiesProvisioningState. \ - * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, + * 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 - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Unknown** \ - * **Succeeded** \ - * **Failed** \ - * **Accepted** \ - * **Created** \ - * **Deleted** \ - * **Unrecognized** \ - * **Running** \ - * **Canceled** \ - * **NotSpecified** \ - * **Registering** \ - * **TimedOut** + * **user** \ + * **system** */ -export type ManagedInstancePropertiesProvisioningState = string; +export type OperationOrigin = string; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { - /** Default */ - Default = "Default", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore" +/** 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 ManagedServerCreateMode. \ - * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, + * 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 - * **Default** \ - * **PointInTimeRestore** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type ManagedServerCreateMode = string; +export type PrivateLinkServiceConnectionStateStatus = string; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateActionsRequire { + /** None */ + None = "None" } /** - * Defines values for ManagedInstanceLicenseType. \ - * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **None** */ -export type ManagedInstanceLicenseType = string; +export type PrivateLinkServiceConnectionStateActionsRequire = string; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - /** Proxy */ - Proxy = "Proxy", - /** Redirect */ - Redirect = "Redirect", - /** Default */ - Default = "Default" +/** 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 ManagedInstanceProxyOverride. \ - * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, + * 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 - * **Proxy** \ - * **Redirect** \ - * **Default** + * **Approving** \ + * **Ready** \ + * **Dropping** \ + * **Failed** \ + * **Rejecting** */ -export type ManagedInstanceProxyOverride = string; +export type PrivateEndpointProvisioningState = string; -/** Known values of {@link PrincipalType} that the service accepts. */ -export enum KnownPrincipalType { - /** User */ - User = "User", - /** Group */ - Group = "Group", - /** Application */ - Application = "Application" +/** 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 PrincipalType. \ - * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, + * 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 - * **User** \ - * **Group** \ - * **Application** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type PrincipalType = string; +export type ReplicationState = string; -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned" +/** Known values of {@link ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + /** GEO */ + GEO = "GEO", + /** Named */ + Named = "NAMED", + /** Standby */ + Standby = "STANDBY" } /** - * Defines values for ServicePrincipalType. \ - * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, + * 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 - * **None** \ - * **SystemAssigned** + * **GEO** \ + * **NAMED** \ + * **STANDBY** */ -export type ServicePrincipalType = string; +export type ReplicationLinkType = string; -/** 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" +/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ +export enum KnownServerConfigurationOptionName { + /** AllowPolybaseExport */ + AllowPolybaseExport = "allowPolybaseExport" } /** - * Defines values for AggregationFunctionType. \ - * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, + * 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 - * **avg** \ - * **min** \ - * **max** \ - * **stdev** \ - * **sum** + * **allowPolybaseExport** */ -export type AggregationFunctionType = string; +export type ServerConfigurationOptionName = string; -/** 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" +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { + /** Default */ + Default = "Default", + /** Redirect */ + Redirect = "Redirect", + /** Proxy */ + Proxy = "Proxy" } /** - * Defines values for MetricType. \ - * {@link KnownMetricType} can be used interchangeably with MetricType, + * 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 - * **cpu** \ - * **io** \ - * **logIo** \ - * **duration** \ - * **dtu** + * **Default** \ + * **Redirect** \ + * **Proxy** */ -export type MetricType = string; +export type ServerConnectionType = string; -/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for ManagedLedgerDigestUploadsState. \ - * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, + * 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 - * **Enabled** \ - * **Disabled** + * **default** */ -export type ManagedLedgerDigestUploadsState = string; +export type ConnectionPolicyName = string; -/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsName { - /** Current */ - Current = "current" +/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ +export enum KnownDevOpsAuditingSettingsName { + /** Default */ + Default = "Default" } /** - * Defines values for ManagedLedgerDigestUploadsName. \ - * {@link KnownManagedLedgerDigestUploadsName} can be used interchangeably with ManagedLedgerDigestUploadsName, + * 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 - * **current** + * **Default** */ -export type ManagedLedgerDigestUploadsName = string; +export type DevOpsAuditingSettingsName = string; -/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ -export enum KnownServerConfigurationOptionName { - /** AllowPolybaseExport */ - AllowPolybaseExport = "allowPolybaseExport" +/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ +export enum KnownServerTrustGroupPropertiesTrustScopesItem { + /** GlobalTransactions */ + GlobalTransactions = "GlobalTransactions", + /** ServiceBroker */ + ServiceBroker = "ServiceBroker" } /** - * Defines values for ServerConfigurationOptionName. \ - * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, + * 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 - * **allowPolybaseExport** + * **GlobalTransactions** \ + * **ServiceBroker** */ -export type ServerConfigurationOptionName = string; +export type ServerTrustGroupPropertiesTrustScopesItem = string; /** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ export enum KnownServerPublicNetworkAccessFlag { @@ -11302,8 +11390,8 @@ export enum KnownServerNetworkAccessFlag { */ export type ServerNetworkAccessFlag = string; -/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ -export enum KnownExternalGovernanceStatus { +/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ +export enum KnownSqlAgentConfigurationPropertiesState { /** Enabled */ Enabled = "Enabled", /** Disabled */ @@ -11311,14 +11399,14 @@ export enum KnownExternalGovernanceStatus { } /** - * Defines values for ExternalGovernanceStatus. \ - * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, + * 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 ExternalGovernanceStatus = string; +export type SqlAgentConfigurationPropertiesState = string; /** Known values of {@link StartStopScheduleName} that the service accepts. */ export enum KnownStartStopScheduleName { @@ -11335,351 +11423,281 @@ export enum KnownStartStopScheduleName { */ export type StartStopScheduleName = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link SyncAgentState} that the service accepts. */ +export enum KnownSyncAgentState { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** NeverConnected */ + NeverConnected = "NeverConnected" } /** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **Online** \ + * **Offline** \ + * **NeverConnected** */ -export type FailoverGroupReplicationRole = string; +export type SyncAgentState = string; -/** Known values of {@link BaselineName} that the service accepts. */ -export enum KnownBaselineName { - /** Default */ - Default = "default" +/** Known values of {@link SyncMemberDbType} that the service accepts. */ +export enum KnownSyncMemberDbType { + /** AzureSqlDatabase */ + AzureSqlDatabase = "AzureSqlDatabase", + /** SqlServerDatabase */ + SqlServerDatabase = "SqlServerDatabase" } /** - * Defines values for BaselineName. \ - * {@link KnownBaselineName} can be used interchangeably with BaselineName, + * 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 - * **default** + * **AzureSqlDatabase** \ + * **SqlServerDatabase** */ -export type BaselineName = string; +export type SyncMemberDbType = string; -/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSQLVulnerabilityAssessmentName { - /** Default */ - Default = "default" +/** 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 SyncGroupsType} that the service accepts. */ +export enum KnownSyncGroupsType { + /** All */ + All = "All", + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", + /** Success */ + Success = "Success" } /** - * Defines values for SQLVulnerabilityAssessmentName. \ - * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, + * 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 - * **default** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type SQLVulnerabilityAssessmentName = string; +export type SyncGroupsType = string; -/** Known values of {@link RuleStatus} that the service accepts. */ -export enum KnownRuleStatus { - /** NonFinding */ - NonFinding = "NonFinding", - /** Finding */ - Finding = "Finding", - /** InternalError */ - InternalError = "InternalError" +/** 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 RuleStatus. \ - * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * 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 - * **NonFinding** \ - * **Finding** \ - * **InternalError** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type RuleStatus = string; +export type SyncGroupLogType = 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" +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + /** Bidirectional */ + Bidirectional = "Bidirectional", + /** OneWayMemberToHub */ + OneWayMemberToHub = "OneWayMemberToHub", + /** OneWayHubToMember */ + OneWayHubToMember = "OneWayHubToMember" } /** - * Defines values for RuleSeverity. \ - * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, + * 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 - * **High** \ - * **Medium** \ - * **Low** \ - * **Informational** \ - * **Obsolete** + * **Bidirectional** \ + * **OneWayMemberToHub** \ + * **OneWayHubToMember** */ -export type RuleSeverity = string; +export type SyncDirection = 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" +/** 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 RuleType. \ - * {@link KnownRuleType} can be used interchangeably with RuleType, + * 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 - * **Binary** \ - * **BaselineExpected** \ - * **PositiveList** \ - * **NegativeList** + * **SyncInProgress** \ + * **SyncSucceeded** \ + * **SyncFailed** \ + * **DisabledTombstoneCleanup** \ + * **DisabledBackupRestore** \ + * **SyncSucceededWithWarnings** \ + * **SyncCancelling** \ + * **SyncCancelled** \ + * **UnProvisioned** \ + * **Provisioning** \ + * **Provisioned** \ + * **ProvisionFailed** \ + * **DeProvisioning** \ + * **DeProvisioned** \ + * **DeProvisionFailed** \ + * **Reprovisioning** \ + * **ReprovisionFailed** \ + * **UnReprovisioned** */ -export type RuleType = string; +export type SyncMemberState = string; -/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSqlVulnerabilityAssessmentName { - /** Default */ - Default = "default" +/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ +export enum KnownDNSRefreshOperationStatus { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for SqlVulnerabilityAssessmentName. \ - * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, + * 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 - * **default** + * **Succeeded** \ + * **Failed** \ + * **InProgress** */ -export type SqlVulnerabilityAssessmentName = string; +export type DNSRefreshOperationStatus = string; -/** 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" +/** 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 ServiceObjectiveName. \ - * {@link KnownServiceObjectiveName} can be used interchangeably with ServiceObjectiveName, + * 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 - * **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** + * **Initializing** \ + * **InProgress** \ + * **Ready** \ + * **Failed** \ + * **Deleting** \ + * **Unknown** */ -export type ServiceObjectiveName = string; +export type VirtualNetworkRuleState = string; +/** Defines values for BlobAuditingPolicyState. */ +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; /** Defines values for DataMaskingState. */ -export type DataMaskingState = "Disabled" | "Enabled"; +export type DataMaskingState = "Enabled" | "Disabled"; /** Defines values for DataMaskingRuleState. */ -export type DataMaskingRuleState = "Disabled" | "Enabled"; +export type DataMaskingRuleState = "Enabled" | "Disabled"; /** Defines values for DataMaskingFunction. */ export type DataMaskingFunction = | "Default" @@ -11688,8 +11706,8 @@ export type DataMaskingFunction = | "Number" | "SSN" | "Text"; -/** Defines values for GeoBackupPolicyState. */ -export type GeoBackupPolicyState = "Disabled" | "Enabled"; +/** Defines values for AdvancedThreatProtectionState. */ +export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled"; /** Defines values for AdvisorStatus. */ export type AdvisorStatus = | "GA" @@ -11728,12 +11746,18 @@ export type AutomaticTuningDisabledReason = | "NotSupported"; /** Defines values for SecurityAlertsPolicyState. */ export type SecurityAlertsPolicyState = "Enabled" | "Disabled"; +/** Defines values for SqlVulnerabilityAssessmentState. */ +export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; /** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; -/** Defines values for JobScheduleType. */ -export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for GeoBackupPolicyState. */ +export type GeoBackupPolicyState = "Enabled" | "Disabled"; /** Defines values for JobTargetGroupMembershipType. */ export type JobTargetGroupMembershipType = "Include" | "Exclude"; +/** Defines values for JobScheduleType. */ +export type JobScheduleType = "Once" | "Recurring"; +/** Defines values for LedgerDigestUploadsState. */ +export type LedgerDigestUploadsState = "Enabled" | "Disabled"; /** Defines values for CapabilityStatus. */ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; /** Defines values for SecurityAlertPolicyState. */ @@ -11743,23 +11767,6 @@ 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 SensitivityLabelSource. */ -export type SensitivityLabelSource = "current" | "recommended"; /** Defines values for SensitivityLabelRank. */ export type SensitivityLabelRank = | "None" @@ -11771,8 +11778,10 @@ export type SensitivityLabelRank = 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 SensitivityLabelSource. */ +export type SensitivityLabelSource = "current" | "recommended"; +/** Defines values for TransparentDataEncryptionState. */ +export type TransparentDataEncryptionState = "Enabled" | "Disabled"; /** Defines values for ReplicationRole. */ export type ReplicationRole = | "Primary" @@ -11780,97 +11789,168 @@ export type ReplicationRole = | "NonReadableSecondary" | "Source" | "Copy"; +/** 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 CheckNameAvailabilityReason. */ export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; -/** Defines values for SqlVulnerabilityAssessmentState. */ -export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled"; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; + +/** 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; +} /** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface DataMaskingPoliciesGetOptionalParams +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; +} + +/** Contains response data for the update operation. */ +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +export interface ServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ServerBlobAuditingPoliciesGetOptionalParams 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 DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; /** Optional parameters. */ -export interface DataMaskingRulesListByDatabaseOptionalParams +export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; +export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesCreateOrUpdateOptionalParams +export interface DatabaseBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; + +/** Optional parameters. */ +export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface GeoBackupPoliciesGetOptionalParams +export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface GeoBackupPoliciesListByDatabaseOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface DatabasesListMetricsOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type DatabasesListMetricsResponse = MetricListResult; +/** Contains response data for the get operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface DatabasesListMetricDefinitionsOptionalParams +export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; /** Optional parameters. */ -export interface DatabasesListByServerOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; -} +export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; + +/** Optional parameters. */ +export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type DatabasesListByServerResponse = DatabaseListResult; +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface DatabasesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabasesGetResponse = Database; +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ -export interface DatabasesCreateOrUpdateOptionalParams +export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -11879,181 +11959,188 @@ export interface DatabasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DatabasesCreateOrUpdateResponse = Database; +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; /** Optional parameters. */ -export interface DatabasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; /** Optional parameters. */ -export interface DatabasesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DataMaskingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabasesUpdateResponse = Database; +/** Contains response data for the get operation. */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; /** 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; -} +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type DatabasesExportResponse = ImportExportOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; /** 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; -} +export interface DataMaskingRulesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult; /** Optional parameters. */ -export interface DatabasesImportOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the import operation. */ -export type DatabasesImportResponse = ImportExportOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; /** Optional parameters. */ -export interface DatabasesRenameOptionalParams +export interface DataMaskingRulesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; + /** Optional parameters. */ -export interface DatabasesPauseOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the pause operation. */ -export type DatabasesPauseResponse = Database; +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; /** 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 DataWarehouseUserActivitiesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the resume operation. */ -export type DatabasesResumeResponse = Database; +/** Contains response data for the get operation. */ +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; /** Optional parameters. */ -export interface DatabasesUpgradeDataWarehouseOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolOptionalParams +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerOptionalParams +export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; + +/** Optional parameters. */ +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServer operation. */ -export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface DatabaseAdvisorsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; /** Optional parameters. */ -export interface DatabasesListByServerNextOptionalParams +export interface DatabaseAdvisorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface DatabasesListByElasticPoolNextOptionalParams +export interface DatabaseAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; +/** Contains response data for the update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerNextOptionalParams +export interface DatabaseAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServerNext operation. */ -export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface DatabaseAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; +/** Contains response data for the update operation. */ +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listMetricDefinitions operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ElasticPoolsListByServerOptionalParams +export interface DatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +/** Contains response data for the listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface DatabaseColumnsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ElasticPoolsGetResponse = ElasticPool; +export type DatabaseColumnsGetResponse = DatabaseColumn; /** 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; -} +export interface DatabaseColumnsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ElasticPoolsDeleteOptionalParams +export interface DatabaseColumnsListByTableNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTableNext operation. */ +export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface DatabaseEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12062,7 +12149,7 @@ export interface ElasticPoolsDeleteOptionalParams } /** Optional parameters. */ -export interface ElasticPoolsUpdateOptionalParams +export interface DatabaseEncryptionProtectorsRevertOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12070,11 +12157,19 @@ export interface ElasticPoolsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool; +/** Optional parameters. */ +export interface DatabaseExtensionsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface ElasticPoolsFailoverOptionalParams +export interface DatabaseExtensionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseExtensionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12082,237 +12177,238 @@ export interface ElasticPoolsFailoverOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; + /** Optional parameters. */ -export interface ElasticPoolsListByServerNextOptionalParams +export interface DatabaseExtensionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksDeleteOptionalParams +export interface DatabaseOperationsListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; + /** Optional parameters. */ -export interface ServerCommunicationLinksGetOptionalParams +export interface DatabaseOperationsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink; - /** Optional parameters. */ -export interface ServerCommunicationLinksCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DatabaseOperationsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; /** Optional parameters. */ -export interface ServerCommunicationLinksListByServerOptionalParams +export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult; +/** Contains response data for the listByDatabaseAdvisor operation. */ +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; /** Optional parameters. */ -export interface ServiceObjectivesGetOptionalParams +export interface DatabaseRecommendedActionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServiceObjectivesGetResponse = ServiceObjective; +export type DatabaseRecommendedActionsGetResponse = RecommendedAction; /** Optional parameters. */ -export interface ServiceObjectivesListByServerOptionalParams +export interface DatabaseRecommendedActionsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult; +/** Contains response data for the update operation. */ +export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; /** Optional parameters. */ -export interface ElasticPoolActivitiesListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} +export interface DatabaseSchemasListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams +export interface DatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult; +/** Contains response data for the get operation. */ +export type DatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface ServerUsagesListByServerOptionalParams +export interface DatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvisorsListByDatabaseResponse = Advisor[]; +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsGetOptionalParams +export interface DatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAdvisorsGetResponse = Advisor; +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams +export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams +export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; +export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface DatabaseAutomaticTuningUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** 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 DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByTableOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams 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 DatabaseColumnsListByTableResponse = DatabaseColumnListResult; +/** Optional parameters. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByBaseline operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface DatabaseColumnsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; - /** Optional parameters. */ -export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseAdvisor operation. */ -export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; +/** Contains response data for the listByBaselineNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseRecommendedActionsGetResponse = RecommendedAction; +/** Contains response data for the listByScan operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the listByScanNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface DatabaseTablesListBySchemaOptionalParams @@ -12339,64 +12435,37 @@ export interface DatabaseTablesListBySchemaNextOptionalParams export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface DatabaseUsagesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface DatabaseUsagesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsGetOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams 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; +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface DatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams 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 DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} @@ -12418,6 +12487,15 @@ export interface DatabaseVulnerabilityAssessmentScansExportOptionalParams /** Contains response data for the export operation. */ export type DatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** 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 DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} @@ -12426,49 +12504,60 @@ export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalP export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the get operation. */ +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DeletedServersListOptionalParams +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; - /** Optional parameters. */ -export interface DeletedServersGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DeletedServersGetResponse = DeletedServer; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesListByServerOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; +} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; +/** Contains response data for the listByServer operation. */ +export type DatabasesListByServerResponse = DatabaseListResult; /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams +export interface DatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the get operation. */ +export type DatabasesGetResponse = Database; + +/** Optional parameters. */ +export interface DatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12476,57 +12565,83 @@ export interface DeletedServersRecoverOptionalParams resumeFrom?: string; } -/** Contains response data for the recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; +/** Contains response data for the createOrUpdate operation. */ +export type DatabasesCreateOrUpdateResponse = Database; /** Optional parameters. */ -export interface DeletedServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; +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; +} /** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; +/** Contains response data for the update operation. */ +export type DatabasesUpdateResponse = Database; /** Optional parameters. */ -export interface ElasticPoolOperationsCancelOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the export operation. */ +export type DatabasesExportResponse = ImportExportOperationResult; -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; +/** 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; +} /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByElasticPoolNext operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; +/** Contains response data for the import operation. */ +export type DatabasesImportResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface EncryptionProtectorsListByServerOptionalParams +export interface DatabasesRenameOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; - /** Optional parameters. */ -export interface EncryptionProtectorsGetOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the get operation. */ -export type EncryptionProtectorsGetResponse = EncryptionProtector; +/** Contains response data for the pause operation. */ +export type DatabasesPauseResponse = Database; /** Optional parameters. */ -export interface EncryptionProtectorsCreateOrUpdateOptionalParams +export interface DatabasesResumeOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12534,11 +12649,11 @@ export interface EncryptionProtectorsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; +/** Contains response data for the resume operation. */ +export type DatabasesResumeResponse = Database; /** Optional parameters. */ -export interface EncryptionProtectorsRevalidateOptionalParams +export interface DatabasesUpgradeDataWarehouseOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12547,81 +12662,63 @@ export interface EncryptionProtectorsRevalidateOptionalParams } /** Optional parameters. */ -export interface EncryptionProtectorsListByServerNextOptionalParams +export interface DatabasesListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; +/** Contains response data for the listByElasticPool operation. */ +export type DatabasesListByElasticPoolResponse = DatabaseListResult; /** Optional parameters. */ -export interface FirewallRulesGetOptionalParams +export interface DatabasesListInaccessibleByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type FirewallRulesGetResponse = FirewallRule; +/** Contains response data for the listInaccessibleByServer operation. */ +export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; /** Optional parameters. */ -export interface FirewallRulesCreateOrUpdateOptionalParams +export interface DatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule; +/** Contains response data for the listByServerNext operation. */ +export type DatabasesListByServerNextResponse = DatabaseListResult; /** Optional parameters. */ -export interface FirewallRulesDeleteOptionalParams +export interface DatabasesListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByElasticPoolNext operation. */ +export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; + /** Optional parameters. */ -export interface FirewallRulesListByServerOptionalParams +export interface DatabasesListInaccessibleByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult; +/** Contains response data for the listInaccessibleByServerNext operation. */ +export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; /** Optional parameters. */ -export interface FirewallRulesReplaceOptionalParams +export interface DeletedServersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the replace operation. */ -export type FirewallRulesReplaceResponse = FirewallRule; +/** Contains response data for the list operation. */ +export type DeletedServersListResponse = DeletedServerListResult; /** Optional parameters. */ -export interface FirewallRulesListByServerNextOptionalParams +export interface DeletedServersListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; +/** Contains response data for the listByLocation operation. */ +export type DeletedServersListByLocationResponse = DeletedServerListResult; /** Optional parameters. */ -export interface InstancePoolsGetOptionalParams +export interface DeletedServersGetOptionalParams 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; -} +export type DeletedServersGetResponse = DeletedServer; /** Optional parameters. */ -export interface InstancePoolsUpdateOptionalParams +export interface DeletedServersRecoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12629,53 +12726,39 @@ export interface InstancePoolsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type InstancePoolsUpdateResponse = InstancePool; - -/** Optional parameters. */ -export interface InstancePoolsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; - -/** Optional parameters. */ -export interface InstancePoolsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type InstancePoolsListResponse = InstancePoolListResult; +/** Contains response data for the recover operation. */ +export type DeletedServersRecoverResponse = DeletedServer; /** Optional parameters. */ -export interface InstancePoolsListByResourceGroupNextOptionalParams +export interface DeletedServersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; +/** Contains response data for the listNext operation. */ +export type DeletedServersListNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface InstancePoolsListNextOptionalParams +export interface DeletedServersListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult; +/** Contains response data for the listByLocationNext operation. */ +export type DeletedServersListByLocationNextResponse = DeletedServerListResult; /** Optional parameters. */ -export interface JobAgentsListByServerOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type JobAgentsListByServerResponse = JobAgentListResult; +/** Contains response data for the listByInstance operation. */ +export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface JobAgentsGetOptionalParams +export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobAgentsGetResponse = JobAgent; +export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface JobAgentsCreateOrUpdateOptionalParams +export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12684,10 +12767,10 @@ export interface JobAgentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type JobAgentsCreateOrUpdateResponse = JobAgent; +export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface JobAgentsDeleteOptionalParams +export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12696,7 +12779,7 @@ export interface JobAgentsDeleteOptionalParams } /** Optional parameters. */ -export interface JobAgentsUpdateOptionalParams +export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12705,75 +12788,64 @@ export interface JobAgentsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type JobAgentsUpdateResponse = JobAgent; - -/** Optional parameters. */ -export interface JobAgentsListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type JobAgentsListByServerNextResponse = JobAgentListResult; +export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface JobCredentialsListByAgentOptionalParams - extends coreClient.OperationOptions {} +export interface DistributedAvailabilityGroupsSetRoleOptionalParams + 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; +/** Contains response data for the setRole operation. */ +export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup; /** Optional parameters. */ -export interface JobCredentialsGetOptionalParams +export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobCredentialsGetResponse = JobCredential; +/** Contains response data for the listByInstanceNext operation. */ +export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; /** Optional parameters. */ -export interface JobCredentialsCreateOrUpdateOptionalParams +export interface ElasticPoolOperationsListByElasticPoolOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobCredentialsCreateOrUpdateResponse = JobCredential; +/** Contains response data for the listByElasticPool operation. */ +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface JobCredentialsDeleteOptionalParams +export interface ElasticPoolOperationsCancelOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobCredentialsListByAgentNextOptionalParams +export interface ElasticPoolOperationsListByElasticPoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; /** Optional parameters. */ -export interface JobExecutionsListByAgentOptionalParams +export interface ElasticPoolsListByServerOptionalParams 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 listByServer operation. */ +export type ElasticPoolsListByServerResponse = ElasticPoolListResult; /** Optional parameters. */ -export interface JobExecutionsCancelOptionalParams +export interface ElasticPoolsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ElasticPoolsGetResponse = ElasticPool; + /** Optional parameters. */ -export interface JobExecutionsCreateOptionalParams +export interface ElasticPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12781,40 +12853,20 @@ export interface JobExecutionsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type JobExecutionsCreateResponse = JobExecution; +/** Contains response data for the createOrUpdate operation. */ +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface JobExecutionsListByJobOptionalParams +export interface ElasticPoolsDeleteOptionalParams 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 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; - /** Optional parameters. */ -export interface JobExecutionsCreateOrUpdateOptionalParams +export interface ElasticPoolsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12822,330 +12874,293 @@ export interface JobExecutionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution; - -/** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; - -/** Optional parameters. */ -export interface JobsListByAgentOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAgent operation. */ -export type JobsListByAgentResponse = JobListResult; +/** Contains response data for the update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JobsGetResponse = Job; +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; +} /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams +export interface ElasticPoolsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = Job; +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; /** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} +export interface EncryptionProtectorsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface JobsListByAgentNextOptionalParams +export interface EncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the get operation. */ +export type EncryptionProtectorsGetResponse = EncryptionProtector; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionOptionalParams +export interface EncryptionProtectorsCreateOrUpdateOptionalParams 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; +/** Contains response data for the createOrUpdate operation. */ +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; /** Optional parameters. */ -export interface JobStepExecutionsGetOptionalParams +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 get operation. */ -export type JobStepExecutionsGetResponse = JobExecution; +/** Contains response data for the listByServerNext operation. */ +export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionNextOptionalParams +export interface EndpointCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface JobStepsListByVersionOptionalParams +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersion operation. */ -export type JobStepsListByVersionResponse = JobStepListResult; +/** Contains response data for the get operation. */ +export type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ -export interface JobStepsGetByVersionOptionalParams +export interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByVersion operation. */ -export type JobStepsGetByVersionResponse = JobStep; +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface JobStepsListByJobOptionalParams +export interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobStepsListByJobResponse = JobStepListResult; +/** Contains response data for the listByServer operation. */ +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface JobStepsGetOptionalParams +export interface FailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepsGetResponse = JobStep; +export type FailoverGroupsGetResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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 JobStepsCreateOrUpdateResponse = JobStep; - -/** Optional parameters. */ -export interface JobStepsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +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 JobStepsListByJobNextOptionalParams - extends coreClient.OperationOptions {} +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 listByJobNext operation. */ -export type JobStepsListByJobNextResponse = JobStepListResult; +/** Contains response data for the update operation. */ +export type FailoverGroupsUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams +export interface FailoverGroupsFailoverOptionalParams 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 JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the failover operation. */ +export type FailoverGroupsFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams +export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams 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 forceFailoverAllowDataLoss operation. */ +export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; /** Optional parameters. */ -export interface JobTargetExecutionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams + 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 JobTargetExecutionsGetResponse = JobExecution; +/** Contains response data for the tryPlannedBeforeForcedFailover operation. */ +export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionNextOptionalParams +export interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the listByServerNext operation. */ +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams +export interface FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; +/** Contains response data for the listByServer operation. */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface JobTargetGroupsListByAgentOptionalParams +export interface FirewallRulesReplaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; /** Optional parameters. */ -export interface JobTargetGroupsGetOptionalParams +export interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobTargetGroupsGetResponse = JobTargetGroup; +export type FirewallRulesGetResponse = FirewallRule; /** Optional parameters. */ -export interface JobTargetGroupsCreateOrUpdateOptionalParams +export interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; +export type FirewallRulesCreateOrUpdateResponse = FirewallRule; /** Optional parameters. */ -export interface JobTargetGroupsDeleteOptionalParams +export interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobTargetGroupsListByAgentNextOptionalParams +export interface FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface JobVersionsListByJobOptionalParams +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult; +/** Contains response data for the list operation. */ +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; /** Optional parameters. */ -export interface JobVersionsGetOptionalParams +export interface GeoBackupPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobVersionsGetResponse = JobVersion; +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; /** Optional parameters. */ -export interface JobVersionsListByJobNextOptionalParams +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult; - -/** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} - -/** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; +/** Contains response data for the createOrUpdate operation. */ +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; /** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams +export interface GeoBackupPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; - -/** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams - 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 LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; - +/** Contains response data for the listNext operation. */ +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; +/** Contains response data for the get operation. */ +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface MaintenanceWindowOptionsGetOptionalParams +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; +/** Contains response data for the createOrUpdate operation. */ +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams +export interface IPv6FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; +/** Optional parameters. */ +export interface IPv6FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams +export interface InstanceFailoverGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByLocation operation. */ +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; + /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams +export interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13154,10 +13169,10 @@ export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface InstanceFailoverGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13165,279 +13180,260 @@ export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseOptionalParams +export interface InstanceFailoverGroupsFailoverOptionalParams 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 failover operation. */ +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams 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; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams +export interface InstancePoolsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the list operation. */ +export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface InstancePoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +export type InstancePoolsGetResponse = InstancePool; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams +export interface InstancePoolsCreateOrUpdateOptionalParams 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; - -/** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the createOrUpdate operation. */ +export type InstancePoolsCreateOrUpdateResponse = InstancePool; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams +export interface InstancePoolsDeleteOptionalParams 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; - -/** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; - /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface InstancePoolsUpdateOptionalParams + 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 ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the update operation. */ +export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams +export interface InstancePoolsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listNext operation. */ +export type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface InstancePoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +/** Contains response data for the listByResourceGroupNext operation. */ +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type JobAgentsListByServerResponse = JobAgentListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface JobAgentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the get operation. */ +export type JobAgentsGetResponse = JobAgent; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams +export interface JobAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** The number of elements in the collection to skip. */ - skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; - /** The number of elements to return from the collection. */ - top?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; - -/** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; +/** Contains response data for the createOrUpdate operation. */ +export type JobAgentsCreateOrUpdateResponse = JobAgent; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams +export interface JobAgentsDeleteOptionalParams 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; - -/** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; - -/** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; - /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface JobAgentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Contains response data for the update operation. */ +export type JobAgentsUpdateResponse = JobAgent; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams +export interface JobAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listByServerNext operation. */ +export type JobAgentsListByServerNextResponse = JobAgentListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface JobCredentialsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listByAgent operation. */ +export type JobCredentialsListByAgentResponse = JobCredentialListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface JobCredentialsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type JobCredentialsGetResponse = JobCredential; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface JobCredentialsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type JobCredentialsCreateOrUpdateResponse = JobCredential; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface JobCredentialsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams +export interface JobCredentialsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByAgentNext operation. */ +export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +/** Contains response data for the listByAgent operation. */ +export type JobExecutionsListByAgentResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams - 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 ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface JobExecutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the get operation. */ +export type JobExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface JobExecutionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface JobExecutionsCancelOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobExecutionsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13445,272 +13441,276 @@ export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptional resumeFrom?: string; } +/** Contains response data for the create operation. */ +export type JobExecutionsCreateResponse = JobExecution; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams +export interface JobExecutionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams +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 listByJobExecution operation. */ +export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; + +/** Optional parameters. */ +export interface JobStepExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +export type JobStepExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface JobStepExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams +export interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByJob operation. */ +export type JobStepsListByJobResponse = JobStepListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface JobStepsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +export type JobStepsGetResponse = JobStep; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams - 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 JobStepsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; - -/** Optional parameters. */ -export interface ManagedInstanceAdministratorsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type JobStepsCreateOrUpdateResponse = JobStep; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams +export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; - /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; /** 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; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; +export interface JobStepsGetByVersionOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams - 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 getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams +export interface JobStepsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobStepsListByJobNextResponse = JobStepListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams +export interface JobStepsListByVersionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams +export interface JobTargetExecutionsListByStepOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams +export interface JobTargetExecutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +export type JobTargetExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams +export interface JobTargetExecutionsListByJobExecutionOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface JobTargetExecutionsListByJobExecutionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface JobTargetGroupsListByAgentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAgent operation. */ +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; + +/** Optional parameters. */ +export interface JobTargetGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +export type JobTargetGroupsGetResponse = JobTargetGroup; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams - 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 JobTargetGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; /** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface JobTargetGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams +export interface JobTargetGroupsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface JobVersionsListByJobOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +/** Contains response data for the listByJob operation. */ +export type JobVersionsListByJobResponse = JobVersionListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams - 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 JobVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; +/** Contains response data for the get operation. */ +export type JobVersionsGetResponse = JobVersion; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams +export interface JobVersionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface JobsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; +/** Contains response data for the get operation. */ +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; +/** Contains response data for the createOrUpdate operation. */ +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; + /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams +export interface LedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13719,10 +13719,10 @@ export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptional } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13730,43 +13730,71 @@ export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; + /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams - 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 listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams - 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 listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams - 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 get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams +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 LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the get operation. */ +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface LongTermRetentionBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13775,46 +13803,74 @@ export interface ManagedInstanceTdeCertificatesCreateOptionalParams } /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; +/** Contains response data for the update operation. */ +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} + +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByResourceGroupServer operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams - 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 listByInstanceNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams +export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13822,11 +13878,8 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13834,32 +13887,11 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; +/** Contains response data for the copyByResourceGroup operation. */ +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13867,130 +13899,136 @@ export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; +/** Contains response data for the updateByResourceGroup operation. */ +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams +export interface LongTermRetentionBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams +export interface LongTermRetentionBackupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByServerOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByResourceGroupServerNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; } -/** 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 listByDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface PrivateLinkResourcesGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface PrivateLinkResourcesListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; +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; +} /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceOptionalParams - 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 listByInstance operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesGetOptionalParams - 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 get operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; +/** Contains response data for the listByResourceGroupLocation operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} +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 listByInstanceNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; +/** Contains response data for the listByResourceGroupDatabase operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RestorePointsListByDatabaseOptionalParams +export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult; +/** Contains response data for the getByResourceGroup operation. */ +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; /** Optional parameters. */ -export interface RestorePointsCreateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13998,74 +14036,76 @@ export interface RestorePointsCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type RestorePointsCreateResponse = RestorePoint; - /** Optional parameters. */ -export interface RestorePointsGetOptionalParams - 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 get operation. */ -export type RestorePointsGetResponse = RestorePoint; +/** Contains response data for the listByResourceGroupInstance operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface RestorePointsDeleteOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; + /** Optional parameters. */ -export interface RestorePointsListByDatabaseNextOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAdvisorsListByServerOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAdvisorsListByServerResponse = Advisor[]; +/** Contains response data for the listByInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAdvisorsGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAdvisorsGetResponse = Advisor; +/** Contains response data for the listByResourceGroupLocationNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAdvisorsUpdateOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listByResourceGroupDatabaseNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningGetOptionalParams +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; +/** Contains response data for the listByResourceGroupInstanceNext operation. */ +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ServerAutomaticTuningUpdateOptionalParams +export interface LongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsGetOptionalParams +export interface LongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; +export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams +export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14074,40 +14114,49 @@ export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; /** Optional parameters. */ -export interface ServerAzureADAdministratorsDeleteOptionalParams - 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 LongTermRetentionPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerOptionalParams +export interface MaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; +/** Contains response data for the get operation. */ +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; /** Optional parameters. */ -export interface ServerAzureADAdministratorsListByServerNextOptionalParams +export interface MaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; +/** Contains response data for the get operation. */ +export type MaintenanceWindowsGetResponse = MaintenanceWindows; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsGetOptionalParams +export interface MaintenanceWindowsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14116,10 +14165,10 @@ export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14127,453 +14176,412 @@ export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; +/** Contains response data for the update operation. */ +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams +export interface ManagedBackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsGetOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; /** 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 ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams - 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 get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ServerDnsAliasesCreateOrUpdateOptionalParams +export interface ManagedDatabaseColumnsListByTableOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; +/** Contains response data for the listByTable operation. */ +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** 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 ManagedDatabaseColumnsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ServerDnsAliasesAcquireOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams 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; + /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ + onlyLatestPerDatabase?: boolean; } -/** Contains response data for the acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; +/** Contains response data for the listByLocation operation. */ +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface ManagedDatabaseMoveOperationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerKeysGetResponse = ServerKey; +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; /** Optional parameters. */ -export interface ServerKeysCreateOrUpdateOptionalParams +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 createOrUpdate operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey; - -/** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams - 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 listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface ServerKeysListByServerNextOptionalParams +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult; +/** Contains response data for the listByQueryNext operation. */ +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface ServerOperationsListByServerOptionalParams +export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams - 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 listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams +export interface ManagedDatabaseSchemasGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; - -/** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -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; -} +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; + +/** Optional parameters. */ +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams 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 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 in the collection to skip. */ + skip?: number; + /** The number of elements to return from the collection. */ + top?: number; } +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; + /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; +} -/** Contains response data for the listByInstance operation. */ -export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; - /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; +} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerOptionalParams +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; - /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; - /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; - /** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; - /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams +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 createOrUpdate operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent; - -/** Optional parameters. */ -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; -} +/** Contains response data for the listBySchema operation. */ +export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface SyncAgentsListByServerOptionalParams +export interface ManagedDatabaseTablesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseTablesGetResponse = DatabaseTable; /** Optional parameters. */ -export interface SyncAgentsGenerateKeyOptionalParams +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateKey operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; +/** Contains response data for the listBySchemaNext operation. */ +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabases operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface SyncAgentsListByServerNextOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface SyncAgentsListLinkedDatabasesNextOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLinkedDatabasesNext operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsOptionalParams +export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIds operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; - -/** Optional parameters. */ -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; -} +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface SyncGroupsListHubSchemasOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemas operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface SyncGroupsListLogsOptionalParams - extends coreClient.OperationOptions { - /** The continuation token for this operation. */ - continuationToken?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listLogs operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface SyncGroupsCancelSyncOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SyncGroupsTriggerSyncOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; + /** Optional parameters. */ -export interface SyncGroupsGetOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup; - -/** 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; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** 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; -} +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface SyncGroupsUpdateOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14581,53 +14589,61 @@ export interface SyncGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup; +/** Optional parameters. */ +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface SyncGroupsListByDatabaseOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSyncDatabaseIdsNext operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface SyncGroupsListHubSchemasNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface SyncGroupsListLogsNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listLogsNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; - /** Optional parameters. */ -export interface SyncGroupsListByDatabaseNextOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface SyncMembersGetOptionalParams +export interface ManagedDatabasesListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; + +/** Optional parameters. */ +export interface ManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SyncMembersGetResponse = SyncMember; +export type ManagedDatabasesGetResponse = ManagedDatabase; /** Optional parameters. */ -export interface SyncMembersCreateOrUpdateOptionalParams +export interface ManagedDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14636,10 +14652,10 @@ export interface SyncMembersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember; +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface SyncMembersDeleteOptionalParams +export interface ManagedDatabasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14648,7 +14664,7 @@ export interface SyncMembersDeleteOptionalParams } /** Optional parameters. */ -export interface SyncMembersUpdateOptionalParams +export interface ManagedDatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14657,24 +14673,10 @@ export interface SyncMembersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type SyncMembersUpdateResponse = SyncMember; - -/** Optional parameters. */ -export interface SyncMembersListBySyncGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySyncGroup operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; - -/** Optional parameters. */ -export interface SyncMembersListMemberSchemasOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listMemberSchemas operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; +export type ManagedDatabasesUpdateResponse = ManagedDatabase; /** Optional parameters. */ -export interface SyncMembersRefreshMemberSchemaOptionalParams +export interface ManagedDatabasesCancelMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14683,21 +14685,7 @@ export interface SyncMembersRefreshMemberSchemaOptionalParams } /** Optional parameters. */ -export interface SyncMembersListBySyncGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySyncGroupNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; - -/** Optional parameters. */ -export interface SyncMembersListMemberSchemasNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listMemberSchemasNext operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; - -/** Optional parameters. */ -export interface TdeCertificatesCreateOptionalParams +export interface ManagedDatabasesCompleteMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14706,35 +14694,7 @@ export interface TdeCertificatesCreateOptionalParams } /** Optional parameters. */ -export interface TimeZonesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type TimeZonesListByLocationResponse = TimeZoneListResult; - -/** Optional parameters. */ -export interface TimeZonesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type TimeZonesGetResponse = TimeZone; - -/** Optional parameters. */ -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 +export interface ManagedDatabasesCompleteRestoreOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14742,11 +14702,8 @@ export interface VirtualNetworkRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; - /** Optional parameters. */ -export interface VirtualNetworkRulesDeleteOptionalParams +export interface ManagedDatabasesStartMoveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14755,70 +14712,42 @@ export interface VirtualNetworkRulesDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; - -/** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams +export interface ManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; - -/** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; - -/** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams - 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 ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14827,10 +14756,10 @@ export interface WorkloadGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface WorkloadGroupsDeleteOptionalParams +export interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14839,28 +14768,28 @@ export interface WorkloadGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14869,40 +14798,31 @@ export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; - -/** 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; -} - -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; +export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; + /** Optional parameters. */ -export interface DatabaseExtensionsCreateOrUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14911,63 +14831,73 @@ export interface DatabaseExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams + 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 DatabaseExtensionsListByDatabaseNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface DatabaseOperationsCancelOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; + /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseOptionalParams +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface DatabaseUsagesListByDatabaseNextOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface LedgerDigestUploadsGetOptionalParams +export interface ManagedInstanceEncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; +export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface LedgerDigestUploadsCreateOrUpdateOptionalParams +export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14976,17 +14906,10 @@ export interface LedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; - -/** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; /** Optional parameters. */ -export interface LedgerDigestUploadsDisableOptionalParams +export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14994,25 +14917,32 @@ export interface LedgerDigestUploadsDisableOptionalParams resumeFrom?: string; } -/** Contains response data for the disable operation. */ -export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; - /** Optional parameters. */ -export interface LedgerDigestUploadsListByDatabaseNextOptionalParams +export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesGetOptionalParams +export interface ManagedInstanceKeysListByInstanceOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; + +/** Optional parameters. */ +export interface ManagedInstanceKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface OutboundFirewallRulesCreateOrUpdateOptionalParams +export interface ManagedInstanceKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15021,10 +14951,10 @@ export interface OutboundFirewallRulesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; /** Optional parameters. */ -export interface OutboundFirewallRulesDeleteOptionalParams +export interface ManagedInstanceKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15033,38 +14963,28 @@ export interface OutboundFirewallRulesDeleteOptionalParams } /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerOptionalParams +export interface ManagedInstanceKeysListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; /** Optional parameters. */ -export interface OutboundFirewallRulesListByServerNextOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; - -/** 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 listByDatabase operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface UsagesListByInstancePoolNextOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15072,11 +14992,11 @@ export interface LongTermRetentionBackupsCopyOptionalParams resumeFrom?: string; } -/** Contains response data for the copy operation. */ -export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15084,75 +15004,57 @@ export interface LongTermRetentionBackupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the delete operation. */ +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetOptionalParams +export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} +export interface ManagedInstanceOperationsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; /** 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; -} +export interface ManagedInstanceOperationsCancelOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; /** 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 ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** 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 ManagedInstancePrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15160,18 +15062,11 @@ export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; - -/** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15180,144 +15075,116 @@ export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams } /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; -} - -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface 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 ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; /** 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 ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams +export interface ManagedInstanceTdeCertificatesCreateOptionalParams + 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 ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams +export interface ManagedInstancesListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The child resources to include in the response. */ + expand?: string; } +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; + /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams +export interface ManagedInstancesListByInstancePoolOptionalParams 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; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams +export interface ManagedInstancesListByResourceGroupOptionalParams 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; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams +export interface ManagedInstancesGetOptionalParams 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; + /** The child resources to include in the response. */ + expand?: string; } -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the get operation. */ +export type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams +export interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15325,154 +15192,157 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOpt resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; + /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams +export interface ManagedInstancesDeleteOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByResourceGroupDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams +export interface ManagedInstancesUpdateOptionalParams extends coreClient.OperationOptions { - /** Whether or not to only get the latest backup for each database. */ - onlyLatestPerDatabase?: boolean; - /** Whether to query against just live databases, just deleted databases, or all databases. */ - databaseState?: DatabaseState; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByResourceGroupInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the update operation. */ +export type ManagedInstancesUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams +export interface ManagedInstancesFailoverOptionalParams 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; + /** The type of replica to be failed over. */ + replicaType?: ReplicaType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; - -/** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesRefreshStatusOptionalParams + 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 listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the refreshStatus operation. */ +export type ManagedInstancesRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResultMI; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the start operation. */ +export type ManagedInstancesStartResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the stop operation. */ +export type ManagedInstancesStopResponse = ManagedInstance; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByManagedInstanceOptionalParams + extends coreClient.OperationOptions { + /** Start time for observed period. */ + startTime?: string; + /** End time for observed period. */ + endTime?: string; + /** The time step to be used to summarize the metric values. Default value is PT1H */ + interval?: QueryTimeGrainType; + /** How many 'top queries' to return. Default is 5. */ + numberOfQueries?: number; + /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ + databases?: string; + /** Aggregation function to be used, default value is 'sum' */ + aggregationFunction?: AggregationFunctionType; + /** Metric to be used for ranking top queries. Default is 'cpu' */ + observationMetric?: MetricType; +} -/** Contains response data for the listByInstance operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesGetOptionalParams +export interface ManagedInstancesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; +/** Contains response data for the listNext operation. */ +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedInstancesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByInstancePoolNext operation. */ +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams +export interface ManagedInstancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; - -/** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams - 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 ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface ManagedInstancesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsGetOptionalParams +export interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; +export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams +export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15481,19 +15351,10 @@ export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; - -/** Optional parameters. */ -export interface DistributedAvailabilityGroupsDeleteOptionalParams - 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 ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsUpdateOptionalParams +export interface ManagedLedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15501,32 +15362,32 @@ export interface DistributedAvailabilityGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; +/** Contains response data for the disable operation. */ +export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerTrustCertificatesGetOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerTrustCertificatesCreateOrUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15535,10 +15396,10 @@ export interface ServerTrustCertificatesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerTrustCertificatesDeleteOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15546,196 +15407,119 @@ export interface ServerTrustCertificatesDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; - -/** Optional parameters. */ -export interface EndpointCertificatesListByInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstance operation. */ -export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; +/** Contains response data for the update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface EndpointCertificatesGetOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type EndpointCertificatesGetResponse = EndpointCertificate; +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceNextOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams - extends coreClient.OperationOptions {} +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listRecommendedByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams +export interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listCurrentByDatabase operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the acquire operation. */ +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; -} - -/** Contains response data for the listRecommendedByDatabase operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByInstance operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; - -/** Optional parameters. */ -export interface SensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; - -/** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15743,88 +15527,88 @@ export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; - -/** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; - -/** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface OutboundFirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface OutboundFirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface OutboundFirewallRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface OutboundFirewallRulesDeleteOptionalParams + 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 OutboundFirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams +export interface PrivateEndpointConnectionsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15833,92 +15617,108 @@ export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams +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 PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams +export interface PrivateLinkResourcesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface PrivateLinkResourcesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams +export interface RecoverableDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams +export interface RecoverableDatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; + +/** Optional parameters. */ +export interface RecoverableDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams +export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams - 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 RecoverableManagedDatabasesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; +/** Contains response data for the get operation. */ +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams +export interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesGetOptionalParams +export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; +export type ReplicationLinksGetResponse = ReplicationLink; /** Optional parameters. */ -export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams +export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15926,11 +15726,8 @@ export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; - /** Optional parameters. */ -export interface ManagedServerDnsAliasesDeleteOptionalParams +export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15938,8 +15735,11 @@ export interface ManagedServerDnsAliasesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the failover operation. */ +export type ReplicationLinksFailoverResponse = ReplicationLink; + /** Optional parameters. */ -export interface ManagedServerDnsAliasesAcquireOptionalParams +export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15947,93 +15747,86 @@ export interface ManagedServerDnsAliasesAcquireOptionalParams resumeFrom?: string; } -/** Contains response data for the acquire operation. */ -export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; +/** Contains response data for the failoverAllowDataLoss operation. */ +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams +export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams +export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; +/** Contains response data for the listByServer operation. */ +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface RestorableDroppedDatabasesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the get operation. */ +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams +export interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; +/** Contains response data for the listByInstance operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams - 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 ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; +/** Contains response data for the get operation. */ +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams +export interface RestorePointsListByDatabaseOptionalParams 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; +export type RestorePointsListByDatabaseResponse = RestorePointListResult; /** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams +export interface RestorePointsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16041,93 +15834,133 @@ export interface ReplicationLinksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; + +/** Optional parameters. */ +export interface RestorePointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RestorePointsGetResponse = RestorePoint; + +/** Optional parameters. */ +export interface RestorePointsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface RestorePointsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; + /** Optional parameters. */ -export interface ReplicationLinksFailoverOptionalParams +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; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; } -/** Contains response data for the failover operation. */ -export type ReplicationLinksFailoverResponse = ReplicationLink; +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams +export interface SensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams 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; + skipToken?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; } -/** Contains response data for the failoverAllowDataLoss operation. */ -export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; +/** Contains response data for the listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface SensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the get operation. */ +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams +export interface SensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface SensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Optional parameters. */ +export interface SensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams +export interface SensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SensitivityLabelsListByDatabaseOptionalParams extends coreClient.OperationOptions { /** An OData filter expression that filters elements in the collection. */ filter?: string; - /** Whether or not to only get the latest operation for each database. Has higher priority than $filter. */ - onlyLatestPerDatabase?: boolean; } -/** Contains response data for the listByLocation operation. */ -export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsGetOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ManagedInstanceDtcsGetOptionalParams +export interface RecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerResponse = LogicalServerAdvancedThreatProtectionListResult; + +/** Optional parameters. */ +export interface ServerAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; +export type ServerAdvancedThreatProtectionSettingsGetResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams +export interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16136,61 +15969,69 @@ export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; +export type ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ServerAdvancedThreatProtection; /** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams +export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseOptionalParams +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 listByDatabase operation. */ -export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; +/** Contains response data for the get operation. */ +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams +export interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface VirtualClustersListOptionalParams +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; +/** Contains response data for the get operation. */ +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams +export interface ServerAzureADAdministratorsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -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; -} +export interface ServerAzureADAdministratorsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface VirtualClustersUpdateOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16198,11 +16039,11 @@ export interface VirtualClustersUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; +/** Contains response data for the createOrUpdate operation. */ +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams +export interface ServerAzureADAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16210,39 +16051,29 @@ export interface VirtualClustersUpdateDnsServersOptionalParams 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 listNext operation. */ -export type VirtualClustersListNextResponse = VirtualClusterListResult; - /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupNextOptionalParams +export interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16251,10 +16082,10 @@ export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16263,7 +16094,28 @@ export interface InstanceFailoverGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface InstanceFailoverGroupsFailoverOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; + +/** Optional parameters. */ +export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstance operation. */ +export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; + +/** Optional parameters. */ +export interface ServerConfigurationOptionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; + +/** Optional parameters. */ +export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16271,11 +16123,32 @@ 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 ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; + +/** Optional parameters. */ +export interface ServerConnectionPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; + +/** Optional parameters. */ +export interface ServerConnectionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; + +/** Optional parameters. */ +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16283,25 +16156,32 @@ export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; +/** Contains response data for the createOrUpdate operation. */ +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; + +/** Optional parameters. */ +export interface ServerConnectionPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams +export interface ServerDevOpsAuditSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevalidateOptionalParams +export interface ServerDevOpsAuditSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16309,31 +16189,32 @@ export interface DatabaseEncryptionProtectorsRevalidateOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; + /** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevertOptionalParams - 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 ServerDevOpsAuditSettingsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams +export interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams +export interface ServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16342,10 +16223,10 @@ export interface ManagedDatabasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16354,7 +16235,7 @@ export interface ManagedDatabasesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams +export interface ServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16362,29 +16243,32 @@ export interface ManagedDatabasesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase; +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; /** Optional parameters. */ -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; -} +export interface ServerDnsAliasesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; /** Optional parameters. */ -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; -} +export interface ServerKeysListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerKeysListByServerResponse = ServerKeyListResult; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +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; @@ -16392,8 +16276,11 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerKeysCreateOrUpdateResponse = ServerKey; + /** Optional parameters. */ -export interface ManagedDatabasesStartMoveOptionalParams +export interface ServerKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16402,68 +16289,42 @@ export interface ManagedDatabasesStartMoveOptionalParams } /** 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; - -/** Optional parameters. */ -export interface ManagedInstancesListOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams - 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 listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServerSecurityAlertPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; +/** Contains response data for the listByServer operation. */ +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedInstancesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServerSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancesGetResponse = ManagedInstance; +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedInstancesCreateOrUpdateOptionalParams +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16472,49 +16333,31 @@ export interface ManagedInstancesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; - -/** Optional parameters. */ -export interface ManagedInstancesDeleteOptionalParams - 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 ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ManagedInstancesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance; +/** Contains response data for the listByServerNext operation. */ +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** 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 ServerTrustCertificatesListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; +/** Contains response data for the get operation. */ +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedInstancesStartOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16522,88 +16365,41 @@ export interface ManagedInstancesStartOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; + /** Optional parameters. */ -export interface ManagedInstancesStopOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams 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 { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. Default value is PT1H */ - interval?: QueryTimeGrainType; - /** How many 'top queries' to return. Default is 5. */ - numberOfQueries?: number; - /** Comma separated list of databases to be included into search. All DB's are included if this parameter is not specified. */ - databases?: string; - /** Aggregation function to be used, default value is 'sum' */ - aggregationFunction?: AggregationFunctionType; - /** Metric to be used for ranking top queries. Default is 'cpu' */ - observationMetric?: MetricType; -} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; - -/** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; + resumeFrom?: string; +} /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceNextOptionalParams +export interface ServerTrustCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams +export interface ServerTrustGroupsListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsGetOptionalParams +export interface ServerTrustGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams +export interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16612,10 +16408,10 @@ export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsDisableOptionalParams +export interface ServerTrustGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16623,100 +16419,72 @@ export interface ManagedLedgerDigestUploadsDisableOptionalParams resumeFrom?: string; } -/** Contains response data for the disable operation. */ -export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; - /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface ServerTrustGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; - -/** Optional parameters. */ -export interface RecoverableDatabasesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the get operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase; +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerNextOptionalParams +export interface ServerTrustGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; - -/** Optional parameters. */ -export interface RestorableDroppedDatabasesGetOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} - -/** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +export type ServerUsagesListByServerResponse = ServerUsageListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams +export interface ServerUsagesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsGetOptionalParams +export interface ServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -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; -} +export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ export interface ServersCheckNameAvailabilityOptionalParams @@ -16811,18 +16579,175 @@ export interface ServersRefreshStatusOptionalParams export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; /** Optional parameters. */ -export interface ServersListNextOptionalParams +export interface ServersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; + +/** Optional parameters. */ +export interface ServersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; + +/** Optional parameters. */ +export interface SqlAgentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; + +/** Optional parameters. */ +export interface SqlAgentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + 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 SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByBaseline operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByBaselineNext operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByScan operation. */ +export type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScanResultGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByScanNext operation. */ +export type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScansGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +/** Contains response data for the listByServerNext operation. */ +export type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams @@ -16857,54 +16782,56 @@ export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalPara export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams +export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; +/** Contains response data for the listByLocation operation. */ +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams +export interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams - 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 SubscriptionUsagesListByLocationNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; +/** Contains response data for the listByLocationNext operation. */ +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams +export interface SynapseLinkWorkspacesListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; + +/** Optional parameters. */ +export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; +export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams +export interface SyncAgentsListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface FailoverGroupsGetOptionalParams +export interface SyncAgentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FailoverGroupsGetResponse = FailoverGroup; +export type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ -export interface FailoverGroupsCreateOrUpdateOptionalParams +export interface SyncAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16913,10 +16840,10 @@ export interface FailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; /** Optional parameters. */ -export interface FailoverGroupsDeleteOptionalParams +export interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16925,19 +16852,56 @@ export interface FailoverGroupsDeleteOptionalParams } /** 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; -} +export interface SyncAgentsGenerateKeyOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type FailoverGroupsUpdateResponse = FailoverGroup; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface FailoverGroupsFailoverOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; + +/** Optional parameters. */ +export interface SyncAgentsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; + +/** Optional parameters. */ +export interface SyncAgentsListLinkedDatabasesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; + +/** Optional parameters. */ +export interface SyncGroupsListSyncDatabaseIdsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; + +/** Optional parameters. */ +export interface SyncGroupsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; + +/** Optional parameters. */ +export interface SyncGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SyncGroupsGetResponse = SyncGroup; + +/** Optional parameters. */ +export interface SyncGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16945,11 +16909,11 @@ export interface FailoverGroupsFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the failover operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup; +/** Contains response data for the createOrUpdate operation. */ +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface SyncGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16957,11 +16921,8 @@ export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; - /** Optional parameters. */ -export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams +export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16969,78 +16930,87 @@ export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the tryPlannedBeforeForcedFailover operation. */ -export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; +/** Contains response data for the update operation. */ +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface FailoverGroupsListByServerNextOptionalParams +export interface SyncGroupsCancelSyncOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; - /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface IPv6FirewallRulesGetOptionalParams - 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 IPv6FirewallRulesGetResponse = IPv6FirewallRule; +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface IPv6FirewallRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the createOrUpdate operation. */ -export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; +/** Optional parameters. */ +export interface SyncGroupsTriggerSyncOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IPv6FirewallRulesDeleteOptionalParams +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; + /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerNextOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ -export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineGetOptionalParams +export interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ -export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +/** Contains response data for the get operation. */ +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +export interface SyncMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17048,142 +17018,163 @@ export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaseline operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SyncMembersCreateOrUpdateResponse = SyncMember; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +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 SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaselineNext operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +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; +} /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface SyncMembersListMemberSchemasOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; + /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams +export interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScan operation. */ -export type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultGetOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByScanNext operation. */ -export type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; +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; +} /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams +export interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ -export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansGetOptionalParams +export interface TimeZonesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams +export interface TimeZonesListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ -export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByLocationNext operation. */ +export type TimeZonesListByLocationNextResponse = TimeZoneListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface TransparentDataEncryptionsCreateOrUpdateOptionalParams + 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 SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface UsagesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} + +/** Contains response data for the listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams +export interface UsagesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams +export interface VirtualClustersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +/** Contains response data for the list operation. */ +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams +export interface VirtualClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +/** Contains response data for the listByResourceGroup operation. */ +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams +export interface VirtualClustersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the get operation. */ +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +export interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17192,105 +17183,176 @@ export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalPar } /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams - extends coreClient.OperationOptions {} +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 listByBaseline operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +/** Contains response data for the update operation. */ +export type VirtualClustersUpdateResponse = VirtualCluster; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams - extends coreClient.OperationOptions {} +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 get operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the updateDnsServers operation. */ +export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface VirtualClustersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listNext operation. */ +export type VirtualClustersListNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface VirtualClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupNext operation. */ +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; + /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams +export interface VirtualNetworkRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByBaselineNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +/** Contains response data for the listByServer operation. */ +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams +export interface VirtualNetworkRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScan operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the get operation. */ +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams + 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 DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; +/** Contains response data for the createOrUpdate operation. */ +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams +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 VirtualNetworkRulesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScanNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listByServerNext operation. */ +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams +export interface WorkloadClassifiersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; +export type WorkloadClassifiersGetResponse = WorkloadClassifier; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams +export interface WorkloadClassifiersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; + +/** Optional parameters. */ +export interface WorkloadClassifiersDeleteOptionalParams + 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 WorkloadClassifiersListByWorkloadGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams +export interface WorkloadGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams +export interface WorkloadGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; +export type WorkloadGroupsGetResponse = WorkloadGroup; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams +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; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; + +/** Optional parameters. */ +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 WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; /** Optional parameters. */ export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index b4ddd552b914..3f35c776af41 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -8,6 +8,35 @@ import * as coreClient from "@azure/core-client"; +export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -38,141 +67,142 @@ export const Resource: coreClient.CompositeMapper = { } }; -export const DataMaskingRuleListResult: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRuleListResult", + className: "ServerBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataMaskingRule" + className: "ServerBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicyListResult", + className: "DatabaseBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GeoBackupPolicy" + className: "DatabaseBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricListResult: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricListResult", + className: "ExtendedDatabaseBlobAuditingPolicyListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Metric" + className: "ExtendedDatabaseBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const Metric: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Metric", + className: "ExtendedServerBlobAuditingPolicyListResult", modelProperties: { - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - timeGrain: { - serializedName: "timeGrain", - readOnly: true, - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "MetricName" - } - }, - metricValues: { - serializedName: "metricValues", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricValue" + className: "ExtendedServerBlobAuditingPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricName: coreClient.CompositeMapper = { +export const DataMaskingRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricName", + className: "DataMaskingRuleListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataMaskingRule" + } + } } }, - localizedValue: { - serializedName: "localizedValue", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -182,368 +212,158 @@ export const MetricName: coreClient.CompositeMapper = { } }; -export const MetricValue: coreClient.CompositeMapper = { +export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricValue", + className: "DataWarehouseUserActivitiesListResult", modelProperties: { - count: { - serializedName: "count", - readOnly: true, - type: { - name: "Number" - } - }, - average: { - serializedName: "average", - readOnly: true, - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", - readOnly: true, - type: { - name: "Number" - } - }, - minimum: { - serializedName: "minimum", - readOnly: true, - type: { - name: "Number" - } - }, - timestamp: { - serializedName: "timestamp", + value: { + serializedName: "value", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataWarehouseUserActivities" + } + } } }, - total: { - serializedName: "total", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const MetricDefinitionListResult: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinitionListResult", + className: "DatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDefinition" + className: "DatabaseAdvancedThreatProtection" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const MetricDefinition: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinition", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", + createdBy: { + serializedName: "createdBy", type: { - name: "Composite", - className: "MetricName" + name: "String" } }, - primaryAggregationType: { - serializedName: "primaryAggregationType", - readOnly: true, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - resourceUri: { - serializedName: "resourceUri", - readOnly: true, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - metricAvailabilities: { - serializedName: "metricAvailabilities", - readOnly: true, + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAvailability" - } - } + name: "DateTime" } } } } }; -export const MetricAvailability: coreClient.CompositeMapper = { +export const RecommendedActionStateInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAvailability", + className: "RecommendedActionStateInfo", modelProperties: { - retention: { - serializedName: "retention", - readOnly: true, + currentValue: { + serializedName: "currentValue", + required: true, type: { name: "String" } }, - timeGrain: { - serializedName: "timeGrain", + actionInitiatedBy: { + serializedName: "actionInitiatedBy", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] + } + }, + lastModified: { + serializedName: "lastModified", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const ServerCommunicationLinkListResult: coreClient.CompositeMapper = { +export const RecommendedActionImplementationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLinkListResult", + className: "RecommendedActionImplementationInfo", modelProperties: { - value: { - serializedName: "value", + method: { + serializedName: "method", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerCommunicationLink" - } - } - } - } - } - } -}; - -export const ServiceObjectiveListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjectiveListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjective" - } - } - } - } - } - } -}; - -export const ElasticPoolActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolActivityListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolActivity" - } - } - } - } - } - } -}; - -export const ElasticPoolDatabaseActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivityListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivity" - } - } - } - } - } - } -}; - -export const ServerUsageListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsageListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerUsage" - } - } - } - } - } - } -}; - -export const ServerUsage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerUsage", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - resourceName: { - serializedName: "resourceName", - readOnly: true, - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - nextResetTime: { - serializedName: "nextResetTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecommendedActionStateInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedActionStateInfo", - modelProperties: { - currentValue: { - serializedName: "currentValue", - required: true, - type: { - name: "String" - } - }, - actionInitiatedBy: { - serializedName: "actionInitiatedBy", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["User", "System"] - } - }, - lastModified: { - serializedName: "lastModified", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecommendedActionImplementationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedActionImplementationInfo", - modelProperties: { - method: { - serializedName: "method", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["TSql", "AzurePowerShell"] - } - }, - script: { - serializedName: "script", - readOnly: true, - type: { - name: "String" + name: "Enum", + allowedValues: ["TSql", "AzurePowerShell"] + } + }, + script: { + serializedName: "script", + readOnly: true, + type: { + name: "String" } } } @@ -738,10 +558,10 @@ export const DatabaseColumnListResult: coreClient.CompositeMapper = { } }; -export const DatabaseSchemaListResult: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSchemaListResult", + className: "ImportExportExtensionsOperationListResult", modelProperties: { value: { serializedName: "value", @@ -751,7 +571,7 @@ export const DatabaseSchemaListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseSchema" + className: "ImportExportExtensionsOperationResult" } } } @@ -767,55 +587,61 @@ export const DatabaseSchemaListResult: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "PrivateEndpointConnectionRequestStatus", modelProperties: { - createdBy: { - serializedName: "createdBy", + privateLinkServiceId: { + serializedName: "privateLinkServiceId", + readOnly: true, type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + privateEndpointConnectionName: { + serializedName: "privateEndpointConnectionName", + readOnly: true, type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + } + } + } +}; + +export const NetworkIsolationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkIsolationSettings", + modelProperties: { + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + sqlServerResourceId: { + serializedName: "sqlServerResourceId", type: { - name: "DateTime" + name: "String" } } } } }; -export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { +export const DatabaseOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertListResult", + className: "DatabaseOperationListResult", modelProperties: { value: { serializedName: "value", @@ -825,7 +651,7 @@ export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy" + className: "DatabaseOperation" } } } @@ -841,93 +667,34 @@ export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { } }; -export const DatabaseTableListResult: coreClient.CompositeMapper = { +export const PhaseDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseTableListResult", + className: "PhaseDetails", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseTable" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + phase: { + serializedName: "phase", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", - modelProperties: { - result: { - serializedName: "result", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", - modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - emailSubscriptionAdmins: { - defaultValue: true, - serializedName: "emailSubscriptionAdmins", - type: { - name: "Boolean" - } }, - emails: { - serializedName: "emails", + phaseInformation: { + serializedName: "phaseInformation", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const DatabaseSchemaListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentListResult", + className: "DatabaseSchemaListResult", modelProperties: { value: { serializedName: "value", @@ -937,7 +704,7 @@ export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment" + className: "DatabaseSchema" } } } @@ -953,10 +720,10 @@ export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapp } }; -export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const DatabaseSecurityAlertListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", + className: "DatabaseSecurityAlertListResult", modelProperties: { value: { serializedName: "value", @@ -966,7 +733,7 @@ export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMa element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord" + className: "DatabaseSecurityAlertPolicy" } } } @@ -982,33 +749,10 @@ export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMa } }; -export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataWarehouseUserActivitiesListResult", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", modelProperties: { value: { serializedName: "value", @@ -1018,7 +762,7 @@ export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "DataWarehouseUserActivities" + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" } } } @@ -1034,10 +778,10 @@ export const DataWarehouseUserActivitiesListResult: coreClient.CompositeMapper = } }; -export const DeletedServerListResult: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServerListResult", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", modelProperties: { value: { serializedName: "value", @@ -1047,7 +791,7 @@ export const DeletedServerListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedServer" + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" } } } @@ -1063,10 +807,10 @@ export const DeletedServerListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { +export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperationListResult", + className: "SQLVulnerabilityAssessmentScanListResult", modelProperties: { value: { serializedName: "value", @@ -1076,7 +820,7 @@ export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPoolOperation" + className: "SqlVulnerabilityAssessmentScanResults" } } } @@ -1092,26 +836,39 @@ export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { } }; -export const EncryptionProtectorListResult: coreClient.CompositeMapper = { +export const Remediation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "Remediation", modelProperties: { - value: { - serializedName: "value", + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + }, + scripts: { + serializedName: "scripts", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EncryptionProtector" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + automated: { + serializedName: "automated", + readOnly: true, + type: { + name: "Boolean" + } + }, + portalLink: { + serializedName: "portalLink", readOnly: true, type: { name: "String" @@ -1121,161 +878,233 @@ export const EncryptionProtectorListResult: coreClient.CompositeMapper = { } }; -export const ResourceWithWritableName: coreClient.CompositeMapper = { +export const BaselineAdjustedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceWithWritableName", + className: "BaselineAdjustedResult", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", + baseline: { + serializedName: "baseline", type: { - name: "String" + name: "Composite", + className: "Baseline" } }, - type: { - serializedName: "type", + status: { + serializedName: "status", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const FirewallRuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FirewallRuleListResult", - modelProperties: { - value: { - serializedName: "value", + }, + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FirewallRule" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - nextLink: { - serializedName: "nextLink", + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const FirewallRuleList: coreClient.CompositeMapper = { +export const Baseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallRuleList", + className: "Baseline", modelProperties: { - values: { - serializedName: "values", + expectedResults: { + serializedName: "expectedResults", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FirewallRule" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } + }, + updatedTime: { + serializedName: "updatedTime", + readOnly: true, + type: { + name: "DateTime" + } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const VaRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "VaRule", modelProperties: { - name: { - serializedName: "name", - required: true, + ruleId: { + serializedName: "ruleId", + readOnly: true, type: { name: "String" } }, - tier: { - serializedName: "tier", + severity: { + serializedName: "severity", + readOnly: true, type: { name: "String" } }, - size: { - serializedName: "size", + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } }, - family: { - serializedName: "family", + ruleType: { + serializedName: "ruleType", + readOnly: true, type: { name: "String" } }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" + 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 InstancePoolUpdate: coreClient.CompositeMapper = { +export const QueryCheck: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolUpdate", + className: "QueryCheck", modelProperties: { - tags: { - serializedName: "tags", + query: { + serializedName: "query", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + 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 InstancePoolListResult: coreClient.CompositeMapper = { +export const BenchmarkReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolListResult", + className: "BenchmarkReference", modelProperties: { - value: { - serializedName: "value", + benchmark: { + serializedName: "benchmark", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePool" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + reference: { + serializedName: "reference", readOnly: true, type: { name: "String" @@ -1285,10 +1114,10 @@ export const InstancePoolListResult: coreClient.CompositeMapper = { } }; -export const JobAgentListResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAgentListResult", + className: "SqlVulnerabilityAssessmentScanRecordListResult", modelProperties: { value: { serializedName: "value", @@ -1298,7 +1127,7 @@ export const JobAgentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobAgent" + className: "SqlVulnerabilityAssessmentScanRecord" } } } @@ -1314,26 +1143,33 @@ export const JobAgentListResult: coreClient.CompositeMapper = { } }; -export const JobAgentUpdate: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAgentUpdate", + className: "SqlVulnerabilityAssessmentScanError", modelProperties: { - tags: { - serializedName: "tags", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" } } } } }; -export const JobCredentialListResult: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredentialListResult", + className: "SqlVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -1343,7 +1179,7 @@ export const JobCredentialListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobCredential" + className: "SqlVulnerabilityAssessment" } } } @@ -1359,10 +1195,10 @@ export const JobCredentialListResult: coreClient.CompositeMapper = { } }; -export const JobExecutionListResult: coreClient.CompositeMapper = { +export const DatabaseTableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecutionListResult", + className: "DatabaseTableListResult", modelProperties: { value: { serializedName: "value", @@ -1372,7 +1208,7 @@ export const JobExecutionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobExecution" + className: "DatabaseTable" } } } @@ -1388,40 +1224,60 @@ export const JobExecutionListResult: coreClient.CompositeMapper = { } }; -export const JobExecutionTarget: coreClient.CompositeMapper = { +export const DatabaseUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecutionTarget", + className: "DatabaseUsageListResult", modelProperties: { - type: { - serializedName: "type", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseUsage" + } + } } }, - serverName: { - serializedName: "serverName", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - databaseName: { - serializedName: "databaseName", - readOnly: true, + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", + modelProperties: { + result: { + serializedName: "result", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const JobListResult: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListResult", + className: "VulnerabilityAssessmentScanRecordListResult", modelProperties: { value: { serializedName: "value", @@ -1431,7 +1287,7 @@ export const JobListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Job" + className: "VulnerabilityAssessmentScanRecord" } } } @@ -1447,41 +1303,21 @@ export const JobListResult: coreClient.CompositeMapper = { } }; -export const JobSchedule: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedule", + className: "VulnerabilityAssessmentScanError", modelProperties: { - startTime: { - defaultValue: "0001-01-01T00:00:00+00:00", - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - defaultValue: "9999-12-31T11:59:59+00:00", - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - type: { - defaultValue: "Once", - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["Once", "Recurring"] - } - }, - enabled: { - serializedName: "enabled", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - interval: { - serializedName: "interval", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -1490,10 +1326,10 @@ export const JobSchedule: coreClient.CompositeMapper = { } }; -export const JobStepListResult: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepListResult", + className: "DatabaseVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -1503,7 +1339,7 @@ export const JobStepListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobStep" + className: "DatabaseVulnerabilityAssessment" } } } @@ -1519,163 +1355,190 @@ export const JobStepListResult: coreClient.CompositeMapper = { } }; -export const JobStepAction: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepAction", + className: "VulnerabilityAssessmentRecurringScansProperties", modelProperties: { - type: { - defaultValue: "TSql", - serializedName: "type", + isEnabled: { + serializedName: "isEnabled", type: { - name: "String" + name: "Boolean" } }, - source: { - defaultValue: "Inline", - serializedName: "source", + emailSubscriptionAdmins: { + defaultValue: true, + serializedName: "emailSubscriptionAdmins", type: { - name: "String" + name: "Boolean" } }, - value: { - serializedName: "value", - required: true, + emails: { + serializedName: "emails", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const JobStepOutput: coreClient.CompositeMapper = { +export const DatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepOutput", + className: "DatabaseListResult", modelProperties: { - type: { - defaultValue: "SqlDatabase", - serializedName: "type", - type: { - name: "String" - } - }, - subscriptionId: { - serializedName: "subscriptionId", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Database" + } + } } }, - resourceGroupName: { - serializedName: "resourceGroupName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - serverName: { - serializedName: "serverName", + } + } + } +}; + +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + serializedName: "name", required: true, type: { name: "String" } }, - databaseName: { - serializedName: "databaseName", - required: true, + tier: { + serializedName: "tier", type: { name: "String" } }, - schemaName: { - defaultValue: "dbo", - serializedName: "schemaName", + size: { + serializedName: "size", type: { name: "String" } }, - tableName: { - serializedName: "tableName", - required: true, + family: { + serializedName: "family", type: { name: "String" } }, - credential: { - serializedName: "credential", - required: true, + capacity: { + serializedName: "capacity", type: { - name: "String" + name: "Number" } } } } }; -export const JobStepExecutionOptions: coreClient.CompositeMapper = { +export const DatabaseIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStepExecutionOptions", + className: "DatabaseIdentity", modelProperties: { - timeoutSeconds: { - defaultValue: 43200, - serializedName: "timeoutSeconds", + type: { + serializedName: "type", type: { - name: "Number" + name: "String" } }, - retryAttempts: { - defaultValue: 10, - serializedName: "retryAttempts", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - initialRetryIntervalSeconds: { - defaultValue: 1, - serializedName: "initialRetryIntervalSeconds", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Composite", className: "DatabaseUserIdentity" } + } } - }, - maximumRetryIntervalSeconds: { - defaultValue: 120, - serializedName: "maximumRetryIntervalSeconds", + } + } + } +}; + +export const DatabaseUserIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseUserIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - retryIntervalBackoffMultiplier: { - defaultValue: 2, - serializedName: "retryIntervalBackoffMultiplier", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Number" + name: "Uuid" } } } } }; -export const JobTargetGroupListResult: coreClient.CompositeMapper = { +export const DatabaseKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTargetGroupListResult", + className: "DatabaseKey", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTargetGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + thumbprint: { + serializedName: "thumbprint", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + subregion: { + serializedName: "subregion", readOnly: true, type: { name: "String" @@ -1685,491 +1548,449 @@ export const JobTargetGroupListResult: coreClient.CompositeMapper = { } }; -export const JobTarget: coreClient.CompositeMapper = { +export const DatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobTarget", + className: "DatabaseUpdate", modelProperties: { - membershipType: { - defaultValue: "Include", - serializedName: "membershipType", + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: ["Include", "Exclude"] + name: "Composite", + className: "Sku" } }, - type: { - serializedName: "type", - required: true, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "DatabaseIdentity" } }, - serverName: { - serializedName: "serverName", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - databaseName: { - serializedName: "databaseName", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - elasticPoolName: { - serializedName: "elasticPoolName", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - shardMapName: { - serializedName: "shardMapName", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "Number" } }, - refreshCredential: { - serializedName: "refreshCredential", + sampleName: { + serializedName: "properties.sampleName", type: { name: "String" } - } - } - } -}; - -export const JobVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobVersionListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + }, + elasticPoolId: { + serializedName: "properties.elasticPoolId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobVersion" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } - } - } - } -}; - -export const LocationCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LocationCapabilities", - modelProperties: { - name: { - serializedName: "name", + }, + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - supportedServerVersions: { - serializedName: "supportedServerVersions", - readOnly: true, + databaseId: { + serializedName: "properties.databaseId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVersionCapability" - } - } + name: "Uuid" } }, - supportedManagedInstanceVersions: { - serializedName: "supportedManagedInstanceVersions", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability" - } - } + name: "DateTime" } }, - status: { - serializedName: "status", + currentServiceObjectiveName: { + serializedName: "properties.currentServiceObjectiveName", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + requestedServiceObjectiveName: { + serializedName: "properties.requestedServiceObjectiveName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerVersionCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVersionCapability", - modelProperties: { - name: { - serializedName: "name", + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { name: "String" } }, - supportedEditions: { - serializedName: "supportedEditions", + failoverGroupId: { + serializedName: "properties.failoverGroupId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EditionCapability" - } - } + name: "String" } }, - supportedElasticPoolEditions: { - serializedName: "supportedElasticPoolEditions", - readOnly: true, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolEditionCapability" - } - } + name: "DateTime" } }, - status: { - serializedName: "status", - readOnly: true, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" } }, - reason: { - serializedName: "reason", + recoveryServicesRecoveryPointId: { + serializedName: "properties.recoveryServicesRecoveryPointId", type: { name: "String" } - } - } - } -}; - -export const EditionCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EditionCapability", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { name: "String" } }, - supportedServiceLevelObjectives: { - serializedName: "supportedServiceLevelObjectives", - readOnly: true, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjectiveCapability" - } - } + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { - name: "Boolean" + name: "String" } }, - readScale: { - serializedName: "readScale", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Composite", - className: "ReadScaleCapability" + name: "String" } }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", - readOnly: true, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageCapability" - } - } + name: "Boolean" } }, - status: { - serializedName: "status", - readOnly: true, + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + maxLogSizeBytes: { + serializedName: "properties.maxLogSizeBytes", + readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ServiceObjectiveCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjectiveCapability", - modelProperties: { - id: { - serializedName: "id", + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "Uuid" + name: "DateTime" } }, - name: { - serializedName: "name", - readOnly: true, + readScale: { + serializedName: "properties.readScale", type: { name: "String" } }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", - readOnly: true, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "Number" } }, - performanceLevel: { - serializedName: "performanceLevel", + secondaryType: { + serializedName: "properties.secondaryType", type: { - name: "Composite", - className: "PerformanceLevelCapability" + name: "String" } }, - sku: { - serializedName: "sku", + currentSku: { + serializedName: "properties.currentSku", type: { name: "Composite", className: "Sku" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", - readOnly: true, + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "Number" } }, - includedMaxSize: { - serializedName: "includedMaxSize", + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", + readOnly: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Boolean" + name: "String" } }, - supportedAutoPauseDelay: { - serializedName: "supportedAutoPauseDelay", + minCapacity: { + serializedName: "properties.minCapacity", type: { - name: "Composite", - className: "AutoPauseDelayTimeRange" + name: "Number" } }, - supportedMinCapacities: { - serializedName: "supportedMinCapacities", + pausedDate: { + serializedName: "properties.pausedDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MinCapacityCapability" - } - } + name: "DateTime" } }, - computeModel: { - serializedName: "computeModel", + resumedDate: { + serializedName: "properties.resumedDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability" - } - } + name: "String" } }, - status: { - serializedName: "status", + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } + }, + isInfraEncryptionEnabled: { + serializedName: "properties.isInfraEncryptionEnabled", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Boolean" } }, - reason: { - serializedName: "reason", + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + }, + encryptionProtector: { + serializedName: "properties.encryptionProtector", + type: { + name: "String" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + useFreeLimit: { + serializedName: "properties.useFreeLimit", + type: { + name: "Boolean" + } + }, + freeLimitExhaustionBehavior: { + serializedName: "properties.freeLimitExhaustionBehavior", type: { name: "String" } + }, + manualCutover: { + serializedName: "properties.manualCutover", + type: { + name: "Boolean" + } + }, + performCutover: { + serializedName: "properties.performCutover", + type: { + name: "Boolean" + } + }, + encryptionProtectorAutoRotation: { + serializedName: "properties.encryptionProtectorAutoRotation", + type: { + name: "Boolean" + } } } } }; -export const MaxSizeRangeCapability: coreClient.CompositeMapper = { +export const ExportDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaxSizeRangeCapability", + className: "ExportDatabaseDefinition", modelProperties: { - minValue: { - serializedName: "minValue", + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - maxValue: { - serializedName: "maxValue", + storageKey: { + serializedName: "storageKey", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - scaleSize: { - serializedName: "scaleSize", + storageUri: { + serializedName: "storageUri", + required: true, type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - logSize: { - serializedName: "logSize", + administratorLogin: { + serializedName: "administratorLogin", + required: true, type: { - name: "Composite", - className: "LogSizeCapability" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const MaxSizeCapability: coreClient.CompositeMapper = { +export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaxSizeCapability", + className: "ImportExistingDatabaseDefinition", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + 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 LogSizeCapability: coreClient.CompositeMapper = { +export const ResourceMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSizeCapability", + className: "ResourceMoveDefinition", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - readOnly: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -2178,20 +1999,26 @@ export const LogSizeCapability: coreClient.CompositeMapper = { } }; -export const PerformanceLevelCapability: coreClient.CompositeMapper = { +export const DeletedServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PerformanceLevelCapability", + className: "DeletedServerListResult", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeletedServer" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -2201,28 +2028,27 @@ export const PerformanceLevelCapability: coreClient.CompositeMapper = { } }; -export const LicenseTypeCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LicenseTypeCapability", + className: "DistributedAvailabilityGroupsListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroup" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2231,176 +2057,216 @@ export const LicenseTypeCapability: coreClient.CompositeMapper = { } }; -export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseDelayTimeRange", + className: "DistributedAvailabilityGroupDatabase", modelProperties: { - minValue: { - serializedName: "minValue", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { - name: "Number" + name: "String" } }, - maxValue: { - serializedName: "maxValue", + instanceReplicaId: { + serializedName: "instanceReplicaId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - stepSize: { - serializedName: "stepSize", + partnerReplicaId: { + serializedName: "partnerReplicaId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - default: { - serializedName: "default", + replicaState: { + serializedName: "replicaState", readOnly: true, type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", + synchronizationHealth: { + serializedName: "synchronizationHealth", readOnly: true, type: { name: "String" } }, - doNotPauseValue: { - serializedName: "doNotPauseValue", + connectedState: { + serializedName: "connectedState", readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const MinCapacityCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MinCapacityCapability", - modelProperties: { - value: { - serializedName: "value", + }, + lastReceivedLsn: { + serializedName: "lastReceivedLsn", readOnly: true, type: { - name: "Number" + name: "String" } }, - status: { - serializedName: "status", + lastReceivedTime: { + serializedName: "lastReceivedTime", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" } }, - reason: { - serializedName: "reason", + lastSentLsn: { + serializedName: "lastSentLsn", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability", - modelProperties: { - name: { - serializedName: "name", + }, + lastSentTime: { + serializedName: "lastSentTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastCommitLsn: { + serializedName: "lastCommitLsn", readOnly: true, type: { name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", + lastCommitTime: { + serializedName: "lastCommitTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - status: { - serializedName: "status", + lastHardenedLsn: { + serializedName: "lastHardenedLsn", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + lastHardenedTime: { + serializedName: "lastHardenedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastBackupLsn: { + serializedName: "lastBackupLsn", + readOnly: true, + type: { + name: "String" + } + }, + lastBackupTime: { + serializedName: "lastBackupTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + mostRecentLinkError: { + serializedName: "mostRecentLinkError", + readOnly: true, type: { name: "String" } + }, + partnerAuthCertValidity: { + serializedName: "partnerAuthCertValidity", + type: { + name: "Composite", + className: "CertificateInfo" + } + }, + instanceSendReplicationLagSeconds: { + serializedName: "instanceSendReplicationLagSeconds", + readOnly: true, + type: { + name: "Number" + } + }, + instanceRedoReplicationLagSeconds: { + serializedName: "instanceRedoReplicationLagSeconds", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const ReadScaleCapability: coreClient.CompositeMapper = { +export const CertificateInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReadScaleCapability", + className: "CertificateInfo", modelProperties: { - maxNumberOfReplicas: { - serializedName: "maxNumberOfReplicas", + certificateName: { + serializedName: "certificateName", readOnly: true, type: { - name: "Number" + name: "String" } }, - status: { - serializedName: "status", + certificateId: { + serializedName: "certificateId", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Uuid" } }, - reason: { - serializedName: "reason", + expiryDate: { + serializedName: "expiryDate", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const StorageCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupsCreateOrUpdateRequestBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageCapability", + className: "DistributedAvailabilityGroupsCreateOrUpdateRequestBody", modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", - readOnly: true, + targetDatabase: { + serializedName: "properties.targetDatabase", type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + sourceEndpoint: { + serializedName: "properties.sourceEndpoint", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + primaryAvailabilityGroupName: { + serializedName: "properties.primaryAvailabilityGroupName", + type: { + name: "String" + } + }, + secondaryAvailabilityGroupName: { + serializedName: "properties.secondaryAvailabilityGroupName", + type: { + name: "String" + } + }, + replicationMode: { + serializedName: "properties.replicationMode", type: { name: "String" } @@ -2409,48 +2275,79 @@ export const StorageCapability: coreClient.CompositeMapper = { } }; -export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroupSetRole: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolEditionCapability", + className: "DistributedAvailabilityGroupSetRole", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + instanceRole: { + serializedName: "instanceRole", + required: true, type: { name: "String" } }, - supportedElasticPoolPerformanceLevels: { - serializedName: "supportedElasticPoolPerformanceLevels", + roleChangeType: { + serializedName: "roleChangeType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolOperationListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability" + className: "ElasticPoolOperation" } } } }, - zoneRedundant: { - serializedName: "zoneRedundant", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - status: { - serializedName: "status", + } + } + } +}; + +export const ElasticPoolListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPool" + } + } } }, - reason: { - serializedName: "reason", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -2459,18 +2356,32 @@ export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability", + className: "ElasticPoolPerDatabaseSettings", modelProperties: { - performanceLevel: { - serializedName: "performanceLevel", + minCapacity: { + serializedName: "minCapacity", type: { - name: "Composite", - className: "PerformanceLevelCapability" + name: "Number" } }, + maxCapacity: { + serializedName: "maxCapacity", + type: { + name: "Number" + } + } + } + } +}; + +export const ElasticPoolUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolUpdate", + modelProperties: { sku: { serializedName: "sku", type: { @@ -2478,102 +2389,93 @@ export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = className: "Sku" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - maxDatabaseCount: { - serializedName: "maxDatabaseCount", - readOnly: true, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { name: "Number" } }, - includedMaxSize: { - serializedName: "includedMaxSize", + minCapacity: { + serializedName: "properties.minCapacity", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "Number" } }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", - readOnly: true, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" } }, - supportedPerDatabaseMaxSizes: { - serializedName: "supportedPerDatabaseMaxSizes", - readOnly: true, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "Boolean" } }, - supportedPerDatabaseMaxPerformanceLevels: { - serializedName: "supportedPerDatabaseMaxPerformanceLevels", - readOnly: true, + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" - } - } + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Boolean" + name: "String" } }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + }, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", + type: { + name: "String" + } + }, + availabilityZone: { + serializedName: "properties.availabilityZone", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProtectorListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MaintenanceConfigurationCapability" + className: "EncryptionProtector" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2582,85 +2484,129 @@ export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = } }; -export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { +export const EndpointCertificateListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", + className: "EndpointCertificateListResult", modelProperties: { - limit: { - serializedName: "limit", + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointCertificate" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - supportedPerDatabaseMinPerformanceLevels: { - serializedName: "supportedPerDatabaseMinPerformanceLevels", + } + } + } +}; + +export const FailoverGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" + className: "FailoverGroup" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } - }, - reason: { - serializedName: "reason", + } + } + } +}; + +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadWriteEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { name: "String" } + }, + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", + type: { + name: "Number" + } } } } }; -export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", + className: "FailoverGroupReadOnlyEndpoint", modelProperties: { - limit: { - serializedName: "limit", - readOnly: true, + failoverPolicy: { + serializedName: "failoverPolicy", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + targetServer: { + serializedName: "targetServer", + type: { + name: "String" + } + } + } + } +}; + +export const PartnerInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartnerInfo", + modelProperties: { + id: { + serializedName: "id", + required: true, type: { name: "String" } }, - status: { - serializedName: "status", + location: { + serializedName: "location", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + replicationRole: { + serializedName: "replicationRole", + readOnly: true, type: { name: "String" } @@ -2669,117 +2615,80 @@ export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.Com } }; -export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVersionCapability", + className: "FailoverGroupUpdate", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - supportedEditions: { - serializedName: "supportedEditions", - readOnly: true, + 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: "Composite", - className: "ManagedInstanceEditionCapability" + name: "String" } } } }, - supportedInstancePoolEditions: { - serializedName: "supportedInstancePoolEditions", - readOnly: true, + partnerServers: { + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstancePoolEditionCapability" + className: "PartnerInfo" } } } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } } } } }; -export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { +export const FirewallRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEditionCapability", + className: "FirewallRuleListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedFamilies: { - serializedName: "supportedFamilies", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceFamilyCapability" - } - } - } - }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageCapability" + className: "FirewallRule" } } } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, - type: { - name: "Boolean" - } - }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2788,61 +2697,77 @@ export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { +export const ResourceWithWritableName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceFamilyCapability", + className: "ResourceWithWritableName", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", + type: { + serializedName: "type", readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const FirewallRuleList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallRuleList", + modelProperties: { + values: { + serializedName: "values", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LicenseTypeCapability" + className: "FirewallRule" } } } - }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", + } + } + } +}; + +export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoBackupPolicyListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceVcoresCapability" + className: "GeoBackupPolicy" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2851,82 +2776,56 @@ export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { +export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVcoresCapability", + className: "IPv6FirewallRuleListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, value: { serializedName: "value", readOnly: true, - type: { - name: "Number" - } - }, - includedMaxSize: { - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - supportedStorageSizes: { - serializedName: "supportedStorageSizes", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MaxSizeRangeCapability" + className: "IPv6FirewallRule" } } } }, - instancePoolSupported: { - serializedName: "instancePoolSupported", - readOnly: true, - type: { - name: "Boolean" - } - }, - standaloneSupported: { - serializedName: "standaloneSupported", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", + } + } + } +}; + +export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceMaintenanceConfigurationCapability" + className: "InstanceFailoverGroup" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2935,28 +2834,35 @@ export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { +export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceMaintenanceConfigurationCapability", + className: "InstanceFailoverGroupReadWriteEndpoint", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Number" } - }, - reason: { - serializedName: "reason", + } + } + } +}; + +export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } @@ -2965,41 +2871,20 @@ export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.Compo } }; -export const InstancePoolEditionCapability: coreClient.CompositeMapper = { +export const PartnerRegionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolEditionCapability", + className: "PartnerRegionInfo", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - supportedFamilies: { - serializedName: "supportedFamilies", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePoolFamilyCapability" - } - } - } - }, - status: { - serializedName: "status", + replicationRole: { + serializedName: "replicationRole", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3008,54 +2893,48 @@ export const InstancePoolEditionCapability: coreClient.CompositeMapper = { } }; -export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { +export const ManagedInstancePairInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolFamilyCapability", + className: "ManagedInstancePairInfo", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + primaryManagedInstanceId: { + serializedName: "primaryManagedInstanceId", type: { name: "String" } }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", - readOnly: true, + partnerManagedInstanceId: { + serializedName: "partnerManagedInstanceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } - }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", + } + } + } +}; + +export const InstancePoolListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePoolListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstancePoolVcoresCapability" + className: "InstancePool" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -3064,54 +2943,26 @@ export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { } }; -export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { +export const InstancePoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolVcoresCapability", + className: "InstancePoolUpdate", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Number" - } - }, - storageLimit: { - serializedName: "storageLimit", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const JobAgentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicyListResult", + className: "JobAgentListResult", modelProperties: { value: { serializedName: "value", @@ -3121,7 +2972,7 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionPolicy" + className: "JobAgent" } } } @@ -3137,37 +2988,26 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { } }; -export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { +export const JobAgentUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowTimeRange", + className: "JobAgentUpdate", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "String" - } - }, - duration: { - serializedName: "duration", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const JobCredentialListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicyListResult", + className: "JobCredentialListResult", modelProperties: { value: { serializedName: "value", @@ -3177,7 +3017,7 @@ export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.Composi element: { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy" + className: "JobCredential" } } } @@ -3193,10 +3033,10 @@ export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.Composi } }; -export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { +export const JobExecutionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQueryStatistics", + className: "JobExecutionListResult", modelProperties: { value: { serializedName: "value", @@ -3206,7 +3046,7 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryStatistics" + className: "JobExecution" } } } @@ -3222,202 +3062,206 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { } }; -export const QueryStatisticsProperties: coreClient.CompositeMapper = { +export const JobExecutionTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatisticsProperties", + className: "JobExecutionTarget", modelProperties: { - databaseName: { - serializedName: "databaseName", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - queryId: { - serializedName: "queryId", + serverName: { + serializedName: "serverName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "startTime", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { name: "String" } - }, - endTime: { - serializedName: "endTime", + } + } + } +}; + +export const JobStepListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStepListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - type: { - name: "String" - } - }, - intervals: { - serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricInterval" + className: "JobStep" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QueryMetricInterval: coreClient.CompositeMapper = { +export const JobStepAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetricInterval", + className: "JobStepAction", modelProperties: { - intervalStartTime: { - serializedName: "intervalStartTime", - readOnly: true, + type: { + defaultValue: "TSql", + serializedName: "type", type: { name: "String" } }, - intervalType: { - serializedName: "intervalType", - readOnly: true, + source: { + defaultValue: "Inline", + serializedName: "source", type: { name: "String" } }, - executionCount: { - serializedName: "executionCount", - readOnly: true, - type: { - name: "Number" - } - }, - metrics: { - serializedName: "metrics", + value: { + serializedName: "value", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricProperties" - } - } + name: "String" } } } } }; -export const QueryMetricProperties: coreClient.CompositeMapper = { +export const JobStepOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetricProperties", + className: "JobStepOutput", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + type: { + defaultValue: "SqlDatabase", + serializedName: "type", type: { name: "String" } }, - displayName: { - serializedName: "displayName", - readOnly: true, + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "String" + name: "Uuid" } }, - unit: { - serializedName: "unit", - readOnly: true, + resourceGroupName: { + serializedName: "resourceGroupName", type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + serverName: { + serializedName: "serverName", + required: true, type: { - name: "Number" + name: "String" } }, - min: { - serializedName: "min", - readOnly: true, + databaseName: { + serializedName: "databaseName", + required: true, type: { - name: "Number" + name: "String" } }, - max: { - serializedName: "max", - readOnly: true, + schemaName: { + defaultValue: "dbo", + serializedName: "schemaName", type: { - name: "Number" + name: "String" } }, - avg: { - serializedName: "avg", - readOnly: true, + tableName: { + serializedName: "tableName", + required: true, type: { - name: "Number" + name: "String" } }, - sum: { - serializedName: "sum", - readOnly: true, - type: { - name: "Number" - } - }, - stdev: { - serializedName: "stdev", - readOnly: true, + credential: { + serializedName: "credential", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const JobStepExecutionOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicyListResult", + className: "JobStepExecutionOptions", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + timeoutSeconds: { + defaultValue: 43200, + serializedName: "timeoutSeconds", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + retryAttempts: { + defaultValue: 10, + serializedName: "retryAttempts", type: { - name: "String" + name: "Number" + } + }, + initialRetryIntervalSeconds: { + defaultValue: 1, + serializedName: "initialRetryIntervalSeconds", + type: { + name: "Number" + } + }, + maximumRetryIntervalSeconds: { + defaultValue: 120, + serializedName: "maximumRetryIntervalSeconds", + type: { + name: "Number" + } + }, + retryIntervalBackoffMultiplier: { + defaultValue: 2, + serializedName: "retryIntervalBackoffMultiplier", + type: { + name: "Number" } } } } }; -export const SecurityEventCollection: coreClient.CompositeMapper = { +export const JobTargetGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventCollection", + className: "JobTargetGroupListResult", modelProperties: { value: { serializedName: "value", @@ -3427,7 +3271,7 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityEvent" + className: "JobTargetGroup" } } } @@ -3443,56 +3287,52 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { } }; -export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { +export const JobTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties", + className: "JobTarget", modelProperties: { - threatId: { - serializedName: "threatId", - readOnly: true, + membershipType: { + defaultValue: "Include", + serializedName: "membershipType", type: { - name: "String" + name: "Enum", + allowedValues: ["Include", "Exclude"] } }, - statement: { - serializedName: "statement", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - statementHighlightOffset: { - serializedName: "statementHighlightOffset", - readOnly: true, + serverName: { + serializedName: "serverName", type: { - name: "Number" + name: "String" } }, - statementHighlightLength: { - serializedName: "statementHighlightLength", - readOnly: true, + databaseName: { + serializedName: "databaseName", type: { - name: "Number" + name: "String" } }, - errorCode: { - serializedName: "errorCode", - readOnly: true, + elasticPoolName: { + serializedName: "elasticPoolName", type: { - name: "Number" + name: "String" } }, - errorSeverity: { - serializedName: "errorSeverity", - readOnly: true, + shardMapName: { + serializedName: "shardMapName", type: { - name: "Number" + name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + refreshCredential: { + serializedName: "refreshCredential", type: { name: "String" } @@ -3501,10 +3341,10 @@ export const SecurityEventSqlInjectionAdditionalProperties: coreClient.Composite } }; -export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const JobVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryptionListResult", + className: "JobVersionListResult", modelProperties: { value: { serializedName: "value", @@ -3514,7 +3354,7 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ManagedTransparentDataEncryption" + className: "JobVersion" } } } @@ -3530,10 +3370,10 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap } }; -export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { +export const JobListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministratorListResult", + className: "JobListResult", modelProperties: { value: { serializedName: "value", @@ -3543,7 +3383,7 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ManagedInstanceAdministrator" + className: "Job" } } } @@ -3559,27 +3399,41 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper } }; -export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { +export const JobSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthListResult", + className: "JobSchedule", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + startTime: { + defaultValue: "0001-01-01T16:00:00-08:00", + serializedName: "startTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + endTime: { + defaultValue: "9999-12-31T03:59:59-08:00", + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + type: { + defaultValue: "Once", + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["Once", "Recurring"] + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + interval: { + serializedName: "interval", type: { name: "String" } @@ -3588,10 +3442,10 @@ export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMappe } }; -export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { +export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtectorListResult", + className: "LedgerDigestUploadsListResult", modelProperties: { value: { serializedName: "value", @@ -3601,7 +3455,7 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "LedgerDigestUploads" } } } @@ -3617,56 +3471,54 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM } }; -export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { +export const LocationCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKeyListResult", + className: "LocationCapabilities", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedServerVersions: { + serializedName: "supportedServerVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceKey" + className: "ServerVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + supportedManagedInstanceVersions: { + serializedName: "supportedManagedInstanceVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy" + className: "ManagedInstanceVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3675,279 +3527,282 @@ export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.Compos } }; -export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { +export const ServerVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperationListResult", + className: "ServerVersionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedEditions: { + serializedName: "supportedEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceOperation" + className: "EditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + supportedElasticPoolEditions: { + serializedName: "supportedElasticPoolEditions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolEditionCapability" + } + } } - } - } - } -}; - -export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair", - modelProperties: { - currentParameters: { - serializedName: "currentParameters", + }, + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - requestedParameters: { - serializedName: "requestedParameters", + reason: { + serializedName: "reason", type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "String" } } } } }; -export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { +export const EditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpsertManagedServerOperationParameters", + className: "EditionCapability", modelProperties: { - family: { - serializedName: "family", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - vCores: { - serializedName: "vCores", + supportedServiceLevelObjectives: { + serializedName: "supportedServiceLevelObjectives", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceObjectiveCapability" + } + } } }, - storageSizeInGB: { - serializedName: "storageSizeInGB", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceOperationSteps", - modelProperties: { - totalSteps: { - serializedName: "totalSteps", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - currentStep: { - serializedName: "currentStep", - readOnly: true, + readScale: { + serializedName: "readScale", type: { - name: "Number" + name: "Composite", + className: "ReadScaleCapability" } }, - stepsList: { - serializedName: "stepsList", + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpsertManagedServerOperationStep" + className: "StorageCapability" } } } + }, + zonePinning: { + serializedName: "zonePinning", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } } } } }; -export const UpsertManagedServerOperationStep: coreClient.CompositeMapper = { +export const ServiceObjectiveCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpsertManagedServerOperationStep", + className: "ServiceObjectiveCapability", modelProperties: { - order: { - serializedName: "order", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Number" + name: "Uuid" } }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + supportedMaxSizes: { + serializedName: "supportedMaxSizes", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", + }, + performanceLevel: { + serializedName: "performanceLevel", type: { name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + className: "PerformanceLevelCapability" } }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + className: "Sku" } }, - provisioningState: { - serializedName: "provisioningState", + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } - } - } - } -}; - -export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, + }, + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - description: { - serializedName: "description", - required: true, + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - actionsRequired: { - serializedName: "actionsRequired", - readOnly: true, + supportedAutoPauseDelay: { + serializedName: "supportedAutoPauseDelay", type: { - name: "String" + name: "Composite", + className: "AutoPauseDelayTimeRange" } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMinCapacities: { + serializedName: "supportedMinCapacities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection" + className: "MinCapacityCapability" } } } }, - nextLink: { - serializedName: "nextLink", + computeModel: { + serializedName: "computeModel", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateLink" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zonePinning: { + serializedName: "zonePinning", readOnly: true, + type: { + name: "Boolean" + } + }, + supportedFreeLimitExhaustionBehaviors: { + serializedName: "supportedFreeLimitExhaustionBehaviors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FreeLimitExhaustionBehaviorCapability" + } + } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3956,54 +3811,71 @@ export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = } }; -export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { +export const MaxSizeRangeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateLinkProperties", + className: "MaxSizeRangeCapability", modelProperties: { - groupId: { - serializedName: "groupId", - readOnly: true, + minValue: { + serializedName: "minValue", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - requiredMembers: { - serializedName: "requiredMembers", + maxValue: { + serializedName: "maxValue", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + scaleSize: { + serializedName: "scaleSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + logSize: { + serializedName: "logSize", + type: { + name: "Composite", + className: "LogSizeCapability" + } + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const MaxSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessmentListResult", + className: "MaxSizeCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4013,26 +3885,20 @@ export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.Compos } }; -export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const LogSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicyListResult", + className: "LogSizeCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicy" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4042,26 +3908,20 @@ export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMap } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const PerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "PerformanceLevelCapability", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4071,10 +3931,10 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const LicenseTypeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "LicenseTypeCapability", modelProperties: { name: { serializedName: "name", @@ -4083,92 +3943,97 @@ export const Operation: coreClient.CompositeMapper = { name: "String" } }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - properties: { - serializedName: "properties", - readOnly: true, + reason: { + serializedName: "reason", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "AutoPauseDelayTimeRange", modelProperties: { - provider: { - serializedName: "provider", + minValue: { + serializedName: "minValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - resource: { - serializedName: "resource", + maxValue: { + serializedName: "maxValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - operation: { - serializedName: "operation", + stepSize: { + serializedName: "stepSize", readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + default: { + serializedName: "default", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } + }, + doNotPauseValue: { + serializedName: "doNotPauseValue", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const MinCapacityCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "MinCapacityCapability", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4177,40 +4042,35 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { +export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionProperties", + className: "MaintenanceConfigurationCapability", modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "String" } }, - groupIds: { - serializedName: "groupIds", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4219,43 +4079,82 @@ export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { } }; -export const PrivateEndpointProperty: coreClient.CompositeMapper = { +export const FreeLimitExhaustionBehaviorCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointProperty", + className: "FreeLimitExhaustionBehaviorCapability", modelProperties: { - id: { - serializedName: "id", + exhaustionBehaviorType: { + serializedName: "exhaustionBehaviorType", + readOnly: true, type: { name: "String" } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } } } } }; -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { +export const ReadScaleCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", + className: "ReadScaleCapability", modelProperties: { + maxNumberOfReplicas: { + serializedName: "maxNumberOfReplicas", + readOnly: true, + type: { + name: "Number" + } + }, status: { serializedName: "status", - required: true, + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - description: { - serializedName: "description", - required: true, + reason: { + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const StorageCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageCapability", + modelProperties: { + storageAccountType: { + serializedName: "storageAccountType", + readOnly: true, type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4264,27 +4163,55 @@ export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapp } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "ElasticPoolEditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedElasticPoolPerformanceLevels: { + serializedName: "supportedElasticPoolPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "ElasticPoolPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, + type: { + name: "Boolean" + } + }, + zonePinning: { + serializedName: "zonePinning", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4293,112 +4220,121 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceProperties", + className: "ElasticPoolPerformanceLevelCapability", modelProperties: { - groupId: { - serializedName: "groupId", + performanceLevel: { + serializedName: "performanceLevel", + type: { + name: "Composite", + className: "PerformanceLevelCapability" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } }, - requiredMembers: { - serializedName: "requiredMembers", + maxDatabaseCount: { + serializedName: "maxDatabaseCount", + readOnly: true, + type: { + name: "Number" + } + }, + includedMaxSize: { + serializedName: "includedMaxSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + supportedMaxSizes: { + serializedName: "supportedMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MaxSizeRangeCapability" } } } }, - requiredZoneNames: { - serializedName: "requiredZoneNames", + supportedPerDatabaseMaxSizes: { + serializedName: "supportedPerDatabaseMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MaxSizeRangeCapability" } } } - } - } - } -}; - -export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecoverableManagedDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedPerDatabaseMaxPerformanceLevels: { + serializedName: "supportedPerDatabaseMaxPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecoverableManagedDatabase" + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const RestorePointListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorePoint" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } - } - } - } -}; - -export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CreateDatabaseRestorePointDefinition", - modelProperties: { - restorePointLabel: { - serializedName: "restorePointLabel", - required: true, + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4407,95 +4343,85 @@ export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = } }; -export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomaticTuningServerOptions", + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", modelProperties: { - desiredState: { - serializedName: "desiredState", + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Off", "On", "Default"] + name: "Number" } }, - actualState: { - serializedName: "actualState", + unit: { + serializedName: "unit", readOnly: true, type: { - name: "Enum", - allowedValues: ["Off", "On"] + name: "String" } }, - reasonCode: { - serializedName: "reasonCode", + supportedPerDatabaseMinPerformanceLevels: { + serializedName: "supportedPerDatabaseMinPerformanceLevels", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" + } + } } }, - reasonDesc: { - serializedName: "reasonDesc", + status: { + serializedName: "status", readOnly: true, type: { name: "Enum", - allowedValues: ["Default", "Disabled", "AutoConfigured"] + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const AdministratorListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdministratorListResult", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAzureADAdministrator" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureADOnlyAuthListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAzureADOnlyAuthentication" - } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4504,56 +4430,54 @@ export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { } }; -export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditSettingsListResult", + className: "ManagedInstanceVersionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedEditions: { + serializedName: "supportedEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings" + className: "ManagedInstanceEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerDnsAliasListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAliasListResult", - modelProperties: { - value: { - serializedName: "value", + supportedInstancePoolEditions: { + serializedName: "supportedInstancePoolEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDnsAlias" + className: "InstancePoolEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4562,72 +4486,61 @@ export const ServerDnsAliasListResult: coreClient.CompositeMapper = { } }; -export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { +export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDnsAliasAcquisition", + className: "ManagedInstanceEditionCapability", modelProperties: { - oldServerDnsAliasId: { - serializedName: "oldServerDnsAliasId", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerKeyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerKeyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + isGeneralPurposeV2: { + serializedName: "isGeneralPurposeV2", + readOnly: true, + type: { + name: "Boolean" + } + }, + supportedFamilies: { + serializedName: "supportedFamilies", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerKey" + className: "ManagedInstanceFamilyCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerOperationListResult", - modelProperties: { - value: { - serializedName: "value", + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerOperation" + className: "StorageCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4636,101 +4549,68 @@ export const ServerOperationListResult: coreClient.CompositeMapper = { } }; -export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", + className: "ManagedInstanceFamilyCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + sku: { + serializedName: "sku", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerInfo", - modelProperties: { - serverId: { - serializedName: "serverId", - required: true, + }, + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ServerTrustGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerTrustGroupListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerTrustGroup" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", - modelProperties: { - value: { - serializedName: "value", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" + className: "ManagedInstanceVcoresCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4739,56 +4619,140 @@ export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper } }; -export const SubscriptionUsageListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsageListResult", + className: "ManagedInstanceVcoresCapability", modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, value: { serializedName: "value", readOnly: true, + type: { + name: "Number" + } + }, + includedMaxSize: { + serializedName: "includedMaxSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + supportedStorageSizes: { + serializedName: "supportedStorageSizes", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubscriptionUsage" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", + includedStorageIOps: { + serializedName: "includedStorageIOps", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const SyncAgentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedStorageIOps: { + serializedName: "supportedStorageIOps", + type: { + name: "Composite", + className: "MaxLimitRangeCapability" + } + }, + iopsMinValueOverrideFactorPerSelectedStorageGB: { + serializedName: "iopsMinValueOverrideFactorPerSelectedStorageGB", + readOnly: true, + type: { + name: "Number" + } + }, + iopsIncludedValueOverrideFactorPerSelectedStorageGB: { + serializedName: "iopsIncludedValueOverrideFactorPerSelectedStorageGB", + readOnly: true, + type: { + name: "Number" + } + }, + includedStorageThroughputMBps: { + serializedName: "includedStorageThroughputMBps", + readOnly: true, + type: { + name: "Number" + } + }, + supportedStorageThroughputMBps: { + serializedName: "supportedStorageThroughputMBps", + type: { + name: "Composite", + className: "MaxLimitRangeCapability" + } + }, + throughputMBpsMinValueOverrideFactorPerSelectedStorageGB: { + serializedName: + "throughputMBpsMinValueOverrideFactorPerSelectedStorageGB", + readOnly: true, + type: { + name: "Number" + } + }, + throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB: { + serializedName: + "throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB", + readOnly: true, + type: { + name: "Number" + } + }, + instancePoolSupported: { + serializedName: "instancePoolSupported", + readOnly: true, + type: { + name: "Boolean" + } + }, + standaloneSupported: { + serializedName: "standaloneSupported", + readOnly: true, + type: { + name: "Boolean" + } + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncAgent" + className: "ManagedInstanceMaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4797,14 +4761,42 @@ export const SyncAgentListResult: coreClient.CompositeMapper = { } }; -export const SyncAgentKeyProperties: coreClient.CompositeMapper = { +export const MaxLimitRangeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentKeyProperties", + className: "MaxLimitRangeCapability", modelProperties: { - syncAgentKey: { - serializedName: "syncAgentKey", + minValue: { + serializedName: "minValue", + readOnly: true, + type: { + name: "Number" + } + }, + maxValue: { + serializedName: "maxValue", + readOnly: true, + type: { + name: "Number" + } + }, + scaleSize: { + serializedName: "scaleSize", + readOnly: true, + type: { + name: "Number" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4813,27 +4805,28 @@ export const SyncAgentKeyProperties: coreClient.CompositeMapper = { } }; -export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { +export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentLinkedDatabaseListResult", + className: "ManagedInstanceMaintenanceConfigurationCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4842,27 +4835,41 @@ export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { +export const InstancePoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncDatabaseIdListResult", + className: "InstancePoolEditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedFamilies: { + serializedName: "supportedFamilies", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncDatabaseIdProperties" + className: "InstancePoolFamilyCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4871,122 +4878,54 @@ export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { } }; -export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { +export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncDatabaseIdProperties", + className: "InstancePoolFamilyCapability", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaPropertiesListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncFullSchemaProperties" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SyncFullSchemaProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaProperties", - modelProperties: { - tables: { - serializedName: "tables", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncFullSchemaTable" + className: "InstancePoolVcoresCapability" } } } }, - lastUpdateTime: { - serializedName: "lastUpdateTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const SyncFullSchemaTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn" - } - } - } - }, - errorId: { - serializedName: "errorId", - readOnly: true, - type: { - name: "String" - } - }, - hasError: { - serializedName: "hasError", - readOnly: true, - type: { - name: "Boolean" - } - }, - name: { - serializedName: "name", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - quotedName: { - serializedName: "quotedName", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4995,56 +4934,42 @@ export const SyncFullSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { +export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncFullSchemaTableColumn", + className: "InstancePoolVcoresCapability", modelProperties: { - dataSize: { - serializedName: "dataSize", - readOnly: true, - type: { - name: "String" - } - }, - dataType: { - serializedName: "dataType", - readOnly: true, - type: { - name: "String" - } - }, - errorId: { - serializedName: "errorId", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - hasError: { - serializedName: "hasError", + value: { + serializedName: "value", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - isPrimaryKey: { - serializedName: "isPrimaryKey", - readOnly: true, + storageLimit: { + serializedName: "storageLimit", type: { - name: "Boolean" + name: "Composite", + className: "MaxSizeCapability" } }, - name: { - serializedName: "name", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - quotedName: { - serializedName: "quotedName", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5053,10 +4978,10 @@ export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { } }; -export const SyncGroupLogListResult: coreClient.CompositeMapper = { +export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogListResult", + className: "LongTermRetentionBackupListResult", modelProperties: { value: { serializedName: "value", @@ -5066,7 +4991,7 @@ export const SyncGroupLogListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroupLogProperties" + className: "LongTermRetentionBackup" } } } @@ -5082,49 +5007,43 @@ export const SyncGroupLogListResult: coreClient.CompositeMapper = { } }; -export const SyncGroupLogProperties: coreClient.CompositeMapper = { +export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogProperties", + className: "CopyLongTermRetentionBackupParameters", modelProperties: { - timestamp: { - serializedName: "timestamp", - readOnly: true, + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { - name: "DateTime" + name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + targetResourceGroup: { + serializedName: "properties.targetResourceGroup", type: { name: "String" } }, - source: { - serializedName: "source", - readOnly: true, + targetServerResourceId: { + serializedName: "properties.targetServerResourceId", type: { name: "String" } }, - details: { - serializedName: "details", - readOnly: true, + targetServerFullyQualifiedDomainName: { + serializedName: "properties.targetServerFullyQualifiedDomainName", type: { name: "String" } }, - tracingId: { - serializedName: "tracingId", - readOnly: true, + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", type: { - name: "Uuid" + name: "String" } }, - operationStatus: { - serializedName: "operationStatus", - readOnly: true, + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", type: { name: "String" } @@ -5133,25 +5052,42 @@ export const SyncGroupLogProperties: coreClient.CompositeMapper = { } }; -export const SyncGroupSchema: coreClient.CompositeMapper = { +export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchema", + className: "UpdateLongTermRetentionBackupParameters", modelProperties: { - tables: { - serializedName: "tables", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + 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: "SyncGroupSchemaTable" + className: "ManagedInstanceLongTermRetentionBackup" } } } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -5160,25 +5096,27 @@ export const SyncGroupSchema: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTable: coreClient.CompositeMapper = { +export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTable", + className: "LongTermRetentionPolicyListResult", modelProperties: { - columns: { - serializedName: "columns", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn" + className: "LongTermRetentionPolicy" } } } }, - quotedName: { - serializedName: "quotedName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -5187,25 +5125,25 @@ export const SyncGroupSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { +export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn", + className: "MaintenanceWindowTimeRange", modelProperties: { - quotedName: { - serializedName: "quotedName", + dayOfWeek: { + serializedName: "dayOfWeek", type: { name: "String" } }, - dataSize: { - serializedName: "dataSize", + startTime: { + serializedName: "startTime", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + duration: { + serializedName: "duration", type: { name: "String" } @@ -5214,10 +5152,10 @@ export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { } }; -export const SyncGroupListResult: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupListResult", + className: "ManagedBackupShortTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5227,7 +5165,7 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroup" + className: "ManagedBackupShortTermRetentionPolicy" } } } @@ -5243,10 +5181,10 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { } }; -export const SyncMemberListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMemberListResult", + className: "ManagedDatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -5256,7 +5194,7 @@ export const SyncMemberListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncMember" + className: "ManagedDatabaseAdvancedThreatProtection" } } } @@ -5272,10 +5210,10 @@ export const SyncMemberListResult: coreClient.CompositeMapper = { } }; -export const TimeZoneListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZoneListResult", + className: "ManagedDatabaseMoveOperationListResult", modelProperties: { value: { serializedName: "value", @@ -5285,7 +5223,7 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TimeZone" + className: "ManagedDatabaseMoveOperationResult" } } } @@ -5301,10 +5239,10 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { } }; -export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { +export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRuleListResult", + className: "ManagedInstanceQueryStatistics", modelProperties: { value: { serializedName: "value", @@ -5314,7 +5252,7 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "QueryStatistics" } } } @@ -5330,200 +5268,227 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { } }; -export const WorkloadClassifierListResult: coreClient.CompositeMapper = { +export const QueryStatisticsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifierListResult", + className: "QueryStatisticsProperties", modelProperties: { - value: { - serializedName: "value", + databaseName: { + serializedName: "databaseName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkloadClassifier" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + queryId: { + serializedName: "queryId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const WorkloadGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadGroupListResult", - modelProperties: { - value: { - serializedName: "value", + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "String" + } + }, + endTime: { + serializedName: "endTime", readOnly: true, + type: { + name: "String" + } + }, + intervals: { + serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkloadGroup" + className: "QueryMetricInterval" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const QueryMetricInterval: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicyListResult", + className: "QueryMetricInterval", modelProperties: { - value: { - serializedName: "value", + intervalStartTime: { + serializedName: "intervalStartTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupShortTermRetentionPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + intervalType: { + serializedName: "intervalType", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportExportExtensionsOperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + executionCount: { + serializedName: "executionCount", readOnly: true, + type: { + name: "Number" + } + }, + metrics: { + serializedName: "metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult" + className: "QueryMetricProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const DatabaseOperationListResult: coreClient.CompositeMapper = { +export const QueryMetricProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperationListResult", + className: "QueryMetricProperties", modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseOperation" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + min: { + serializedName: "min", readOnly: true, type: { - name: "String" + name: "Number" + } + }, + max: { + serializedName: "max", + readOnly: true, + type: { + name: "Number" + } + }, + avg: { + serializedName: "avg", + readOnly: true, + type: { + name: "Number" + } + }, + sum: { + serializedName: "sum", + readOnly: true, + type: { + name: "Number" + } + }, + stdev: { + serializedName: "stdev", + readOnly: true, + type: { + name: "Number" } } } } }; -export const DatabaseUsageListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsageListResult", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties", modelProperties: { - value: { - serializedName: "value", + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseUsage" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + 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 LedgerDigestUploadsListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploadsListResult", + className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LedgerDigestUploads" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", readOnly: true, type: { name: "String" @@ -5533,10 +5498,10 @@ export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { } }; -export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRuleListResult", + className: "ManagedDatabaseSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5546,7 +5511,7 @@ export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OutboundFirewallRule" + className: "ManagedDatabaseSecurityAlertPolicy" } } } @@ -5562,10 +5527,10 @@ export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const UsageListResult: coreClient.CompositeMapper = { +export const SecurityEventCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageListResult", + className: "SecurityEventCollection", modelProperties: { value: { serializedName: "value", @@ -5575,7 +5540,7 @@ export const UsageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" + className: "SecurityEvent" } } } @@ -5591,137 +5556,56 @@ export const UsageListResult: coreClient.CompositeMapper = { } }; -export const Usage: coreClient.CompositeMapper = { +export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "SecurityEventSqlInjectionAdditionalProperties", modelProperties: { - id: { - serializedName: "id", + threatId: { + serializedName: "threatId", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "Name" - } - }, - type: { - serializedName: "type", + statement: { + serializedName: "statement", readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + statementHighlightOffset: { + serializedName: "statementHighlightOffset", readOnly: true, type: { - name: "String" + name: "Number" } }, - currentValue: { - serializedName: "currentValue", + statementHighlightLength: { + serializedName: "statementHighlightLength", readOnly: true, type: { name: "Number" } }, - limit: { - serializedName: "limit", + errorCode: { + serializedName: "errorCode", readOnly: true, type: { name: "Number" } }, - requestedLimit: { - serializedName: "requestedLimit", + errorSeverity: { + serializedName: "errorSeverity", readOnly: true, type: { name: "Number" } - } - } - } -}; - -export const Name: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Name", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "String" - } - }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String" - } - } - } - } -}; - -export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CopyLongTermRetentionBackupParameters", - modelProperties: { - targetSubscriptionId: { - serializedName: "properties.targetSubscriptionId", - type: { - name: "String" - } - }, - targetResourceGroup: { - serializedName: "properties.targetResourceGroup", - type: { - name: "String" - } - }, - targetServerResourceId: { - serializedName: "properties.targetServerResourceId", - type: { - name: "String" - } - }, - targetServerFullyQualifiedDomainName: { - serializedName: "properties.targetServerFullyQualifiedDomainName", - type: { - name: "String" - } - }, - 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", + errorMessage: { + serializedName: "errorMessage", + readOnly: true, type: { name: "String" } @@ -5730,10 +5614,10 @@ export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper } }; -export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const SensitivityLabelListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupListResult", + className: "SensitivityLabelListResult", modelProperties: { value: { serializedName: "value", @@ -5743,7 +5627,7 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionBackup" + className: "SensitivityLabel" } } } @@ -5759,68 +5643,52 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackupListResult", + className: "SensitivityLabelUpdateList", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup" + className: "SensitivityLabelUpdate" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", + className: "RecommendedSensitivityLabelUpdateList", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableDroppedManagedDatabase" + className: "RecommendedSensitivityLabelUpdate" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicyListResult", + className: "ManagedTransparentDataEncryptionListResult", modelProperties: { value: { serializedName: "value", @@ -5830,7 +5698,7 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerConnectionPolicy" + className: "ManagedTransparentDataEncryption" } } } @@ -5846,10 +5714,10 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { } }; -export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributedAvailabilityGroupsListResult", + className: "ManagedDatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -5859,7 +5727,7 @@ export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "DistributedAvailabilityGroup" + className: "ManagedDatabase" } } } @@ -5875,156 +5743,206 @@ export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper } }; -export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustCertificatesListResult", + className: "ManagedDatabaseUpdate", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerTrustCertificate" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + collation: { + serializedName: "properties.collation", type: { name: "String" } - } - } - } -}; - -export const EndpointCertificateListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointCertificateListResult", - modelProperties: { - value: { - serializedName: "value", + }, + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointCertificate" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const SensitivityLabelListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelListResult", - modelProperties: { - value: { - serializedName: "value", + }, + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", + }, + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabelUpdate" - } - } + name: "String" } - } - } - } + }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + storageContainerUri: { + serializedName: "properties.storageContainerUri", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + crossSubscriptionSourceDatabaseId: { + serializedName: "properties.crossSubscriptionSourceDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + crossSubscriptionRestorableDroppedDatabaseId: { + serializedName: + "properties.crossSubscriptionRestorableDroppedDatabaseId", + 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" + } + }, + crossSubscriptionTargetManagedInstanceId: { + serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + type: { + name: "String" + } + }, + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } + } + } + } }; -export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", + className: "ManagedDatabaseMoveDefinition", modelProperties: { - operations: { - serializedName: "operations", + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate" - } - } + name: "String" } } } } }; -export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicyListResult", + className: "CompleteDatabaseRestoreDefinition", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + lastBackupName: { + serializedName: "lastBackupName", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseStartMoveDefinition", + modelProperties: { + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, + type: { + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + operationMode: { + serializedName: "operationMode", type: { name: "String" } @@ -6033,10 +5951,10 @@ export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { } }; -export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", + className: "ManagedInstanceAdministratorListResult", modelProperties: { value: { serializedName: "value", @@ -6046,7 +5964,7 @@ export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy" + className: "ManagedInstanceAdministrator" } } } @@ -6062,10 +5980,10 @@ export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = } }; -export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyListResult", + className: "ManagedInstanceAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -6075,7 +5993,7 @@ export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy" + className: "ManagedInstanceAdvancedThreatProtection" } } } @@ -6091,10 +6009,10 @@ export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeM } }; -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", + className: "ManagedInstanceAzureADOnlyAuthListResult", modelProperties: { value: { serializedName: "value", @@ -6104,7 +6022,7 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" + className: "ManagedInstanceAzureADOnlyAuthentication" } } } @@ -6120,10 +6038,10 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap } }; -export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtectionListResult", + className: "ManagedInstanceDtcListResult", modelProperties: { value: { serializedName: "value", @@ -6133,7 +6051,7 @@ export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtection" + className: "ManagedInstanceDtc" } } } @@ -6149,10 +6067,77 @@ export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMap } }; -export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalServerAdvancedThreatProtectionListResult", + 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 ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtectorListResult", modelProperties: { value: { serializedName: "value", @@ -6162,7 +6147,7 @@ export const LogicalServerAdvancedThreatProtectionListResult: coreClient.Composi element: { type: { name: "Composite", - className: "ServerAdvancedThreatProtection" + className: "ManagedInstanceEncryptionProtector" } } } @@ -6178,10 +6163,10 @@ export const LogicalServerAdvancedThreatProtectionListResult: coreClient.Composi } }; -export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { +export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasListResult", + className: "ManagedInstanceKeyListResult", modelProperties: { value: { serializedName: "value", @@ -6191,7 +6176,7 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedServerDnsAlias" + className: "ManagedInstanceKey" } } } @@ -6207,42 +6192,10 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { } }; -export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasCreation", - modelProperties: { - createDnsRecord: { - defaultValue: true, - serializedName: "createDnsRecord", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServerDnsAliasAcquisition", - modelProperties: { - oldManagedServerDnsAliasResourceId: { - serializedName: "oldManagedServerDnsAliasResourceId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtectionListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -6252,7 +6205,7 @@ export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.Compo element: { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -6268,10 +6221,10 @@ export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.Compo } }; -export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtectionListResult", + className: "ManagedInstanceOperationListResult", modelProperties: { value: { serializedName: "value", @@ -6281,7 +6234,7 @@ export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.Compo element: { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection" + className: "ManagedInstanceOperation" } } } @@ -6297,152 +6250,136 @@ export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.Compo } }; -export const ReplicationLinkListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLinkListResult", + className: "ManagedInstanceOperationParametersPair", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + currentParameters: { + serializedName: "currentParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReplicationLink" - } - } + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + requestedParameters: { + serializedName: "requestedParameters", type: { - name: "String" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } } } } }; -export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationListResult", + className: "UpsertManagedServerOperationParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + family: { + serializedName: "family", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseMoveOperationResult" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + tier: { + serializedName: "tier", type: { name: "String" } + }, + vCores: { + serializedName: "vCores", + type: { + name: "Number" + } + }, + storageSizeInGB: { + serializedName: "storageSizeInGB", + type: { + name: "Number" + } } } } }; -export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { +export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcListResult", + className: "ManagedInstanceOperationSteps", modelProperties: { - value: { - serializedName: "value", + totalSteps: { + serializedName: "totalSteps", + readOnly: true, + type: { + name: "String" + } + }, + currentStep: { + serializedName: "currentStep", + readOnly: true, + type: { + name: "Number" + } + }, + stepsList: { + serializedName: "stepsList", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceDtc" + className: + "UpsertManagedServerOperationStepWithEstimatesAndDuration" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationStepWithEstimatesAndDuration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtcSecuritySettings", + className: "UpsertManagedServerOperationStepWithEstimatesAndDuration", modelProperties: { - transactionManagerCommunicationSettings: { - serializedName: "transactionManagerCommunicationSettings", - type: { - name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" - } - }, - xaTransactionsEnabled: { - serializedName: "xaTransactionsEnabled", + stepStartTime: { + serializedName: "stepStartTime", type: { - name: "Boolean" + name: "DateTime" } }, - snaLu6Point2TransactionsEnabled: { - serializedName: "snaLu6point2TransactionsEnabled", + stepEndTime: { + serializedName: "stepEndTime", type: { - name: "Boolean" + name: "DateTime" } }, - xaTransactionsDefaultTimeout: { - serializedName: "xaTransactionsDefaultTimeout", + timeElapsed: { + serializedName: "timeElapsed", type: { - name: "Number" + name: "String" } }, - xaTransactionsMaximumTimeout: { - serializedName: "xaTransactionsMaximumTimeout", + order: { + serializedName: "order", type: { name: "Number" } - } - } - } -}; - -export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", - modelProperties: { - allowInboundEnabled: { - serializedName: "allowInboundEnabled", - type: { - name: "Boolean" - } }, - allowOutboundEnabled: { - serializedName: "allowOutboundEnabled", + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - authentication: { - serializedName: "authentication", + status: { + serializedName: "status", type: { name: "String" } @@ -6451,10 +6388,10 @@ export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClie } }; -export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspaceListResult", + className: "ManagedInstancePrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -6464,7 +6401,7 @@ export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SynapseLinkWorkspace" + className: "ManagedInstancePrivateEndpointConnection" } } } @@ -6480,19 +6417,28 @@ export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { } }; -export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties", + className: "ManagedInstancePrivateEndpointConnectionProperties", modelProperties: { - workspaceId: { - serializedName: "workspaceId", + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - linkConnectionName: { - serializedName: "linkConnectionName", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -6501,27 +6447,13 @@ export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { } }; -export const VirtualClusterListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterListResult", + className: "ManagedInstancePrivateEndpointProperty", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualCluster" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } @@ -6530,51 +6462,40 @@ export const VirtualClusterListResult: coreClient.CompositeMapper = { } }; -export const VirtualClusterUpdate: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterUpdate", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - subnetId: { - serializedName: "properties.subnetId", - readOnly: true, + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - version: { - serializedName: "properties.version", + description: { + serializedName: "description", + required: true, type: { name: "String" } }, - childResources: { - serializedName: "properties.childResources", + actionsRequired: { + serializedName: "actionsRequired", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupListResult", + className: "ManagedInstancePrivateLinkListResult", modelProperties: { value: { serializedName: "value", @@ -6584,7 +6505,7 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceFailoverGroup" + className: "ManagedInstancePrivateLink" } } } @@ -6600,56 +6521,66 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { } }; -export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint", + className: "ManagedInstancePrivateLinkProperties", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + groupId: { + serializedName: "groupId", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const PartnerRegionInfo: coreClient.CompositeMapper = { +export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartnerRegionInfo", + className: "ManagedInstanceVulnerabilityAssessmentListResult", modelProperties: { - location: { - serializedName: "location", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceVulnerabilityAssessment" + } + } } }, - replicationRole: { - serializedName: "replicationRole", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -6659,19 +6590,27 @@ export const PartnerRegionInfo: coreClient.CompositeMapper = { } }; -export const ManagedInstancePairInfo: coreClient.CompositeMapper = { +export const ManagedInstanceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePairInfo", + className: "ManagedInstanceListResult", modelProperties: { - primaryManagedInstanceId: { - serializedName: "primaryManagedInstanceId", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstance" + } + } } }, - partnerManagedInstanceId: { - serializedName: "partnerManagedInstanceId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -6680,185 +6619,161 @@ export const ManagedInstancePairInfo: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { +export const ResourceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties", + className: "ResourceIdentity", modelProperties: { - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - firstStripeName: { - serializedName: "firstStripeName", - readOnly: true, - type: { - name: "String" - } - }, - numberOfStripes: { - serializedName: "numberOfStripes", - readOnly: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "UserIdentity" } } } }, - backupSizeMB: { - serializedName: "backupSizeMB", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - restoreStartedTimestampUtc: { - serializedName: "restoreStartedTimestampUtc", - readOnly: true, + type: { + serializedName: "type", type: { - name: "DateTime" + name: "String" } }, - restoreFinishedTimestampUtc: { - serializedName: "restoreFinishedTimestampUtc", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { - name: "DateTime" + name: "Uuid" } } } } }; -export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { +export const UserIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", + className: "UserIdentity", modelProperties: { - name: { - serializedName: "name", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "String" + name: "Uuid" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid" } } } } }; -export const DatabaseListResult: coreClient.CompositeMapper = { +export const ManagedInstancePecProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseListResult", + className: "ManagedInstancePecProperty", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Database" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties" } } } } }; -export const DatabaseIdentity: coreClient.CompositeMapper = { +export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseIdentity", + className: "ManagedInstanceExternalAdministrator", modelProperties: { - type: { - serializedName: "type", + 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", - readOnly: true, type: { name: "Uuid" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DatabaseUserIdentity" } - } + name: "Boolean" } } } } }; -export const DatabaseUserIdentity: coreClient.CompositeMapper = { +export const ServicePrincipal: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUserIdentity", + className: "ServicePrincipal", modelProperties: { principalId: { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" + name: "String" } }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "Uuid" + name: "String" } - } - } - } -}; - -export const DatabaseKey: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseKey", - modelProperties: { - type: { - serializedName: "type", + }, + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - subregion: { - serializedName: "subregion", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } @@ -6867,10 +6782,10 @@ export const DatabaseKey: coreClient.CompositeMapper = { } }; -export const DatabaseUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUpdate", + className: "ManagedInstanceUpdate", modelProperties: { sku: { serializedName: "sku", @@ -6883,7 +6798,7 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "DatabaseIdentity" + className: "ResourceIdentity" } }, tags: { @@ -6893,188 +6808,178 @@ 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", - type: { - name: "Number" - } - }, - sampleName: { - serializedName: "properties.sampleName", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { name: "String" } }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + isGeneralPurposeV2: { + serializedName: "properties.isGeneralPurposeV2", type: { - name: "String" + name: "Boolean" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", - readOnly: true, - type: { - name: "Uuid" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + subnetId: { + serializedName: "properties.subnetId", type: { - name: "DateTime" + name: "String" } }, - currentServiceObjectiveName: { - serializedName: "properties.currentServiceObjectiveName", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - requestedServiceObjectiveName: { - serializedName: "properties.requestedServiceObjectiveName", - readOnly: true, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + hybridSecondaryUsage: { + serializedName: "properties.hybridSecondaryUsage", type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", + hybridSecondaryUsageDetected: { + serializedName: "properties.hybridSecondaryUsageDetected", readOnly: true, type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + vCores: { + serializedName: "properties.vCores", type: { - name: "DateTime" + name: "Number" } }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { - name: "DateTime" + name: "Number" } }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + storageIOps: { + serializedName: "properties.storageIOps", type: { - name: "String" + name: "Number" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + storageThroughputMBps: { + serializedName: "properties.storageThroughputMBps", type: { - name: "String" + name: "Number" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + dnsZone: { + serializedName: "properties.dnsZone", + readOnly: true, type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", type: { name: "Boolean" } }, - licenseType: { - serializedName: "properties.licenseType", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { name: "String" } }, - maxLogSizeBytes: { - serializedName: "properties.maxLogSizeBytes", - readOnly: true, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Number" + name: "DateTime" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + proxyOverride: { + serializedName: "properties.proxyOverride", type: { - name: "DateTime" + name: "String" } }, - readScale: { - serializedName: "properties.readScale", + timezoneId: { + serializedName: "properties.timezoneId", type: { name: "String" } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + instancePoolId: { + serializedName: "properties.instancePoolId", type: { - name: "Number" + name: "String" } }, - secondaryType: { - serializedName: "properties.secondaryType", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - currentSku: { - serializedName: "properties.currentSku", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePecProperty" + } + } } }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { - name: "Number" + name: "String" } }, currentBackupStorageRedundancy: { @@ -7090,271 +6995,272 @@ export const DatabaseUpdate: coreClient.CompositeMapper = { name: "String" } }, - minCapacity: { - serializedName: "properties.minCapacity", - type: { - name: "Number" - } - }, - pausedDate: { - serializedName: "properties.pausedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - resumedDate: { - serializedName: "properties.resumedDate", - readOnly: true, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "DateTime" + name: "Boolean" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", - type: { - name: "Boolean" - } - }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", - readOnly: true, + keyId: { + serializedName: "properties.keyId", type: { - name: "Boolean" + name: "String" } }, - federatedClientId: { - serializedName: "properties.federatedClientId", + administrators: { + serializedName: "properties.administrators", type: { - name: "Uuid" + name: "Composite", + className: "ManagedInstanceExternalAdministrator" } }, - keys: { - serializedName: "properties.keys", + servicePrincipal: { + serializedName: "properties.servicePrincipal", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "Composite", + className: "ServicePrincipal" } }, - encryptionProtector: { - serializedName: "properties.encryptionProtector", + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, type: { name: "String" } }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, type: { name: "String" } }, - manualCutover: { - serializedName: "properties.manualCutover", + pricingModel: { + serializedName: "properties.pricingModel", type: { - name: "Boolean" + name: "String" } }, - performCutover: { - serializedName: "properties.performCutover", + createTime: { + serializedName: "properties.createTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } } } } }; -export const ExportDatabaseDefinition: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExportDatabaseDefinition", + className: "OutboundEnvironmentEndpointCollection", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, + value: { + serializedName: "value", + readOnly: 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" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint" + } + } } }, - authenticationType: { - serializedName: "authenticationType", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const NetworkIsolationSettings: coreClient.CompositeMapper = { +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkIsolationSettings", + className: "OutboundEnvironmentEndpoint", modelProperties: { - storageAccountResourceId: { - serializedName: "storageAccountResourceId", + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } }, - sqlServerResourceId: { - serializedName: "sqlServerResourceId", + endpoints: { + serializedName: "endpoints", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDependency" + } + } } } } } }; -export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { +export const EndpointDependency: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionRequestStatus", + className: "EndpointDependency", modelProperties: { - privateLinkServiceId: { - serializedName: "privateLinkServiceId", + domainName: { + serializedName: "domainName", readOnly: true, type: { name: "String" } }, - privateEndpointConnectionName: { - serializedName: "privateEndpointConnectionName", + endpointDetails: { + serializedName: "endpointDetails", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDetail" + } + } } - }, - status: { - serializedName: "status", + } + } + } +}; + +export const EndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDetail", + modelProperties: { + port: { + serializedName: "port", readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "ErrorResponse", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, - type: { - name: "String" - } - }, - storageKey: { - serializedName: "storageKey", - required: true, + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } - }, - storageUri: { - serializedName: "storageUri", - required: true, + } + } + } +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + target: { + serializedName: "target", + readOnly: true, type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", + details: { + serializedName: "details", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } } }, - networkIsolation: { - serializedName: "networkIsolation", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { - name: "Composite", - className: "NetworkIsolationSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } } } } } }; -export const ResourceMoveDefinition: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceMoveDefinition", + className: "ErrorAdditionalInfo", modelProperties: { - id: { - serializedName: "id", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } } } } }; -export const ElasticPoolListResult: coreClient.CompositeMapper = { +export const TopQueriesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolListResult", + className: "TopQueriesListResult", modelProperties: { value: { serializedName: "value", @@ -7364,7 +7270,7 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "TopQueries" } } } @@ -7380,109 +7286,73 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { +export const TopQueries: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "TopQueries", modelProperties: { - minCapacity: { - serializedName: "minCapacity", - type: { - name: "Number" - } - }, - maxCapacity: { - serializedName: "maxCapacity", + numberOfQueries: { + serializedName: "numberOfQueries", + readOnly: true, 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", + aggregationFunction: { + serializedName: "aggregationFunction", + readOnly: true, type: { - name: "Number" + name: "String" } }, - minCapacity: { - serializedName: "properties.minCapacity", + observationMetric: { + serializedName: "observationMetric", + readOnly: true, type: { - name: "Number" + name: "String" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + intervalType: { + serializedName: "intervalType", + readOnly: true, type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + endTime: { + serializedName: "endTime", + readOnly: true, type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", - type: { - name: "Number" - } - }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", - type: { - name: "String" - } - }, - availabilityZone: { - serializedName: "properties.availabilityZone", + queries: { + serializedName: "queries", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatisticsProperties" + } + } } } } } }; -export const ManagedDatabaseListResult: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseListResult", + className: "ManagedLedgerDigestUploadsListResult", modelProperties: { value: { serializedName: "value", @@ -7492,7 +7362,7 @@ export const ManagedDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedDatabase" + className: "ManagedLedgerDigestUploads" } } } @@ -7508,183 +7378,58 @@ export const ManagedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseUpdate", + className: "ManagedServerDnsAliasListResult", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - 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", + value: { + serializedName: "value", 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" - } - }, - crossSubscriptionSourceDatabaseId: { - serializedName: "properties.crossSubscriptionSourceDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - crossSubscriptionRestorableDroppedDatabaseId: { - serializedName: - "properties.crossSubscriptionRestorableDroppedDatabaseId", - type: { - name: "String" - } - }, - storageContainerIdentity: { - serializedName: "properties.storageContainerIdentity", - type: { - name: "String" - } - }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerDnsAlias" + } + } } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", + nextLink: { + serializedName: "nextLink", 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" - } - }, - crossSubscriptionTargetManagedInstanceId: { - serializedName: "properties.crossSubscriptionTargetManagedInstanceId", - type: { - name: "String" - } - }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", - type: { - name: "Boolean" - } } } } }; -export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveDefinition", + className: "ManagedServerDnsAliasCreation", modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + createDnsRecord: { + defaultValue: true, + serializedName: "createDnsRecord", type: { - name: "String" + name: "Boolean" } } } } }; -export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CompleteDatabaseRestoreDefinition", + className: "ManagedServerDnsAliasAcquisition", modelProperties: { - lastBackupName: { - serializedName: "lastBackupName", + oldManagedServerDnsAliasResourceId: { + serializedName: "oldManagedServerDnsAliasResourceId", required: true, type: { name: "String" @@ -7694,20 +7439,27 @@ export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseStartMoveDefinition", + className: "ManagedServerSecurityAlertPolicyListResult", modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicy" + } + } } }, - operationMode: { - serializedName: "operationMode", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -7716,10 +7468,10 @@ export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { } }; -export const ManagedInstanceListResult: coreClient.CompositeMapper = { +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "NetworkSecurityPerimeterConfigurationListResult", modelProperties: { value: { serializedName: "value", @@ -7729,7 +7481,7 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstance" + className: "NetworkSecurityPerimeterConfiguration" } } } @@ -7745,161 +7497,188 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { } }; -export const ResourceIdentity: coreClient.CompositeMapper = { +export const NSPConfigPerimeter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentity", + className: "NSPConfigPerimeter", modelProperties: { - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + id: { + serializedName: "id", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "UserIdentity" } } + name: "String" } }, - principalId: { - serializedName: "principalId", - readOnly: true, + perimeterGuid: { + serializedName: "perimeterGuid", type: { - name: "Uuid" + name: "String" } }, - type: { - serializedName: "type", + location: { + serializedName: "location", type: { name: "String" } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid" - } } } } }; -export const UserIdentity: coreClient.CompositeMapper = { +export const NSPConfigAssociation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentity", + className: "NSPConfigAssociation", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + name: { + serializedName: "name", type: { - name: "Uuid" + name: "String" } }, - clientId: { - serializedName: "clientId", - readOnly: true, + accessMode: { + serializedName: "accessMode", type: { - name: "Uuid" + name: "String" } } } } }; -export const ManagedInstancePecProperty: coreClient.CompositeMapper = { +export const NSPConfigProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePecProperty", + className: "NSPConfigProfile", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - properties: { - serializedName: "properties", + accessRulesVersion: { + serializedName: "accessRulesVersion", type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties" + name: "String" + } + }, + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigAccessRule" + } + } } } } } }; -export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { +export const NSPConfigAccessRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceExternalAdministrator", + className: "NSPConfigAccessRule", modelProperties: { - administratorType: { - serializedName: "administratorType", + name: { + serializedName: "name", type: { name: "String" } }, - principalType: { - serializedName: "principalType", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NSPConfigAccessRuleProperties" + } + } + } + } +}; + +export const NSPConfigAccessRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRuleProperties", + modelProperties: { + direction: { + serializedName: "direction", type: { name: "String" } }, - login: { - serializedName: "login", + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sid: { - serializedName: "sid", + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - tenantId: { - serializedName: "tenantId", + subscriptions: { + serializedName: "subscriptions", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule" + } + } } } } } }; -export const ServicePrincipal: coreClient.CompositeMapper = { +export const NSPConfigNetworkSecurityPerimeterRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipal", + className: "NSPConfigNetworkSecurityPerimeterRule", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + perimeterGuid: { + serializedName: "perimeterGuid", type: { name: "String" } }, - type: { - serializedName: "type", + location: { + serializedName: "location", type: { name: "String" } @@ -7908,228 +7687,332 @@ export const ServicePrincipal: coreClient.CompositeMapper = { } }; -export const ManagedInstanceUpdate: coreClient.CompositeMapper = { +export const NSPProvisioningIssue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceUpdate", + className: "NSPProvisioningIssue", modelProperties: { - sku: { - serializedName: "sku", + name: { + serializedName: "name", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ResourceIdentity" + className: "NSPProvisioningIssueProperties" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const NSPProvisioningIssueProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPProvisioningIssueProperties", + modelProperties: { + issueType: { + serializedName: "issueType", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + severity: { + serializedName: "severity", type: { name: "String" } }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", + description: { + serializedName: "description", type: { name: "String" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + suggestedResourceIds: { + serializedName: "suggestedResourceIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + suggestedAccessRules: { + serializedName: "suggestedAccessRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } }, - subnetId: { - serializedName: "properties.subnetId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - vCores: { - serializedName: "properties.vCores", + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Number" + name: "String" } }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", + properties: { + serializedName: "properties", + readOnly: true, type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } - }, - collation: { - serializedName: "properties.collation", + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String" } }, - dnsZone: { - serializedName: "properties.dnsZone", + resource: { + serializedName: "resource", readOnly: true, type: { name: "String" } }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + operation: { + serializedName: "operation", + readOnly: true, type: { name: "String" } }, - publicDataEndpointEnabled: { - serializedName: "properties.publicDataEndpointEnabled", - type: { - name: "Boolean" - } - }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + description: { + serializedName: "description", + readOnly: true, type: { name: "String" } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + } + } + } +}; + +export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundFirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundFirewallRule" + } + } } }, - proxyOverride: { - serializedName: "properties.proxyOverride", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - timezoneId: { - serializedName: "properties.timezoneId", + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, - instancePoolId: { - serializedName: "properties.instancePoolId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + } + } + } +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpointProperty" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + groupIds: { + serializedName: "groupIds", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedInstancePecProperty" + name: "String" } } } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } - }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + } + } + } +}; + +export const PrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - keyId: { - serializedName: "properties.keyId", + description: { + serializedName: "description", + required: true, type: { name: "String" } }, - administrators: { - serializedName: "properties.administrators", - type: { - name: "Composite", - className: "ManagedInstanceExternalAdministrator" - } - }, - servicePrincipal: { - serializedName: "properties.servicePrincipal", + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, type: { - name: "Composite", - className: "ServicePrincipal" + name: "String" } } } } }; -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpointCollection", + className: "PrivateLinkResourceListResult", modelProperties: { value: { serializedName: "value", @@ -8139,7 +8022,7 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" + className: "PrivateLinkResource" } } } @@ -8155,27 +8038,38 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = } }; -export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint", + className: "PrivateLinkResourceProperties", modelProperties: { - category: { - serializedName: "category", + groupId: { + serializedName: "groupId", readOnly: true, type: { name: "String" } }, - endpoints: { - serializedName: "endpoints", + requiredMembers: { + serializedName: "requiredMembers", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EndpointDependency" + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -8184,55 +8078,68 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { } }; -export const EndpointDependency: coreClient.CompositeMapper = { +export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDependency", + className: "RecoverableDatabaseListResult", modelProperties: { - domainName: { - serializedName: "domainName", - readOnly: true, - type: { - name: "String" - } - }, - endpointDetails: { - serializedName: "endpointDetails", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "EndpointDetail" + className: "RecoverableDatabase" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const EndpointDetail: coreClient.CompositeMapper = { +export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDetail", + className: "RecoverableManagedDatabaseListResult", modelProperties: { - port: { - serializedName: "port", + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableManagedDatabase" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" } } } } }; -export const TopQueriesListResult: coreClient.CompositeMapper = { +export const ReplicationLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueriesListResult", + className: "ReplicationLinkListResult", modelProperties: { value: { serializedName: "value", @@ -8242,7 +8149,7 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TopQueries" + className: "ReplicationLink" } } } @@ -8258,73 +8165,268 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { } }; -export const TopQueries: coreClient.CompositeMapper = { +export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueries", + className: "RestorableDroppedDatabaseListResult", modelProperties: { - numberOfQueries: { - serializedName: "numberOfQueries", + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedDatabase" + } + } } }, - aggregationFunction: { - serializedName: "aggregationFunction", + 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" + } + } + } }, - observationMetric: { - serializedName: "observationMetric", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const RestorePointListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePointListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } + } }, - intervalType: { - serializedName: "intervalType", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + serializedName: "restorePointLabel", + required: 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" + } + } + } }, - startTime: { - serializedName: "startTime", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions", + modelProperties: { + desiredState: { + serializedName: "desiredState", + type: { + name: "Enum", + allowedValues: ["Off", "On", "Default"] + } }, - endTime: { - serializedName: "endTime", + actualState: { + serializedName: "actualState", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Off", "On"] + } + }, + reasonCode: { + serializedName: "reasonCode", + readOnly: true, + type: { + name: "Number" + } + }, + reasonDesc: { + serializedName: "reasonDesc", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Default", "Disabled", "AutoConfigured"] + } + } + } + } +}; + +export const AdministratorListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdministratorListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAzureADAdministrator" + } + } + } + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureADOnlyAuthListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAzureADOnlyAuthentication" + } + } + } }, - queries: { - serializedName: "queries", + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerConfigurationOptionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryStatisticsProperties" + className: "ServerConfigurationOption" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { +export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedLedgerDigestUploadsListResult", + className: "ServerConnectionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -8334,7 +8436,7 @@ export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "ManagedLedgerDigestUploads" + className: "ServerConnectionPolicy" } } } @@ -8350,10 +8452,10 @@ export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = } }; -export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { +export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabaseListResult", + className: "ServerDevOpsAuditSettingsListResult", modelProperties: { value: { serializedName: "value", @@ -8363,7 +8465,7 @@ export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoverableDatabase" + className: "ServerDevOpsAuditingSettings" } } } @@ -8379,27 +8481,654 @@ export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { } }; -export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { +export const ServerDnsAliasListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDnsAliasListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerDnsAlias" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDnsAliasAcquisition", + modelProperties: { + oldServerDnsAliasId: { + serializedName: "oldServerDnsAliasId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerKeyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerKeyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerKey" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerOperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerOperation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalServerSecurityAlertPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy" + } + } + } + }, + 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 ServerTrustGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustGroupListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerTrustGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerInfo", + modelProperties: { + serverId: { + serializedName: "serverId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerUsageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerUsageListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerUsage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityRequest", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + type: { + defaultValue: "Microsoft.Sql/servers", + isConstant: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityResponse", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + available: { + serializedName: "available", + readOnly: true, + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Invalid", "AlreadyExists"] + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Server" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties" + } + } + } + } +}; + +export const ServerExternalAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerExternalAdministrator", + 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 ServerUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerUpdate", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { 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", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection" + } + } + } + }, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + workspaceFeature: { + serializedName: "properties.workspaceFeature", + readOnly: true, + type: { + name: "String" + } + }, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", + type: { + name: "String" + } + }, + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keyId: { + serializedName: "properties.keyId", + type: { + name: "String" + } + }, + administrators: { + serializedName: "properties.administrators", + type: { + name: "Composite", + className: "ServerExternalAdministrator" + } + }, + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", + type: { + name: "String" + } + }, + isIPv6Enabled: { + serializedName: "properties.isIPv6Enabled", + type: { + name: "String" + } + }, + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportNewDatabaseDefinition", + modelProperties: { + databaseName: { + serializedName: "databaseName", + type: { + name: "String" + } + }, + edition: { + serializedName: "edition", + type: { + name: "String" + } + }, + serviceObjectiveName: { + serializedName: "serviceObjectiveName", + type: { + name: "String" + } + }, + maxSizeBytes: { + serializedName: "maxSizeBytes", + type: { + name: "String" + } + }, + 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: "NetworkIsolationSettingsAutoGenerated" + } + } + } + } +}; + +export const NetworkIsolationSettingsAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabaseListResult", + className: "NetworkIsolationSettingsAutoGenerated", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedDatabase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + sqlServerResourceId: { + serializedName: "sqlServerResourceId", type: { name: "String" } @@ -8408,10 +9137,10 @@ export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { +export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOptionListResult", + className: "StartStopManagedInstanceScheduleListResult", modelProperties: { value: { serializedName: "value", @@ -8421,7 +9150,7 @@ export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerConfigurationOption" + className: "StartStopManagedInstanceSchedule" } } } @@ -8437,60 +9166,35 @@ export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { +export const ScheduleItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityRequest", + className: "ScheduleItem", modelProperties: { - name: { - serializedName: "name", + startDay: { + serializedName: "startDay", required: true, type: { name: "String" } }, - type: { - defaultValue: "Microsoft.Sql/servers", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckNameAvailabilityResponse", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + startTime: { + serializedName: "startTime", + required: true, type: { name: "String" } }, - available: { - serializedName: "available", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - readOnly: true, + stopDay: { + serializedName: "stopDay", + required: true, type: { - name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] + name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + stopTime: { + serializedName: "stopTime", + required: true, type: { name: "String" } @@ -8499,10 +9203,10 @@ export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { } }; -export const ServerListResult: coreClient.CompositeMapper = { +export const SubscriptionUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerListResult", + className: "SubscriptionUsageListResult", modelProperties: { value: { serializedName: "value", @@ -8512,7 +9216,7 @@ export const ServerListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Server" + className: "SubscriptionUsage" } } } @@ -8528,190 +9232,76 @@ export const ServerListResult: coreClient.CompositeMapper = { } }; -export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerPrivateEndpointConnection", + className: "SynapseLinkWorkspaceListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspace" + } + } } }, - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties" + name: "String" } } } } }; -export const ServerExternalAdministrator: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerExternalAdministrator", + className: "SynapseLinkWorkspaceInfoProperties", modelProperties: { - administratorType: { - serializedName: "administratorType", - type: { - name: "String" - } - }, - principalType: { - serializedName: "principalType", + workspaceId: { + serializedName: "workspaceId", type: { name: "String" } }, - login: { - serializedName: "login", + linkConnectionName: { + serializedName: "linkConnectionName", type: { name: "String" } - }, - sid: { - serializedName: "sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "Uuid" - } - }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", - type: { - name: "Boolean" - } } } } }; -export const ServerUpdate: coreClient.CompositeMapper = { +export const SyncAgentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerUpdate", + className: "SyncAgentListResult", modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { 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", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerPrivateEndpointConnection" - } - } - } - }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", - type: { - name: "String" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - workspaceFeature: { - serializedName: "properties.workspaceFeature", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" - } - }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", - type: { - name: "String" - } - }, - federatedClientId: { - serializedName: "properties.federatedClientId", - type: { - name: "Uuid" - } - }, - keyId: { - serializedName: "properties.keyId", - type: { - name: "String" - } - }, - administrators: { - serializedName: "properties.administrators", - type: { - name: "Composite", - className: "ServerExternalAdministrator" - } - }, - restrictOutboundNetworkAccess: { - serializedName: "properties.restrictOutboundNetworkAccess", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncAgent" + } + } } }, - externalGovernanceStatus: { - serializedName: "properties.externalGovernanceStatus", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -8721,108 +9311,171 @@ export const ServerUpdate: coreClient.CompositeMapper = { } }; -export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { +export const SyncAgentKeyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportNewDatabaseDefinition", + className: "SyncAgentKeyProperties", modelProperties: { - databaseName: { - serializedName: "databaseName", + syncAgentKey: { + serializedName: "syncAgentKey", + readOnly: true, type: { name: "String" } - }, - edition: { - serializedName: "edition", + } + } + } +}; + +export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabase" + } + } } }, - serviceObjectiveName: { - serializedName: "serviceObjectiveName", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - maxSizeBytes: { - serializedName: "maxSizeBytes", + } + } + } +}; + +export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncDatabaseIdListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncDatabaseIdProperties" + } + } } }, - storageKeyType: { - serializedName: "storageKeyType", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - storageKey: { - serializedName: "storageKey", - required: true, + } + } + } +}; + +export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncDatabaseIdProperties", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } - }, - storageUri: { - serializedName: "storageUri", - required: true, + } + } + } +}; + +export const SyncGroupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroup" + } + } } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const SyncGroupSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupSchema", + modelProperties: { + tables: { + serializedName: "tables", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTable" + } + } } }, - authenticationType: { - serializedName: "authenticationType", + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { name: "String" } - }, - networkIsolation: { - serializedName: "networkIsolation", - type: { - name: "Composite", - className: "NetworkIsolationSettings" - } } } } }; -export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { +export const SyncGroupSchemaTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartStopManagedInstanceScheduleListResult", + className: "SyncGroupSchemaTable", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + columns: { + serializedName: "columns", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StartStopManagedInstanceSchedule" + className: "SyncGroupSchemaTableColumn" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + quotedName: { + serializedName: "quotedName", type: { name: "String" } @@ -8831,35 +9484,25 @@ export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMap } }; -export const ScheduleItem: coreClient.CompositeMapper = { +export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleItem", + className: "SyncGroupSchemaTableColumn", modelProperties: { - startDay: { - serializedName: "startDay", - required: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - required: true, + quotedName: { + serializedName: "quotedName", type: { name: "String" } }, - stopDay: { - serializedName: "stopDay", - required: true, + dataSize: { + serializedName: "dataSize", type: { name: "String" } }, - stopTime: { - serializedName: "stopTime", - required: true, + dataType: { + serializedName: "dataType", type: { name: "String" } @@ -8868,10 +9511,10 @@ export const ScheduleItem: coreClient.CompositeMapper = { } }; -export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryptionListResult", + className: "SyncFullSchemaPropertiesListResult", modelProperties: { value: { serializedName: "value", @@ -8881,7 +9524,7 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp element: { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption" + className: "SyncFullSchemaProperties" } } } @@ -8897,64 +9540,77 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp } }; -export const FailoverGroupListResult: coreClient.CompositeMapper = { +export const SyncFullSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupListResult", + className: "SyncFullSchemaProperties", modelProperties: { - value: { - serializedName: "value", + tables: { + serializedName: "tables", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "FailoverGroup" + className: "SyncFullSchemaTable" } } } }, - nextLink: { - serializedName: "nextLink", + lastUpdateTime: { + serializedName: "lastUpdateTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const SyncFullSchemaTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadWriteEndpoint", + className: "SyncFullSchemaTable", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + columns: { + serializedName: "columns", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn" + } + } + } + }, + errorId: { + serializedName: "errorId", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + hasError: { + serializedName: "hasError", + readOnly: true, + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + }, + quotedName: { + serializedName: "quotedName", + readOnly: true, type: { name: "String" } @@ -8963,81 +9619,68 @@ export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { } }; -export const PartnerInfo: coreClient.CompositeMapper = { +export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartnerInfo", + className: "SyncFullSchemaTableColumn", modelProperties: { - id: { - serializedName: "id", - required: true, + dataSize: { + serializedName: "dataSize", + readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + dataType: { + serializedName: "dataType", readOnly: true, type: { name: "String" } }, - replicationRole: { - serializedName: "replicationRole", + errorId: { + serializedName: "errorId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const FailoverGroupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - tags: { - serializedName: "tags", + }, + hasError: { + serializedName: "hasError", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + isPrimaryKey: { + serializedName: "isPrimaryKey", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "Boolean" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "String" } }, - databases: { - serializedName: "properties.databases", + quotedName: { + serializedName: "quotedName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { +export const SyncGroupLogListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IPv6FirewallRuleListResult", + className: "SyncGroupLogListResult", modelProperties: { value: { serializedName: "value", @@ -9047,7 +9690,7 @@ export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPv6FirewallRule" + className: "SyncGroupLogProperties" } } } @@ -9063,55 +9706,48 @@ export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { +export const SyncGroupLogProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", + className: "SyncGroupLogProperties", modelProperties: { - value: { - serializedName: "value", + timestamp: { + serializedName: "timestamp", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", - modelProperties: { - value: { - serializedName: "value", + }, + source: { + serializedName: "source", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + details: { + serializedName: "details", + readOnly: true, + type: { + name: "String" + } + }, + tracingId: { + serializedName: "tracingId", + readOnly: true, + type: { + name: "Uuid" + } + }, + operationStatus: { + serializedName: "operationStatus", readOnly: true, type: { name: "String" @@ -9121,10 +9757,10 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien } }; -export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { +export const SyncMemberListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SQLVulnerabilityAssessmentScanListResult", + className: "SyncMemberListResult", modelProperties: { value: { serializedName: "value", @@ -9134,7 +9770,7 @@ export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults" + className: "SyncMember" } } } @@ -9150,39 +9786,26 @@ export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMappe } }; -export const Remediation: coreClient.CompositeMapper = { +export const TimeZoneListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Remediation", + className: "TimeZoneListResult", modelProperties: { - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - }, - scripts: { - serializedName: "scripts", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "TimeZone" } } } }, - automated: { - serializedName: "automated", - readOnly: true, - type: { - name: "Boolean" - } - }, - portalLink: { - serializedName: "portalLink", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -9192,234 +9815,135 @@ export const Remediation: coreClient.CompositeMapper = { } }; -export const BaselineAdjustedResult: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaselineAdjustedResult", + className: "LogicalDatabaseTransparentDataEncryptionListResult", modelProperties: { - baseline: { - serializedName: "baseline", - type: { - name: "Composite", - className: "Baseline" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - resultsNotInBaseline: { - serializedName: "resultsNotInBaseline", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "LogicalDatabaseTransparentDataEncryption" } } } }, - resultsOnlyInBaseline: { - serializedName: "resultsOnlyInBaseline", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } } } } }; -export const Baseline: coreClient.CompositeMapper = { +export const UsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Baseline", + className: "UsageListResult", modelProperties: { - expectedResults: { - serializedName: "expectedResults", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "Usage" } } } - }, - updatedTime: { - serializedName: "updatedTime", + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const VaRule: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaRule", + className: "Usage", 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", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - title: { - serializedName: "title", - readOnly: true, + name: { + serializedName: "name", type: { - name: "String" + name: "Composite", + className: "Name" } }, - description: { - serializedName: "description", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - rationale: { - serializedName: "rationale", + unit: { + serializedName: "unit", 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", + currentValue: { + serializedName: "currentValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - expectedResult: { - serializedName: "expectedResult", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "Number" } }, - columnNames: { - serializedName: "columnNames", + requestedLimit: { + serializedName: "requestedLimit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } } } } }; -export const BenchmarkReference: coreClient.CompositeMapper = { +export const Name: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BenchmarkReference", + className: "Name", modelProperties: { - benchmark: { - serializedName: "benchmark", - readOnly: true, + value: { + serializedName: "value", type: { name: "String" } }, - reference: { - serializedName: "reference", - readOnly: true, + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -9428,10 +9952,10 @@ export const BenchmarkReference: coreClient.CompositeMapper = { } }; -export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const VirtualClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecordListResult", + className: "VirtualClusterListResult", modelProperties: { value: { serializedName: "value", @@ -9441,7 +9965,7 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord" + className: "VirtualCluster" } } } @@ -9457,33 +9981,51 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit } }; -export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { +export const VirtualClusterUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanError", + className: "VirtualClusterUpdate", modelProperties: { - code: { - serializedName: "code", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + subnetId: { + serializedName: "properties.subnetId", readOnly: true, type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + version: { + serializedName: "properties.version", type: { name: "String" } + }, + childResources: { + serializedName: "properties.childResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentListResult", + className: "VirtualNetworkRuleListResult", modelProperties: { value: { serializedName: "value", @@ -9493,7 +10035,7 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessment" + className: "VirtualNetworkRule" } } } @@ -9509,68 +10051,59 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = } }; -export const SloUsageMetric: coreClient.CompositeMapper = { +export const WorkloadClassifierListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SloUsageMetric", + className: "WorkloadClassifierListResult", modelProperties: { - serviceLevelObjective: { - serializedName: "serviceLevelObjective", - readOnly: true, - type: { - name: "String" - } - }, - serviceLevelObjectiveId: { - serializedName: "serviceLevelObjectiveId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadClassifier" + } + } } }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const OperationImpact: coreClient.CompositeMapper = { +export const WorkloadGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationImpact", + className: "WorkloadGroupListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadGroup" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - changeValueAbsolute: { - serializedName: "changeValueAbsolute", - readOnly: true, - type: { - name: "Number" - } - }, - changeValueRelative: { - serializedName: "changeValueRelative", - readOnly: true, - type: { - name: "Number" - } } } } @@ -9623,88 +10156,134 @@ export const TrackedResource: coreClient.CompositeMapper = { tags: { serializedName: "tags", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResourceWithWritableName", + modelProperties: { + ...ResourceWithWritableName.type.modelProperties + } + } +}; + +export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", + type: { + name: "Number" } } } } }; -export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResourceWithWritableName", - modelProperties: { - ...ResourceWithWritableName.type.modelProperties - } - } -}; - -export const DataMaskingPolicy: coreClient.CompositeMapper = { +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingPolicy", + className: "ServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - kind: { - serializedName: "kind", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - dataMaskingState: { - serializedName: "properties.dataMaskingState", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + }, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Disabled", "Enabled"] + allowedValues: ["Enabled", "Disabled"] } }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - applicationPrincipals: { - serializedName: "properties.applicationPrincipals", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - maskingLevel: { - serializedName: "properties.maskingLevel", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const DataMaskingRule: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRule", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, kind: { serializedName: "kind", readOnly: true, @@ -9712,477 +10291,438 @@ export const DataMaskingRule: coreClient.CompositeMapper = { name: "String" } }, - idPropertiesId: { - serializedName: "properties.id", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - aliasName: { - serializedName: "properties.aliasName", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - ruleState: { - serializedName: "properties.ruleState", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Boolean" } }, - schemaName: { - serializedName: "properties.schemaName", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - tableName: { - serializedName: "properties.tableName", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - columnName: { - serializedName: "properties.columnName", + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - maskingFunction: { - serializedName: "properties.maskingFunction", + state: { + serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] - } - }, - numberFrom: { - serializedName: "properties.numberFrom", - type: { - name: "String" - } - }, - numberTo: { - serializedName: "properties.numberTo", - type: { - name: "String" + allowedValues: ["Enabled", "Disabled"] } }, - prefixSize: { - serializedName: "properties.prefixSize", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - suffixSize: { - serializedName: "properties.suffixSize", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - replacementString: { - serializedName: "properties.replacementString", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const GeoBackupPolicy: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicy", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - state: { - serializedName: "properties.state", - required: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - storageType: { - serializedName: "properties.storageType", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServerCommunicationLink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerCommunicationLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - kind: { - serializedName: "kind", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - state: { - serializedName: "properties.state", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - partnerServer: { - serializedName: "properties.partnerServer", - type: { - name: "String" - } - } - } - } -}; - -export const ServiceObjective: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceObjective", - modelProperties: { - ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - serializedName: "properties.serviceObjectiveName", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - isSystem: { - serializedName: "properties.isSystem", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Boolean" + name: "String" } }, - description: { - serializedName: "properties.description", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - enabled: { - serializedName: "properties.enabled", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Boolean" + name: "Uuid" } } } } }; -export const ElasticPoolActivity: coreClient.CompositeMapper = { +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolActivity", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "Number" + name: "Boolean" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Uuid" + name: "Boolean" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Number" + name: "Boolean" } }, - requestedDatabaseDtuMax: { - serializedName: "properties.requestedDatabaseDtuMax", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { name: "Number" } }, - requestedDatabaseDtuMin: { - serializedName: "properties.requestedDatabaseDtuMin", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Number" + name: "Boolean" } }, - requestedDtu: { - serializedName: "properties.requestedDtu", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - requestedStorageLimitInGB: { - serializedName: "properties.requestedStorageLimitInGB", - readOnly: true, - type: { - name: "Number" - } - }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } - }, - startTime: { - serializedName: "properties.startTime", + } + } + } +}; + +export const DataMaskingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - requestedStorageLimitInMB: { - serializedName: "properties.requestedStorageLimitInMB", - readOnly: true, + dataMaskingState: { + serializedName: "properties.dataMaskingState", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - requestedDatabaseDtuGuarantee: { - serializedName: "properties.requestedDatabaseDtuGuarantee", - readOnly: true, + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuCap: { - serializedName: "properties.requestedDatabaseDtuCap", + applicationPrincipals: { + serializedName: "properties.applicationPrincipals", readOnly: true, type: { - name: "Number" + name: "String" } }, - requestedDtuGuarantee: { - serializedName: "properties.requestedDtuGuarantee", + maskingLevel: { + serializedName: "properties.maskingLevel", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { +export const DataMaskingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "DataMaskingRule", modelProperties: { ...ProxyResource.type.modelProperties, location: { serializedName: "location", + readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + idPropertiesId: { + serializedName: "properties.id", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + ruleState: { + serializedName: "properties.ruleState", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + schemaName: { + serializedName: "properties.schemaName", type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + tableName: { + serializedName: "properties.tableName", type: { - name: "Number" + name: "String" } }, - operation: { - serializedName: "properties.operation", - readOnly: true, + columnName: { + serializedName: "properties.columnName", type: { name: "String" } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, + aliasName: { + serializedName: "properties.aliasName", type: { - name: "Uuid" + name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + maskingFunction: { + serializedName: "properties.maskingFunction", type: { - name: "Number" + name: "Enum", + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + numberFrom: { + serializedName: "properties.numberFrom", type: { name: "String" } }, - currentElasticPoolName: { - serializedName: "properties.currentElasticPoolName", - readOnly: true, + numberTo: { + serializedName: "properties.numberTo", type: { name: "String" } }, - currentServiceObjective: { - serializedName: "properties.currentServiceObjective", - readOnly: true, + prefixSize: { + serializedName: "properties.prefixSize", type: { name: "String" } }, - requestedServiceObjective: { - serializedName: "properties.requestedServiceObjective", - readOnly: true, + suffixSize: { + serializedName: "properties.suffixSize", type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + replacementString: { + serializedName: "properties.replacementString", type: { name: "String" } - }, - startTime: { - serializedName: "properties.startTime", + } + } + } +}; + +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", readOnly: true, type: { - name: "DateTime" + name: "Number" + } + } + } + } +}; + +export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseAdvancedThreatProtection", + 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: "String" + name: "DateTime" } } } @@ -10269,7 +10809,7 @@ export const RecommendedAction: coreClient.CompositeMapper = { serializedName: "properties.executeActionDuration", readOnly: true, type: { - name: "String" + name: "TimeSpan" } }, revertActionStartTime: { @@ -10283,7 +10823,7 @@ export const RecommendedAction: coreClient.CompositeMapper = { serializedName: "properties.revertActionDuration", readOnly: true, type: { - name: "String" + name: "TimeSpan" } }, executeActionInitiatedBy: { @@ -10555,129 +11095,84 @@ export const DatabaseColumn: coreClient.CompositeMapper = { } }; -export const DatabaseSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSchema", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Uuid" } }, - state: { - serializedName: "properties.state", + requestType: { + serializedName: "properties.requestType", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, type: { - name: "Number" + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", + blobUri: { + serializedName: "properties.blobUri", readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -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", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + className: "PrivateEndpointConnectionRequestStatus" } } } @@ -10686,193 +11181,91 @@ export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMa } }; -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + operationMode: { + serializedName: "properties.operationMode", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecord", - modelProperties: { - ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", - readOnly: true, + storageKeyType: { + serializedName: "properties.storageKeyType", type: { name: "String" } }, - triggerType: { - serializedName: "properties.triggerType", - readOnly: true, + storageKey: { + serializedName: "properties.storageKey", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + storageUri: { + serializedName: "properties.storageUri", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errors: { - serializedName: "properties.errors", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } - } - }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - readOnly: true, + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", - modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataWarehouseUserActivities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataWarehouseUserActivities", - modelProperties: { - ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", - readOnly: true, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", 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, + }, + authenticationType: { + serializedName: "properties.authenticationType", type: { name: "String" } }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, + databaseEdition: { + serializedName: "properties.databaseEdition", type: { - name: "DateTime" + name: "String" } }, - originalId: { - serializedName: "properties.originalId", - readOnly: true, + serviceObjectiveName: { + serializedName: "properties.serviceObjectiveName", type: { name: "String" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { name: "String" } + }, + networkIsolation: { + serializedName: "properties.networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const ElasticPoolOperation: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperation", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" @@ -10968,861 +11361,916 @@ export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + operationPhaseDetails: { + serializedName: "properties.operationPhaseDetails", + type: { + name: "Composite", + className: "PhaseDetails" + } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const DatabaseSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "DatabaseSchema", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - location: { - serializedName: "location", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" + } + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + results: { + serializedName: "properties.results", + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } + } + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + 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 JobCredential: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCredential", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - password: { - serializedName: "properties.password", + results: { + serializedName: "properties.results", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + } + } +}; + +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + latestScan: { + serializedName: "properties.latestScan", + type: { + name: "Boolean" + } + }, + results: { + serializedName: "properties.results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const JobExecution: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecution", + className: "SqlVulnerabilityAssessmentScanResults", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - stepName: { - serializedName: "properties.stepName", + ruleId: { + serializedName: "properties.ruleId", readOnly: true, type: { name: "String" } }, - stepId: { - serializedName: "properties.stepId", - readOnly: true, - type: { - name: "Number" - } - }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", - readOnly: true, - type: { - name: "Uuid" - } - }, - lifecycle: { - serializedName: "properties.lifecycle", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - startTime: { - serializedName: "properties.startTime", + isTrimmed: { + serializedName: "properties.isTrimmed", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - endTime: { - serializedName: "properties.endTime", + queryResults: { + serializedName: "properties.queryResults", readOnly: true, type: { - name: "DateTime" - } - }, - currentAttempts: { - serializedName: "properties.currentAttempts", - type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", - readOnly: true, + remediation: { + serializedName: "properties.remediation", type: { - name: "DateTime" + name: "Composite", + className: "Remediation" } }, - lastMessage: { - serializedName: "properties.lastMessage", - readOnly: true, + baselineAdjustedResult: { + serializedName: "properties.baselineAdjustedResult", type: { - name: "String" + name: "Composite", + className: "BaselineAdjustedResult" } }, - target: { - serializedName: "properties.target", + ruleMetadata: { + serializedName: "properties.ruleMetadata", type: { name: "Composite", - className: "JobExecutionTarget" + className: "VaRule" } } } } }; -export const Job: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Job", + className: "SqlVulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - defaultValue: "", - serializedName: "properties.description", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - version: { - serializedName: "properties.version", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { - name: "Number" - } - }, - schedule: { - serializedName: "properties.schedule", - type: { - 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" + name: "String" } }, - targetGroup: { - serializedName: "properties.targetGroup", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, type: { name: "String" } }, - credential: { - serializedName: "properties.credential", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - action: { - serializedName: "properties.action", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Composite", - className: "JobStepAction" + name: "DateTime" } }, - output: { - serializedName: "properties.output", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "Composite", - className: "JobStepOutput" + name: "DateTime" } }, - executionOptions: { - serializedName: "properties.executionOptions", - type: { - name: "Composite", - className: "JobStepExecutionOptions" - } - } - } - } -}; - -export const JobTargetGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobTargetGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + errors: { + serializedName: "properties.errors", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "JobTarget" + className: "SqlVulnerabilityAssessmentScanError" } } } - } - } - } -}; - -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" - } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + server: { + serializedName: "properties.server", + readOnly: true, type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + database: { + serializedName: "properties.database", + readOnly: true, type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + sqlVersion: { + serializedName: "properties.sqlVersion", + readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceWindowOptions", - modelProperties: { - ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + name: "String" + } + }, + highSeverityFailedRulesCount: { + serializedName: "properties.highSeverityFailedRulesCount", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + mediumSeverityFailedRulesCount: { + serializedName: "properties.mediumSeverityFailedRulesCount", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "Number" } }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + lowSeverityFailedRulesCount: { + serializedName: "properties.lowSeverityFailedRulesCount", + readOnly: true, type: { name: "Number" } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + totalPassedRulesCount: { + serializedName: "properties.totalPassedRulesCount", + readOnly: true, type: { name: "Number" } }, - minCycles: { - serializedName: "properties.minCycles", + totalFailedRulesCount: { + serializedName: "properties.totalFailedRulesCount", + readOnly: true, type: { name: "Number" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + totalRulesCount: { + serializedName: "properties.totalRulesCount", + readOnly: true, type: { name: "Number" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + isBaselineApplied: { + serializedName: "properties.isBaselineApplied", + readOnly: true, type: { name: "Boolean" } - } - } - } -}; - -export const MaintenanceWindows: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceWindows", - modelProperties: { - ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + }, + lastScanTime: { + serializedName: "properties.lastScanTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } + name: "DateTime" } } } } }; -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", + className: "SqlVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const ManagedInstanceQuery: coreClient.CompositeMapper = { +export const DatabaseTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQuery", + className: "DatabaseTable", modelProperties: { ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } + }, + memoryOptimized: { + serializedName: "properties.memoryOptimized", + type: { + name: "Boolean" + } } } } }; -export const QueryStatistics: coreClient.CompositeMapper = { +export const DatabaseUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistics", + className: "DatabaseUsage", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" } }, - queryId: { - serializedName: "properties.queryId", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - endTime: { - serializedName: "properties.endTime", + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" } - }, - intervals: { - serializedName: "properties.intervals", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetricInterval" - } - } - } } } } }; -export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", + baselineResults: { + serializedName: "properties.baselineResults", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" } } } - }, - 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 SecurityEvent: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEvent", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - securityEventType: { - serializedName: "properties.securityEventType", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "String" } }, - subscription: { - serializedName: "properties.subscription", + triggerType: { + serializedName: "properties.triggerType", readOnly: true, type: { name: "String" } }, - server: { - serializedName: "properties.server", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - database: { - serializedName: "properties.database", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - clientIp: { - serializedName: "properties.clientIp", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - applicationName: { - serializedName: "properties.applicationName", + errors: { + serializedName: "properties.errors", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError" + } + } } }, - principalName: { - serializedName: "properties.principalName", + storageContainerPath: { + serializedName: "properties.storageContainerPath", readOnly: true, type: { name: "String" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" + name: "Number" } } } } }; -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryption", + className: "DatabaseVulnerabilityAssessmentScansExport", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } } } } }; -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministrator", + className: "DatabaseVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - login: { - serializedName: "properties.login", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Uuid" + name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Uuid" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + requestId: { + serializedName: "properties.requestId", + readOnly: true, type: { - name: "Boolean" + name: "Uuid" } - } - } - } -}; - -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceEncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + }, + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const DeletedServer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "DeletedServer", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + version: { + serializedName: "properties.version", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "properties.thumbprint", + deletionTime: { + serializedName: "properties.deletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - creationDate: { - serializedName: "properties.creationDate", + originalId: { + serializedName: "properties.originalId", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy", + className: "DistributedAvailabilityGroup", modelProperties: { ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + distributedAvailabilityGroupName: { + serializedName: "properties.distributedAvailabilityGroupName", + readOnly: true, type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", + readOnly: true, + type: { + name: "Uuid" + } + }, + replicationMode: { + serializedName: "properties.replicationMode", type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + partnerLinkRole: { + serializedName: "properties.partnerLinkRole", + readOnly: true, type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + partnerAvailabilityGroupName: { + serializedName: "properties.partnerAvailabilityGroupName", + readOnly: true, type: { - name: "Number" + name: "String" + } + }, + partnerEndpoint: { + serializedName: "properties.partnerEndpoint", + readOnly: true, + type: { + name: "String" + } + }, + instanceLinkRole: { + serializedName: "properties.instanceLinkRole", + readOnly: true, + type: { + name: "String" + } + }, + instanceAvailabilityGroupName: { + serializedName: "properties.instanceAvailabilityGroupName", + readOnly: true, + type: { + name: "String" + } + }, + databases: { + serializedName: "properties.databases", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroupDatabase" + } + } } } } } }; -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + elasticPoolName: { + serializedName: "properties.elasticPoolName", readOnly: true, type: { name: "String" @@ -11849,6 +12297,13 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { name: "Number" } }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, startTime: { serializedName: "properties.startTime", readOnly: true, @@ -11911,87 +12366,82 @@ export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Boolean" } + } + } + } +}; + +export const EncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } }, - operationParameters: { - serializedName: "properties.operationParameters", + subregion: { + serializedName: "properties.subregion", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" + name: "String" } }, - operationSteps: { - serializedName: "properties.operationSteps", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + }, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + uri: { + serializedName: "properties.uri", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties" + name: "Boolean" } } } } }; -export const TdeCertificate: coreClient.CompositeMapper = { +export const EndpointCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TdeCertificate", + className: "EndpointCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", - type: { - name: "String" - } - }, - certPassword: { - serializedName: "properties.certPassword", + publicBlob: { + serializedName: "properties.publicBlob", type: { name: "String" } @@ -12000,74 +12450,68 @@ export const TdeCertificate: coreClient.CompositeMapper = { } }; -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { +export const FailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", + className: "FailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - recurringScans: { - serializedName: "properties.recurringScans", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "FailoverGroupReadOnlyEndpoint" } - } - } - } -}; - -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + }, + replicationRole: { + serializedName: "properties.replicationRole", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + partnerServers: { + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PartnerInfo" } } } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + databases: { + serializedName: "properties.databases", type: { name: "Sequence", element: { @@ -12076,111 +12520,131 @@ export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { } } } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + } + } + } +}; + +export const GeoBackupPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoBackupPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - creationTime: { - serializedName: "properties.creationTime", + storageType: { + serializedName: "properties.storageType", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const InstanceFailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "InstanceFailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + secondaryType: { + serializedName: "properties.secondaryType", type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "String" } }, - groupIds: { - serializedName: "properties.groupIds", - readOnly: true, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + className: "InstanceFailoverGroupReadOnlyEndpoint" } }, - provisioningState: { - serializedName: "properties.provisioningState", + replicationRole: { + serializedName: "properties.replicationRole", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, + type: { + name: "String" + } + }, + partnerRegions: { + serializedName: "properties.partnerRegions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerRegionInfo" + } + } + } + }, + managedInstancePairs: { + serializedName: "properties.managedInstancePairs", type: { - name: "Composite", - className: "PrivateLinkResourceProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePairInfo" + } + } } } } } }; -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { +export const JobCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "JobCredential", modelProperties: { ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, + username: { + serializedName: "properties.username", + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", type: { name: "String" } @@ -12189,273 +12653,305 @@ export const RecoverableManagedDatabase: coreClient.CompositeMapper = { } }; -export const RestorePoint: coreClient.CompositeMapper = { +export const JobExecution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePoint", + className: "JobExecution", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + jobVersion: { + serializedName: "properties.jobVersion", + readOnly: true, + type: { + name: "Number" + } + }, + stepName: { + serializedName: "properties.stepName", readOnly: true, type: { name: "String" } }, - restorePointType: { - serializedName: "properties.restorePointType", + stepId: { + serializedName: "properties.stepId", readOnly: true, type: { - name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] + name: "Number" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + jobExecutionId: { + serializedName: "properties.jobExecutionId", + readOnly: true, + type: { + name: "Uuid" + } + }, + lifecycle: { + serializedName: "properties.lifecycle", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + createTime: { + serializedName: "properties.createTime", readOnly: true, type: { name: "DateTime" } }, - restorePointCreationDate: { - serializedName: "properties.restorePointCreationDate", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" } }, - restorePointLabel: { - serializedName: "properties.restorePointLabel", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const ServerAutomaticTuning: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + }, + currentAttempts: { + serializedName: "properties.currentAttempts", type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] + name: "Number" } }, - actualState: { - serializedName: "properties.actualState", + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", readOnly: true, type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] + name: "DateTime" } }, - options: { - serializedName: "properties.options", + lastMessage: { + serializedName: "properties.lastMessage", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } + name: "String" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "Composite", + className: "JobExecutionTarget" } } } } }; -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { +export const JobStep: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "JobStep", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + stepId: { + serializedName: "properties.stepId", + type: { + name: "Number" + } + }, + targetGroup: { + serializedName: "properties.targetGroup", type: { name: "String" } }, - login: { - serializedName: "properties.login", + credential: { + serializedName: "properties.credential", type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + action: { + serializedName: "properties.action", type: { - name: "Uuid" + name: "Composite", + className: "JobStepAction" } }, - tenantId: { - serializedName: "properties.tenantId", + output: { + serializedName: "properties.output", type: { - name: "Uuid" + name: "Composite", + className: "JobStepOutput" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", - readOnly: true, + executionOptions: { + serializedName: "properties.executionOptions", type: { - name: "Boolean" + name: "Composite", + className: "JobStepExecutionOptions" } } } } }; -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const JobTargetGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADOnlyAuthentication", + className: "JobTargetGroup", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + members: { + serializedName: "properties.members", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobTarget" + } + } } } } } }; -export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const JobVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const Job: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Job", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - 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", + description: { + defaultValue: "", + serializedName: "properties.description", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + version: { + serializedName: "properties.version", + readOnly: true, type: { - name: "String" + name: "Number" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + schedule: { + serializedName: "properties.schedule", type: { - name: "Uuid" + name: "Composite", + className: "JobSchedule" } } } } }; -export const ServerDnsAlias: coreClient.CompositeMapper = { +export const LedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDnsAlias", + className: "LedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const ServerKey: coreClient.CompositeMapper = { +export const LongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerKey", + className: "LongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + serverCreateTime: { + serializedName: "properties.serverCreateTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - subregion: { - serializedName: "properties.subregion", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - uri: { - serializedName: "properties.uri", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - thumbprint: { - serializedName: "properties.thumbprint", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - creationDate: { - serializedName: "properties.creationDate", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", - readOnly: true, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", + type: { + name: "String" + } + }, + isBackupImmutable: { + serializedName: "properties.isBackupImmutable", type: { name: "Boolean" } @@ -12464,327 +12960,313 @@ export const ServerKey: coreClient.CompositeMapper = { } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + operationType: { + serializedName: "properties.operationType", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + message: { + serializedName: "properties.message", readOnly: true, type: { - name: "Number" + name: "String" } - }, - errorDescription: { - serializedName: "properties.errorDescription", + } + } + } +}; + +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionBackup", + modelProperties: { + ...ProxyResource.type.modelProperties, + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - isUserError: { - serializedName: "properties.isUserError", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", readOnly: true, type: { name: "DateTime" } }, - description: { - serializedName: "properties.description", + backupTime: { + serializedName: "properties.backupTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - isCancellable: { - serializedName: "properties.isCancellable", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" + } + }, + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, + type: { + name: "String" } } } } }; -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "LongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + makeBackupsImmutable: { + serializedName: "properties.makeBackupsImmutable", type: { name: "Boolean" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { - name: "Number" + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "DateTime" + name: "Number" } } } } }; -export const ServerTrustGroup: coreClient.CompositeMapper = { +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroup", + className: "MaintenanceWindowOptions", modelProperties: { ...ProxyResource.type.modelProperties, - groupMembers: { - serializedName: "properties.groupMembers", + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerInfo" + className: "MaintenanceWindowTimeRange" } } } }, - trustScopes: { - serializedName: "properties.trustScopes", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } - } - } - } -}; - -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + }, + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "String" + name: "Number" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { - name: "String" + name: "Number" } }, - recurringScans: { - serializedName: "properties.recurringScans", + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Boolean" } } } } }; -export const SqlAgentConfiguration: coreClient.CompositeMapper = { +export const MaintenanceWindows: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlAgentConfiguration", + className: "MaintenanceWindows", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + timeRanges: { + serializedName: "properties.timeRanges", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } } } } }; -export const SubscriptionUsage: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsage", + className: "ManagedBackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } - }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + } + } + } +}; + +export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - unit: { - serializedName: "properties.unit", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const SyncAgent: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgent", + className: "ManagedDatabaseMoveOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { name: "String" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { name: "DateTime" @@ -12797,881 +13279,788 @@ export const SyncAgent: coreClient.CompositeMapper = { name: "String" } }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, - type: { - name: "Boolean" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", + operationMode: { + serializedName: "properties.operationMode", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - version: { - serializedName: "properties.version", + sourceManagedInstanceName: { + serializedName: "properties.sourceManagedInstanceName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + }, + targetManagedInstanceName: { + serializedName: "properties.targetManagedInstanceName", readOnly: true, type: { name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", readOnly: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", + targetManagedInstanceId: { + serializedName: "properties.targetManagedInstanceId", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + sourceDatabaseName: { + serializedName: "properties.sourceDatabaseName", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SyncGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" + name: "Boolean" } }, - interval: { - serializedName: "properties.interval", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "String" + name: "Number" } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "String" + name: "Boolean" } - }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + } + } + } +}; + +export const ManagedInstanceQuery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceQuery", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryText: { + serializedName: "properties.queryText", type: { name: "String" } - }, - syncState: { - serializedName: "properties.syncState", + } + } + } +}; + +export const QueryStatistics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryStatistics", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - schema: { - serializedName: "properties.schema", - type: { - name: "Composite", - className: "SyncGroupSchema" - } - }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", + queryId: { + serializedName: "properties.queryId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Number" + name: "String" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", - readOnly: true, + intervals: { + serializedName: "properties.intervals", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricInterval" + } + } } } } } }; -export const SyncMember: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMember", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + typePropertiesType: { + serializedName: "properties.type", + readOnly: true, type: { name: "String" } }, - syncAgentId: { - serializedName: "properties.syncAgentId", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String" } }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", + blockReason: { + serializedName: "properties.blockReason", + readOnly: true, type: { - name: "Uuid" + name: "String" } }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", + readOnly: true, type: { name: "String" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - databaseName: { - serializedName: "properties.databaseName", + percentCompleted: { + serializedName: "properties.percentCompleted", + readOnly: true, type: { - name: "String" + name: "Number" } }, - userName: { - serializedName: "properties.userName", + currentRestoredSizeMB: { + serializedName: "properties.currentRestoredSizeMB", + readOnly: true, type: { - name: "String" + name: "Number" } }, - password: { - serializedName: "properties.password", + currentRestorePlanSizeMB: { + serializedName: "properties.currentRestorePlanSizeMB", + readOnly: true, type: { - name: "String" + name: "Number" } }, - syncDirection: { - serializedName: "properties.syncDirection", + currentBackupType: { + serializedName: "properties.currentBackupType", + readOnly: true, type: { name: "String" } }, - syncState: { - serializedName: "properties.syncState", + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const TimeZone: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TimeZone", - modelProperties: { - ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", + }, + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", readOnly: true, type: { - name: "String" + name: "Number" } }, - displayName: { - serializedName: "properties.displayName", + numberOfFilesQueued: { + serializedName: "properties.numberOfFilesQueued", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", - type: { - name: "String" + name: "Number" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + numberOfFilesSkipped: { + serializedName: "properties.numberOfFilesSkipped", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - state: { - serializedName: "properties.state", + numberOfFilesRestoring: { + serializedName: "properties.numberOfFilesRestoring", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const WorkloadClassifier: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadClassifier", - modelProperties: { - ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", + }, + numberOfFilesRestored: { + serializedName: "properties.numberOfFilesRestored", + readOnly: true, type: { - name: "String" + name: "Number" } }, - label: { - serializedName: "properties.label", + numberOfFilesUnrestorable: { + serializedName: "properties.numberOfFilesUnrestorable", + readOnly: true, type: { - name: "String" + name: "Number" } }, - context: { - serializedName: "properties.context", + fullBackupSets: { + serializedName: "properties.fullBackupSets", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - startTime: { - serializedName: "properties.startTime", + diffBackupSets: { + serializedName: "properties.diffBackupSets", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - endTime: { - serializedName: "properties.endTime", + logBackupSets: { + serializedName: "properties.logBackupSets", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - importance: { - serializedName: "properties.importance", + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" + } + } } } } } }; -export const WorkloadGroup: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroup", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - minResourcePercent: { - serializedName: "properties.minResourcePercent", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - maxResourcePercent: { - serializedName: "properties.maxResourcePercent", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Number" + name: "Boolean" } }, - importance: { - serializedName: "properties.importance", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupShortTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, + }, retentionDays: { serializedName: "properties.retentionDays", type: { name: "Number" } }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } } } } }; -export const DatabaseExtensions: coreClient.CompositeMapper = { +export const SecurityEvent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseExtensions", + className: "SecurityEvent", modelProperties: { ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", - type: { - name: "String" - } - }, - storageKeyType: { - serializedName: "properties.storageKeyType", + eventTime: { + serializedName: "properties.eventTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageKey: { - serializedName: "properties.storageKey", + securityEventType: { + serializedName: "properties.securityEventType", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - storageUri: { - serializedName: "properties.storageUri", - type: { - name: "String" - } - } - } - } -}; - -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportExportExtensionsOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + subscription: { + serializedName: "properties.subscription", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - requestType: { - serializedName: "properties.requestType", + server: { + serializedName: "properties.server", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + database: { + serializedName: "properties.database", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + clientIp: { + serializedName: "properties.clientIp", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + applicationName: { + serializedName: "properties.applicationName", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + principalName: { + serializedName: "properties.principalName", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", type: { - name: "String" + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" } } } } }; -export const DatabaseOperation: coreClient.CompositeMapper = { +export const SensitivityLabel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperation", + className: "SensitivityLabel", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + managedBy: { + serializedName: "managedBy", readOnly: true, type: { name: "String" } }, - operation: { - serializedName: "properties.operation", + schemaName: { + serializedName: "properties.schemaName", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + tableName: { + serializedName: "properties.tableName", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - serverName: { - serializedName: "properties.serverName", + columnName: { + serializedName: "properties.columnName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + labelId: { + serializedName: "properties.labelId", type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", - readOnly: true, + informationType: { + serializedName: "properties.informationType", type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + informationTypeId: { + serializedName: "properties.informationTypeId", type: { - name: "Number" + name: "String" } }, - isUserError: { - serializedName: "properties.isUserError", + isDisabled: { + serializedName: "properties.isDisabled", readOnly: true, type: { name: "Boolean" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - description: { - serializedName: "properties.description", - readOnly: true, - type: { - name: "String" - } - }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + rank: { + serializedName: "properties.rank", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] } } } } }; -export const DatabaseUsage: coreClient.CompositeMapper = { +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsage", + className: "SensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + op: { + serializedName: "properties.op", type: { - name: "String" + name: "Enum", + allowedValues: ["set", "remove"] } }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + table: { + serializedName: "properties.table", type: { - name: "Number" + name: "String" } }, - unit: { - serializedName: "properties.unit", - readOnly: true, + column: { + serializedName: "properties.column", type: { name: "String" } + }, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel" + } } } } }; -export const LedgerDigestUploads: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LedgerDigestUploads", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["enable", "disable"] + } + }, + schema: { + serializedName: "properties.schema", + type: { + name: "String" + } + }, + table: { + serializedName: "properties.table", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + column: { + serializedName: "properties.column", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } } } } }; -export const OutboundFirewallRule: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRule", + className: "ManagedTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupOperationResult", + className: "ManagedInstanceAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, - type: { - name: "Uuid" - } - }, - operationType: { - serializedName: "properties.operationType", - readOnly: true, - type: { - name: "String" - } - }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", - readOnly: true, - type: { - name: "String" - } - }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", - readOnly: true, + administratorType: { + serializedName: "properties.administratorType", type: { name: "String" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", - readOnly: true, + login: { + serializedName: "properties.login", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { - name: "String" + name: "Uuid" } }, - message: { - serializedName: "properties.message", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } } } } }; -export const LongTermRetentionBackup: coreClient.CompositeMapper = { +export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackup", + className: "ManagedInstanceAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - 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, + systemData: { + serializedName: "systemData", type: { - name: "DateTime" + name: "Composite", + className: "SystemData" } }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { name: "DateTime" } - }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", - readOnly: true, - type: { - name: "String" - } - }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", - type: { - name: "String" - } } } } }; -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", + className: "ManagedInstanceAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", - readOnly: true, - type: { - name: "String" - } - }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", - readOnly: true, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "DateTime" + name: "Boolean" } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceDtc: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceDtc", + modelProperties: { + ...ProxyResource.type.modelProperties, + dtcEnabled: { + serializedName: "properties.dtcEnabled", type: { - name: "String" + name: "Boolean" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + securitySettings: { + serializedName: "properties.securitySettings", type: { - name: "DateTime" + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings" } }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, + externalDnsSuffixSearchList: { + serializedName: "properties.externalDnsSuffixSearchList", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + dtcHostNameDnsSuffix: { + serializedName: "properties.dtcHostNameDnsSuffix", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -13681,19 +14070,12 @@ export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper } }; -export const ServerConnectionPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "ManagedInstanceEncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, kind: { serializedName: "kind", readOnly: true, @@ -13701,282 +14083,264 @@ export const ServerConnectionPolicy: coreClient.CompositeMapper = { name: "String" } }, - connectionType: { - serializedName: "properties.connectionType", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { name: "String" } - } - } - } -}; - -export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributedAvailabilityGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - targetDatabase: { - serializedName: "properties.targetDatabase", + }, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - sourceEndpoint: { - serializedName: "properties.sourceEndpoint", + uri: { + serializedName: "properties.uri", + readOnly: true, type: { name: "String" } }, - primaryAvailabilityGroupName: { - serializedName: "properties.primaryAvailabilityGroupName", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { name: "String" } }, - secondaryAvailabilityGroupName: { - serializedName: "properties.secondaryAvailabilityGroupName", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { - name: "String" + name: "Boolean" } - }, - replicationMode: { - serializedName: "properties.replicationMode", + } + } + } +}; + +export const ManagedInstanceKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceKey", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - distributedAvailabilityGroupId: { - serializedName: "properties.distributedAvailabilityGroupId", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { - name: "Uuid" + name: "String" } }, - sourceReplicaId: { - serializedName: "properties.sourceReplicaId", - readOnly: true, + uri: { + serializedName: "properties.uri", type: { - name: "Uuid" + name: "String" } }, - targetReplicaId: { - serializedName: "properties.targetReplicaId", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - linkState: { - serializedName: "properties.linkState", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - lastHardenedLsn: { - serializedName: "properties.lastHardenedLsn", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const ServerTrustCertificate: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustCertificate", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - certificateName: { - serializedName: "properties.certificateName", - readOnly: true, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } - } - } - } -}; - -export const EndpointCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EndpointCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + }, + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "String" + name: "Number" } } } } }; -export const SensitivityLabel: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - managedBy: { - serializedName: "managedBy", + managedInstanceName: { + serializedName: "properties.managedInstanceName", readOnly: true, type: { name: "String" } }, - schemaName: { - serializedName: "properties.schemaName", + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - tableName: { - serializedName: "properties.tableName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - columnName: { - serializedName: "properties.columnName", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - labelName: { - serializedName: "properties.labelName", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - labelId: { - serializedName: "properties.labelId", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - informationType: { - serializedName: "properties.informationType", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "String" + name: "Number" } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { name: "String" } }, - isDisabled: { - serializedName: "properties.isDisabled", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - rank: { - serializedName: "properties.rank", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] + name: "Boolean" } - } - } - } -}; - -export const SensitivityLabelUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdate", - modelProperties: { - ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + }, + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["set", "remove"] + name: "DateTime" } }, - schema: { - serializedName: "properties.schema", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - table: { - serializedName: "properties.table", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - column: { - serializedName: "properties.column", + operationParameters: { + serializedName: "properties.operationParameters", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", + operationSteps: { + serializedName: "properties.operationSteps", type: { name: "Composite", - className: "SensitivityLabel" + className: "ManagedInstanceOperationSteps" } } } } }; -export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", - type: { - name: "Enum", - allowedValues: ["enable", "disable"] - } - }, - schema: { - serializedName: "properties.schema", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - table: { - serializedName: "properties.table", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - column: { - serializedName: "properties.column", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -13985,68 +14349,59 @@ export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { } }; -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "ManagedInstancePrivateLink", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + properties: { + serializedName: "properties", type: { - name: "Boolean" + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + } + } + } +}; + +export const TdeCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TdeCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateBlob: { + serializedName: "properties.privateBlob", type: { - name: "Number" + name: "String" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + certPassword: { + serializedName: "properties.certPassword", type: { - name: "Boolean" + name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } @@ -14057,119 +14412,138 @@ export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Uuid" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const RefreshExternalGovernanceStatusOperationResultMI: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "RefreshExternalGovernanceStatusOperationResultMI", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - retentionDays: { - serializedName: "properties.retentionDays", + requestType: { + serializedName: "properties.requestType", + readOnly: true, type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + status: { + serializedName: "properties.status", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, type: { - name: "Number" + name: "String" } - }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + } + } + } +}; + +export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedLedgerDigestUploads", + modelProperties: { + ...ProxyResource.type.modelProperties, + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", type: { - name: "Boolean" + name: "String" } }, state: { serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + readOnly: true, type: { name: "String" } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + } + } + } +}; + +export const ManagedServerDnsAlias: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServerDnsAlias", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, type: { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + publicAzureDnsRecord: { + serializedName: "properties.publicAzureDnsRecord", + readOnly: true, type: { - name: "Uuid" + name: "String" } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - retentionDays: { - serializedName: "properties.retentionDays", + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { @@ -14179,37 +14553,23 @@ export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { name: "Boolean" } }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - }, storageEndpoint: { serializedName: "properties.storageEndpoint", type: { @@ -14222,246 +14582,205 @@ export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Uuid" + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" } } } } }; -export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "NetworkSecurityPerimeterConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", - type: { - name: "Boolean" - } - }, - predicateExpression: { - serializedName: "properties.predicateExpression", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", - type: { - name: "Number" - } - }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", - type: { - name: "Boolean" - } - }, - state: { - serializedName: "properties.state", + networkSecurityPerimeter: { + serializedName: "properties.networkSecurityPerimeter", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Composite", + className: "NSPConfigPerimeter" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + resourceAssociation: { + serializedName: "properties.resourceAssociation", type: { - name: "String" + name: "Composite", + className: "NSPConfigAssociation" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + profile: { + serializedName: "properties.profile", type: { - name: "String" + name: "Composite", + className: "NSPConfigProfile" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + provisioningIssues: { + serializedName: "properties.provisioningIssues", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPProvisioningIssue" + } + } } } } } }; -export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { +export const OutboundFirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtection", + className: "OutboundFirewallRule", 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", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAdvancedThreatProtection", + className: "PrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "SystemData" + className: "PrivateEndpointProperty" } }, - state: { - serializedName: "properties.state", + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - creationTime: { - serializedName: "properties.creationTime", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const ManagedServerDnsAlias: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAlias", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", - readOnly: true, - type: { - name: "String" - } - }, - publicAzureDnsRecord: { - serializedName: "properties.publicAzureDnsRecord", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PrivateLinkResourceProperties" } } } } }; -export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { +export const RecoverableDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection", + className: "RecoverableDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + edition: { + serializedName: "properties.edition", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", + readOnly: true, type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", readOnly: true, type: { name: "DateTime" } + }, + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } } } } }; -export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { +export const RecoverableManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection", + className: "RecoverableManagedDatabase", 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", + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", readOnly: true, type: { - name: "DateTime" + name: "String" } } } @@ -14488,6 +14807,13 @@ export const ReplicationLink: coreClient.CompositeMapper = { name: "String" } }, + partnerDatabaseId: { + serializedName: "properties.partnerDatabaseId", + readOnly: true, + type: { + name: "String" + } + }, partnerLocation: { serializedName: "properties.partnerLocation", readOnly: true, @@ -14569,206 +14895,270 @@ export const ReplicationLink: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { +export const RestorableDroppedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationResult", + className: "RestorableDroppedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, - state: { - serializedName: "properties.state", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - operationMode: { - serializedName: "properties.operationMode", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", readOnly: true, type: { - name: "String" + name: "Number" } }, - sourceManagedInstanceName: { - serializedName: "properties.sourceManagedInstanceName", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetManagedInstanceName: { - serializedName: "properties.targetManagedInstanceName", + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetManagedInstanceId: { - serializedName: "properties.targetManagedInstanceId", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" } }, - sourceDatabaseName: { - serializedName: "properties.sourceDatabaseName", + keys: { + serializedName: "properties.keys", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "DatabaseKey" } } + } + } + } + } +}; + +export const RestorePoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorePoint", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + restorePointType: { + serializedName: "properties.restorePointType", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] } - }, - isCancellable: { - serializedName: "properties.isCancellable", + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - errorCode: { - serializedName: "properties.errorCode", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - errorDescription: { - serializedName: "properties.errorDescription", + restorePointLabel: { + serializedName: "properties.restorePointLabel", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - isUserError: { - serializedName: "properties.isUserError", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } } } } }; -export const ManagedInstanceDtc: coreClient.CompositeMapper = { +export const ServerAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtc", + className: "ServerAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - dtcEnabled: { - serializedName: "properties.dtcEnabled", + desiredState: { + serializedName: "properties.desiredState", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - securitySettings: { - serializedName: "properties.securitySettings", + actualState: { + serializedName: "properties.actualState", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceDtcSecuritySettings" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - externalDnsSuffixSearchList: { - serializedName: "properties.externalDnsSuffixSearchList", + options: { + serializedName: "properties.options", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "String" + name: "Composite", + className: "AutomaticTuningServerOptions" } } } + } + } + } +}; + +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAzureADAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", + type: { + name: "String" + } }, - dtcHostNameDnsSuffix: { - serializedName: "properties.dtcHostNameDnsSuffix", - readOnly: true, + login: { + serializedName: "properties.login", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + sid: { + serializedName: "properties.sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const SynapseLinkWorkspace: coreClient.CompositeMapper = { +export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspace", + className: "ServerAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - workspaces: { - serializedName: "properties.workspaces", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties" - } - } + name: "Boolean" } } } } }; -export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { +export const ServerConfigurationOption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateVirtualClusterDnsServersOperation", + className: "ServerConfigurationOption", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - serializedName: "properties.status", + serverConfigurationOptionValue: { + serializedName: "properties.serverConfigurationOptionValue", + type: { + name: "Number" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -14778,514 +15168,480 @@ export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper } }; -export const InstanceFailoverGroup: coreClient.CompositeMapper = { +export const ServerConnectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroup", + className: "ServerConnectionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - secondaryType: { - serializedName: "properties.secondaryType", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + connectionType: { + serializedName: "properties.connectionType", + type: { + name: "String" + } + } + } + } +}; + +export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDevOpsAuditingSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" + className: "SystemData" } }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - replicationState: { - serializedName: "properties.replicationState", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled"] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - partnerRegions: { - serializedName: "properties.partnerRegions", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } + name: "String" } }, - managedInstancePairs: { - serializedName: "properties.managedInstancePairs", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" - } - } + name: "Uuid" } } } } }; -export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { +export const ServerDnsAlias: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", + className: "ServerDnsAlias", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", + azureDnsRecord: { + serializedName: "properties.azureDnsRecord", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServerKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerKey", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - blockReason: { - serializedName: "properties.blockReason", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { name: "String" } }, - lastUploadedFileName: { - serializedName: "properties.lastUploadedFileName", - readOnly: true, + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", - readOnly: true, + uri: { + serializedName: "properties.uri", type: { - name: "DateTime" + name: "String" } }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { name: "DateTime" } }, - percentCompleted: { - serializedName: "properties.percentCompleted", - readOnly: true, - type: { - name: "Number" - } - }, - currentRestoredSizeMB: { - serializedName: "properties.currentRestoredSizeMB", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", readOnly: true, type: { - name: "Number" + name: "Boolean" } - }, - currentRestorePlanSizeMB: { - serializedName: "properties.currentRestorePlanSizeMB", + } + } + } +}; + +export const ServerOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + operation: { + serializedName: "properties.operation", readOnly: true, type: { - name: "Number" + name: "String" } }, - currentBackupType: { - serializedName: "properties.currentBackupType", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { - name: "String" + name: "Number" } }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesQueued: { - serializedName: "properties.numberOfFilesQueued", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - numberOfFilesSkipped: { - serializedName: "properties.numberOfFilesSkipped", + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesRestoring: { - serializedName: "properties.numberOfFilesRestoring", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { name: "Number" } }, - numberOfFilesRestored: { - serializedName: "properties.numberOfFilesRestored", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesUnrestorable: { - serializedName: "properties.numberOfFilesUnrestorable", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { name: "Number" } }, - fullBackupSets: { - serializedName: "properties.fullBackupSets", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "Boolean" } }, - diffBackupSets: { - serializedName: "properties.diffBackupSets", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "DateTime" } }, - logBackupSets: { - serializedName: "properties.logBackupSets", + description: { + serializedName: "properties.description", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "String" } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: - "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" - } - } + name: "Boolean" } } } } }; -export const ImportExportOperationResult: coreClient.CompositeMapper = { +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportOperationResult", + className: "ServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, - type: { - name: "Uuid" - } - }, - requestType: { - serializedName: "properties.requestType", - readOnly: true, - type: { - name: "String" - } - }, - queuedTime: { - serializedName: "properties.queuedTime", - readOnly: true, - type: { - name: "String" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - blobUri: { - serializedName: "properties.blobUri", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - status: { - serializedName: "properties.status", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" - } - } - } - } - } - } -}; - -export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedLedgerDigestUploads", - modelProperties: { - ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - state: { - serializedName: "properties.state", + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const RecoverableDatabase: coreClient.CompositeMapper = { +export const ServerTrustCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabase", + className: "ServerTrustCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - edition: { - serializedName: "properties.edition", - readOnly: true, + publicBlob: { + serializedName: "properties.publicBlob", type: { name: "String" } }, - serviceLevelObjective: { - serializedName: "properties.serviceLevelObjective", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + certificateName: { + serializedName: "properties.certificateName", readOnly: true, type: { name: "String" } - }, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - keys: { - serializedName: "properties.keys", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } - } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const ServerTrustGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "ServerTrustGroup", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - location: { - serializedName: "location", + groupMembers: { + serializedName: "properties.groupMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerInfo" + } + } } }, - tags: { - serializedName: "tags", + trustScopes: { + serializedName: "properties.trustScopes", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - databaseName: { - serializedName: "properties.databaseName", + } + } + } +}; + +export const ServerUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + currentValue: { + serializedName: "properties.currentValue", readOnly: true, type: { name: "Number" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - deletionDate: { - serializedName: "properties.deletionDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" } - }, - keys: { - serializedName: "properties.keys", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } - } } } } }; -export const ServerConfigurationOption: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOption", + className: "ServerVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - serverConfigurationOptionValue: { - serializedName: "properties.serverConfigurationOptionValue", + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { - name: "Number" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" + } } } } @@ -15343,6 +15699,22 @@ export const RefreshExternalGovernanceStatusOperationResult: coreClient.Composit } }; +export const SqlAgentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlAgentConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + } + } + } +}; + export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15400,124 +15772,58 @@ export const StartStopManagedInstanceSchedule: coreClient.CompositeMapper = { } }; -export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } - } - } - } -}; - -export const FailoverGroup: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroup", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "Number" } }, - replicationRole: { - serializedName: "properties.replicationRole", + limit: { + serializedName: "properties.limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - replicationState: { - serializedName: "properties.replicationState", + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" } - }, - partnerServers: { - serializedName: "properties.partnerServers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } - } - }, - databases: { - serializedName: "properties.databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { +export const SynapseLinkWorkspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", + className: "SynapseLinkWorkspace", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - results: { - serializedName: "properties.results", + workspaces: { + serializedName: "properties.workspaces", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } + name: "Composite", + className: "SynapseLinkWorkspaceInfoProperties" } } } @@ -15526,356 +15832,323 @@ export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.Composite } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { +export const SyncAgent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", + className: "SyncAgent", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + namePropertiesName: { + serializedName: "properties.name", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - latestScan: { - serializedName: "properties.latestScan", + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", + type: { + name: "String" + } + }, + lastAliveTime: { + serializedName: "properties.lastAliveTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + isUpToDate: { + serializedName: "properties.isUpToDate", + readOnly: true, type: { name: "Boolean" } }, - results: { - serializedName: "properties.results", + expiryTime: { + serializedName: "properties.expiryTime", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } + name: "DateTime" + } + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String" } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", + className: "SyncAgentLinkedDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + databaseType: { + serializedName: "properties.databaseType", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - results: { - serializedName: "properties.results", + databaseId: { + serializedName: "properties.databaseId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } - } - } - } -}; - -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + }, + description: { + serializedName: "properties.description", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - latestScan: { - serializedName: "properties.latestScan", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - results: { - serializedName: "properties.results", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" + } + }, + userName: { + serializedName: "properties.userName", + readOnly: true, + type: { + name: "String" } } } } }; -export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "SystemData" + className: "Sku" } }, - ruleId: { - serializedName: "properties.ruleId", + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + lastSyncTime: { + serializedName: "properties.lastSyncTime", readOnly: true, + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { name: "String" } }, - isTrimmed: { - serializedName: "properties.isTrimmed", - readOnly: true, + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { - name: "Boolean" + name: "String" } }, - queryResults: { - serializedName: "properties.queryResults", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - remediation: { - serializedName: "properties.remediation", + schema: { + serializedName: "properties.schema", type: { name: "Composite", - className: "Remediation" + className: "SyncGroupSchema" } }, - baselineAdjustedResult: { - serializedName: "properties.baselineAdjustedResult", + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", type: { - name: "Composite", - className: "BaselineAdjustedResult" + name: "Boolean" } }, - ruleMetadata: { - serializedName: "properties.ruleMetadata", + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", + type: { + name: "Number" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", + readOnly: true, type: { - name: "Composite", - className: "VaRule" + name: "String" } } } } }; -export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const SyncMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord", + className: "SyncMember", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - scanId: { - serializedName: "properties.scanId", - readOnly: true, - type: { - name: "String" - } - }, - triggerType: { - serializedName: "properties.triggerType", - readOnly: true, + databaseType: { + serializedName: "properties.databaseType", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + syncAgentId: { + serializedName: "properties.syncAgentId", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "DateTime" + name: "Uuid" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "properties.errors", - readOnly: true, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentScanError" - } - } + name: "Boolean" } }, - server: { - serializedName: "properties.server", + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { name: "String" } }, - database: { - serializedName: "properties.database", - readOnly: true, + serverName: { + serializedName: "properties.serverName", type: { name: "String" } }, - sqlVersion: { - serializedName: "properties.sqlVersion", - readOnly: true, + databaseName: { + serializedName: "properties.databaseName", type: { name: "String" } }, - highSeverityFailedRulesCount: { - serializedName: "properties.highSeverityFailedRulesCount", - readOnly: true, - type: { - name: "Number" - } - }, - mediumSeverityFailedRulesCount: { - serializedName: "properties.mediumSeverityFailedRulesCount", - readOnly: true, - type: { - name: "Number" - } - }, - lowSeverityFailedRulesCount: { - serializedName: "properties.lowSeverityFailedRulesCount", - readOnly: true, + userName: { + serializedName: "properties.userName", type: { - name: "Number" + name: "String" } }, - totalPassedRulesCount: { - serializedName: "properties.totalPassedRulesCount", - readOnly: true, + password: { + serializedName: "properties.password", type: { - name: "Number" + name: "String" } }, - totalFailedRulesCount: { - serializedName: "properties.totalFailedRulesCount", - readOnly: true, + syncDirection: { + serializedName: "properties.syncDirection", type: { - name: "Number" + name: "String" } }, - totalRulesCount: { - serializedName: "properties.totalRulesCount", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { - name: "Number" + name: "String" } - }, - isBaselineApplied: { - serializedName: "properties.isBaselineApplied", + } + } + } +}; + +export const TimeZone: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimeZone", + modelProperties: { + ...ProxyResource.type.modelProperties, + timeZoneId: { + serializedName: "properties.timeZoneId", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - lastScanTime: { - serializedName: "properties.lastScanTime", + displayName: { + serializedName: "properties.displayName", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessment", + className: "LogicalDatabaseTransparentDataEncryption", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, state: { serializedName: "properties.state", type: { @@ -15887,33 +16160,44 @@ export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { } }; -export const InstancePool: coreClient.CompositeMapper = { +export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePool", + className: "UpdateVirtualClusterDnsServersOperation", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + status: { + serializedName: "properties.status", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } - }, - subnetId: { - serializedName: "properties.subnetId", + } + } + } +}; + +export const VirtualNetworkRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "Number" + name: "Boolean" } }, - licenseType: { - serializedName: "properties.licenseType", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } @@ -15922,28 +16206,44 @@ export const InstancePool: coreClient.CompositeMapper = { } }; -export const JobAgent: coreClient.CompositeMapper = { +export const WorkloadClassifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobAgent", + className: "WorkloadClassifier", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + memberName: { + serializedName: "properties.memberName", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - databaseId: { - serializedName: "properties.databaseId", + label: { + serializedName: "properties.label", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + context: { + serializedName: "properties.context", + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "String" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "String" + } + }, + importance: { + serializedName: "properties.importance", type: { name: "String" } @@ -15952,73 +16252,46 @@ export const JobAgent: coreClient.CompositeMapper = { } }; -export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { +export const WorkloadGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabase", + className: "WorkloadGroup", modelProperties: { - ...TrackedResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + ...ProxyResource.type.modelProperties, + minResourcePercent: { + serializedName: "properties.minResourcePercent", type: { - name: "DateTime" + name: "Number" } }, - deletionDate: { - serializedName: "properties.deletionDate", - readOnly: true, + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", type: { - name: "DateTime" + name: "Number" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", type: { - name: "DateTime" + name: "Number" } - } - } - } -}; - -export const VirtualCluster: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualCluster", - modelProperties: { - ...TrackedResource.type.modelProperties, - subnetId: { - serializedName: "properties.subnetId", - readOnly: true, + }, + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", type: { - name: "String" + name: "Number" } }, - version: { - serializedName: "properties.version", + importance: { + serializedName: "properties.importance", type: { name: "String" } }, - childResources: { - serializedName: "properties.childResources", - readOnly: true, + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } } } @@ -16320,6 +16593,18 @@ export const Database: coreClient.CompositeMapper = { name: "String" } }, + useFreeLimit: { + serializedName: "properties.useFreeLimit", + type: { + name: "Boolean" + } + }, + freeLimitExhaustionBehavior: { + serializedName: "properties.freeLimitExhaustionBehavior", + type: { + name: "String" + } + }, sourceResourceId: { serializedName: "properties.sourceResourceId", type: { @@ -16343,6 +16628,12 @@ export const Database: coreClient.CompositeMapper = { type: { name: "String" } + }, + encryptionProtectorAutoRotation: { + serializedName: "properties.encryptionProtectorAutoRotation", + type: { + name: "Boolean" + } } } } @@ -16441,6 +16732,71 @@ export const ElasticPool: coreClient.CompositeMapper = { } }; +export const InstancePool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + subnetId: { + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + vCores: { + serializedName: "properties.vCores", + type: { + name: "Number" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + } + } + } +}; + +export const JobAgent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgent", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + databaseId: { + serializedName: "properties.databaseId", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const ManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16629,6 +16985,12 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "String" } }, + isGeneralPurposeV2: { + serializedName: "properties.isGeneralPurposeV2", + type: { + name: "Boolean" + } + }, administratorLogin: { serializedName: "properties.administratorLogin", type: { @@ -16660,6 +17022,19 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "String" } }, + hybridSecondaryUsage: { + serializedName: "properties.hybridSecondaryUsage", + type: { + name: "String" + } + }, + hybridSecondaryUsageDetected: { + serializedName: "properties.hybridSecondaryUsageDetected", + readOnly: true, + type: { + name: "String" + } + }, vCores: { serializedName: "properties.vCores", type: { @@ -16672,6 +17047,18 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "Number" } }, + storageIOps: { + serializedName: "properties.storageIOps", + type: { + name: "Number" + } + }, + storageThroughputMBps: { + serializedName: "properties.storageThroughputMBps", + type: { + name: "Number" + } + }, collation: { serializedName: "properties.collation", type: { @@ -16796,6 +17183,71 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "Composite", className: "ServicePrincipal" } + }, + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, + type: { + name: "String" + } + }, + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, + type: { + name: "String" + } + }, + pricingModel: { + serializedName: "properties.pricingModel", + type: { + name: "String" + } + }, + createTime: { + serializedName: "properties.createTime", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -16916,6 +17368,12 @@ export const Server: coreClient.CompositeMapper = { name: "String" } }, + isIPv6Enabled: { + serializedName: "properties.isIPv6Enabled", + type: { + name: "String" + } + }, externalGovernanceStatus: { serializedName: "properties.externalGovernanceStatus", readOnly: true, @@ -16927,6 +17385,41 @@ export const Server: coreClient.CompositeMapper = { } }; +export const VirtualCluster: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualCluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + subnetId: { + serializedName: "properties.subnetId", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + childResources: { + serializedName: "properties.childResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16985,3 +17478,18 @@ export const FailoverGroupsTryPlannedBeforeForcedFailoverHeaders: coreClient.Com } } }; + +export const ManagedInstancesRefreshStatusHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancesRefreshStatusHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 2e885dcf1880..03584058edc9 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -12,131 +12,114 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + BackupShortTermRetentionPolicy as BackupShortTermRetentionPolicyMapper, + ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, + DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, + ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, + ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, DataMaskingPolicy as DataMaskingPolicyMapper, DataMaskingRule as DataMaskingRuleMapper, - GeoBackupPolicy as GeoBackupPolicyMapper, + DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, + Advisor as AdvisorMapper, + DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, + DatabaseExtensions as DatabaseExtensionsMapper, + RecommendedAction as RecommendedActionMapper, + DatabaseSecurityAlertPolicy as DatabaseSecurityAlertPolicyMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, + DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, + DatabaseVulnerabilityAssessmentRuleBaseline as DatabaseVulnerabilityAssessmentRuleBaselineMapper, + DatabaseVulnerabilityAssessment as DatabaseVulnerabilityAssessmentMapper, Database as DatabaseMapper, DatabaseUpdate as DatabaseUpdateMapper, ExportDatabaseDefinition as ExportDatabaseDefinitionMapper, ImportExistingDatabaseDefinition as ImportExistingDatabaseDefinitionMapper, ResourceMoveDefinition as ResourceMoveDefinitionMapper, + DistributedAvailabilityGroupsCreateOrUpdateRequestBody as DistributedAvailabilityGroupsCreateOrUpdateRequestBodyMapper, + DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, + DistributedAvailabilityGroupSetRole as DistributedAvailabilityGroupSetRoleMapper, ElasticPool as ElasticPoolMapper, ElasticPoolUpdate as ElasticPoolUpdateMapper, - ServerCommunicationLink as ServerCommunicationLinkMapper, - Advisor as AdvisorMapper, - DatabaseAutomaticTuning as DatabaseAutomaticTuningMapper, - RecommendedAction as RecommendedActionMapper, - DatabaseSecurityAlertPolicy as DatabaseSecurityAlertPolicyMapper, - DatabaseVulnerabilityAssessmentRuleBaseline as DatabaseVulnerabilityAssessmentRuleBaselineMapper, - DatabaseVulnerabilityAssessment as DatabaseVulnerabilityAssessmentMapper, EncryptionProtector as EncryptionProtectorMapper, - FirewallRule as FirewallRuleMapper, + FailoverGroup as FailoverGroupMapper, + FailoverGroupUpdate as FailoverGroupUpdateMapper, FirewallRuleList as FirewallRuleListMapper, + FirewallRule as FirewallRuleMapper, + GeoBackupPolicy as GeoBackupPolicyMapper, + IPv6FirewallRule as IPv6FirewallRuleMapper, + InstanceFailoverGroup as InstanceFailoverGroupMapper, InstancePool as InstancePoolMapper, InstancePoolUpdate as InstancePoolUpdateMapper, JobAgent as JobAgentMapper, JobAgentUpdate as JobAgentUpdateMapper, JobCredential as JobCredentialMapper, - Job as JobMapper, JobStep as JobStepMapper, JobTargetGroup as JobTargetGroupMapper, + Job as JobMapper, + LedgerDigestUploads as LedgerDigestUploadsMapper, + CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, + UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, LongTermRetentionPolicy as LongTermRetentionPolicyMapper, MaintenanceWindows as MaintenanceWindowsMapper, ManagedBackupShortTermRetentionPolicy as ManagedBackupShortTermRetentionPolicyMapper, + ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, ManagedDatabaseSecurityAlertPolicy as ManagedDatabaseSecurityAlertPolicyMapper, + SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, + SensitivityLabel as SensitivityLabelMapper, + RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, ManagedTransparentDataEncryption as ManagedTransparentDataEncryptionMapper, + ManagedDatabase as ManagedDatabaseMapper, + ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, + ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, + CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, + ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, ManagedInstanceAdministrator as ManagedInstanceAdministratorMapper, + ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, ManagedInstanceAzureADOnlyAuthentication as ManagedInstanceAzureADOnlyAuthenticationMapper, + ManagedInstanceDtc as ManagedInstanceDtcMapper, ManagedInstanceEncryptionProtector as ManagedInstanceEncryptionProtectorMapper, ManagedInstanceKey as ManagedInstanceKeyMapper, ManagedInstanceLongTermRetentionPolicy as ManagedInstanceLongTermRetentionPolicyMapper, ManagedInstancePrivateEndpointConnection as ManagedInstancePrivateEndpointConnectionMapper, TdeCertificate as TdeCertificateMapper, ManagedInstanceVulnerabilityAssessment as ManagedInstanceVulnerabilityAssessmentMapper, + ManagedInstance as ManagedInstanceMapper, + ManagedInstanceUpdate as ManagedInstanceUpdateMapper, + ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, + ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, + ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, ManagedServerSecurityAlertPolicy as ManagedServerSecurityAlertPolicyMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, CreateDatabaseRestorePointDefinition as CreateDatabaseRestorePointDefinitionMapper, + ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, ServerAutomaticTuning as ServerAutomaticTuningMapper, ServerAzureADAdministrator as ServerAzureADAdministratorMapper, ServerAzureADOnlyAuthentication as ServerAzureADOnlyAuthenticationMapper, + ServerConfigurationOption as ServerConfigurationOptionMapper, + ServerConnectionPolicy as ServerConnectionPolicyMapper, ServerDevOpsAuditingSettings as ServerDevOpsAuditingSettingsMapper, ServerDnsAliasAcquisition as ServerDnsAliasAcquisitionMapper, ServerKey as ServerKeyMapper, ServerSecurityAlertPolicy as ServerSecurityAlertPolicyMapper, + ServerTrustCertificate as ServerTrustCertificateMapper, ServerTrustGroup as ServerTrustGroupMapper, ServerVulnerabilityAssessment as ServerVulnerabilityAssessmentMapper, - SqlAgentConfiguration as SqlAgentConfigurationMapper, - SyncAgent as SyncAgentMapper, - SyncGroup as SyncGroupMapper, - SyncMember as SyncMemberMapper, - VirtualNetworkRule as VirtualNetworkRuleMapper, - WorkloadClassifier as WorkloadClassifierMapper, - WorkloadGroup as WorkloadGroupMapper, - BackupShortTermRetentionPolicy as BackupShortTermRetentionPolicyMapper, - DatabaseExtensions as DatabaseExtensionsMapper, - LedgerDigestUploads as LedgerDigestUploadsMapper, - OutboundFirewallRule as OutboundFirewallRuleMapper, - CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, - UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, - ServerConnectionPolicy as ServerConnectionPolicyMapper, - DistributedAvailabilityGroup as DistributedAvailabilityGroupMapper, - ServerTrustCertificate as ServerTrustCertificateMapper, - SensitivityLabel as SensitivityLabelMapper, - SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, - RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, - ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, - DatabaseBlobAuditingPolicy as DatabaseBlobAuditingPolicyMapper, - ExtendedDatabaseBlobAuditingPolicy as ExtendedDatabaseBlobAuditingPolicyMapper, - ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, - DatabaseAdvancedThreatProtection as DatabaseAdvancedThreatProtectionMapper, - ServerAdvancedThreatProtection as ServerAdvancedThreatProtectionMapper, - ManagedServerDnsAliasCreation as ManagedServerDnsAliasCreationMapper, - ManagedServerDnsAliasAcquisition as ManagedServerDnsAliasAcquisitionMapper, - ManagedDatabaseAdvancedThreatProtection as ManagedDatabaseAdvancedThreatProtectionMapper, - ManagedInstanceAdvancedThreatProtection as ManagedInstanceAdvancedThreatProtectionMapper, - ManagedInstanceDtc as ManagedInstanceDtcMapper, - VirtualClusterUpdate as VirtualClusterUpdateMapper, - InstanceFailoverGroup as InstanceFailoverGroupMapper, - ManagedDatabase as ManagedDatabaseMapper, - ManagedDatabaseUpdate as ManagedDatabaseUpdateMapper, - ManagedDatabaseMoveDefinition as ManagedDatabaseMoveDefinitionMapper, - CompleteDatabaseRestoreDefinition as CompleteDatabaseRestoreDefinitionMapper, - ManagedDatabaseStartMoveDefinition as ManagedDatabaseStartMoveDefinitionMapper, - ManagedInstance as ManagedInstanceMapper, - ManagedInstanceUpdate as ManagedInstanceUpdateMapper, - ManagedLedgerDigestUploads as ManagedLedgerDigestUploadsMapper, - ServerConfigurationOption as ServerConfigurationOptionMapper, CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, Server as ServerMapper, ServerUpdate as ServerUpdateMapper, ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, + SqlAgentConfiguration as SqlAgentConfigurationMapper, + SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper, + SyncAgent as SyncAgentMapper, + SyncGroup as SyncGroupMapper, + SyncMember as SyncMemberMapper, LogicalDatabaseTransparentDataEncryption as LogicalDatabaseTransparentDataEncryptionMapper, - FailoverGroup as FailoverGroupMapper, - FailoverGroupUpdate as FailoverGroupUpdateMapper, - IPv6FirewallRule as IPv6FirewallRuleMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, - SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper + VirtualClusterUpdate as VirtualClusterUpdateMapper, + VirtualNetworkRule as VirtualNetworkRuleMapper, + WorkloadClassifier as WorkloadClassifierMapper, + WorkloadGroup as WorkloadGroupMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: DataMaskingPolicyMapper -}; - export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -161,22 +144,21 @@ export const $host: OperationURLParameter = { skipEncoding: true }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - defaultValue: "2014-04-01", - isConstant: true, - serializedName: "api-version", + serializedName: "resourceGroupName", + required: true, type: { name: "String" } } }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const serverName: OperationURLParameter = { + parameterPath: "serverName", mapper: { - serializedName: "subscriptionId", + serializedName: "serverName", required: true, type: { name: "String" @@ -184,10 +166,10 @@ export const subscriptionId: OperationURLParameter = { } }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const databaseName: OperationURLParameter = { + parameterPath: "databaseName", mapper: { - serializedName: "resourceGroupName", + serializedName: "databaseName", required: true, type: { name: "String" @@ -195,10 +177,10 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const serverName: OperationURLParameter = { - parameterPath: "serverName", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - serializedName: "serverName", + serializedName: "subscriptionId", required: true, type: { name: "String" @@ -206,10 +188,22 @@ export const serverName: OperationURLParameter = { } }; -export const databaseName: OperationURLParameter = { - parameterPath: "databaseName", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "databaseName", + defaultValue: "2023-02-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const policyName: OperationURLParameter = { + parameterPath: "policyName", + mapper: { + serializedName: "policyName", required: true, type: { name: "String" @@ -217,43 +211,71 @@ export const databaseName: OperationURLParameter = { } }; -export const dataMaskingPolicyName: OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - defaultValue: "Default", + defaultValue: "application/json", isConstant: true, - serializedName: "dataMaskingPolicyName", + serializedName: "Content-Type", type: { name: "String" } } }; -export const parameters1: OperationParameter = { +export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: DataMaskingRuleMapper + mapper: BackupShortTermRetentionPolicyMapper }; -export const dataMaskingRuleName: OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "dataMaskingRuleName", + serializedName: "nextLink", required: true, type: { name: "String" } + }, + skipEncoding: true +}; + +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", + mapper: { + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", + type: { + name: "String" + } } }; +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper +}; + export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: GeoBackupPolicyMapper + mapper: DatabaseBlobAuditingPolicyMapper }; -export const geoBackupPolicyName: OperationURLParameter = { - parameterPath: "geoBackupPolicyName", +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedDatabaseBlobAuditingPolicyMapper +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedServerBlobAuditingPolicyMapper +}; + +export const dataMaskingPolicyName: OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", mapper: { - serializedName: "geoBackupPolicyName", + serializedName: "dataMaskingPolicyName", required: true, type: { name: "String" @@ -261,10 +283,20 @@ export const geoBackupPolicyName: OperationURLParameter = { } }; -export const filter: OperationQueryParameter = { - parameterPath: "filter", +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: DataMaskingPolicyMapper +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: DataMaskingRuleMapper +}; + +export const dataMaskingRuleName: OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { - serializedName: "$filter", + serializedName: "dataMaskingRuleName", required: true, type: { name: "String" @@ -272,28 +304,33 @@ export const filter: OperationQueryParameter = { } }; -export const skipToken: OperationQueryParameter = { - parameterPath: ["options", "skipToken"], +export const dataWarehouseUserActivityName: OperationURLParameter = { + parameterPath: "dataWarehouseUserActivityName", mapper: { - serializedName: "$skipToken", + serializedName: "dataWarehouseUserActivityName", + required: true, type: { name: "String" } } }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", +export const advancedThreatProtectionName: OperationURLParameter = { + parameterPath: "advancedThreatProtectionName", mapper: { - defaultValue: "2022-08-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "advancedThreatProtectionName", + required: true, type: { name: "String" } } }; +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseAdvancedThreatProtectionMapper +}; + export const expand: OperationQueryParameter = { parameterPath: ["options", "expand"], mapper: { @@ -304,135 +341,8 @@ export const expand: OperationQueryParameter = { } }; -export const filter1: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; - -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseMapper -}; - -export const parameters4: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseUpdateMapper -}; - -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: ExportDatabaseDefinitionMapper -}; - -export const replicaType: OperationQueryParameter = { - parameterPath: ["options", "replicaType"], - mapper: { - serializedName: "replicaType", - type: { - name: "String" - } - } -}; - -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: ImportExistingDatabaseDefinitionMapper -}; - -export const parameters7: OperationParameter = { - parameterPath: "parameters", - mapper: ResourceMoveDefinitionMapper -}; - -export const elasticPoolName: OperationURLParameter = { - parameterPath: "elasticPoolName", - mapper: { - serializedName: "elasticPoolName", - required: true, - type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], - mapper: { - serializedName: "$skip", - type: { - name: "Number" - } - } -}; - -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ElasticPoolMapper -}; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: ElasticPoolUpdateMapper -}; - -export const communicationLinkName: OperationURLParameter = { - parameterPath: "communicationLinkName", - mapper: { - serializedName: "communicationLinkName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters10: OperationParameter = { - parameterPath: "parameters", - mapper: ServerCommunicationLinkMapper -}; - -export const serviceObjectiveName: OperationURLParameter = { - parameterPath: "serviceObjectiveName", - mapper: { - serializedName: "serviceObjectiveName", - required: true, - type: { - name: "String" - } - } -}; - -export const apiVersion2: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2020-11-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const advisorName: OperationURLParameter = { - parameterPath: "advisorName", +export const advisorName: OperationURLParameter = { + parameterPath: "advisorName", mapper: { serializedName: "advisorName", required: true, @@ -442,12 +352,12 @@ export const advisorName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: AdvisorMapper }; -export const parameters12: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: DatabaseAutomaticTuningMapper }; @@ -548,6 +458,16 @@ export const tableName: OperationURLParameter = { } }; +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; + export const columnName: OperationURLParameter = { parameterPath: "columnName", mapper: { @@ -559,6 +479,44 @@ export const columnName: OperationURLParameter = { } }; +export const encryptionProtectorName: OperationURLParameter = { + parameterPath: "encryptionProtectorName", + mapper: { + serializedName: "encryptionProtectorName", + required: true, + type: { + name: "String" + } + } +}; + +export const extensionName: OperationURLParameter = { + parameterPath: "extensionName", + mapper: { + serializedName: "extensionName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseExtensionsMapper +}; + +export const operationId: OperationURLParameter = { + parameterPath: "operationId", + mapper: { + serializedName: "operationId", + required: true, + type: { + name: "Uuid" + } + } +}; + export const recommendedActionName: OperationURLParameter = { parameterPath: "recommendedActionName", mapper: { @@ -570,7 +528,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -586,7 +544,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -602,43 +560,26 @@ export const vulnerabilityAssessmentName: OperationURLParameter = { } }; -export const ruleId: OperationURLParameter = { - parameterPath: "ruleId", - mapper: { - serializedName: "ruleId", - required: true, - type: { - name: "String" - } - } -}; - export const baselineName: OperationURLParameter = { parameterPath: "baselineName", mapper: { serializedName: "baselineName", required: true, type: { - name: "Enum", - allowedValues: ["master", "default"] + name: "String" } } }; -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper -}; - -export const parameters16: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseVulnerabilityAssessmentMapper + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper }; -export const scanId: OperationURLParameter = { - parameterPath: "scanId", +export const ruleId: OperationURLParameter = { + parameterPath: "ruleId", mapper: { - serializedName: "scanId", + serializedName: "ruleId", required: true, type: { name: "String" @@ -646,10 +587,15 @@ export const scanId: OperationURLParameter = { } }; -export const dataWarehouseUserActivityName: OperationURLParameter = { - parameterPath: "dataWarehouseUserActivityName", +export const parameters14: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper +}; + +export const vulnerabilityAssessmentName1: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { - serializedName: "dataWarehouseUserActivityName", + serializedName: "vulnerabilityAssessmentName", required: true, type: { name: "String" @@ -657,10 +603,10 @@ export const dataWarehouseUserActivityName: OperationURLParameter = { } }; -export const locationName: OperationURLParameter = { - parameterPath: "locationName", +export const scanId: OperationURLParameter = { + parameterPath: "scanId", mapper: { - serializedName: "locationName", + serializedName: "scanId", required: true, type: { name: "String" @@ -668,10 +614,10 @@ export const locationName: OperationURLParameter = { } }; -export const deletedServerName: OperationURLParameter = { - parameterPath: "deletedServerName", +export const scanResultId: OperationURLParameter = { + parameterPath: "scanResultId", mapper: { - serializedName: "deletedServerName", + serializedName: "scanResultId", required: true, type: { name: "String" @@ -679,22 +625,32 @@ export const deletedServerName: OperationURLParameter = { } }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", +export const baselineName1: OperationURLParameter = { + parameterPath: "baselineName", mapper: { - serializedName: "operationId", + serializedName: "baselineName", required: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["master", "default"] } } }; -export const encryptionProtectorName: OperationURLParameter = { - parameterPath: "encryptionProtectorName", +export const parameters15: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper +}; + +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseVulnerabilityAssessmentMapper +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { - serializedName: "encryptionProtectorName", - required: true, + serializedName: "$skipToken", type: { name: "String" } @@ -703,11 +659,173 @@ export const encryptionProtectorName: OperationURLParameter = { export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: EncryptionProtectorMapper + mapper: DatabaseMapper }; -export const firewallRuleName: OperationURLParameter = { - parameterPath: "firewallRuleName", +export const parameters18: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseUpdateMapper +}; + +export const parameters19: OperationParameter = { + parameterPath: "parameters", + mapper: ExportDatabaseDefinitionMapper +}; + +export const replicaType: OperationQueryParameter = { + parameterPath: ["options", "replicaType"], + mapper: { + serializedName: "replicaType", + type: { + name: "String" + } + } +}; + +export const parameters20: OperationParameter = { + parameterPath: "parameters", + mapper: ImportExistingDatabaseDefinitionMapper +}; + +export const parameters21: OperationParameter = { + parameterPath: "parameters", + mapper: ResourceMoveDefinitionMapper +}; + +export const elasticPoolName: OperationURLParameter = { + parameterPath: "elasticPoolName", + mapper: { + serializedName: "elasticPoolName", + required: true, + type: { + name: "String" + } + } +}; + +export const locationName: OperationURLParameter = { + parameterPath: "locationName", + mapper: { + serializedName: "locationName", + required: true, + type: { + name: "String" + } + } +}; + +export const deletedServerName: OperationURLParameter = { + parameterPath: "deletedServerName", + mapper: { + serializedName: "deletedServerName", + required: true, + type: { + name: "String" + } + } +}; + +export const managedInstanceName: OperationURLParameter = { + parameterPath: "managedInstanceName", + mapper: { + serializedName: "managedInstanceName", + required: true, + type: { + name: "String" + } + } +}; + +export const distributedAvailabilityGroupName: OperationURLParameter = { + parameterPath: "distributedAvailabilityGroupName", + mapper: { + serializedName: "distributedAvailabilityGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupsCreateOrUpdateRequestBodyMapper +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupMapper +}; + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupSetRoleMapper +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + serializedName: "$skip", + type: { + name: "Number" + } + } +}; + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolMapper +}; + +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolUpdateMapper +}; + +export const parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: EncryptionProtectorMapper +}; + +export const endpointType: OperationURLParameter = { + parameterPath: "endpointType", + mapper: { + serializedName: "endpointType", + required: true, + type: { + name: "String" + } + } +}; + +export const failoverGroupName: OperationURLParameter = { + parameterPath: "failoverGroupName", + mapper: { + serializedName: "failoverGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters28: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupMapper +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupUpdateMapper +}; + +export const parameters30: OperationParameter = { + parameterPath: "parameters", + mapper: FirewallRuleListMapper +}; + +export const firewallRuleName: OperationURLParameter = { + parameterPath: "firewallRuleName", mapper: { serializedName: "firewallRuleName", required: true, @@ -717,14 +835,35 @@ export const firewallRuleName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: FirewallRuleMapper }; -export const parameters19: OperationParameter = { +export const geoBackupPolicyName: OperationURLParameter = { + parameterPath: "geoBackupPolicyName", + mapper: { + serializedName: "geoBackupPolicyName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters32: OperationParameter = { parameterPath: "parameters", - mapper: FirewallRuleListMapper + mapper: GeoBackupPolicyMapper +}; + +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const parameters34: OperationParameter = { + parameterPath: "parameters", + mapper: InstanceFailoverGroupMapper }; export const instancePoolName: OperationURLParameter = { @@ -738,12 +877,12 @@ export const instancePoolName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolMapper }; -export const parameters21: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolUpdateMapper }; @@ -759,12 +898,12 @@ export const jobAgentName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: JobAgentMapper }; -export const parameters23: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: JobAgentUpdateMapper }; @@ -780,7 +919,7 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: JobCredentialMapper }; @@ -867,11 +1006,6 @@ export const jobExecutionId: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { - parameterPath: "parameters", - mapper: JobMapper -}; - export const stepName: OperationURLParameter = { parameterPath: "stepName", mapper: { @@ -883,6 +1017,11 @@ export const stepName: OperationURLParameter = { } }; +export const parameters40: OperationParameter = { + parameterPath: "parameters", + mapper: JobStepMapper +}; + export const jobVersion: OperationURLParameter = { parameterPath: "jobVersion", mapper: { @@ -894,11 +1033,6 @@ export const jobVersion: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { - parameterPath: "parameters", - mapper: JobStepMapper -}; - export const targetId: OperationURLParameter = { parameterPath: "targetId", mapper: { @@ -921,25 +1055,20 @@ export const targetGroupName: OperationURLParameter = { } }; -export const parameters27: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: JobTargetGroupMapper }; -export const include: OperationQueryParameter = { - parameterPath: ["options", "include"], - mapper: { - serializedName: "include", - type: { - name: "String" - } - } +export const parameters42: OperationParameter = { + parameterPath: "parameters", + mapper: JobMapper }; -export const policyName: OperationURLParameter = { - parameterPath: "policyName", +export const ledgerDigestUploads: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "policyName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -947,42 +1076,67 @@ export const policyName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", - mapper: LongTermRetentionPolicyMapper + mapper: LedgerDigestUploadsMapper }; -export const maintenanceWindowOptionsName: OperationQueryParameter = { - parameterPath: "maintenanceWindowOptionsName", +export const include: OperationQueryParameter = { + parameterPath: ["options", "include"], mapper: { - serializedName: "maintenanceWindowOptionsName", - required: true, + serializedName: "include", type: { name: "String" } } }; -export const maintenanceWindowName: OperationQueryParameter = { - parameterPath: "maintenanceWindowName", +export const onlyLatestPerDatabase: OperationQueryParameter = { + parameterPath: ["options", "onlyLatestPerDatabase"], mapper: { - serializedName: "maintenanceWindowName", - required: true, + serializedName: "onlyLatestPerDatabase", type: { - name: "String" + name: "Boolean" } } }; -export const parameters29: OperationParameter = { - parameterPath: "parameters", - mapper: MaintenanceWindowsMapper +export const databaseState: OperationQueryParameter = { + parameterPath: ["options", "databaseState"], + mapper: { + serializedName: "databaseState", + type: { + name: "String" + } + } }; -export const managedInstanceName: OperationURLParameter = { - parameterPath: "managedInstanceName", +export const longTermRetentionServerName: OperationURLParameter = { + parameterPath: "longTermRetentionServerName", mapper: { - serializedName: "managedInstanceName", + serializedName: "longTermRetentionServerName", + required: true, + type: { + name: "String" + } + } +}; + +export const longTermRetentionDatabaseName: OperationURLParameter = { + parameterPath: "longTermRetentionDatabaseName", + mapper: { + serializedName: "longTermRetentionDatabaseName", + required: true, + type: { + name: "String" + } + } +}; + +export const backupName: OperationURLParameter = { + parameterPath: "backupName", + mapper: { + serializedName: "backupName", required: true, type: { name: "String" @@ -990,6 +1144,16 @@ export const managedInstanceName: OperationURLParameter = { } }; +export const parameters44: OperationParameter = { + parameterPath: "parameters", + mapper: CopyLongTermRetentionBackupParametersMapper +}; + +export const parameters45: OperationParameter = { + parameterPath: "parameters", + mapper: UpdateLongTermRetentionBackupParametersMapper +}; + export const policyName1: OperationURLParameter = { parameterPath: "policyName", mapper: { @@ -1001,11 +1165,59 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters46: OperationParameter = { + parameterPath: "parameters", + mapper: LongTermRetentionPolicyMapper +}; + +export const maintenanceWindowOptionsName: OperationQueryParameter = { + parameterPath: "maintenanceWindowOptionsName", + mapper: { + serializedName: "maintenanceWindowOptionsName", + required: true, + type: { + name: "String" + } + } +}; + +export const maintenanceWindowName: OperationQueryParameter = { + parameterPath: "maintenanceWindowName", + mapper: { + serializedName: "maintenanceWindowName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters47: OperationParameter = { + parameterPath: "parameters", + mapper: MaintenanceWindowsMapper +}; + +export const policyName2: OperationURLParameter = { + parameterPath: "policyName", + mapper: { + serializedName: "policyName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: ManagedBackupShortTermRetentionPolicyMapper }; +export const parameters49: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseAdvancedThreatProtectionMapper +}; + export const queryId: OperationURLParameter = { parameterPath: "queryId", mapper: { @@ -1047,11 +1259,93 @@ export const interval: OperationQueryParameter = { } }; -export const parameters31: OperationParameter = { +export const restoreDetailsName: OperationURLParameter = { + parameterPath: "restoreDetailsName", + mapper: { + serializedName: "restoreDetailsName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: ManagedDatabaseSecurityAlertPolicyMapper }; +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "$count", + type: { + name: "Boolean" + } + } +}; + +export const parameters51: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelUpdateListMapper +}; + +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], + mapper: { + serializedName: "includeDisabledRecommendations", + type: { + name: "Boolean" + } + } +}; + +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + serializedName: "sensitivityLabelSource", + required: true, + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } +}; + +export const parameters52: 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 parameters53: OperationParameter = { + parameterPath: "parameters", + mapper: RecommendedSensitivityLabelUpdateListMapper +}; + export const tdeName: OperationURLParameter = { parameterPath: "tdeName", mapper: { @@ -1063,11 +1357,36 @@ export const tdeName: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: ManagedTransparentDataEncryptionMapper }; +export const parameters55: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMapper +}; + +export const parameters56: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseUpdateMapper +}; + +export const parameters57: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseMoveDefinitionMapper +}; + +export const parameters58: OperationParameter = { + parameterPath: "parameters", + mapper: CompleteDatabaseRestoreDefinitionMapper +}; + +export const parameters59: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedDatabaseStartMoveDefinitionMapper +}; + export const administratorName: OperationURLParameter = { parameterPath: "administratorName", mapper: { @@ -1079,11 +1398,16 @@ export const administratorName: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAdministratorMapper }; +export const parameters61: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAdvancedThreatProtectionMapper +}; + export const authenticationName: OperationURLParameter = { parameterPath: "authenticationName", mapper: { @@ -1095,12 +1419,28 @@ export const authenticationName: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceAzureADOnlyAuthenticationMapper }; -export const parameters35: OperationParameter = { +export const dtcName: OperationURLParameter = { + parameterPath: "dtcName", + mapper: { + serializedName: "dtcName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters63: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceDtcMapper +}; + +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceEncryptionProtectorMapper }; @@ -1116,12 +1456,12 @@ export const keyName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceKeyMapper }; -export const policyName2: OperationURLParameter = { +export const policyName3: OperationURLParameter = { parameterPath: "policyName", mapper: { serializedName: "policyName", @@ -1132,7 +1472,7 @@ export const policyName2: OperationURLParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceLongTermRetentionPolicyMapper }; @@ -1148,7 +1488,7 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstancePrivateEndpointConnectionMapper }; @@ -1164,95 +1504,70 @@ export const groupName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: TdeCertificateMapper }; -export const parameters40: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: ManagedInstanceVulnerabilityAssessmentMapper }; -export const restorableDroppedDatabaseId: OperationURLParameter = { - parameterPath: "restorableDroppedDatabaseId", - mapper: { - serializedName: "restorableDroppedDatabaseId", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters41: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerSecurityAlertPolicyMapper + mapper: ManagedInstanceMapper }; -export const parameters42: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: ManagedInstanceUpdateMapper }; -export const recoverableDatabaseName: OperationURLParameter = { - parameterPath: "recoverableDatabaseName", +export const numberOfQueries: OperationQueryParameter = { + parameterPath: ["options", "numberOfQueries"], mapper: { - serializedName: "recoverableDatabaseName", - required: true, + serializedName: "numberOfQueries", type: { - name: "String" + name: "Number" } } }; -export const parameters43: OperationParameter = { - parameterPath: "parameters", - mapper: CreateDatabaseRestorePointDefinitionMapper -}; - -export const restorePointName: OperationURLParameter = { - parameterPath: "restorePointName", +export const databases: OperationQueryParameter = { + parameterPath: ["options", "databases"], mapper: { - serializedName: "restorePointName", - required: true, + serializedName: "databases", type: { name: "String" } } }; -export const parameters44: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAutomaticTuningMapper -}; - -export const parameters45: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADAdministratorMapper -}; - -export const parameters46: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADOnlyAuthenticationMapper +export const aggregationFunction: OperationQueryParameter = { + parameterPath: ["options", "aggregationFunction"], + mapper: { + serializedName: "aggregationFunction", + type: { + name: "String" + } + } }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", +export const observationMetric: OperationQueryParameter = { + parameterPath: ["options", "observationMetric"], mapper: { - defaultValue: "2022-02-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "observationMetric", type: { name: "String" } } }; -export const devOpsAuditingSettingsName: OperationURLParameter = { - parameterPath: "devOpsAuditingSettingsName", +export const ledgerDigestUploads1: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "devOpsAuditingSettingsName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -1260,9 +1575,20 @@ export const devOpsAuditingSettingsName: OperationURLParameter = { } }; -export const parameters47: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", - mapper: ServerDevOpsAuditingSettingsMapper + mapper: ManagedLedgerDigestUploadsMapper +}; + +export const restorableDroppedDatabaseId: OperationURLParameter = { + parameterPath: "restorableDroppedDatabaseId", + mapper: { + serializedName: "restorableDroppedDatabaseId", + required: true, + type: { + name: "String" + } + } }; export const dnsAliasName: OperationURLParameter = { @@ -1276,25 +1602,20 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { - parameterPath: "parameters", - mapper: ServerDnsAliasAcquisitionMapper -}; - -export const parameters49: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", - mapper: ServerKeyMapper + mapper: ManagedServerDnsAliasCreationMapper }; -export const parameters50: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", - mapper: ServerSecurityAlertPolicyMapper + mapper: ManagedServerDnsAliasAcquisitionMapper }; -export const serverTrustGroupName: OperationURLParameter = { - parameterPath: "serverTrustGroupName", +export const securityAlertPolicyName1: OperationURLParameter = { + parameterPath: "securityAlertPolicyName", mapper: { - serializedName: "serverTrustGroupName", + serializedName: "securityAlertPolicyName", required: true, type: { name: "String" @@ -1302,25 +1623,15 @@ export const serverTrustGroupName: OperationURLParameter = { } }; -export const parameters51: OperationParameter = { - parameterPath: "parameters", - mapper: ServerTrustGroupMapper -}; - -export const parameters52: OperationParameter = { - parameterPath: "parameters", - mapper: ServerVulnerabilityAssessmentMapper -}; - -export const parameters53: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", - mapper: SqlAgentConfigurationMapper + mapper: ManagedServerSecurityAlertPolicyMapper }; -export const usageName: OperationURLParameter = { - parameterPath: "usageName", +export const nspConfigName: OperationURLParameter = { + parameterPath: "nspConfigName", mapper: { - serializedName: "usageName", + serializedName: "nspConfigName", required: true, type: { name: "String" @@ -1328,10 +1639,10 @@ export const usageName: OperationURLParameter = { } }; -export const syncAgentName: OperationURLParameter = { - parameterPath: "syncAgentName", +export const outboundRuleFqdn: OperationURLParameter = { + parameterPath: "outboundRuleFqdn", mapper: { - serializedName: "syncAgentName", + serializedName: "outboundRuleFqdn", required: true, type: { name: "String" @@ -1339,15 +1650,15 @@ export const syncAgentName: OperationURLParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", - mapper: SyncAgentMapper + mapper: PrivateEndpointConnectionMapper }; -export const syncGroupName: OperationURLParameter = { - parameterPath: "syncGroupName", +export const recoverableDatabaseName: OperationURLParameter = { + parameterPath: "recoverableDatabaseName", mapper: { - serializedName: "syncGroupName", + serializedName: "recoverableDatabaseName", required: true, type: { name: "String" @@ -1355,10 +1666,10 @@ export const syncGroupName: OperationURLParameter = { } }; -export const startTime1: OperationQueryParameter = { - parameterPath: "startTime", +export const linkId: OperationURLParameter = { + parameterPath: "linkId", mapper: { - serializedName: "startTime", + serializedName: "linkId", required: true, type: { name: "String" @@ -1366,21 +1677,15 @@ export const startTime1: OperationQueryParameter = { } }; -export const endTime1: OperationQueryParameter = { - parameterPath: "endTime", - mapper: { - serializedName: "endTime", - required: true, - type: { - name: "String" - } - } +export const parameters77: OperationParameter = { + parameterPath: "parameters", + mapper: CreateDatabaseRestorePointDefinitionMapper }; -export const typeParam: OperationQueryParameter = { - parameterPath: "typeParam", +export const restorePointName: OperationURLParameter = { + parameterPath: "restorePointName", mapper: { - serializedName: "type", + serializedName: "restorePointName", required: true, type: { name: "String" @@ -1388,41 +1693,30 @@ export const typeParam: OperationQueryParameter = { } }; -export const continuationToken: OperationQueryParameter = { - parameterPath: ["options", "continuationToken"], - mapper: { - serializedName: "continuationToken", - type: { - name: "String" - } - } +export const parameters78: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAdvancedThreatProtectionMapper }; -export const parameters55: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", - mapper: SyncGroupMapper + mapper: ServerAutomaticTuningMapper }; -export const syncMemberName: OperationURLParameter = { - parameterPath: "syncMemberName", - mapper: { - serializedName: "syncMemberName", - required: true, - type: { - name: "String" - } - } +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAzureADAdministratorMapper }; -export const parameters56: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", - mapper: SyncMemberMapper + mapper: ServerAzureADOnlyAuthenticationMapper }; -export const timeZoneId: OperationURLParameter = { - parameterPath: "timeZoneId", +export const serverConfigurationOptionName: OperationURLParameter = { + parameterPath: "serverConfigurationOptionName", mapper: { - serializedName: "timeZoneId", + serializedName: "serverConfigurationOptionName", required: true, type: { name: "String" @@ -1430,10 +1724,15 @@ export const timeZoneId: OperationURLParameter = { } }; -export const virtualNetworkRuleName: OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", +export const parameters82: OperationParameter = { + parameterPath: "parameters", + mapper: ServerConfigurationOptionMapper +}; + +export const connectionPolicyName: OperationURLParameter = { + parameterPath: "connectionPolicyName", mapper: { - serializedName: "virtualNetworkRuleName", + serializedName: "connectionPolicyName", required: true, type: { name: "String" @@ -1441,15 +1740,15 @@ export const virtualNetworkRuleName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: "parameters", - mapper: VirtualNetworkRuleMapper + mapper: ServerConnectionPolicyMapper }; -export const workloadGroupName: OperationURLParameter = { - parameterPath: "workloadGroupName", +export const devOpsAuditingSettingsName: OperationURLParameter = { + parameterPath: "devOpsAuditingSettingsName", mapper: { - serializedName: "workloadGroupName", + serializedName: "devOpsAuditingSettingsName", required: true, type: { name: "String" @@ -1457,31 +1756,30 @@ export const workloadGroupName: OperationURLParameter = { } }; -export const workloadClassifierName: OperationURLParameter = { - parameterPath: "workloadClassifierName", - mapper: { - serializedName: "workloadClassifierName", - required: true, - type: { - name: "String" - } - } +export const parameters84: OperationParameter = { + parameterPath: "parameters", + mapper: ServerDevOpsAuditingSettingsMapper }; -export const parameters58: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadClassifierMapper + mapper: ServerDnsAliasAcquisitionMapper }; -export const parameters59: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadGroupMapper + mapper: ServerKeyMapper }; -export const policyName3: OperationURLParameter = { - parameterPath: "policyName", +export const parameters87: OperationParameter = { + parameterPath: "parameters", + mapper: ServerSecurityAlertPolicyMapper +}; + +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", mapper: { - serializedName: "policyName", + serializedName: "certificateName", required: true, type: { name: "String" @@ -1489,398 +1787,78 @@ export const policyName3: OperationURLParameter = { } }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const parameters88: OperationParameter = { + parameterPath: "parameters", + mapper: ServerTrustCertificateMapper +}; + +export const serverTrustGroupName: OperationURLParameter = { + parameterPath: "serverTrustGroupName", mapper: { - defaultValue: "2021-02-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "serverTrustGroupName", + required: true, type: { name: "String" } } }; -export const parameters60: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: BackupShortTermRetentionPolicyMapper -}; - -export const extensionName: OperationURLParameter = { - parameterPath: "extensionName", - mapper: { - serializedName: "extensionName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters61: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseExtensionsMapper -}; - -export const ledgerDigestUploads: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", - mapper: { - serializedName: "ledgerDigestUploads", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters62: OperationParameter = { - parameterPath: "parameters", - mapper: LedgerDigestUploadsMapper -}; - -export const outboundRuleFqdn: OperationURLParameter = { - parameterPath: "outboundRuleFqdn", - mapper: { - serializedName: "outboundRuleFqdn", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters63: OperationParameter = { - parameterPath: "parameters", - mapper: OutboundFirewallRuleMapper -}; - -export const expandChildren: OperationQueryParameter = { - parameterPath: ["options", "expandChildren"], - mapper: { - serializedName: "expandChildren", - type: { - name: "Boolean" - } - } -}; - -export const parameters64: OperationParameter = { - parameterPath: "parameters", - mapper: CopyLongTermRetentionBackupParametersMapper -}; - -export const longTermRetentionServerName: OperationURLParameter = { - parameterPath: "longTermRetentionServerName", - mapper: { - serializedName: "longTermRetentionServerName", - required: true, - type: { - name: "String" - } - } -}; - -export const longTermRetentionDatabaseName: OperationURLParameter = { - parameterPath: "longTermRetentionDatabaseName", - mapper: { - serializedName: "longTermRetentionDatabaseName", - required: true, - type: { - name: "String" - } - } -}; - -export const backupName: OperationURLParameter = { - parameterPath: "backupName", - mapper: { - serializedName: "backupName", - required: true, - type: { - name: "String" - } - } -}; - -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-05-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const parameters65: OperationParameter = { - parameterPath: "parameters", - mapper: UpdateLongTermRetentionBackupParametersMapper -}; - -export const onlyLatestPerDatabase: OperationQueryParameter = { - parameterPath: ["options", "onlyLatestPerDatabase"], - mapper: { - serializedName: "onlyLatestPerDatabase", - type: { - name: "Boolean" - } - } -}; - -export const databaseState: OperationQueryParameter = { - parameterPath: ["options", "databaseState"], - mapper: { - serializedName: "databaseState", - type: { - name: "String" - } - } -}; - -export const connectionPolicyName: OperationURLParameter = { - parameterPath: "connectionPolicyName", - mapper: { - serializedName: "connectionPolicyName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters66: OperationParameter = { - parameterPath: "parameters", - mapper: ServerConnectionPolicyMapper -}; - -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-11-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const distributedAvailabilityGroupName: OperationURLParameter = { - parameterPath: "distributedAvailabilityGroupName", - mapper: { - serializedName: "distributedAvailabilityGroupName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters67: OperationParameter = { - parameterPath: "parameters", - mapper: DistributedAvailabilityGroupMapper -}; - -export const certificateName: OperationURLParameter = { - parameterPath: "certificateName", - mapper: { - serializedName: "certificateName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters68: OperationParameter = { - parameterPath: "parameters", - mapper: ServerTrustCertificateMapper -}; - -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 parameters69: 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 parameters70: OperationParameter = { - parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper -}; - -export const includeDisabledRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includeDisabledRecommendations"], - mapper: { - serializedName: "includeDisabledRecommendations", - type: { - name: "Boolean" - } - } -}; - -export const parameters71: OperationParameter = { - parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper -}; - -export const blobAuditingPolicyName: OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", - mapper: { - defaultValue: "default", - isConstant: true, - serializedName: "blobAuditingPolicyName", - type: { - name: "String" - } - } -}; - -export const parameters72: OperationParameter = { - parameterPath: "parameters", - mapper: ServerBlobAuditingPolicyMapper -}; - -export const parameters73: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseBlobAuditingPolicyMapper -}; - -export const parameters74: OperationParameter = { - parameterPath: "parameters", - mapper: ExtendedDatabaseBlobAuditingPolicyMapper -}; - -export const parameters75: OperationParameter = { - parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper -}; - -export const advancedThreatProtectionName: OperationURLParameter = { - parameterPath: "advancedThreatProtectionName", - mapper: { - serializedName: "advancedThreatProtectionName", - required: true, - type: { - name: "String" - } - } + mapper: ServerTrustGroupMapper }; -export const parameters76: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseAdvancedThreatProtectionMapper + mapper: ServerVulnerabilityAssessmentMapper }; -export const parameters77: OperationParameter = { +export const parameters91: OperationParameter = { parameterPath: "parameters", - mapper: ServerAdvancedThreatProtectionMapper + mapper: CheckNameAvailabilityRequestMapper }; -export const parameters78: OperationParameter = { +export const parameters92: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerDnsAliasCreationMapper + mapper: ServerMapper }; -export const parameters79: OperationParameter = { +export const parameters93: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerDnsAliasAcquisitionMapper + mapper: ServerUpdateMapper }; -export const parameters80: OperationParameter = { +export const parameters94: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseAdvancedThreatProtectionMapper + mapper: ImportNewDatabaseDefinitionMapper }; -export const parameters81: OperationParameter = { +export const parameters95: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceAdvancedThreatProtectionMapper + mapper: SqlAgentConfigurationMapper }; -export const linkId: OperationURLParameter = { - parameterPath: "linkId", +export const systemDatabaseName: OperationQueryParameter = { + parameterPath: "systemDatabaseName", mapper: { - serializedName: "linkId", - required: true, + defaultValue: "master", + isConstant: true, + serializedName: "systemDatabaseName", type: { name: "String" } } }; -export const apiVersion7: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-05-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } +export const parameters96: OperationParameter = { + parameterPath: "parameters", + mapper: SqlVulnerabilityAssessmentMapper }; -export const dtcName: OperationURLParameter = { - parameterPath: "dtcName", +export const startStopScheduleName: OperationURLParameter = { + parameterPath: "startStopScheduleName", mapper: { - serializedName: "dtcName", + serializedName: "startStopScheduleName", required: true, type: { name: "String" @@ -1888,15 +1866,15 @@ export const dtcName: OperationURLParameter = { } }; -export const parameters82: OperationParameter = { +export const parameters97: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceDtcMapper + mapper: StartStopManagedInstanceScheduleMapper }; -export const virtualClusterName: OperationURLParameter = { - parameterPath: "virtualClusterName", +export const usageName: OperationURLParameter = { + parameterPath: "usageName", mapper: { - serializedName: "virtualClusterName", + serializedName: "usageName", required: true, type: { name: "String" @@ -1904,15 +1882,10 @@ export const virtualClusterName: OperationURLParameter = { } }; -export const parameters83: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualClusterUpdateMapper -}; - -export const failoverGroupName: OperationURLParameter = { - parameterPath: "failoverGroupName", +export const syncAgentName: OperationURLParameter = { + parameterPath: "syncAgentName", mapper: { - serializedName: "failoverGroupName", + serializedName: "syncAgentName", required: true, type: { name: "String" @@ -1920,15 +1893,15 @@ export const failoverGroupName: OperationURLParameter = { } }; -export const parameters84: OperationParameter = { +export const parameters98: OperationParameter = { parameterPath: "parameters", - mapper: InstanceFailoverGroupMapper + mapper: SyncAgentMapper }; -export const restoreDetailsName: OperationURLParameter = { - parameterPath: "restoreDetailsName", +export const syncGroupName: OperationURLParameter = { + parameterPath: "syncGroupName", mapper: { - serializedName: "restoreDetailsName", + serializedName: "syncGroupName", required: true, type: { name: "String" @@ -1936,85 +1909,58 @@ export const restoreDetailsName: OperationURLParameter = { } }; -export const parameters85: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseMapper -}; - -export const parameters86: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseUpdateMapper -}; - -export const parameters87: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseMoveDefinitionMapper -}; - -export const parameters88: OperationParameter = { - parameterPath: "parameters", - mapper: CompleteDatabaseRestoreDefinitionMapper -}; - -export const parameters89: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedDatabaseStartMoveDefinitionMapper -}; - -export const parameters90: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceMapper -}; - -export const parameters91: OperationParameter = { +export const parameters99: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceUpdateMapper + mapper: SyncGroupMapper }; -export const numberOfQueries: OperationQueryParameter = { - parameterPath: ["options", "numberOfQueries"], +export const startTime1: OperationQueryParameter = { + parameterPath: "startTime", mapper: { - serializedName: "numberOfQueries", + serializedName: "startTime", + required: true, type: { - name: "Number" + name: "String" } } }; -export const databases: OperationQueryParameter = { - parameterPath: ["options", "databases"], +export const endTime1: OperationQueryParameter = { + parameterPath: "endTime", mapper: { - serializedName: "databases", + serializedName: "endTime", + required: true, type: { name: "String" } } }; -export const aggregationFunction: OperationQueryParameter = { - parameterPath: ["options", "aggregationFunction"], +export const typeParam: OperationQueryParameter = { + parameterPath: "typeParam", mapper: { - serializedName: "aggregationFunction", + serializedName: "type", + required: true, type: { name: "String" } } }; -export const observationMetric: OperationQueryParameter = { - parameterPath: ["options", "observationMetric"], +export const continuationToken: OperationQueryParameter = { + parameterPath: ["options", "continuationToken"], mapper: { - serializedName: "observationMetric", + serializedName: "continuationToken", type: { name: "String" } } }; -export const ledgerDigestUploads1: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", +export const syncMemberName: OperationURLParameter = { + parameterPath: "syncMemberName", mapper: { - serializedName: "ledgerDigestUploads", + serializedName: "syncMemberName", required: true, type: { name: "String" @@ -2022,15 +1968,15 @@ export const ledgerDigestUploads1: OperationURLParameter = { } }; -export const parameters92: OperationParameter = { +export const parameters100: OperationParameter = { parameterPath: "parameters", - mapper: ManagedLedgerDigestUploadsMapper + mapper: SyncMemberMapper }; -export const serverConfigurationOptionName: OperationURLParameter = { - parameterPath: "serverConfigurationOptionName", +export const timeZoneId: OperationURLParameter = { + parameterPath: "timeZoneId", mapper: { - serializedName: "serverConfigurationOptionName", + serializedName: "timeZoneId", required: true, type: { name: "String" @@ -2038,95 +1984,41 @@ export const serverConfigurationOptionName: OperationURLParameter = { } }; -export const parameters93: OperationParameter = { - parameterPath: "parameters", - mapper: ServerConfigurationOptionMapper -}; - -export const parameters94: OperationParameter = { - parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestMapper -}; - -export const parameters95: OperationParameter = { - parameterPath: "parameters", - mapper: ServerMapper -}; - -export const parameters96: OperationParameter = { - parameterPath: "parameters", - mapper: ServerUpdateMapper -}; - -export const parameters97: OperationParameter = { +export const parameters101: OperationParameter = { parameterPath: "parameters", - mapper: ImportNewDatabaseDefinitionMapper + mapper: LogicalDatabaseTransparentDataEncryptionMapper }; -export const startStopScheduleName: OperationURLParameter = { - parameterPath: "startStopScheduleName", +export const expandChildren: OperationQueryParameter = { + parameterPath: ["options", "expandChildren"], mapper: { - serializedName: "startStopScheduleName", - required: true, + serializedName: "expandChildren", type: { - name: "String" + name: "Boolean" } } }; -export const parameters98: OperationParameter = { - parameterPath: "parameters", - mapper: StartStopManagedInstanceScheduleMapper -}; - -export const parameters99: OperationParameter = { - parameterPath: "parameters", - mapper: LogicalDatabaseTransparentDataEncryptionMapper -}; - -export const apiVersion8: OperationQueryParameter = { - parameterPath: "apiVersion", +export const virtualClusterName: OperationURLParameter = { + parameterPath: "virtualClusterName", mapper: { - defaultValue: "2022-11-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "virtualClusterName", + required: true, type: { name: "String" } } }; -export const parameters100: OperationParameter = { - parameterPath: "parameters", - mapper: FailoverGroupMapper -}; - -export const parameters101: OperationParameter = { - parameterPath: "parameters", - mapper: FailoverGroupUpdateMapper -}; - export const parameters102: OperationParameter = { parameterPath: "parameters", - mapper: IPv6FirewallRuleMapper -}; - -export const systemDatabaseName: OperationQueryParameter = { - parameterPath: "systemDatabaseName", - mapper: { - defaultValue: "master", - isConstant: true, - serializedName: "systemDatabaseName", - type: { - name: "String" - } - } + mapper: VirtualClusterUpdateMapper }; -export const baselineName1: OperationURLParameter = { - parameterPath: "baselineName", +export const virtualNetworkRuleName: OperationURLParameter = { + parameterPath: "virtualNetworkRuleName", mapper: { - serializedName: "baselineName", + serializedName: "virtualNetworkRuleName", required: true, type: { name: "String" @@ -2136,18 +2028,13 @@ export const baselineName1: OperationURLParameter = { export const parameters103: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper -}; - -export const parameters104: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper + mapper: VirtualNetworkRuleMapper }; -export const vulnerabilityAssessmentName1: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", +export const workloadGroupName: OperationURLParameter = { + parameterPath: "workloadGroupName", mapper: { - serializedName: "vulnerabilityAssessmentName", + serializedName: "workloadGroupName", required: true, type: { name: "String" @@ -2155,10 +2042,10 @@ export const vulnerabilityAssessmentName1: OperationURLParameter = { } }; -export const scanResultId: OperationURLParameter = { - parameterPath: "scanResultId", +export const workloadClassifierName: OperationURLParameter = { + parameterPath: "workloadClassifierName", mapper: { - serializedName: "scanResultId", + serializedName: "workloadClassifierName", required: true, type: { name: "String" @@ -2166,18 +2053,12 @@ export const scanResultId: OperationURLParameter = { } }; -export const vulnerabilityAssessmentName2: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", - mapper: { - serializedName: "vulnerabilityAssessmentName", - required: true, - type: { - name: "String" - } - } +export const parameters104: OperationParameter = { + parameterPath: "parameters", + mapper: WorkloadClassifierMapper }; export const parameters105: OperationParameter = { parameterPath: "parameters", - mapper: SqlVulnerabilityAssessmentMapper + mapper: WorkloadGroupMapper }; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index 331e39e04ba3..d13c6b8bd258 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -142,6 +142,26 @@ export class BackupShortTermRetentionPoliciesImpl } } + /** + * Gets a database's short term retention 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 options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -392,26 +412,6 @@ export class BackupShortTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a database's short term retention 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 options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: BackupShortTermRetentionPoliciesListByDatabaseOptionalParams - ): 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 @@ -437,6 +437,27 @@ export class BackupShortTermRetentionPoliciesImpl // 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}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", @@ -447,14 +468,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 + Parameters.subscriptionId, + Parameters.policyName ], headerParameters: [Parameters.accept], serializer @@ -478,17 +499,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 + Parameters.subscriptionId, + Parameters.policyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -511,39 +532,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters60, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName3 - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.policyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -557,10 +557,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts index 53f451b0be0f..86d6e90f97da 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.apiVersion, Parameters.include], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts index a1a6a0aa71e4..518459043c87 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts @@ -12,11 +12,12 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { + DataMaskingPolicyName, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse, DataMaskingPolicy, DataMaskingPoliciesCreateOrUpdateOptionalParams, - DataMaskingPoliciesCreateOrUpdateResponse, - DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesCreateOrUpdateResponse } from "../models"; /** Class containing DataMaskingPolicies operations. */ @@ -32,91 +33,113 @@ export class DataMaskingPoliciesImpl implements DataMaskingPolicies { } /** - * Creates or updates a database data masking policy + * Gets the database data masking 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 Parameters for creating or updating a data masking policy. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, parameters, options }, - createOrUpdateOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + }, + getOperationSpec ); } /** - * Gets a database data masking policy. + * Creates or updates a database data masking 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 dataMaskingPolicyName The name of the database for which the data masking policy applies. + * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingPoliciesGetOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - getOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + parameters, + options + }, + createOrUpdateOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy - } + }, + default: {} }, - requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - httpMethod: "GET", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy - } + }, + 201: { + bodyMapper: Mappers.DataMaskingPolicy + }, + default: {} }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts index e2e56ad1fcbc..0c106d89ba41 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts +++ b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { DataMaskingRules } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,10 +15,13 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { DataMaskingRule, + DataMaskingPolicyName, + DataMaskingRulesListByDatabaseNextOptionalParams, DataMaskingRulesListByDatabaseOptionalParams, DataMaskingRulesListByDatabaseResponse, DataMaskingRulesCreateOrUpdateOptionalParams, - DataMaskingRulesCreateOrUpdateResponse + DataMaskingRulesCreateOrUpdateResponse, + DataMaskingRulesListByDatabaseNextResponse } from "../models"; /// @@ -39,18 +43,21 @@ export class DataMaskingRulesImpl implements DataMaskingRules { * 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 dataMaskingPolicyName The name of the database for which the data masking rule applies. * @param options The options parameters. */ public listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): PagedAsyncIterableIterator { const iter = this.listByDatabasePagingAll( resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options ); return { @@ -68,6 +75,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options, settings ); @@ -79,41 +87,94 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams, - _settings?: PageSettings + settings?: PageSettings ): AsyncIterableIterator { let result: DataMaskingRulesListByDatabaseResponse; - result = await this._listByDatabase( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDatabase( + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDatabaseNext( + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } private async *listByDatabasePagingAll( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): AsyncIterableIterator { for await (const page of this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, options )) { yield* page; } } + /** + * Gets a list of database data masking 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 databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking rule applies. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingRulesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + options + }, + listByDatabaseOperationSpec + ); + } + /** * Creates or updates a database data masking 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 databaseName The name of the database. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. @@ -122,6 +183,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams @@ -131,6 +193,7 @@ export class DataMaskingRulesImpl implements DataMaskingRules { resourceGroupName, serverName, databaseName, + dataMaskingPolicyName, dataMaskingRuleName, parameters, options @@ -140,28 +203,61 @@ export class DataMaskingRulesImpl implements DataMaskingRules { } /** - * Gets a list of database data masking rules. + * 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 dataMaskingPolicyName The name of the database for which the data masking rule applies. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listByDatabase( + private _listByDatabaseNext( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingRulesListByDatabaseOptionalParams - ): Promise { + dataMaskingPolicyName: DataMaskingPolicyName, + nextLink: string, + options?: DataMaskingRulesListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataMaskingPolicyName, + 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}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataMaskingRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.dataMaskingPolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", @@ -172,39 +268,40 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, 201: { bodyMapper: Mappers.DataMaskingRule - } + }, + default: {} }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.dataMaskingPolicyName, Parameters.dataMaskingRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingRuleListResult - } + }, + default: {} }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.dataMaskingPolicyName ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts index 392107399fc2..b4a9d8604fdb 100644 --- a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -133,50 +133,50 @@ export class DataWarehouseUserActivitiesOperationsImpl } /** - * Gets the user activities of a data warehouse which includes running and suspended queries + * List the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains 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 dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ - get( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - dataWarehouseUserActivityName: DataWarehouseUserActivityName, - options?: DataWarehouseUserActivitiesGetOptionalParams - ): Promise { + options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - dataWarehouseUserActivityName, - options - }, - getOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * List the user activities of a data warehouse which includes running and suspended queries + * Gets the user activities of a data warehouse which includes running and suspended queries * @param resourceGroupName The name of the resource group that contains 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 dataWarehouseUserActivityName The activity name of the data warehouse. * @param options The options parameters. */ - private _listByDatabase( + get( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataWarehouseUserActivitiesListByDatabaseOptionalParams - ): Promise { + dataWarehouseUserActivityName: DataWarehouseUserActivityName, + options?: DataWarehouseUserActivitiesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { + resourceGroupName, + serverName, + databaseName, + dataWarehouseUserActivityName, + options + }, + getOperationSpec ); } @@ -205,45 +205,45 @@ export class DataWarehouseUserActivitiesOperationsImpl // 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}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivities + bodyMapper: Mappers.DataWarehouseUserActivitiesListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.dataWarehouseUserActivityName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataWarehouseUserActivitiesListResult + bodyMapper: Mappers.DataWarehouseUserActivities }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.dataWarehouseUserActivityName ], headerParameters: [Parameters.accept], serializer @@ -259,10 +259,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts index 1b3b1d64a35a..d3e510f634cc 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvancedThreatProtectionSettings.ts @@ -250,13 +250,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -271,13 +271,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], headerParameters: [Parameters.accept], @@ -296,17 +296,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters76, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -321,10 +321,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts index ffd11142b2b0..0860f9bceae1 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts @@ -124,13 +124,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -145,13 +145,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -167,17 +167,17 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts index f1afff7417df..ed8e54f01273 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts @@ -87,13 +87,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -108,16 +108,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts index 1ca07a4104c1..eab3f28f382e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -230,13 +230,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -251,13 +251,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -276,17 +276,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters73, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -301,10 +301,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts index 1adb4eb45f1f..84d8ed85226d 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.apiVersion, Parameters.schema, Parameters.table, Parameters.column, @@ -410,10 +410,10 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -428,13 +428,13 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName ], @@ -451,13 +451,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName @@ -476,10 +476,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -496,10 +496,10 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.tableName diff --git a/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts index c8b1b8da7d57..8e8c4cba2023 100644 --- a/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/databaseEncryptionProtectors.ts @@ -246,13 +246,13 @@ const revalidateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer @@ -262,13 +262,13 @@ const revertOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/encryptionProtector/{encryptionProtectorName}/revert", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts index 083fe9e19314..c604a569696a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -139,6 +139,26 @@ export class DatabaseExtensionsOperationsImpl } } + /** + * List database extension. This will return an empty list as it is not supported. + * @param resourceGroupName The name of the resource group that contains 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?: DatabaseExtensionsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database extension. This will return resource not found as it is not supported. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -162,7 +182,7 @@ export class DatabaseExtensionsOperationsImpl } /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -247,7 +267,7 @@ export class DatabaseExtensionsOperationsImpl } /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -275,26 +295,6 @@ export class DatabaseExtensionsOperationsImpl return poller.pollUntilDone(); } - /** - * List database extension. This will return an empty list as it is not supported. - * @param resourceGroupName The name of the resource group that contains 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?: DatabaseExtensionsListByDatabaseOptionalParams - ): 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 @@ -320,18 +320,39 @@ export class DatabaseExtensionsOperationsImpl // 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}/extensions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ImportExportExtensionsOperationListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", httpMethod: "GET", responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.extensionName ], serializer @@ -355,41 +376,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters61, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters10, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.extensionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ImportExportExtensionsOperationListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -401,10 +401,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseOperations.ts b/sdk/sql/arm-sql/src/operations/databaseOperations.ts index 5d8a2b7ef5a7..be610e7db06c 100644 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseOperations.ts @@ -130,44 +130,44 @@ export class DatabaseOperationsImpl implements DatabaseOperations { } /** - * Cancels the asynchronous operation on the database. + * Gets a list of operations performed on the 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 operationId The operation identifier. * @param options The options parameters. */ - cancel( + private _listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - operationId: string, - options?: DatabaseOperationsCancelOptionalParams - ): Promise { + options?: DatabaseOperationsListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, operationId, options }, - cancelOperationSpec + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } /** - * Gets a list of operations performed on the database. + * Cancels the asynchronous operation on the 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 operationId The operation identifier. * @param options The options parameters. */ - private _listByDatabase( + cancel( resourceGroupName: string, serverName: string, databaseName: string, - options?: DatabaseOperationsListByDatabaseOptionalParams - ): Promise { + operationId: string, + options?: DatabaseOperationsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, operationId, options }, + cancelOperationSpec ); } @@ -196,22 +196,6 @@ export class DatabaseOperationsImpl implements DatabaseOperations { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.operationId - ], - serializer -}; const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations", @@ -222,17 +206,33 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.operationId + ], + serializer +}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -244,10 +244,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts index 5caec16a7479..7af0c2536f4d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts +++ b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts @@ -141,13 +141,13 @@ const listByDatabaseAdvisorOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -163,13 +163,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName, Parameters.recommendedActionName ], @@ -186,18 +186,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.advisorName, Parameters.recommendedActionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts index a5edfccf07e1..03a0a595fe41 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -207,13 +207,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -228,13 +228,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName ], headerParameters: [Parameters.accept], @@ -251,10 +251,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index 132deb2d172e..95bbe8d0aa5e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -134,6 +134,26 @@ export class DatabaseSecurityAlertPoliciesImpl } } + /** + * Gets a list of database's security alert policies. + * @param resourceGroupName The name of the resource group that contains 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 for which the security alert policy is defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -193,26 +213,6 @@ export class DatabaseSecurityAlertPoliciesImpl ); } - /** - * Gets a list of database's security alert policies. - * @param resourceGroupName The name of the resource group that contains 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 for which the security alert policy is defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - ): 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 @@ -238,74 +238,74 @@ export class DatabaseSecurityAlertPoliciesImpl // 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}/securityAlertPolicies/{securityAlertPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy + bodyMapper: Mappers.DatabaseSecurityAlertListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.securityAlertPolicyName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, - 201: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, default: {} }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.securityAlertPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], - 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}/securityAlertPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DatabaseSecurityAlertListResult + bodyMapper: Mappers.DatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.securityAlertPolicyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -319,10 +319,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts index e00c7b8e71b6..653ba8906e1f 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts @@ -290,13 +290,13 @@ const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -312,15 +312,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -335,18 +335,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters103, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -362,10 +362,10 @@ const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpe }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts index a13aebb568bf..6c4013d665fa 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts @@ -143,13 +143,13 @@ const executeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts index eabd050abeb4..348a7705bb06 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts @@ -347,15 +347,15 @@ const listByBaselineOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -370,16 +370,16 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], headerParameters: [Parameters.accept], serializer @@ -394,19 +394,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters104, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -415,16 +415,16 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/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.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], serializer }; @@ -440,13 +440,13 @@ const listByBaselineNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts index 39fb70e9ecf5..054558e85a2d 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -15,7 +15,7 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { SqlVulnerabilityAssessmentScanResults, - SQLVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentName, DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams, DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams, DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse, @@ -52,7 +52,7 @@ export class DatabaseSqlVulnerabilityAssessmentScanResultImpl resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): PagedAsyncIterableIterator { @@ -92,7 +92,7 @@ export class DatabaseSqlVulnerabilityAssessmentScanResultImpl resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams, settings?: PageSettings @@ -134,7 +134,7 @@ export class DatabaseSqlVulnerabilityAssessmentScanResultImpl resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): AsyncIterableIterator { @@ -164,7 +164,7 @@ export class DatabaseSqlVulnerabilityAssessmentScanResultImpl resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): Promise { @@ -196,7 +196,7 @@ export class DatabaseSqlVulnerabilityAssessmentScanResultImpl resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams @@ -230,7 +230,7 @@ export class DatabaseSqlVulnerabilityAssessmentScanResultImpl resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, nextLink: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams @@ -264,15 +264,15 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer @@ -287,15 +287,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.scanId, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName1, + Parameters.scanId, Parameters.scanResultId ], headerParameters: [Parameters.accept], @@ -312,13 +312,13 @@ const listByScanNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts index fe2a6b6d5946..db659f42801a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScans.ts @@ -249,13 +249,13 @@ const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -271,13 +271,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -295,10 +295,10 @@ const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSp }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts index b90bbce9e6ef..8655bfe079d9 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts @@ -219,13 +219,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -240,14 +240,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName2 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1 ], headerParameters: [Parameters.accept], serializer @@ -263,10 +263,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts index 9cc47a79f201..aae755599b60 100644 --- a/sdk/sql/arm-sql/src/operations/databaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -236,13 +236,13 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName ], headerParameters: [Parameters.accept], @@ -258,13 +258,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName ], @@ -282,10 +282,10 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts index d89aea370ca3..04242714040a 100644 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ b/sdk/sql/arm-sql/src/operations/databaseUsages.ts @@ -183,13 +183,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -205,10 +205,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index e3a07493163b..c629a817a638 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,16 +161,16 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], headerParameters: [Parameters.accept], serializer @@ -186,18 +186,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -206,16 +206,16 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName + Parameters.baselineName1 ], serializer }; diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts index 0831704fee9e..ef4062d1f9cb 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -25,11 +25,11 @@ import { DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseResponse, - DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansGetOptionalParams, DatabaseVulnerabilityAssessmentScansGetResponse, DatabaseVulnerabilityAssessmentScansExportOptionalParams, DatabaseVulnerabilityAssessmentScansExportResponse, + DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse } from "../models"; @@ -150,6 +150,96 @@ export class DatabaseVulnerabilityAssessmentScansImpl } } + /** + * 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 _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * 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 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?: DatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @param resourceGroupName The name of the resource group that contains 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 scanned database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + serverName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + exportOperationSpec + ); + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -256,96 +346,6 @@ export class DatabaseVulnerabilityAssessmentScansImpl return poller.pollUntilDone(); } - /** - * 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 _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * 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 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?: DatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - getOperationSpec - ); - } - - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group that contains 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 scanned database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. - * @param options The options parameters. - */ - export( - resourceGroupName: string, - serverName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - exportOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -380,23 +380,6 @@ export class DatabaseVulnerabilityAssessmentScansImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const initiateScanOperationSpec: coreClient.OperationSpec = { - path: - "/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], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId - ], - serializer -}; const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", @@ -407,13 +390,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -429,13 +412,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -455,19 +438,36 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], headerParameters: [Parameters.accept], serializer }; +const initiateScanOperationSpec: coreClient.OperationSpec = { + path: + "/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.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName, + Parameters.scanId + ], + serializer +}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -479,10 +479,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts index f9a19433b55b..85bab17abfc8 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -136,6 +136,27 @@ export class DatabaseVulnerabilityAssessmentsImpl } } + /** + * Lists the 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 for which the vulnerability assessment policies are + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -223,27 +244,6 @@ export class DatabaseVulnerabilityAssessmentsImpl ); } - /** - * Lists the 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 for which the vulnerability assessment policies are - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - ): 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 @@ -270,6 +270,27 @@ export class DatabaseVulnerabilityAssessmentsImpl // 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}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -280,13 +301,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -306,16 +327,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -324,36 +345,15 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -367,10 +367,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index a4964281765f..21969882ee6a 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -20,12 +20,6 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - Metric, - DatabasesListMetricsOptionalParams, - DatabasesListMetricsResponse, - MetricDefinition, - DatabasesListMetricDefinitionsOptionalParams, - DatabasesListMetricDefinitionsResponse, Database, DatabasesListByServerNextOptionalParams, DatabasesListByServerOptionalParams, @@ -76,164 +70,6 @@ export class DatabasesImpl implements Databases { this.client = client; } - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains 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 filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - public listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricsPagingAll( - resourceGroupName, - serverName, - databaseName, - filter, - 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.listMetricsPagingPage( - resourceGroupName, - serverName, - databaseName, - filter, - options, - settings - ); - } - }; - } - - private async *listMetricsPagingPage( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: DatabasesListMetricsResponse; - result = await this._listMetrics( - resourceGroupName, - serverName, - databaseName, - filter, - options - ); - yield result.value || []; - } - - private async *listMetricsPagingAll( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricsPagingPage( - resourceGroupName, - serverName, - databaseName, - filter, - options - )) { - yield* page; - } - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains 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 listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricDefinitionsPagingAll( - 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.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - databaseName, - options, - settings - ); - } - }; - } - - private async *listMetricDefinitionsPagingPage( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: DatabasesListMetricDefinitionsResponse; - result = await this._listMetricDefinitions( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; - } - - private async *listMetricDefinitionsPagingAll( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - databaseName, - options - )) { - yield* page; - } - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -494,48 +330,6 @@ export class DatabasesImpl implements Databases { } } - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains 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 filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - private _listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, filter, options }, - listMetricsOperationSpec - ); - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains 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 _listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listMetricDefinitionsOperationSpec - ); - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1596,46 +1390,6 @@ export class DatabasesImpl implements Databases { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listMetricsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metrics", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listMetricDefinitionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", @@ -1646,12 +1400,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.skipToken, Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1667,16 +1421,16 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1700,16 +1454,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1718,13 +1472,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1747,16 +1501,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1779,16 +1533,16 @@ const exportOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1797,13 +1551,13 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], + queryParameters: [Parameters.apiVersion, Parameters.replicaType], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1826,16 +1580,16 @@ const importOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1844,14 +1598,14 @@ const renameOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", httpMethod: "POST", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", @@ -1876,13 +1630,13 @@ const pauseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1906,13 +1660,13 @@ const resumeOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1922,13 +1676,13 @@ const upgradeDataWarehouseOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], serializer }; @@ -1942,12 +1696,12 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], @@ -1963,12 +1717,12 @@ const listInaccessibleByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1984,9 +1738,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -2003,11 +1757,11 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer @@ -2023,9 +1777,9 @@ const listInaccessibleByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/deletedServers.ts b/sdk/sql/arm-sql/src/operations/deletedServers.ts index f1c6e95f74b1..2dad85dfb2a7 100644 --- a/sdk/sql/arm-sql/src/operations/deletedServers.ts +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -178,34 +178,34 @@ export class DeletedServersImpl implements DeletedServers { } /** - * Gets a deleted server. + * Gets a list of deleted servers for a location. * @param locationName The name of the region where the resource is located. - * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ - get( + private _listByLocation( locationName: string, - deletedServerName: string, - options?: DeletedServersGetOptionalParams - ): Promise { + options?: DeletedServersListByLocationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, deletedServerName, options }, - getOperationSpec + { locationName, options }, + listByLocationOperationSpec ); } /** - * Gets a list of deleted servers for a location. + * Gets a deleted server. * @param locationName The name of the region where the resource is located. + * @param deletedServerName The name of the deleted server. * @param options The options parameters. */ - private _listByLocation( + get( locationName: string, - options?: DeletedServersListByLocationOptionalParams - ): Promise { + deletedServerName: string, + options?: DeletedServersGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { locationName, deletedServerName, options }, + getOperationSpec ); } @@ -344,46 +344,46 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServer + bodyMapper: Mappers.DeletedServerListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName, - Parameters.deletedServerName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServerListResult + bodyMapper: Mappers.DeletedServer }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.deletedServerName ], headerParameters: [Parameters.accept], serializer @@ -407,7 +407,7 @@ const recoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], 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 index a415c994b39f..9ad9ef8b5d72 100644 --- a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -26,11 +26,15 @@ import { DistributedAvailabilityGroupsListByInstanceResponse, DistributedAvailabilityGroupsGetOptionalParams, DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateRequestBody, DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, DistributedAvailabilityGroupsCreateOrUpdateResponse, DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse, DistributedAvailabilityGroupsListByInstanceNextResponse } from "../models"; @@ -189,7 +193,7 @@ export class DistributedAvailabilityGroupsImpl resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -271,7 +275,7 @@ export class DistributedAvailabilityGroupsImpl resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise { const poller = await this.beginCreateOrUpdate( @@ -486,6 +490,115 @@ export class DistributedAvailabilityGroupsImpl return poller.pollUntilDone(); } + /** + * Sets the role for managed instance in a distributed availability 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 managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + async beginSetRole( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DistributedAvailabilityGroupsSetRoleResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + }, + spec: setRoleOperationSpec + }); + const poller = await createHttpPoller< + DistributedAvailabilityGroupsSetRoleResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Sets the role for managed instance in a distributed availability 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 managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + async beginSetRoleAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise { + const poller = await this.beginSetRole( + resourceGroupName, + managedInstanceName, + distributedAvailabilityGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -519,11 +632,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -539,11 +652,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -569,16 +682,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -587,11 +700,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -616,16 +729,48 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.distributedAvailabilityGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const setRoleOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups/{distributedAvailabilityGroupName}/setRole", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 201: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 202: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + 204: { + bodyMapper: Mappers.DistributedAvailabilityGroup + }, + default: {} + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -640,8 +785,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts deleted file mode 100644 index 2f5362f3f0f2..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts +++ /dev/null @@ -1,151 +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 { ElasticPoolActivities } 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 { - ElasticPoolActivity, - ElasticPoolActivitiesListByElasticPoolOptionalParams, - ElasticPoolActivitiesListByElasticPoolResponse -} from "../models"; - -/// -/** Class containing ElasticPoolActivities operations. */ -export class ElasticPoolActivitiesImpl implements ElasticPoolActivities { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ElasticPoolActivities class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains 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 for which to get the current activity. - * @param options The options parameters. - */ - public listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByElasticPoolPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - 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.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listByElasticPoolPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolActivitiesListByElasticPoolResponse; - result = await this._listByElasticPool( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listByElasticPoolPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains 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 for which to get the current activity. - * @param options The options parameters. - */ - private _listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolActivityListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts deleted file mode 100644 index 2601e5cf7795..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,152 +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 { ElasticPoolDatabaseActivities } 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 { - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams, - ElasticPoolDatabaseActivitiesListByElasticPoolResponse -} from "../models"; - -/// -/** Class containing ElasticPoolDatabaseActivities operations. */ -export class ElasticPoolDatabaseActivitiesImpl - implements ElasticPoolDatabaseActivities { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ElasticPoolDatabaseActivities class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns activity on databases inside of 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. - */ - public listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByElasticPoolPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - 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.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listByElasticPoolPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolDatabaseActivitiesListByElasticPoolResponse; - result = await this._listByElasticPool( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listByElasticPoolPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByElasticPoolPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - - /** - * Returns activity on databases inside of 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?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByElasticPoolOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolDatabaseActivityListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - 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..3da77036d56f 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -130,44 +130,44 @@ export class ElasticPoolOperationsImpl implements ElasticPoolOperations { } /** - * Cancels the asynchronous operation on the elastic pool. + * Gets a list of operations performed on the 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 - * @param operationId The operation identifier. * @param options The options parameters. */ - cancel( + private _listByElasticPool( resourceGroupName: string, serverName: string, elasticPoolName: string, - operationId: string, - options?: ElasticPoolOperationsCancelOptionalParams - ): Promise { + options?: ElasticPoolOperationsListByElasticPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, operationId, options }, - cancelOperationSpec + { resourceGroupName, serverName, elasticPoolName, options }, + listByElasticPoolOperationSpec ); } /** - * Gets a list of operations performed on the elastic pool. + * Cancels the asynchronous operation on the 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 + * @param operationId The operation identifier. * @param options The options parameters. */ - private _listByElasticPool( + cancel( resourceGroupName: string, serverName: string, elasticPoolName: string, - options?: ElasticPoolOperationsListByElasticPoolOptionalParams - ): Promise { + operationId: string, + options?: ElasticPoolOperationsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listByElasticPoolOperationSpec + { resourceGroupName, serverName, elasticPoolName, operationId, options }, + cancelOperationSpec ); } @@ -196,22 +196,6 @@ export class ElasticPoolOperationsImpl implements ElasticPoolOperations { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.operationId - ], - serializer -}; const listByElasticPoolOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations", @@ -222,17 +206,33 @@ const listByElasticPoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer }; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.operationId, + Parameters.elasticPoolName + ], + serializer +}; const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -244,11 +244,11 @@ const listByElasticPoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.elasticPoolName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/elasticPools.ts b/sdk/sql/arm-sql/src/operations/elasticPools.ts index 924f4043f611..4208b79dea44 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPools.ts @@ -20,12 +20,6 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - Metric, - ElasticPoolsListMetricsOptionalParams, - ElasticPoolsListMetricsResponse, - MetricDefinition, - ElasticPoolsListMetricDefinitionsOptionalParams, - ElasticPoolsListMetricDefinitionsResponse, ElasticPool, ElasticPoolsListByServerNextOptionalParams, ElasticPoolsListByServerOptionalParams, @@ -55,164 +49,6 @@ export class ElasticPoolsImpl implements ElasticPools { this.client = client; } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains 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 filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - public listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricsPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - filter, - 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.listMetricsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options, - settings - ); - } - }; - } - - private async *listMetricsPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolsListMetricsResponse; - result = await this._listMetrics( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - ); - yield result.value || []; - } - - private async *listMetricsPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - )) { - yield* page; - } - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains 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. - */ - public listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listMetricDefinitionsPagingAll( - resourceGroupName, - serverName, - elasticPoolName, - 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.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options, - settings - ); - } - }; - } - - private async *listMetricDefinitionsPagingPage( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ElasticPoolsListMetricDefinitionsResponse; - result = await this._listMetricDefinitions( - resourceGroupName, - serverName, - elasticPoolName, - options - ); - yield result.value || []; - } - - private async *listMetricDefinitionsPagingAll( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listMetricDefinitionsPagingPage( - resourceGroupName, - serverName, - elasticPoolName, - options - )) { - yield* page; - } - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -294,48 +130,6 @@ export class ElasticPoolsImpl implements ElasticPools { } } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains 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 filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - private _listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, filter, options }, - listMetricsOperationSpec - ); - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains 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 _listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, elasticPoolName, options }, - listMetricDefinitionsOperationSpec - ); - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -794,46 +588,6 @@ export class ElasticPoolsImpl implements ElasticPools { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listMetricsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metrics", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listMetricDefinitionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools", @@ -844,12 +598,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.skip], + queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -864,12 +618,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], headerParameters: [Parameters.accept], @@ -894,16 +648,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters8, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -912,12 +666,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], serializer @@ -941,16 +695,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -959,12 +713,12 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.elasticPoolName ], serializer @@ -980,9 +734,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts index 8f81a99867ab..eb90e305e2d8 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -395,12 +395,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -415,12 +415,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], headerParameters: [Parameters.accept], @@ -445,16 +445,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters17, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -463,12 +463,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.encryptionProtectorName ], serializer @@ -484,9 +484,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts index a1dce8e92f3d..c0aaf8145289 100644 --- a/sdk/sql/arm-sql/src/operations/endpointCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/endpointCertificates.ts @@ -192,11 +192,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -212,11 +212,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.endpointType ], @@ -234,8 +234,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts index 26e03aff0b6c..51e241f71377 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -230,13 +230,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -251,13 +251,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -276,17 +276,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters74, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -301,10 +301,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index 5cb93ef36ac2..3c0bc87773c6 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -292,12 +292,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -312,12 +312,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -342,16 +342,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters75, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -366,9 +366,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index 95cc68b7f1ff..0f35a8b4b7a7 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -805,12 +805,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -825,12 +825,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -855,16 +855,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters100, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -873,12 +873,12 @@ 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.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], serializer @@ -902,16 +902,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters101, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -934,12 +934,12 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -964,12 +964,12 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -994,12 +994,12 @@ const tryPlannedBeforeForcedFailoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.failoverGroupName ], headerParameters: [Parameters.accept], @@ -1016,9 +1016,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts index 607600b26e94..c95cab680b0b 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -18,14 +18,14 @@ import { FirewallRulesListByServerNextOptionalParams, FirewallRulesListByServerOptionalParams, FirewallRulesListByServerResponse, + FirewallRuleList, + FirewallRulesReplaceOptionalParams, + FirewallRulesReplaceResponse, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, FirewallRulesDeleteOptionalParams, - FirewallRuleList, - FirewallRulesReplaceOptionalParams, - FirewallRulesReplaceResponse, FirewallRulesListByServerNextResponse } from "../models"; @@ -124,102 +124,102 @@ export class FirewallRulesImpl implements FirewallRules { } /** - * Gets a firewall rule. + * Gets a list of 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 firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - get( + private _listByServer( resourceGroupName: string, serverName: string, - firewallRuleName: string, - options?: FirewallRulesGetOptionalParams - ): Promise { + options?: FirewallRulesListByServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, firewallRuleName, options }, - getOperationSpec + { resourceGroupName, serverName, options }, + listByServerOperationSpec ); } /** - * Creates or updates a firewall rule. + * Replaces all firewall rules on the 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 firewallRuleName The name of the firewall rule. - * @param parameters The required parameters for creating or updating a firewall rule. + * @param parameters A list of server firewall rules. * @param options The options parameters. */ - createOrUpdate( + replace( resourceGroupName: string, serverName: string, - firewallRuleName: string, - parameters: FirewallRule, - options?: FirewallRulesCreateOrUpdateOptionalParams - ): Promise { + parameters: FirewallRuleList, + options?: FirewallRulesReplaceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, firewallRuleName, parameters, options }, - createOrUpdateOperationSpec + { resourceGroupName, serverName, parameters, options }, + replaceOperationSpec ); } /** - * Deletes a firewall rule. + * Gets a 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( + get( resourceGroupName: string, serverName: string, firewallRuleName: string, - options?: FirewallRulesDeleteOptionalParams - ): Promise { + options?: FirewallRulesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, firewallRuleName, options }, - deleteOperationSpec + getOperationSpec ); } /** - * Gets a list of firewall rules. + * Creates or updates a 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 a firewall rule. * @param options The options parameters. */ - private _listByServer( + createOrUpdate( resourceGroupName: string, serverName: string, - options?: FirewallRulesListByServerOptionalParams - ): Promise { + firewallRuleName: string, + parameters: FirewallRule, + options?: FirewallRulesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec + { resourceGroupName, serverName, firewallRuleName, parameters, options }, + createOrUpdateOperationSpec ); } /** - * Replaces all firewall rules on the server. + * Deletes a 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 parameters A list of server firewall rules. + * @param firewallRuleName The name of the firewall rule. * @param options The options parameters. */ - replace( + delete( resourceGroupName: string, serverName: string, - parameters: FirewallRuleList, - options?: FirewallRulesReplaceOptionalParams - ): Promise { + firewallRuleName: string, + options?: FirewallRulesDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, parameters, options }, - replaceOperationSpec + { resourceGroupName, serverName, firewallRuleName, options }, + deleteOperationSpec ); } @@ -246,111 +246,111 @@ export class FirewallRulesImpl implements FirewallRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FirewallRule + bodyMapper: Mappers.FirewallRuleListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const replaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.FirewallRule }, - 201: { - bodyMapper: Mappers.FirewallRule - }, + 202: {}, default: {} }, - requestBody: Parameters.parameters18, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.firewallRuleName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FirewallRuleListResult + bodyMapper: Mappers.FirewallRule }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName ], headerParameters: [Parameters.accept], serializer }; -const replaceOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.FirewallRule }, - 202: {}, + 201: { + bodyMapper: Mappers.FirewallRule + }, default: {} }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.firewallRuleName + ], + serializer +}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -362,9 +362,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts index 125dd16ba8a4..c86ef37c52d3 100644 --- a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { GeoBackupPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,13 +15,15 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { GeoBackupPolicy, - GeoBackupPoliciesListByDatabaseOptionalParams, - GeoBackupPoliciesListByDatabaseResponse, + GeoBackupPoliciesListNextOptionalParams, + GeoBackupPoliciesListOptionalParams, + GeoBackupPoliciesListResponse, GeoBackupPolicyName, + GeoBackupPoliciesGetOptionalParams, + GeoBackupPoliciesGetResponse, GeoBackupPoliciesCreateOrUpdateOptionalParams, GeoBackupPoliciesCreateOrUpdateResponse, - GeoBackupPoliciesGetOptionalParams, - GeoBackupPoliciesGetResponse + GeoBackupPoliciesListNextResponse } from "../models"; /// @@ -37,20 +40,20 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { } /** - * Returns a list of geo backup policies. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains 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( + public list( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( + const iter = this.listPagingAll( resourceGroupName, serverName, databaseName, @@ -67,7 +70,7 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByDatabasePagingPage( + return this.listPagingPage( resourceGroupName, serverName, databaseName, @@ -78,30 +81,49 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { }; } - private async *listByDatabasePagingPage( + private async *listPagingPage( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams, - _settings?: PageSettings + options?: GeoBackupPoliciesListOptionalParams, + settings?: PageSettings ): AsyncIterableIterator { - let result: GeoBackupPoliciesListByDatabaseResponse; - result = await this._listByDatabase( - resourceGroupName, - serverName, - databaseName, - options - ); - yield result.value || []; + let result: GeoBackupPoliciesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serverName, + databaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serverName, + databaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } } - private async *listByDatabasePagingAll( + private async *listPagingAll( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( + for await (const page of this.listPagingPage( resourceGroupName, serverName, databaseName, @@ -112,111 +134,128 @@ export class GeoBackupPoliciesImpl implements GeoBackupPolicies { } /** - * Updates a database geo backup policy. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains 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 geoBackupPolicyName The name of the geo backup policy. - * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - createOrUpdate( + private _list( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: GeoBackupPoliciesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listOperationSpec + ); + } + + /** + * Gets a Geo backup policy for the given database resource. + * @param resourceGroupName The name of the resource group that contains 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 geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param options The options parameters. + */ + get( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - parameters: GeoBackupPolicy, - options?: GeoBackupPoliciesCreateOrUpdateOptionalParams - ): Promise { + options?: GeoBackupPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, geoBackupPolicyName, - parameters, options }, - createOrUpdateOperationSpec + getOperationSpec ); } /** - * Gets a geo backup policy. + * Create or update a database default Geo backup 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 geoBackupPolicyName The name of the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: GeoBackupPoliciesGetOptionalParams - ): Promise { + parameters: GeoBackupPolicy, + options?: GeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, geoBackupPolicyName, + parameters, options }, - getOperationSpec + createOrUpdateOperationSpec ); } /** - * Returns a list of geo backup policies. + * ListNext * @param resourceGroupName The name of the resource group that contains 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 List method. * @param options The options parameters. */ - private _listByDatabase( + private _listNext( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams - ): Promise { + nextLink: string, + options?: GeoBackupPoliciesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, nextLink, options }, + listNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.GeoBackupPolicyListResult }, - 201: { - bodyMapper: Mappers.GeoBackupPolicy - } + default: {} }, - requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.geoBackupPolicyName + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -226,36 +265,64 @@ const getOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.GeoBackupPolicy - } + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.geoBackupPolicyName ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicyListResult - } + bodyMapper: Mappers.GeoBackupPolicy + }, + 201: { + bodyMapper: Mappers.GeoBackupPolicy + }, + default: {} }, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.geoBackupPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GeoBackupPolicyListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts index e457a250c829..9bc3504cf78f 100644 --- a/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/iPv6FirewallRules.ts @@ -233,12 +233,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -253,12 +253,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], headerParameters: [Parameters.accept], @@ -277,16 +277,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters102, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -295,12 +295,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.firewallRuleName ], serializer @@ -316,9 +316,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index 511f96805c87..c10041cb37aa 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -6,58 +6,85 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./backupShortTermRetentionPolicies"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; export * from "./dataMaskingPolicies"; export * from "./dataMaskingRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serverUsages"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvancedThreatProtectionSettings"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; +export * from "./databaseEncryptionProtectors"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; export * from "./databaseRecommendedActions"; export * from "./databaseSchemas"; export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; export * from "./deletedServers"; +export * from "./distributedAvailabilityGroups"; export * from "./elasticPoolOperations"; +export * from "./elasticPools"; export * from "./encryptionProtectors"; +export * from "./endpointCertificates"; +export * from "./failoverGroups"; export * from "./firewallRules"; +export * from "./geoBackupPolicies"; +export * from "./iPv6FirewallRules"; +export * from "./instanceFailoverGroups"; export * from "./instancePools"; export * from "./jobAgents"; export * from "./jobCredentials"; export * from "./jobExecutions"; -export * from "./jobs"; export * from "./jobStepExecutions"; export * from "./jobSteps"; export * from "./jobTargetExecutions"; export * from "./jobTargetGroups"; export * from "./jobVersions"; +export * from "./jobs"; +export * from "./ledgerDigestUploadsOperations"; export * from "./capabilities"; +export * from "./longTermRetentionBackups"; +export * from "./longTermRetentionManagedInstanceBackups"; export * from "./longTermRetentionPolicies"; export * from "./maintenanceWindowOptionsOperations"; export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseMoveOperations"; export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessments"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseVulnerabilityAssessments"; +export * from "./managedDatabases"; export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; export * from "./managedInstanceAzureADOnlyAuthentications"; +export * from "./managedInstanceDtcs"; export * from "./managedInstanceEncryptionProtectors"; export * from "./managedInstanceKeys"; export * from "./managedInstanceLongTermRetentionPolicies"; @@ -66,80 +93,42 @@ export * from "./managedInstancePrivateEndpointConnections"; export * from "./managedInstancePrivateLinkResources"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstances"; +export * from "./managedLedgerDigestUploadsOperations"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerDnsAliases"; export * from "./managedServerSecurityAlertPolicies"; +export * from "./networkSecurityPerimeterConfigurations"; export * from "./operations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableDatabases"; export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvancedThreatProtectionSettings"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverConfigurationOptions"; +export * from "./serverConnectionPolicies"; export * from "./serverDevOpsAuditSettings"; export * from "./serverDnsAliases"; export * from "./serverKeys"; export * from "./serverOperations"; export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustCertificates"; export * from "./serverTrustGroups"; +export * from "./serverUsages"; export * from "./serverVulnerabilityAssessments"; -export * from "./sqlAgent"; -export * from "./subscriptionUsages"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./tdeCertificates"; -export * from "./timeZones"; -export * from "./virtualNetworkRules"; -export * from "./workloadClassifiers"; -export * from "./workloadGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./databaseExtensionsOperations"; -export * from "./databaseOperations"; -export * from "./databaseUsages"; -export * from "./ledgerDigestUploadsOperations"; -export * from "./outboundFirewallRules"; -export * from "./usages"; -export * from "./longTermRetentionBackups"; -export * from "./longTermRetentionManagedInstanceBackups"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./serverConnectionPolicies"; -export * from "./distributedAvailabilityGroups"; -export * from "./serverTrustCertificates"; -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 "./managedDatabaseAdvancedThreatProtectionSettings"; -export * from "./managedInstanceAdvancedThreatProtectionSettings"; -export * from "./replicationLinks"; -export * from "./managedDatabaseMoveOperations"; -export * from "./managedInstanceDtcs"; -export * from "./synapseLinkWorkspaces"; -export * from "./virtualClusters"; -export * from "./instanceFailoverGroups"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./databaseEncryptionProtectors"; -export * from "./managedDatabases"; -export * from "./managedInstances"; -export * from "./managedLedgerDigestUploadsOperations"; -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./serverConfigurationOptions"; export * from "./servers"; -export * from "./startStopManagedInstanceSchedules"; -export * from "./transparentDataEncryptions"; -export * from "./failoverGroups"; -export * from "./iPv6FirewallRules"; +export * from "./sqlAgent"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -149,9 +138,17 @@ export * from "./sqlVulnerabilityAssessmentScanResult"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentsSettings"; export * from "./sqlVulnerabilityAssessments"; -export * from "./databaseSqlVulnerabilityAssessmentBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; -export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentScanResult"; -export * from "./databaseSqlVulnerabilityAssessmentScans"; -export * from "./databaseSqlVulnerabilityAssessmentsSettings"; +export * from "./startStopManagedInstanceSchedules"; +export * from "./subscriptionUsages"; +export * from "./synapseLinkWorkspaces"; +export * from "./syncAgents"; +export * from "./syncGroups"; +export * from "./syncMembers"; +export * from "./tdeCertificates"; +export * from "./timeZones"; +export * from "./transparentDataEncryptions"; +export * from "./usages"; +export * from "./virtualClusters"; +export * from "./virtualNetworkRules"; +export * from "./workloadClassifiers"; +export * from "./workloadGroups"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts index 0ca60369e6bc..e5151c4e212c 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -598,11 +598,11 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -618,11 +618,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -648,16 +648,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters84, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -666,11 +666,11 @@ 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.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -695,11 +695,11 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -725,11 +725,11 @@ const forceFailoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.failoverGroupName ], @@ -747,8 +747,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index ae22100ece69..301756b19c4e 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -21,12 +21,12 @@ import { import { createLroSpec } from "../lroImpl"; import { InstancePool, - InstancePoolsListByResourceGroupNextOptionalParams, - InstancePoolsListByResourceGroupOptionalParams, - InstancePoolsListByResourceGroupResponse, InstancePoolsListNextOptionalParams, InstancePoolsListOptionalParams, InstancePoolsListResponse, + InstancePoolsListByResourceGroupNextOptionalParams, + InstancePoolsListByResourceGroupOptionalParams, + InstancePoolsListByResourceGroupResponse, InstancePoolsGetOptionalParams, InstancePoolsGetResponse, InstancePoolsCreateOrUpdateOptionalParams, @@ -35,8 +35,8 @@ import { InstancePoolUpdate, InstancePoolsUpdateOptionalParams, InstancePoolsUpdateResponse, - InstancePoolsListByResourceGroupNextResponse, - InstancePoolsListNextResponse + InstancePoolsListNextResponse, + InstancePoolsListByResourceGroupNextResponse } from "../models"; /// @@ -53,16 +53,13 @@ export class InstancePoolsImpl implements InstancePools { } /** - * Gets a list of instance pools in the 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. + * Gets a list of all instance pools in the subscription. * @param options The options parameters. */ - public listByResourceGroup( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams + public list( + options?: InstancePoolsListOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + const iter = this.listPagingAll(options); return { next() { return iter.next(); @@ -74,35 +71,26 @@ export class InstancePoolsImpl implements InstancePools { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); + return this.listPagingPage(options, settings); } }; } - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams, + private async *listPagingPage( + options?: InstancePoolsListOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InstancePoolsListByResourceGroupResponse; + let result: InstancePoolsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); + result = await this._list(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -110,26 +98,25 @@ export class InstancePoolsImpl implements InstancePools { } } - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams + private async *listPagingAll( + options?: InstancePoolsListOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { + for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Gets a list of all instance pools in the subscription. + * Gets a list of instance pools in the 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?: InstancePoolsListOptionalParams + public listByResourceGroup( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -141,26 +128,35 @@ export class InstancePoolsImpl implements InstancePools { 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?: InstancePoolsListOptionalParams, + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InstancePoolsListResponse; + let result: InstancePoolsListByResourceGroupResponse; 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); @@ -168,14 +164,44 @@ export class InstancePoolsImpl implements InstancePools { } } - private async *listPagingAll( - options?: InstancePoolsListOptionalParams + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { yield* page; } } + /** + * Gets a list of all instance pools in the subscription. + * @param options The options parameters. + */ + private _list( + options?: InstancePoolsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * Gets a list of instance pools in the 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. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: InstancePoolsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -473,31 +499,20 @@ export class InstancePoolsImpl implements InstancePools { } /** - * Gets a list of instance pools in the 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. + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ - private _listByResourceGroup( - resourceGroupName: string, - options?: InstancePoolsListByResourceGroupOptionalParams - ): Promise { + private _listNext( + nextLink: string, + options?: InstancePoolsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec + { nextLink, options }, + listNextOperationSpec ); } - /** - * Gets a list of all instance pools in the subscription. - * @param options The options parameters. - */ - private _list( - options?: InstancePoolsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -515,25 +530,43 @@ export class InstancePoolsImpl implements InstancePools { listByResourceGroupNextOperationSpec ); } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: InstancePoolsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InstancePoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InstancePoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", @@ -544,11 +577,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -573,15 +606,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -590,11 +623,11 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], serializer @@ -618,52 +651,19 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -675,13 +675,12 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -692,6 +691,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink ], diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 7328518e0984..e3495ac1149d 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -505,12 +505,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -525,12 +525,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -555,16 +555,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -573,12 +573,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], serializer @@ -602,16 +602,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters38, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -626,9 +626,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts index 7d996bf9d6a3..627f52cb74e9 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.credentialName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index de3fadf2a6d7..a1df8ecc2e02 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -27,13 +27,13 @@ import { JobExecutionsListByJobNextOptionalParams, JobExecutionsListByJobOptionalParams, JobExecutionsListByJobResponse, - JobExecutionsCancelOptionalParams, - JobExecutionsCreateOptionalParams, - JobExecutionsCreateResponse, JobExecutionsGetOptionalParams, JobExecutionsGetResponse, JobExecutionsCreateOrUpdateOptionalParams, JobExecutionsCreateOrUpdateResponse, + JobExecutionsCancelOptionalParams, + JobExecutionsCreateOptionalParams, + JobExecutionsCreateResponse, JobExecutionsListByAgentNextResponse, JobExecutionsListByJobNextResponse } from "../models"; @@ -269,23 +269,45 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Requests cancellation of a job execution. + * Lists a job's executions. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param jobAgentName The name of the job agent. + * @param jobName The name of the job to get. + * @param options The options parameters. + */ + private _listByJob( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + jobName: string, + options?: JobExecutionsListByJobOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, jobAgentName, jobName, options }, + listByJobOperationSpec + ); + } + + /** + * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution to cancel. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - cancel( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsCancelOptionalParams - ): Promise { + options?: JobExecutionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -295,35 +317,37 @@ export class JobExecutionsImpl implements JobExecutions { jobExecutionId, options }, - cancelOperationSpec + getOperationSpec ); } /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreate( + async beginCreateOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateResponse + OperationState, + JobExecutionsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -361,12 +385,19 @@ export class JobExecutionsImpl implements JobExecutions { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, serverName, jobAgentName, jobName, options }, - spec: createOperationSpec + args: { + resourceGroupName, + serverName, + jobAgentName, + jobName, + jobExecutionId, + options + }, + spec: createOrUpdateOperationSpec }); const poller = await createHttpPoller< - JobExecutionsCreateResponse, - OperationState + JobExecutionsCreateOrUpdateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -376,71 +407,52 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, jobAgentName, jobName, + jobExecutionId, options ); return poller.pollUntilDone(); } /** - * Lists a job's executions. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. - * @param options The options parameters. - */ - private _listByJob( - resourceGroupName: string, - serverName: string, - jobAgentName: string, - jobName: string, - options?: JobExecutionsListByJobOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, jobAgentName, jobName, options }, - listByJobOperationSpec - ); - } - - /** - * Gets a job execution. + * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ - get( + cancel( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsGetOptionalParams - ): Promise { + options?: JobExecutionsCancelOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -450,37 +462,35 @@ export class JobExecutionsImpl implements JobExecutions { jobExecutionId, options }, - getOperationSpec + cancelOperationSpec ); } /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginCreate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams + options?: JobExecutionsCreateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateOrUpdateResponse + OperationState, + JobExecutionsCreateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -518,19 +528,12 @@ export class JobExecutionsImpl implements JobExecutions { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - spec: createOrUpdateOperationSpec + args: { resourceGroupName, serverName, jobAgentName, jobName, options }, + spec: createOperationSpec }); const poller = await createHttpPoller< - JobExecutionsCreateOrUpdateResponse, - OperationState + JobExecutionsCreateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -540,29 +543,26 @@ export class JobExecutionsImpl implements JobExecutions { } /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginCreateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: JobExecutionsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( resourceGroupName, serverName, jobAgentName, jobName, - jobExecutionId, options ); return poller.pollUntilDone(); @@ -635,8 +635,8 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion2, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -646,58 +646,10 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.jobAgentName - ], - headerParameters: [Parameters.accept], - serializer -}; -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId - ], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - 201: { - bodyMapper: Mappers.JobExecution - }, - 202: { - bodyMapper: Mappers.JobExecution - }, - 204: { - bodyMapper: Mappers.JobExecution - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName + Parameters.jobAgentName ], headerParameters: [Parameters.accept], serializer @@ -713,8 +665,8 @@ const listByJobOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion2, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -724,9 +676,9 @@ const listByJobOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -743,12 +695,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId @@ -775,16 +727,64 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.jobName, + Parameters.jobExecutionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId ], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.JobExecution + }, + 201: { + bodyMapper: Mappers.JobExecution + }, + 202: { + bodyMapper: Mappers.JobExecution + }, + 204: { + bodyMapper: Mappers.JobExecution + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.jobName + ], headerParameters: [Parameters.accept], serializer }; @@ -799,9 +799,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], @@ -819,9 +819,9 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index 7aa9d691e850..0846fe36197b 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -261,8 +261,8 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion2, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -272,9 +272,9 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId @@ -292,12 +292,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId, @@ -317,9 +317,9 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index 34bc2fe44198..70c41c955bd6 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -15,21 +15,21 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { JobStep, - JobStepsListByVersionNextOptionalParams, - JobStepsListByVersionOptionalParams, - JobStepsListByVersionResponse, JobStepsListByJobNextOptionalParams, JobStepsListByJobOptionalParams, JobStepsListByJobResponse, - JobStepsGetByVersionOptionalParams, - JobStepsGetByVersionResponse, + JobStepsListByVersionNextOptionalParams, + JobStepsListByVersionOptionalParams, + JobStepsListByVersionResponse, JobStepsGetOptionalParams, JobStepsGetResponse, JobStepsCreateOrUpdateOptionalParams, JobStepsCreateOrUpdateResponse, JobStepsDeleteOptionalParams, - JobStepsListByVersionNextResponse, - JobStepsListByJobNextResponse + JobStepsGetByVersionOptionalParams, + JobStepsGetByVersionResponse, + JobStepsListByJobNextResponse, + JobStepsListByVersionNextResponse } from "../models"; /// @@ -46,29 +46,26 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps in the specified job version. + * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. * @param options The options parameters. */ - public listByVersion( + public listByJob( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams + options?: JobStepsListByJobOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByVersionPagingAll( + const iter = this.listByJobPagingAll( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options ); return { @@ -82,12 +79,11 @@ export class JobStepsImpl implements JobSteps { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByVersionPagingPage( + return this.listByJobPagingPage( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options, settings ); @@ -95,24 +91,22 @@ export class JobStepsImpl implements JobSteps { }; } - private async *listByVersionPagingPage( + private async *listByJobPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams, + options?: JobStepsListByJobOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobStepsListByVersionResponse; + let result: JobStepsListByJobResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByVersion( + result = await this._listByJob( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options ); let page = result.value || []; @@ -121,12 +115,11 @@ export class JobStepsImpl implements JobSteps { yield page; } while (continuationToken) { - result = await this._listByVersionNext( + result = await this._listByJobNext( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, continuationToken, options ); @@ -137,20 +130,18 @@ export class JobStepsImpl implements JobSteps { } } - private async *listByVersionPagingAll( + private async *listByJobPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams + options?: JobStepsListByJobOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByVersionPagingPage( + for await (const page of this.listByJobPagingPage( resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, options )) { yield* page; @@ -158,26 +149,29 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps for a job's current version. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobVersion The version of the job to get. * @param options The options parameters. */ - public listByJob( + public listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams + jobVersion: number, + options?: JobStepsListByVersionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByJobPagingAll( + const iter = this.listByVersionPagingAll( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options ); return { @@ -191,11 +185,12 @@ export class JobStepsImpl implements JobSteps { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByJobPagingPage( + return this.listByVersionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options, settings ); @@ -203,22 +198,24 @@ export class JobStepsImpl implements JobSteps { }; } - private async *listByJobPagingPage( + private async *listByVersionPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams, + jobVersion: number, + options?: JobStepsListByVersionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobStepsListByJobResponse; + let result: JobStepsListByVersionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByJob( + result = await this._listByVersion( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options ); let page = result.value || []; @@ -227,11 +224,12 @@ export class JobStepsImpl implements JobSteps { yield page; } while (continuationToken) { - result = await this._listByJobNext( + result = await this._listByVersionNext( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, continuationToken, options ); @@ -242,18 +240,20 @@ export class JobStepsImpl implements JobSteps { } } - private async *listByJobPagingAll( + private async *listByVersionPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams + jobVersion: number, + options?: JobStepsListByVersionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByJobPagingPage( + for await (const page of this.listByVersionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, options )) { yield* page; @@ -261,110 +261,110 @@ export class JobStepsImpl implements JobSteps { } /** - * Gets all job steps in the specified job version. + * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. * @param options The options parameters. */ - private _listByVersion( + private _listByJob( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams - ): Promise { + options?: JobStepsListByJobOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobVersion, - options - }, - listByVersionOperationSpec + { resourceGroupName, serverName, jobAgentName, jobName, options }, + listByJobOperationSpec ); } /** - * Gets the specified version of a job step. + * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobVersion The version of the job to get. * @param stepName The name of the job step. * @param options The options parameters. */ - getByVersion( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, stepName: string, - options?: JobStepsGetByVersionOptionalParams - ): Promise { + options?: JobStepsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, stepName, options }, - getByVersionOperationSpec + getOperationSpec ); } /** - * Gets all job steps for a job's current version. + * Creates or updates a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. + * @param jobName The name of the job. + * @param stepName The name of the job step. + * @param parameters The requested state of the job step. * @param options The options parameters. */ - private _listByJob( + createOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobStepsListByJobOptionalParams - ): Promise { + stepName: string, + parameters: JobStep, + options?: JobStepsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, jobAgentName, jobName, options }, - listByJobOperationSpec + { + resourceGroupName, + serverName, + jobAgentName, + jobName, + stepName, + parameters, + options + }, + createOrUpdateOperationSpec ); } /** - * Gets a job step in a job's current version. + * Deletes a job step. This will implicitly create a new job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param stepName The name of the job step. + * @param stepName The name of the job step to delete. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, - options?: JobStepsGetOptionalParams - ): Promise { + options?: JobStepsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -374,146 +374,146 @@ export class JobStepsImpl implements JobSteps { stepName, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Creates or updates a job step. This will implicitly create a new job version. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job. - * @param stepName The name of the job step. - * @param parameters The requested state of the job step. + * @param jobName The name of the job to get. + * @param jobVersion The version of the job to get. * @param options The options parameters. */ - createOrUpdate( + private _listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - stepName: string, - parameters: JobStep, - options?: JobStepsCreateOrUpdateOptionalParams - ): Promise { + jobVersion: number, + options?: JobStepsListByVersionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - stepName, - parameters, + jobVersion, options }, - createOrUpdateOperationSpec + listByVersionOperationSpec ); } /** - * Deletes a job step. This will implicitly create a new job version. + * Gets the specified version of a job step. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param stepName The name of the job step to delete. + * @param jobVersion The version of the job to get. + * @param stepName The name of the job step. * @param options The options parameters. */ - delete( + getByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, + jobVersion: number, stepName: string, - options?: JobStepsDeleteOptionalParams - ): Promise { + options?: JobStepsGetByVersionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, stepName, options }, - deleteOperationSpec + getByVersionOperationSpec ); } /** - * ListByVersionNext + * ListByJobNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. - * @param nextLink The nextLink from the previous successful call to the ListByVersion method. + * @param nextLink The nextLink from the previous successful call to the ListByJob method. * @param options The options parameters. */ - private _listByVersionNext( + private _listByJobNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobVersion: number, nextLink: string, - options?: JobStepsListByVersionNextOptionalParams - ): Promise { + options?: JobStepsListByJobNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, - jobVersion, nextLink, options }, - listByVersionNextOperationSpec + listByJobNextOperationSpec ); } /** - * ListByJobNext + * ListByVersionNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param nextLink The nextLink from the previous successful call to the ListByJob method. + * @param jobVersion The version of the job to get. + * @param nextLink The nextLink from the previous successful call to the ListByVersion method. * @param options The options parameters. */ - private _listByJobNext( + private _listByVersionNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, + jobVersion: number, nextLink: string, - options?: JobStepsListByJobNextOptionalParams - ): Promise { + options?: JobStepsListByVersionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, jobAgentName, jobName, + jobVersion, nextLink, options }, - listByJobNextOperationSpec + listByVersionNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByVersionOperationSpec: coreClient.OperationSpec = { +const listByJobOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", httpMethod: "GET", responses: { 200: { @@ -521,22 +521,21 @@ const listByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion + Parameters.jobName ], headerParameters: [Parameters.accept], serializer }; -const getByVersionOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", httpMethod: "GET", responses: { 200: { @@ -544,111 +543,112 @@ const getByVersionOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName, - Parameters.jobVersion + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByJobOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.JobStepListResult + bodyMapper: Mappers.JobStep + }, + 201: { + bodyMapper: Mappers.JobStep }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, - Parameters.jobName + Parameters.jobName, + Parameters.stepName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JobStep - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.stepName ], - headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listByVersionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStep - }, - 201: { - bodyMapper: Mappers.JobStep + bodyMapper: Mappers.JobStepListResult }, default: {} }, - requestBody: Parameters.parameters26, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName + Parameters.jobVersion ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const getByVersionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - httpMethod: "DELETE", - responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobStep + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.stepName + Parameters.stepName, + Parameters.jobVersion ], + headerParameters: [Parameters.accept], serializer }; -const listByVersionNextOperationSpec: coreClient.OperationSpec = { +const listByJobNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -659,18 +659,17 @@ const listByVersionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion + Parameters.jobName ], headerParameters: [Parameters.accept], serializer }; -const listByJobNextOperationSpec: coreClient.OperationSpec = { +const listByVersionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -681,12 +680,13 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, - Parameters.jobName + Parameters.jobName, + Parameters.jobVersion ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 98a88c9b0a1d..cc635abce0f5 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -15,16 +15,16 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { JobExecution, - JobTargetExecutionsListByJobExecutionNextOptionalParams, - JobTargetExecutionsListByJobExecutionOptionalParams, - JobTargetExecutionsListByJobExecutionResponse, JobTargetExecutionsListByStepNextOptionalParams, JobTargetExecutionsListByStepOptionalParams, JobTargetExecutionsListByStepResponse, + JobTargetExecutionsListByJobExecutionNextOptionalParams, + JobTargetExecutionsListByJobExecutionOptionalParams, + JobTargetExecutionsListByJobExecutionResponse, JobTargetExecutionsGetOptionalParams, JobTargetExecutionsGetResponse, - JobTargetExecutionsListByJobExecutionNextResponse, - JobTargetExecutionsListByStepNextResponse + JobTargetExecutionsListByStepNextResponse, + JobTargetExecutionsListByJobExecutionNextResponse } from "../models"; /// @@ -41,29 +41,32 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - public listByJobExecution( + public listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByJobExecutionPagingAll( + const iter = this.listByStepPagingAll( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options ); return { @@ -77,12 +80,13 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByJobExecutionPagingPage( + return this.listByStepPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options, settings ); @@ -90,24 +94,26 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { }; } - private async *listByJobExecutionPagingPage( + private async *listByStepPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams, + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobTargetExecutionsListByJobExecutionResponse; + let result: JobTargetExecutionsListByStepResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByJobExecution( + result = await this._listByStep( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options ); let page = result.value || []; @@ -116,12 +122,13 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { yield page; } while (continuationToken) { - result = await this._listByJobExecutionNext( + result = await this._listByStepNext( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, continuationToken, options ); @@ -132,20 +139,22 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } } - private async *listByJobExecutionPagingAll( + private async *listByStepPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByJobExecutionPagingPage( + for await (const page of this.listByStepPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, + stepName, options )) { yield* page; @@ -153,32 +162,29 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists the target executions of a job step execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. * @param options The options parameters. */ - public listByStep( + public listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByStepPagingAll( + const iter = this.listByJobExecutionPagingAll( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options ); return { @@ -192,13 +198,12 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByStepPagingPage( + return this.listByJobExecutionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options, settings ); @@ -206,26 +211,24 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { }; } - private async *listByStepPagingPage( + private async *listByJobExecutionPagingPage( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams, + options?: JobTargetExecutionsListByJobExecutionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: JobTargetExecutionsListByStepResponse; + let result: JobTargetExecutionsListByJobExecutionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByStep( + result = await this._listByJobExecution( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options ); let page = result.value || []; @@ -234,13 +237,12 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { yield page; } while (continuationToken) { - result = await this._listByStepNext( + result = await this._listByJobExecutionNext( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, continuationToken, options ); @@ -251,22 +253,20 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } } - private async *listByStepPagingAll( + private async *listByJobExecutionPagingAll( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByStepPagingPage( + for await (const page of this.listByJobExecutionPagingPage( resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, - stepName, options )) { yield* page; @@ -274,23 +274,25 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { } /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - private _listByJobExecution( + private _listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams - ): Promise { + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -298,32 +300,35 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, + stepName, options }, - listByJobExecutionOperationSpec + listByStepOperationSpec ); } /** - * Lists the target executions of a job step execution. + * Gets a target execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The unique id of the job execution * @param stepName The name of the step. + * @param targetId The target id. * @param options The options parameters. */ - private _listByStep( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams - ): Promise { + targetId: string, + options?: JobTargetExecutionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -332,34 +337,31 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobName, jobExecutionId, stepName, + targetId, options }, - listByStepOperationSpec + getOperationSpec ); } /** - * Gets a target execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The unique id of the job execution - * @param stepName The name of the step. - * @param targetId The target id. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - get( + private _listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - targetId: string, - options?: JobTargetExecutionsGetOptionalParams - ): Promise { + options?: JobTargetExecutionsListByJobExecutionOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -367,34 +369,34 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, - stepName, - targetId, options }, - getOperationSpec + listByJobExecutionOperationSpec ); } /** - * ListByJobExecutionNext + * ListByStepNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param nextLink The nextLink from the previous successful call to the ListByJobExecution method. + * @param stepName The name of the step. + * @param nextLink The nextLink from the previous successful call to the ListByStep method. * @param options The options parameters. */ - private _listByJobExecutionNext( + private _listByStepNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, + stepName: string, nextLink: string, - options?: JobTargetExecutionsListByJobExecutionNextOptionalParams - ): Promise { + options?: JobTargetExecutionsListByStepNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -402,35 +404,34 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, + stepName, nextLink, options }, - listByJobExecutionNextOperationSpec + listByStepNextOperationSpec ); } /** - * ListByStepNext + * ListByJobExecutionNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. - * @param nextLink The nextLink from the previous successful call to the ListByStep method. + * @param nextLink The nextLink from the previous successful call to the ListByJobExecution method. * @param options The options parameters. */ - private _listByStepNext( + private _listByJobExecutionNext( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, nextLink: string, - options?: JobTargetExecutionsListByStepNextOptionalParams - ): Promise { + options?: JobTargetExecutionsListByJobExecutionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -438,20 +439,19 @@ export class JobTargetExecutionsImpl implements JobTargetExecutions { jobAgentName, jobName, jobExecutionId, - stepName, nextLink, options }, - listByStepNextOperationSpec + listByJobExecutionNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByJobExecutionOperationSpec: coreClient.OperationSpec = { +const listByStepOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", httpMethod: "GET", responses: { 200: { @@ -460,8 +460,8 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, Parameters.skip, - Parameters.apiVersion2, Parameters.createTimeMin, Parameters.createTimeMax, Parameters.endTimeMin, @@ -471,75 +471,75 @@ const listByJobExecutionOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId + Parameters.jobExecutionId, + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByStepOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobExecutionListResult + bodyMapper: Mappers.JobExecution }, default: {} }, - queryParameters: [ - Parameters.skip, - Parameters.apiVersion2, - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.top - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobExecutionId, - Parameters.stepName + Parameters.stepName, + Parameters.targetId ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByJobExecutionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobExecution + bodyMapper: Mappers.JobExecutionListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.top + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName, - Parameters.targetId + Parameters.jobExecutionId ], headerParameters: [Parameters.accept], serializer }; -const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { +const listByStepNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -550,18 +550,19 @@ const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId + Parameters.jobExecutionId, + Parameters.stepName ], headerParameters: [Parameters.accept], serializer }; -const listByStepNextOperationSpec: coreClient.OperationSpec = { +const listByJobExecutionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -572,14 +573,13 @@ const listByStepNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName + Parameters.jobExecutionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index 7f8dc33ba10a..0435334797cc 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.targetGroupName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index 48b0b18d4a1b..c9239b0b021d 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -236,12 +236,12 @@ const listByJobOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -258,12 +258,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName, Parameters.jobVersion @@ -282,9 +282,9 @@ const listByJobNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName, Parameters.jobName diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index 3ef4d0a0226e..f92f87ced08c 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -263,12 +263,12 @@ const listByAgentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName ], headerParameters: [Parameters.accept], @@ -284,12 +284,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -309,17 +309,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters25, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -328,12 +328,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.jobAgentName, Parameters.jobName ], @@ -350,9 +350,9 @@ const listByAgentNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.jobAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts index b5d457e3f901..1e1ca063867d 100644 --- a/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/ledgerDigestUploadsOperations.ts @@ -142,6 +142,26 @@ export class LedgerDigestUploadsOperationsImpl } } + /** + * 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 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?: LedgerDigestUploadsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, 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 @@ -284,26 +304,6 @@ export class LedgerDigestUploadsOperationsImpl return poller.pollUntilDone(); } - /** - * 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 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?: LedgerDigestUploadsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * Disables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger * instance. @@ -439,6 +439,27 @@ export class LedgerDigestUploadsOperationsImpl // 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}/ledgerDigestUploads", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LedgerDigestUploadsListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}", @@ -449,13 +470,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], headerParameters: [Parameters.accept], @@ -480,41 +501,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters62, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters43, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LedgerDigestUploadsListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; const disableOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}/disable", @@ -534,13 +534,13 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.ledgerDigestUploads ], headerParameters: [Parameters.accept], @@ -557,10 +557,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index 7b512cf841ab..f1edf284c092 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -21,46 +21,46 @@ import { import { createLroSpec } from "../lroImpl"; import { LongTermRetentionBackup, - LongTermRetentionBackupsListByDatabaseNextOptionalParams, - LongTermRetentionBackupsListByDatabaseOptionalParams, - LongTermRetentionBackupsListByDatabaseResponse, LongTermRetentionBackupsListByLocationNextOptionalParams, LongTermRetentionBackupsListByLocationOptionalParams, LongTermRetentionBackupsListByLocationResponse, LongTermRetentionBackupsListByServerNextOptionalParams, LongTermRetentionBackupsListByServerOptionalParams, LongTermRetentionBackupsListByServerResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseResponse, + LongTermRetentionBackupsListByDatabaseNextOptionalParams, + LongTermRetentionBackupsListByDatabaseOptionalParams, + LongTermRetentionBackupsListByDatabaseResponse, LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationResponse, LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams, LongTermRetentionBackupsListByResourceGroupServerOptionalParams, LongTermRetentionBackupsListByResourceGroupServerResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseResponse, + LongTermRetentionBackupsGetOptionalParams, + LongTermRetentionBackupsGetResponse, + LongTermRetentionBackupsDeleteOptionalParams, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, - LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByLocationNextResponse, LongTermRetentionBackupsListByServerNextResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse, + LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByResourceGroupLocationNextResponse, - LongTermRetentionBackupsListByResourceGroupServerNextResponse + LongTermRetentionBackupsListByResourceGroupServerNextResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse } from "../models"; /// @@ -76,99 +76,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { this.client = client; } - /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - public listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - 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( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options, - settings - ); - } - }; - } - - private async *listByDatabasePagingPage( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LongTermRetentionBackupsListByDatabaseResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByDatabase( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByDatabaseNext( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByDatabasePagingAll( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - )) { - yield* page; - } - } - /** * Lists the long term retention backups for a given location. * @param locationName The location of the database @@ -320,22 +227,18 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { /** * Lists all long term retention backups 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 locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - public listByResourceGroupDatabase( - resourceGroupName: string, + public listByDatabase( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupDatabasePagingAll( - resourceGroupName, + const iter = this.listByDatabasePagingAll( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -352,8 +255,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupDatabasePagingPage( - resourceGroupName, + return this.listByDatabasePagingPage( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -364,19 +266,17 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { }; } - private async *listByResourceGroupDatabasePagingPage( - resourceGroupName: string, + private async *listByDatabasePagingPage( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + options?: LongTermRetentionBackupsListByDatabaseOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: LongTermRetentionBackupsListByResourceGroupDatabaseResponse; + let result: LongTermRetentionBackupsListByDatabaseResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroupDatabase( - resourceGroupName, + result = await this._listByDatabase( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -388,8 +288,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { yield page; } while (continuationToken) { - result = await this._listByResourceGroupDatabaseNext( - resourceGroupName, + result = await this._listByDatabaseNext( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -403,15 +302,13 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } } - private async *listByResourceGroupDatabasePagingAll( - resourceGroupName: string, + private async *listByDatabasePagingAll( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupDatabasePagingPage( - resourceGroupName, + for await (const page of this.listByDatabasePagingPage( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -601,82 +498,257 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup. - * @param locationName The location of the database. + * Lists all long term retention backups 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 locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopy( + public listByResourceGroupDatabase( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = 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() + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupDatabasePagingAll( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + 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.listByResourceGroupDatabasePagingPage( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options, + settings + ); + } }; + } - const lro = createLroSpec({ - sendOperationFn, - args: { + private async *listByResourceGroupDatabasePagingPage( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LongTermRetentionBackupsListByResourceGroupDatabaseResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroupDatabase( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupDatabaseNext( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupDatabasePagingAll( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupDatabasePagingPage( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + )) { + yield* page; + } + } + + /** + * Lists the long term retention backups for a given location. + * @param locationName The location of the database + * @param options The options parameters. + */ + private _listByLocation( + locationName: string, + options?: LongTermRetentionBackupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, options }, + listByLocationOperationSpec + ); + } + + /** + * Lists the long term retention backups for a given server. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param options The options parameters. + */ + private _listByServer( + locationName: string, + longTermRetentionServerName: string, + options?: LongTermRetentionBackupsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, longTermRetentionServerName, options }, + listByServerOperationSpec + ); + } + + /** + * Lists all long term retention backups for a database. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param options The options parameters. + */ + private _listByDatabase( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, longTermRetentionServerName, longTermRetentionDatabaseName, - backupName, - parameters, options }, - spec: copyOperationSpec + listByDatabaseOperationSpec + ); + } + + /** + * Gets a long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + get( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getOperationSpec + ); + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + async beginDelete( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -685,59 +757,56 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup. - * @param locationName The location of the database. + * Deletes a long term retention backup. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyAndWait( + async beginDeleteAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise { - const poller = await this.beginCopy( + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdate( + async beginCopy( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateResponse + OperationState, + LongTermRetentionBackupsCopyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -783,11 +852,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateOperationSpec + spec: copyOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateResponse, - OperationState + LongTermRetentionBackupsCopyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -797,23 +866,23 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdateAndWait( + async beginCopyAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyOptionalParams + ): Promise { + const poller = await this.beginCopy( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -825,51 +894,31 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Gets a long term retention backup. + * Updates an existing long term retention backup. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - get( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getOperationSpec - ); - } - - /** - * Deletes a long term retention backup. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - async beginDelete( + async beginUpdate( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise, void>> { + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -912,11 +961,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteOperationSpec + spec: updateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -925,115 +978,152 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Deletes a long term retention backup. - * @param locationName The location of the database + * Updates an existing long term retention backup. + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Lists all long term retention backups for a database. + * Lists the long term retention backups for a given location. + * @param resourceGroupName The 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 The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - private _listByDatabase( + private _listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): Promise { + options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByDatabaseOperationSpec + { resourceGroupName, locationName, options }, + listByResourceGroupLocationOperationSpec ); } /** - * Lists the long term retention backups for a given location. + * Lists the long term retention backups for a given 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 locationName The location of the database + * @param longTermRetentionServerName The name of the server * @param options The options parameters. */ - private _listByLocation( + private _listByResourceGroupServer( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionBackupsListByLocationOptionalParams - ): Promise { + longTermRetentionServerName: string, + options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { resourceGroupName, locationName, longTermRetentionServerName, options }, + listByResourceGroupServerOperationSpec ); } /** - * Lists the long term retention backups for a given server. + * Lists all long term retention backups 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 locationName The location of the database * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - private _listByServer( + private _listByResourceGroupDatabase( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByServerOptionalParams - ): Promise { + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( - { locationName, longTermRetentionServerName, options }, - listByServerOperationSpec + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + options + }, + listByResourceGroupDatabaseOperationSpec ); } /** - * Copy an existing long term retention backup to a different server. + * Gets a long term retention backup. * @param resourceGroupName The 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 The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroup( + getByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyByResourceGroupResponse - > - > { + options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getByResourceGroupOperationSpec + ); + } + + /** + * Deletes a long term retention backup. + * @param resourceGroupName The 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 The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + async beginDeleteByResourceGroup( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1077,15 +1167,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options }, - spec: copyByResourceGroupOperationSpec + spec: deleteByResourceGroupOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyByResourceGroupResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -1094,66 +1180,63 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Copy an existing long term retention backup to a different server. + * Deletes a long term retention backup. * @param resourceGroupName The 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 The location of the database. + * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroupAndWait( + async beginDeleteByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginCopyByResourceGroup( + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginDeleteByResourceGroup( resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Updates an existing long term retention backup. + * Copy an existing long term retention backup to a different 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 locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. - * @param parameters The requested backup resource state + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginUpdateByResourceGroup( + async beginCopyByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateByResourceGroupResponse + OperationState, + LongTermRetentionBackupsCopyByResourceGroupResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1200,104 +1283,80 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateByResourceGroupOperationSpec + spec: copyByResourceGroupOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateByResourceGroupResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Updates an existing long term retention backup. - * @param resourceGroupName The 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 The location of the database. - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param parameters The requested backup resource state - * @param options The options parameters. - */ - async beginUpdateByResourceGroupAndWait( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginUpdateByResourceGroup( - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - parameters, - options - ); - return poller.pollUntilDone(); + LongTermRetentionBackupsCopyByResourceGroupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; } /** - * Gets a long term retention backup. + * Copy an existing long term retention backup to a different 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 locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - getByResourceGroup( + async beginCopyByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getByResourceGroupOperationSpec + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginCopyByResourceGroup( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options ); + return poller.pollUntilDone(); } /** - * Deletes a long term retention backup. + * Updates an existing long term retention backup. * @param resourceGroupName The 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 The location of the database + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteByResourceGroup( + async beginUpdateByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise, void>> { + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateByResourceGroupResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1341,11 +1400,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteByResourceGroupOperationSpec + spec: updateByResourceGroupOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsUpdateByResourceGroupResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -1354,127 +1417,37 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Deletes a long term retention backup. + * Updates an existing long term retention backup. * @param resourceGroupName The 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 The location of the database + * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginDeleteByResourceGroupAndWait( + async beginUpdateByResourceGroupAndWait( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginDeleteByResourceGroup( + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginUpdateByResourceGroup( resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } - /** - * Lists all long term retention backups 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 locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - private _listByResourceGroupDatabase( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByResourceGroupDatabaseOperationSpec - ); - } - - /** - * Lists the long term retention backups for a given location. - * @param resourceGroupName The 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 The location of the database - * @param options The options parameters. - */ - private _listByResourceGroupLocation( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec - ); - } - - /** - * Lists the long term retention backups for a given 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 locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param options The options parameters. - */ - private _listByResourceGroupServer( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, longTermRetentionServerName, options }, - listByResourceGroupServerOperationSpec - ); - } - - /** - * ListByDatabaseNext - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName 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( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - nextLink: string, - options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - nextLink, - options - }, - listByDatabaseNextOperationSpec - ); - } - /** * ListByLocationNext * @param locationName The location of the database @@ -1512,34 +1485,29 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * ListByResourceGroupDatabaseNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListByDatabaseNext * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupDatabase - * method. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listByResourceGroupDatabaseNext( - resourceGroupName: string, + private _listByDatabaseNext( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, nextLink: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams - ): Promise { + options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, nextLink, options }, - listByResourceGroupDatabaseNextOperationSpec + listByDatabaseNextOperationSpec ); } @@ -1592,112 +1560,87 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { listByResourceGroupServerNextOperationSpec ); } + + /** + * ListByResourceGroupDatabaseNext + * @param resourceGroupName The 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 The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupDatabase + * method. + * @param options The options parameters. + */ + private _listByResourceGroupDatabaseNext( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + nextLink: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + nextLink, + options + }, + listByResourceGroupDatabaseNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const copyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - default: {} - }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { +const listByLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion5], + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.locationName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.longTermRetentionServerName ], + headerParameters: [Parameters.accept], serializer }; const listByDatabaseOperationSpec: coreClient.OperationSpec = { @@ -1711,7 +1654,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], @@ -1725,56 +1668,47 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - queryParameters: [ - Parameters.apiVersion5, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: {} - }, - queryParameters: [ - Parameters.apiVersion5, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], serializer }; -const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { +const copyOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", httpMethod: "POST", responses: { 200: { @@ -1791,24 +1725,23 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", httpMethod: "POST", responses: { 200: { @@ -1825,59 +1758,67 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const getByResourceGroupOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupListResult }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.subscriptionId, + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { path: - "/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.apiVersion5], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName + Parameters.longTermRetentionServerName ], + headerParameters: [Parameters.accept], serializer }; const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { @@ -1891,14 +1832,14 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName @@ -1906,73 +1847,112 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { +const getByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - queryParameters: [ - Parameters.apiVersion5, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { +const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - httpMethod: "GET", + "/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.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName + ], + serializer +}; +const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, - queryParameters: [ - Parameters.apiVersion5, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", +const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { @@ -2012,7 +1992,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -2024,7 +2004,6 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, @@ -2044,8 +2023,8 @@ const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], @@ -2063,8 +2042,8 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName @@ -2072,3 +2051,24 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts index 21198fb3f16d..ff96f39b6859 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts @@ -21,36 +21,36 @@ import { import { createLroSpec } from "../lroImpl"; import { ManagedInstanceLongTermRetentionBackup, + LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationResponse, LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseResponse, LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceResponse, - LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationResponse, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse, LongTermRetentionManagedInstanceBackupsGetOptionalParams, LongTermRetentionManagedInstanceBackupsGetResponse, LongTermRetentionManagedInstanceBackupsDeleteOptionalParams, LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams, LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse, LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams, + LongTermRetentionManagedInstanceBackupsListByLocationNextResponse, LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse, LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse, - LongTermRetentionManagedInstanceBackupsListByLocationNextResponse, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse + LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse } from "../models"; /// @@ -67,6 +67,71 @@ export class LongTermRetentionManagedInstanceBackupsImpl this.client = client; } + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param options The options parameters. + */ + public listByLocation( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): 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?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LongTermRetentionManagedInstanceBackupsListByLocationResponse; + 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?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByLocationPagingPage( + locationName, + options + )) { + yield* page; + } + } + /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. @@ -246,14 +311,21 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The 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 The location of the database. * @param options The options parameters. */ - public listByLocation( + public listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); + const iter = this.listByResourceGroupLocationPagingAll( + resourceGroupName, + locationName, + options + ); return { next() { return iter.next(); @@ -265,27 +337,38 @@ export class LongTermRetentionManagedInstanceBackupsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByLocationPagingPage(locationName, options, settings); + return this.listByResourceGroupLocationPagingPage( + resourceGroupName, + locationName, + options, + settings + ); } }; } - private async *listByLocationPagingPage( + private async *listByResourceGroupLocationPagingPage( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: LongTermRetentionManagedInstanceBackupsListByLocationResponse; + let result: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByLocation(locationName, options); + result = await this._listByResourceGroupLocation( + resourceGroupName, + locationName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByLocationNext( + result = await this._listByResourceGroupLocationNext( + resourceGroupName, locationName, continuationToken, options @@ -297,11 +380,13 @@ export class LongTermRetentionManagedInstanceBackupsImpl } } - private async *listByLocationPagingAll( + private async *listByResourceGroupLocationPagingAll( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( + for await (const page of this.listByResourceGroupLocationPagingPage( + resourceGroupName, locationName, options )) { @@ -508,87 +593,36 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The 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 The location of the database. * @param options The options parameters. */ - public listByResourceGroupLocation( - resourceGroupName: string, + private _listByLocation( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupLocationPagingAll( - resourceGroupName, - locationName, - options + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, options }, + listByLocationOperationSpec ); - 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.listByResourceGroupLocationPagingPage( - resourceGroupName, - locationName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupLocationPagingPage( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroupLocation( - resourceGroupName, - locationName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupLocationNext( - resourceGroupName, - locationName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } } - private async *listByResourceGroupLocationPagingAll( - resourceGroupName: string, + /** + * Lists all long term retention backups for a managed database. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The options parameters. + */ + private _listByDatabase( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupLocationPagingPage( - resourceGroupName, - locationName, - options - )) { - yield* page; - } + managedInstanceName: string, + databaseName: string, + options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); } /** @@ -710,25 +744,6 @@ export class LongTermRetentionManagedInstanceBackupsImpl return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a managed database. - * @param locationName The location of the database. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database. - * @param options The options parameters. - */ - private _listByDatabase( - locationName: string, - managedInstanceName: string, - databaseName: string, - options?: LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { locationName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * Lists the long term retention backups for a given managed instance. * @param locationName The location of the database @@ -748,16 +763,51 @@ export class LongTermRetentionManagedInstanceBackupsImpl /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The 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 The location of the database. * @param options The options parameters. */ - private _listByLocation( + private _listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams - ): Promise { + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + ): Promise< + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse + > { return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec + { resourceGroupName, locationName, options }, + listByResourceGroupLocationOperationSpec + ); + } + + /** + * Lists all long term retention backups for a managed 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 locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The options parameters. + */ + private _listByResourceGroupDatabase( + resourceGroupName: string, + locationName: string, + managedInstanceName: string, + databaseName: string, + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams + ): Promise< + LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + options + }, + listByResourceGroupDatabaseOperationSpec ); } @@ -900,36 +950,6 @@ export class LongTermRetentionManagedInstanceBackupsImpl return poller.pollUntilDone(); } - /** - * Lists all long term retention backups for a managed 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 locationName The location of the database - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the managed database. - * @param options The options parameters. - */ - private _listByResourceGroupDatabase( - resourceGroupName: string, - locationName: string, - managedInstanceName: string, - databaseName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams - ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - managedInstanceName, - databaseName, - options - }, - listByResourceGroupDatabaseOperationSpec - ); - } - /** * Lists the long term retention backups for a given managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -953,22 +973,21 @@ export class LongTermRetentionManagedInstanceBackupsImpl } /** - * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. + * ListByLocationNext * @param locationName The location of the database. + * @param nextLink The nextLink from the previous successful call to the ListByLocation method. * @param options The options parameters. */ - private _listByResourceGroupLocation( - resourceGroupName: string, + private _listByLocationNext( locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams + nextLink: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse + LongTermRetentionManagedInstanceBackupsListByLocationNextResponse > { return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec + { locationName, nextLink, options }, + listByLocationNextOperationSpec ); } @@ -1017,21 +1036,25 @@ export class LongTermRetentionManagedInstanceBackupsImpl } /** - * ListByLocationNext + * ListByResourceGroupLocationNext + * @param resourceGroupName The 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 The location of the database. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupLocation + * method. * @param options The options parameters. */ - private _listByLocationNext( + private _listByResourceGroupLocationNext( + resourceGroupName: string, locationName: string, nextLink: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams ): Promise< - LongTermRetentionManagedInstanceBackupsListByLocationNextResponse + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse > { return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec + { resourceGroupName, locationName, nextLink, options }, + listByResourceGroupLocationNextOperationSpec ); } @@ -1099,33 +1122,58 @@ export class LongTermRetentionManagedInstanceBackupsImpl listByResourceGroupInstanceNextOperationSpec ); } - - /** - * ListByResourceGroupLocationNext - * @param resourceGroupName The 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 The location of the database. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupLocation - * method. - * @param options The options parameters. - */ - private _listByResourceGroupLocationNext( - resourceGroupName: string, - locationName: string, - nextLink: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams - ): Promise< - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, nextLink, options }, - listByResourceGroupLocationNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", @@ -1136,11 +1184,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1153,20 +1201,20 @@ 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.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName ], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByInstanceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1175,23 +1223,22 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.databaseName, Parameters.locationName, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listByInstanceOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1200,22 +1247,22 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.locationName, - Parameters.managedInstanceName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", httpMethod: "GET", responses: { 200: { @@ -1224,14 +1271,17 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -1246,12 +1296,12 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1264,44 +1314,18 @@ 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.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName ], serializer }; -const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult - }, - default: {} - }, - queryParameters: [ - Parameters.apiVersion5, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, - Parameters.locationName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", @@ -1313,23 +1337,22 @@ const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", +const listByLocationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -1337,15 +1360,10 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.apiVersion5, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.nextLink, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -1362,8 +1380,8 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1390,7 +1408,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1401,6 +1419,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName @@ -1419,9 +1438,9 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1440,8 +1459,8 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1449,22 +1468,3 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult - }, - 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/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index f3b63c742343..bc2df5b38f23 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -140,6 +140,26 @@ export class LongTermRetentionPoliciesImpl } } + /** + * Gets a database's long term retention 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 options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: LongTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -163,7 +183,7 @@ export class LongTermRetentionPoliciesImpl } /** - * Sets a database's long term retention policy. + * Set or update a database's long term retention 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. @@ -248,7 +268,7 @@ export class LongTermRetentionPoliciesImpl } /** - * Sets a database's long term retention policy. + * Set or update a database's long term retention 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. @@ -276,26 +296,6 @@ export class LongTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a database's long term retention 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 options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: LongTermRetentionPoliciesListByDatabaseOptionalParams - ): 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 @@ -321,6 +321,27 @@ export class LongTermRetentionPoliciesImpl // 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}/backupLongTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", @@ -331,14 +352,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName + Parameters.subscriptionId, + Parameters.policyName1 ], headerParameters: [Parameters.accept], serializer @@ -362,39 +383,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.policyName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.policyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -408,10 +408,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts index 49f87ea2e6a0..48421453c0a5 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts @@ -71,15 +71,15 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion, Parameters.maintenanceWindowOptionsName ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts index 9dee154dbf04..e3b457a5367b 100644 --- a/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts @@ -103,13 +103,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2, Parameters.maintenanceWindowName], + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -119,14 +119,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", httpMethod: "PUT", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion2, Parameters.maintenanceWindowName], + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts index e62d609f19f8..218b36551418 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -142,6 +142,26 @@ export class ManagedBackupShortTermRetentionPoliciesImpl } } + /** + * Gets a managed database's short term retention policy 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 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?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -402,26 +422,6 @@ export class ManagedBackupShortTermRetentionPoliciesImpl return poller.pollUntilDone(); } - /** - * Gets a managed database's short term retention policy 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 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?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -455,6 +455,27 @@ export class ManagedBackupShortTermRetentionPoliciesImpl // 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}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", @@ -465,14 +486,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], headerParameters: [Parameters.accept], serializer @@ -496,17 +517,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -529,41 +550,20 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1 + Parameters.policyName2 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -575,9 +575,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts index 60d34a13d20a..8580038f8612 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts @@ -260,12 +260,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -281,14 +281,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -306,17 +306,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters80, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -331,9 +331,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts index c53f77da9585..4954dc4647a7 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.apiVersion, Parameters.schema, Parameters.table, Parameters.column, @@ -416,9 +416,9 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -434,12 +434,12 @@ const listByTableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.managedInstanceName @@ -457,12 +457,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -482,9 +482,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -502,9 +502,9 @@ const listByTableNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.tableName, diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts index b27e5954e06a..f397f4734878 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseMoveOperations.ts @@ -194,14 +194,14 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.filter1, - Parameters.onlyLatestPerDatabase, - Parameters.apiVersion7 + Parameters.apiVersion, + Parameters.filter, + Parameters.onlyLatestPerDatabase ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -217,13 +217,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.operationId + Parameters.subscriptionId, + Parameters.operationId, + Parameters.locationName ], headerParameters: [Parameters.accept], serializer @@ -239,8 +239,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts index d5d20edb5b56..01b5e3b7e828 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -239,12 +239,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.queryId ], @@ -262,16 +262,16 @@ const listByQueryOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion, Parameters.startTime, Parameters.endTime, Parameters.interval ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.queryId ], @@ -289,9 +289,9 @@ const listByQueryNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName, Parameters.queryId diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts index ec1fa1bc1fbf..9aa0639af9a3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts @@ -65,13 +65,13 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index f1acf04ef393..374ee8c43a2a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -71,12 +71,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.restoreDetailsName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts index 4cbd49b040c7..5f5daa940d6a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -219,12 +219,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -240,12 +240,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.managedInstanceName ], @@ -263,9 +263,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index 8d1a9b6b8086..3797acab557a 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -135,6 +135,27 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl } } + /** + * Gets a list of managed database's security alert policies. + * @param resourceGroupName The 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 managed database for which the security alert policies are + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -194,27 +215,6 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl ); } - /** - * Gets a list of managed database's security alert policies. - * @param resourceGroupName The 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 managed database for which the security alert policies are - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -247,74 +247,74 @@ export class ManagedDatabaseSecurityAlertPoliciesImpl // 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/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.securityAlertPolicyName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy }, - 201: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy - }, default: {} }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.securityAlertPolicyName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters50, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.securityAlertPolicyName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -328,9 +328,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts index 97f0a3748996..a3a24dbb483e 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -191,17 +191,17 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.filter1, - Parameters.skip, - Parameters.apiVersion2, + Parameters.apiVersion, Parameters.skiptoken, + Parameters.filter, + Parameters.skip, Parameters.top ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,9 +218,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index 2234c8d0d790..26a11dba3dfe 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -21,6 +21,11 @@ import { ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse, + ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseResponse, + SensitivityLabelUpdateList, + ManagedDatabaseSensitivityLabelsUpdateOptionalParams, SensitivityLabelSource, ManagedDatabaseSensitivityLabelsGetOptionalParams, ManagedDatabaseSensitivityLabelsGetResponse, @@ -29,10 +34,9 @@ import { ManagedDatabaseSensitivityLabelsDeleteOptionalParams, ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams, ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelUpdateList, - ManagedDatabaseSensitivityLabelsUpdateOptionalParams, ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse, - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse, + ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse } from "../models"; /// @@ -237,6 +241,170 @@ export class ManagedDatabaseSensitivityLabelsImpl } } + /** + * Gets the sensitivity labels of a given 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?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): 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?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedDatabaseSensitivityLabelsListByDatabaseResponse; + 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?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + managedInstanceName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Gets the sensitivity labels of a given 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 _listCurrentByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listCurrentByDatabaseOperationSpec + ); + } + + /** + * Update sensitivity labels of a given database using an operations batch. + * @param resourceGroupName The 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 A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: SensitivityLabelUpdateList, + options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Gets the sensitivity labels of a given 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 _listRecommendedByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams + ): Promise< + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listRecommendedByDatabaseOperationSpec + ); + } + /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -422,85 +590,66 @@ export class ManagedDatabaseSensitivityLabelsImpl * @param databaseName The name of the database. * @param options The options parameters. */ - private _listCurrentByDatabase( + private _listByDatabase( resourceGroupName: string, managedInstanceName: string, databaseName: string, - options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams - ): Promise { + options?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, options }, - listCurrentByDatabaseOperationSpec + listByDatabaseOperationSpec ); } /** - * Update sensitivity labels of a given database using an operations batch. + * ListCurrentByDatabaseNext * @param resourceGroupName The 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 A list of sensitivity label update operations. + * @param nextLink The nextLink from the previous successful call to the ListCurrentByDatabase method. * @param options The options parameters. */ - update( + private _listCurrentByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, - parameters: SensitivityLabelUpdateList, - options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams - ): Promise { + nextLink: string, + options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + ): Promise< + ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse + > { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, - parameters, + nextLink, options }, - updateOperationSpec - ); - } - - /** - * Gets the sensitivity labels of a given 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 _listRecommendedByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams - ): Promise< - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listRecommendedByDatabaseOperationSpec + listCurrentByDatabaseNextOperationSpec ); } /** - * ListCurrentByDatabaseNext + * ListRecommendedByDatabaseNext * @param resourceGroupName The 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 ListCurrentByDatabase method. + * @param nextLink The nextLink from the previous successful call to the ListRecommendedByDatabase + * method. * @param options The options parameters. */ - private _listCurrentByDatabaseNext( + private _listRecommendedByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, nextLink: string, - options?: ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams + options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams ): Promise< - ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse + ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse > { return this.client.sendOperationRequest( { @@ -510,29 +659,26 @@ export class ManagedDatabaseSensitivityLabelsImpl nextLink, options }, - listCurrentByDatabaseNextOperationSpec + listRecommendedByDatabaseNextOperationSpec ); } /** - * ListRecommendedByDatabaseNext + * 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 ListRecommendedByDatabase - * method. + * @param nextLink The nextLink from the previous successful call to the ListByDatabase method. * @param options The options parameters. */ - private _listRecommendedByDatabaseNext( + private _listByDatabaseNext( resourceGroupName: string, managedInstanceName: string, databaseName: string, nextLink: string, - options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams - ): Promise< - ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse - > { + options?: ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -541,13 +687,83 @@ export class ManagedDatabaseSensitivityLabelsImpl nextLink, options }, - listRecommendedByDatabaseNextOperationSpec + listByDatabaseNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + Parameters.count + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + httpMethod: "PATCH", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; +const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.skipToken, + Parameters.includeDisabledRecommendations + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", @@ -558,12 +774,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -586,20 +802,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, Parameters.managedInstanceName, Parameters.sensitivityLabelSource1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -608,12 +824,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -627,12 +843,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -646,12 +862,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -660,9 +876,9 @@ const enableRecommendationOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/sensitivityLabels", httpMethod: "GET", responses: { 200: { @@ -670,43 +886,19 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion2, - Parameters.count - ], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", - httpMethod: "PATCH", - responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", +const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -714,23 +906,18 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion2, - Parameters.includeDisabledRecommendations - ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -741,16 +928,16 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -761,9 +948,9 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts index 89e555175248..bc8614c36c86 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -242,12 +242,12 @@ const listBySchemaOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.managedInstanceName ], @@ -264,12 +264,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.managedInstanceName @@ -288,9 +288,9 @@ const listBySchemaNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.schemaName, Parameters.managedInstanceName diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts index 0d47298bf4bb..31c788627e62 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -135,6 +135,27 @@ export class ManagedDatabaseTransparentDataEncryptionImpl } } + /** + * Gets a list of managed database's transparent data encryptions. + * @param resourceGroupName The 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 managed database for which the transparent data encryption is + * defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -195,27 +216,6 @@ export class ManagedDatabaseTransparentDataEncryptionImpl ); } - /** - * Gets a list of managed database's transparent data encryptions. - * @param resourceGroupName The 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 managed database for which the transparent data encryption is - * defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -250,74 +250,74 @@ export class ManagedDatabaseTransparentDataEncryptionImpl // 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/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedTransparentDataEncryption + bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName, - Parameters.tdeName + Parameters.subscriptionId, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedTransparentDataEncryption }, - 201: { - bodyMapper: Mappers.ManagedTransparentDataEncryption - }, default: {} }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.tdeName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult + bodyMapper: Mappers.ManagedTransparentDataEncryption + }, + 201: { + bodyMapper: Mappers.ManagedTransparentDataEncryption }, default: {} }, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.tdeName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -331,9 +331,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index cf3be7ac46d7..96b9dbfed52c 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -161,15 +161,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -186,18 +186,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -206,15 +206,15 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.ruleId, - Parameters.baselineName, + Parameters.baselineName1, Parameters.managedInstanceName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 31a37a1cb6e7..ffaa91714c49 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -25,11 +25,11 @@ import { ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse, - ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansExportResponse, ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansGetResponse, + ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansExportResponse, + ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse } from "../models"; @@ -150,6 +150,98 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl } } + /** + * 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams + ): Promise< + ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * 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 managedInstanceName The name of the managed instance. + * @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, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + getOperationSpec + ); + } + + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @param resourceGroupName The 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 scanned database. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + vulnerabilityAssessmentName, + scanId, + options + }, + exportOperationSpec + ); + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -256,98 +348,6 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl return poller.pollUntilDone(); } - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group 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 scanned database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. - * @param options The options parameters. - */ - export( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - exportOperationSpec - ); - } - - /** - * 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 managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - ): Promise< - ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * 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 managedInstanceName The name of the managed instance. - * @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, - managedInstanceName: string, - databaseName: string, - vulnerabilityAssessmentName: VulnerabilityAssessmentName, - scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - vulnerabilityAssessmentName, - scanId, - options - }, - getOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -384,42 +384,44 @@ export class ManagedDatabaseVulnerabilityAssessmentScansImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const initiateScanOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/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], + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.scanId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], serializer }; -const exportOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId, Parameters.managedInstanceName @@ -427,49 +429,47 @@ const exportOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const exportOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + }, + 201: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, + Parameters.scanId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const initiateScanOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], + "/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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +483,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index 44e5e25de90c..c1533bc20698 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -135,6 +135,26 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl } } + /** + * Lists the vulnerability assessments of a managed 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 for which the vulnerability assessment is defined. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets the database's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -222,26 +242,6 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl ); } - /** - * Lists the vulnerability assessments of a managed 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 for which the vulnerability assessment is defined. - * @param options The options parameters. - */ - private _listByDatabase( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - options?: ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec - ); - } - /** * ListByDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -275,6 +275,27 @@ export class ManagedDatabaseVulnerabilityAssessmentsImpl // 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}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -285,12 +306,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], @@ -311,16 +332,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { default: {} }, requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -329,36 +350,15 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.managedInstanceName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.databaseName, + Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -372,9 +372,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index f7cbe489fe24..20f9f268c3a3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -1044,11 +1044,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1064,12 +1064,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1094,16 +1094,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters85, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1112,12 +1112,12 @@ 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.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1141,16 +1141,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters86, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters56, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1159,13 +1159,13 @@ const cancelMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/cancelMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters87, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1177,13 +1177,13 @@ const completeMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters87, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1195,13 +1195,13 @@ const completeRestoreOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters88, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1213,13 +1213,13 @@ const startMoveOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/startMove", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters89, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], @@ -1236,11 +1236,11 @@ const listInaccessibleByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1257,8 +1257,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -1276,8 +1276,8 @@ const listInaccessibleByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts index db4eaddcd5f0..46a0aa828307 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -405,11 +405,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -425,11 +425,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], @@ -455,16 +455,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -473,11 +473,11 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.administratorName ], @@ -494,8 +494,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts index 44ac4d83b48a..e994bc4e43be 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts @@ -325,11 +325,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -345,13 +345,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], headerParameters: [Parameters.accept], serializer @@ -375,16 +375,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters81, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.advancedThreatProtectionName + Parameters.subscriptionId, + Parameters.advancedThreatProtectionName, + Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -399,8 +399,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts index c41920a99422..c7167cacd386 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -132,6 +132,24 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl } } + /** + * Gets a list of server Azure Active Directory only authentications. + * @param resourceGroupName The 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?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -362,24 +380,6 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl return poller.pollUntilDone(); } - /** - * Gets a list of server Azure Active Directory only authentications. - * @param resourceGroupName The 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?: ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -405,6 +405,26 @@ export class ManagedInstanceAzureADOnlyAuthenticationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", @@ -415,11 +435,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], @@ -445,16 +465,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -463,36 +483,16 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.authenticationName ], serializer }; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -504,8 +504,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts index 7825964fe017..45832fd2b643 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceDtcs.ts @@ -309,11 +309,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -329,11 +329,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dtcName ], @@ -359,16 +359,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters82, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters63, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dtcName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -383,8 +383,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts index 64527e5b0867..40881c56ebd8 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -25,11 +25,11 @@ import { ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, ManagedInstanceEncryptionProtectorsListByInstanceResponse, EncryptionProtectorName, - ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsListByInstanceNextResponse } from "../models"; @@ -133,23 +133,73 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Revalidates an existing encryption protector. + * Gets a list of managed instance encryption protectors + * @param resourceGroupName The 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?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + + /** + * Gets a managed instance encryption protector. + * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be retrieved. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + encryptionProtectorName, + options + }, + getOperationSpec + ); + } + + /** + * Updates an existing encryption protector. * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. + * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginRevalidate( + async beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise, void>> { + parameters: ManagedInstanceEncryptionProtector, + options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -191,11 +241,15 @@ export class ManagedInstanceEncryptionProtectorsImpl resourceGroupName, managedInstanceName, encryptionProtectorName, + parameters, options }, - spec: revalidateOperationSpec + spec: createOrUpdateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -204,96 +258,49 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Revalidates an existing encryption protector. + * Updates an existing encryption protector. * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. + * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginRevalidateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise { - const poller = await this.beginRevalidate( + parameters: ManagedInstanceEncryptionProtector, + options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, managedInstanceName, encryptionProtectorName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a list of managed instance encryption protectors - * @param resourceGroupName The 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?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - - /** - * Gets a managed instance encryption protector. - * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - encryptionProtectorName, - options - }, - getOperationSpec - ); - } - - /** - * Updates an existing encryption protector. + * Revalidates an existing encryption protector. * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. - * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginRevalidate( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - parameters: ManagedInstanceEncryptionProtector, - options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse - > - > { + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -335,15 +342,11 @@ export class ManagedInstanceEncryptionProtectorsImpl resourceGroupName, managedInstanceName, encryptionProtectorName, - parameters, options }, - spec: createOrUpdateOperationSpec + spec: revalidateOperationSpec }); - const poller = await createHttpPoller< - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -352,26 +355,23 @@ export class ManagedInstanceEncryptionProtectorsImpl } /** - * Updates an existing encryption protector. + * Revalidates an existing encryption protector. * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. - * @param parameters The requested encryption protector resource state. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginRevalidateAndWait( resourceGroupName: string, managedInstanceName: string, encryptionProtectorName: EncryptionProtectorName, - parameters: ManagedInstanceEncryptionProtector, - options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise { + const poller = await this.beginRevalidate( resourceGroupName, managedInstanceName, encryptionProtectorName, - parameters, options ); return poller.pollUntilDone(); @@ -400,21 +400,6 @@ export class ManagedInstanceEncryptionProtectorsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const revalidateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.encryptionProtectorName, - Parameters.managedInstanceName - ], - serializer -}; const listByInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector", @@ -425,11 +410,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -445,11 +430,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.encryptionProtectorName, Parameters.managedInstanceName ], @@ -475,19 +460,34 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.encryptionProtectorName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; +const revalidateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.encryptionProtectorName, + Parameters.managedInstanceName + ], + serializer +}; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -499,8 +499,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts index edc85065e004..7a768c6e04a5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -398,11 +398,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.filter1, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -418,11 +418,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], @@ -448,16 +448,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -466,11 +466,11 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.keyName ], @@ -487,8 +487,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index 94ac995c6f5b..682081ab9a07 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -29,6 +29,8 @@ import { ManagedInstanceLongTermRetentionPoliciesGetResponse, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse, + ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse, ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse } from "../models"; @@ -140,6 +142,26 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl } } + /** + * Gets a database's long term retention 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 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?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a managed database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -287,23 +309,111 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl } /** - * Gets a database's long term retention policy. + * Deletes a managed database's long term retention 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 managedInstanceName The name of the managed instance. * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. * @param options The options parameters. */ - private _listByDatabase( + async beginDelete( resourceGroupName: string, managedInstanceName: string, databaseName: string, - options?: ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, databaseName, options }, - listByDatabaseOperationSpec + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + managedInstanceName, + databaseName, + policyName, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + ManagedInstanceLongTermRetentionPoliciesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a managed database's long term retention 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + managedInstanceName, + databaseName, + policyName, + options ); + return poller.pollUntilDone(); } /** @@ -339,6 +449,27 @@ export class ManagedInstanceLongTermRetentionPoliciesImpl // 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}/backupLongTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", @@ -349,14 +480,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName2 + Parameters.policyName3 ], headerParameters: [Parameters.accept], serializer @@ -380,37 +511,47 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName2 + Parameters.policyName3 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 201: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 202: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 204: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.policyName3 ], headerParameters: [Parameters.accept], serializer @@ -426,9 +567,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts index 0d07576a97af..f49dea5da490 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -214,11 +214,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -234,11 +234,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.operationId, Parameters.managedInstanceName ], @@ -250,11 +250,11 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.operationId, Parameters.managedInstanceName ], @@ -271,8 +271,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts index fb78fbd03767..dc01c6b37cb5 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -131,6 +131,26 @@ export class ManagedInstancePrivateEndpointConnectionsImpl } } + /** + * Gets all private endpoint connections on 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 managedInstanceName The name of the managed instance. + * @param options The options parameters. + */ + private _listByManagedInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams + ): Promise< + ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByManagedInstanceOperationSpec + ); + } + /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -362,26 +382,6 @@ export class ManagedInstancePrivateEndpointConnectionsImpl return poller.pollUntilDone(); } - /** - * Gets all private endpoint connections on 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 managedInstanceName The name of the managed instance. - * @param options The options parameters. - */ - private _listByManagedInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams - ): Promise< - ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse - > { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByManagedInstanceOperationSpec - ); - } - /** * ListByManagedInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -407,6 +407,26 @@ export class ManagedInstancePrivateEndpointConnectionsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -417,11 +437,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], @@ -447,16 +467,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -465,36 +485,16 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.privateEndpointConnectionName ], serializer }; -const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -506,8 +506,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts index 8a47584359d8..8cf4021e1a89 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -195,11 +195,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -215,11 +215,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.groupName ], @@ -237,8 +237,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index 0c1fe85d7cb1..e8d31f3556d7 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts @@ -132,12 +132,12 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.contentType], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index ed289468d180..6b777999df6c 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -127,6 +127,25 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl } } + /** + * Gets the managed instance's vulnerability assessment policies. + * @param resourceGroupName The 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 for which the vulnerability assessments + * is defined. + * @param options The options parameters. + */ + private _listByInstance( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Gets the managed instance's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -210,25 +229,6 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl ); } - /** - * Gets the managed instance's vulnerability assessment policies. - * @param resourceGroupName The 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 for which the vulnerability assessments - * is defined. - * @param options The options parameters. - */ - private _listByInstance( - resourceGroupName: string, - managedInstanceName: string, - options?: ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -255,6 +255,26 @@ export class ManagedInstanceVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -265,11 +285,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], @@ -289,16 +309,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters40, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -307,34 +327,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vulnerabilityAssessmentName, - Parameters.managedInstanceName - ], - serializer -}; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.vulnerabilityAssessmentName, Parameters.managedInstanceName ], - headerParameters: [Parameters.accept], serializer }; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { @@ -348,8 +348,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index 9c26625fc14e..d883e2f6de6c 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -47,8 +47,12 @@ import { ManagedInstancesUpdateOptionalParams, ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, + ManagedInstancesRefreshStatusOptionalParams, + ManagedInstancesRefreshStatusResponse, ManagedInstancesStartOptionalParams, + ManagedInstancesStartResponse, ManagedInstancesStopOptionalParams, + ManagedInstancesStopResponse, ManagedInstancesListNextResponse, ManagedInstancesListByInstancePoolNextResponse, ManagedInstancesListByResourceGroupNextResponse, @@ -892,6 +896,99 @@ export class ManagedInstancesImpl implements ManagedInstances { ); } + /** + * Refresh external governance enablement status. + * @param resourceGroupName The 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 beginRefreshStatus( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesRefreshStatusResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, managedInstanceName, options }, + spec: refreshStatusOperationSpec + }); + const poller = await createHttpPoller< + ManagedInstancesRefreshStatusResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Refresh external governance enablement status. + * @param resourceGroupName The 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 beginRefreshStatusAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise { + const poller = await this.beginRefreshStatus( + resourceGroupName, + managedInstanceName, + options + ); + return poller.pollUntilDone(); + } + /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -903,11 +1000,16 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStartResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -948,7 +1050,10 @@ export class ManagedInstancesImpl implements ManagedInstances { args: { resourceGroupName, managedInstanceName, options }, spec: startOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstancesStartResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -968,7 +1073,7 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise { + ): Promise { const poller = await this.beginStart( resourceGroupName, managedInstanceName, @@ -988,11 +1093,16 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStopResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1033,7 +1143,10 @@ export class ManagedInstancesImpl implements ManagedInstances { args: { resourceGroupName, managedInstanceName, options }, spec: stopOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedInstancesStopResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -1053,7 +1166,7 @@ export class ManagedInstancesImpl implements ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise { + ): Promise { const poller = await this.beginStop( resourceGroupName, managedInstanceName, @@ -1189,7 +1302,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -1204,11 +1317,11 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -1224,11 +1337,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -1243,11 +1356,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1272,15 +1385,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters90, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1289,11 +1402,11 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1317,15 +1430,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters91, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1334,11 +1447,11 @@ const failoverOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.replicaType], + queryParameters: [Parameters.apiVersion, Parameters.replicaType], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], serializer @@ -1353,11 +1466,42 @@ const listOutboundNetworkDependenciesByManagedInstanceOperationSpec: coreClient. }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const refreshStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/refreshExternalGovernanceStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + 201: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + 202: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + 204: { + bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResultMI + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1367,28 +1511,58 @@ 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.apiVersion1], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstance + }, + 201: { + bodyMapper: Mappers.ManagedInstance + }, + 202: { + bodyMapper: Mappers.ManagedInstance + }, + 204: { + bodyMapper: Mappers.ManagedInstance + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], 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.apiVersion1], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstance + }, + 201: { + bodyMapper: Mappers.ManagedInstance + }, + 202: { + bodyMapper: Mappers.ManagedInstance + }, + 204: { + bodyMapper: Mappers.ManagedInstance + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], + headerParameters: [Parameters.accept], serializer }; const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { @@ -1402,7 +1576,7 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.startTime, Parameters.endTime, Parameters.interval, @@ -1413,8 +1587,8 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -1448,8 +1622,8 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.instancePoolName ], @@ -1467,8 +1641,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -1485,8 +1659,8 @@ const listOutboundNetworkDependenciesByManagedInstanceNextOperationSpec: coreCli }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], @@ -1504,8 +1678,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts index 13e9ec26ff2b..2b08860d247e 100644 --- a/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts +++ b/sdk/sql/arm-sql/src/operations/managedLedgerDigestUploadsOperations.ts @@ -455,12 +455,12 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -476,12 +476,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], @@ -507,17 +507,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters92, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -540,12 +540,12 @@ const disableOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.ledgerDigestUploads1 ], @@ -563,9 +563,9 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index 5dd3a80cec4a..10e8c2d4dc53 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -142,6 +142,33 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp } } + /** + * Gets a dropped database's short term retention policy 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 managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param options The options parameters. + */ + private _listByRestorableDroppedDatabase( + resourceGroupName: string, + managedInstanceName: string, + restorableDroppedDatabaseId: string, + options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams + ): Promise< + ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse + > { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + options + }, + listByRestorableDroppedDatabaseOperationSpec + ); + } + /** * Gets a dropped database's short term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -412,33 +439,6 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp return poller.pollUntilDone(); } - /** - * Gets a dropped database's short term retention policy 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 managedInstanceName The name of the managed instance. - * @param restorableDroppedDatabaseId - * @param options The options parameters. - */ - private _listByRestorableDroppedDatabase( - resourceGroupName: string, - managedInstanceName: string, - restorableDroppedDatabaseId: string, - options?: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams - ): Promise< - ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse - > { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - options - }, - listByRestorableDroppedDatabaseOperationSpec - ); - } - /** * ListByRestorableDroppedDatabaseNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -473,6 +473,27 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImp // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", @@ -483,13 +504,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], headerParameters: [Parameters.accept], @@ -514,17 +535,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, - Parameters.policyName1, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -547,39 +568,18 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.policyName1, - Parameters.restorableDroppedDatabaseId - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByRestorableDroppedDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.managedInstanceName, + Parameters.policyName2, Parameters.restorableDroppedDatabaseId ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -593,8 +593,8 @@ const listByRestorableDroppedDatabaseNextOperationSpec: coreClient.OperationSpec }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName, Parameters.restorableDroppedDatabaseId diff --git a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts index 29d6e6123e67..cfa3ee7a9f96 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerDnsAliases.ts @@ -510,11 +510,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -530,11 +530,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], @@ -560,16 +560,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters78, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -578,11 +578,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases/{dnsAliasName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], @@ -607,16 +607,16 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters79, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -631,8 +631,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts index bbe473a9eaaf..63cd83c6a0b3 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -24,7 +24,7 @@ import { ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams, ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams, ManagedServerSecurityAlertPoliciesListByInstanceResponse, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ManagedServerSecurityAlertPoliciesGetOptionalParams, ManagedServerSecurityAlertPoliciesGetResponse, ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -131,6 +131,24 @@ export class ManagedServerSecurityAlertPoliciesImpl } } + /** + * Get the managed server's threat detection policies. + * @param resourceGroupName The 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?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, managedInstanceName, options }, + listByInstanceOperationSpec + ); + } + /** * Get a managed server's threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -142,7 +160,7 @@ export class ManagedServerSecurityAlertPoliciesImpl get( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -168,7 +186,7 @@ export class ManagedServerSecurityAlertPoliciesImpl async beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -250,7 +268,7 @@ export class ManagedServerSecurityAlertPoliciesImpl async beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise { @@ -264,24 +282,6 @@ export class ManagedServerSecurityAlertPoliciesImpl return poller.pollUntilDone(); } - /** - * Get the managed server's threat detection policies. - * @param resourceGroupName The 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?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec - ); - } - /** * ListByInstanceNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -305,6 +305,26 @@ export class ManagedServerSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByInstanceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.managedInstanceName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -315,13 +335,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityAlertPolicyName, - Parameters.managedInstanceName + Parameters.subscriptionId, + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1 ], headerParameters: [Parameters.accept], serializer @@ -345,37 +365,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters41, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.securityAlertPolicyName, - Parameters.managedInstanceName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.managedInstanceName + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByInstanceNextOperationSpec: coreClient.OperationSpec = { @@ -389,8 +389,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts similarity index 56% rename from sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts rename to sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts index 657d69692402..292ea8c4a9db 100644 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/networkSecurityPerimeterConfigurations.ts @@ -7,7 +7,8 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { ServerCommunicationLinks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; @@ -19,23 +20,25 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - ServerCommunicationLink, - ServerCommunicationLinksListByServerOptionalParams, - ServerCommunicationLinksListByServerResponse, - ServerCommunicationLinksDeleteOptionalParams, - ServerCommunicationLinksGetOptionalParams, - ServerCommunicationLinksGetResponse, - ServerCommunicationLinksCreateOrUpdateOptionalParams, - ServerCommunicationLinksCreateOrUpdateResponse + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServerResponse, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, + NetworkSecurityPerimeterConfigurationsListByServerNextResponse } from "../models"; /// -/** Class containing ServerCommunicationLinks operations. */ -export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { +/** Class containing NetworkSecurityPerimeterConfigurations operations. */ +export class NetworkSecurityPerimeterConfigurationsImpl + implements NetworkSecurityPerimeterConfigurations { private readonly client: SqlManagementClient; /** - * Initialize a new instance of the class ServerCommunicationLinks class. + * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. * @param client Reference to the service client */ constructor(client: SqlManagementClient) { @@ -43,7 +46,7 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { } /** - * Gets a list of server communication links. + * Gets a list of NSP configurations for 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. @@ -52,8 +55,8 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { public listByServer( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): PagedAsyncIterableIterator { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): PagedAsyncIterableIterator { const iter = this.listByServerPagingAll( resourceGroupName, serverName, @@ -83,19 +86,37 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { private async *listByServerPagingPage( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ServerCommunicationLinksListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkSecurityPerimeterConfigurationsListByServerResponse; + 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?: ServerCommunicationLinksListByServerOptionalParams - ): AsyncIterableIterator { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): AsyncIterableIterator { for await (const page of this.listByServerPagingPage( resourceGroupName, serverName, @@ -106,70 +127,66 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { } /** - * Deletes a server communication link. + * Gets a list of NSP configurations for 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 communicationLinkName The name of the server communication link. * @param options The options parameters. */ - delete( + private _listByServer( resourceGroupName: string, serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksDeleteOptionalParams - ): Promise { + options?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, communicationLinkName, options }, - deleteOperationSpec + { resourceGroupName, serverName, options }, + listByServerOperationSpec ); } /** - * Returns a server communication link. + * Gets a network security perimeter configuration. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. + * @param nspConfigName * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksGetOptionalParams - ): Promise { + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, communicationLinkName, options }, + { resourceGroupName, serverName, nspConfigName, options }, getOperationSpec ); } /** - * Creates a server communication link. + * Reconcile network security perimeter configuration for SQL Resource Provider * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param nspConfigName * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginReconcile( resourceGroupName: string, serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams ): Promise< SimplePollerLike< - OperationState, - ServerCommunicationLinksCreateOrUpdateResponse + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -207,154 +224,153 @@ export class ServerCommunicationLinksImpl implements ServerCommunicationLinks { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - communicationLinkName, - parameters, - options - }, - spec: createOrUpdateOperationSpec + args: { resourceGroupName, serverName, nspConfigName, options }, + spec: reconcileOperationSpec }); const poller = await createHttpPoller< - ServerCommunicationLinksCreateOrUpdateResponse, - OperationState + NetworkSecurityPerimeterConfigurationsReconcileResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Creates a server communication link. + * Reconcile network security perimeter configuration for SQL Resource Provider * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param nspConfigName * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginReconcileAndWait( resourceGroupName: string, serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise { + const poller = await this.beginReconcile( resourceGroupName, serverName, - communicationLinkName, - parameters, + nspConfigName, options ); return poller.pollUntilDone(); } /** - * Gets a list of server communication links. + * 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 _listByServer( + private _listByServerNext( resourceGroupName: string, serverName: string, - options?: ServerCommunicationLinksListByServerOptionalParams - ): Promise { + nextLink: string, + options?: NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const deleteOperationSpec: coreClient.OperationSpec = { +const listByServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - httpMethod: "DELETE", - responses: { 200: {} }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult + }, + default: {} + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId ], + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations/{nspConfigName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId, + Parameters.nspConfigName ], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const reconcileOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 201: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 202: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration }, 204: { - bodyMapper: Mappers.ServerCommunicationLink - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration + }, + default: {} }, - requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId, + Parameters.nspConfigName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks", +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLinkListResult - } + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult + }, + default: {} }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts index b5cbf0223cb1..2fbbeacf475e 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.apiVersion], urlParameters: [Parameters.$host], 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 0f6d318dc663..212f141d09f3 100644 --- a/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -126,6 +126,24 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { } } + /** + * Gets all outbound firewall rules on 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?: OutboundFirewallRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets an outbound firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -152,14 +170,12 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ async beginCreateOrUpdate( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -208,13 +224,7 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - serverName, - outboundRuleFqdn, - parameters, - options - }, + args: { resourceGroupName, serverName, outboundRuleFqdn, options }, spec: createOrUpdateOperationSpec }); const poller = await createHttpPoller< @@ -234,21 +244,18 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, outboundRuleFqdn, - parameters, options ); return poller.pollUntilDone(); @@ -343,24 +350,6 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { return poller.pollUntilDone(); } - /** - * Gets all outbound firewall rules on 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?: OutboundFirewallRulesListByServerOptionalParams - ): 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 @@ -384,6 +373,26 @@ export class OutboundFirewallRulesImpl implements OutboundFirewallRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundFirewallRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", @@ -394,12 +403,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.outboundRuleFqdn ], headerParameters: [Parameters.accept], @@ -424,17 +433,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters63, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.outboundRuleFqdn ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const deleteOperationSpec: coreClient.OperationSpec = { @@ -442,34 +449,14 @@ 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.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.outboundRuleFqdn - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundFirewallRuleListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.outboundRuleFqdn ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +470,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index 6a507753a958..503c2c18207e 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -400,12 +400,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -420,12 +420,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], headerParameters: [Parameters.accept], @@ -450,16 +450,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters42, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -468,12 +468,12 @@ 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.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], serializer @@ -489,9 +489,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts index b0da96f824e7..d23fdb13805f 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -188,12 +188,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -208,12 +208,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.groupName ], headerParameters: [Parameters.accept], @@ -230,9 +230,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts index ec8e6e6af5d0..1fd43942cabf 100644 --- a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts @@ -59,14 +59,14 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters71, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts index 24c0e8b6a0f1..c333aef6479d 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts @@ -188,12 +188,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -209,16 +209,16 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -234,9 +234,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts index 25756f4bfc28..495517480331 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -198,11 +198,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,11 +218,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.recoverableDatabaseName ], @@ -240,8 +240,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts index ff83646aaa0d..a9da680e049c 100644 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/replicationLinks.ts @@ -639,13 +639,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -660,13 +660,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -677,13 +677,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], serializer @@ -707,13 +707,13 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -738,13 +738,13 @@ const failoverAllowDataLossOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.linkId ], headerParameters: [Parameters.accept], @@ -760,12 +760,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -781,10 +781,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -801,9 +801,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts index 3976f52f583e..4e48e012dd64 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts @@ -189,12 +189,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -210,15 +210,15 @@ const getOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion, Parameters.expand, - Parameters.filter1 + Parameters.filter ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.restorableDroppedDatabaseId ], headerParameters: [Parameters.accept], @@ -235,9 +235,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts index 2f3519b6154d..04b41ffb5997 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts @@ -198,11 +198,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -218,11 +218,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.restorableDroppedDatabaseId ], @@ -240,8 +240,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts index e33be9a257f2..44b6ae086919 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -359,13 +359,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -389,16 +389,16 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters43, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -412,13 +412,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.restorePointName ], headerParameters: [Parameters.accept], @@ -429,13 +429,13 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.restorePointName ], serializer @@ -451,10 +451,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 916a790ba7fe..41eecdc54b49 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -21,18 +21,22 @@ import { SensitivityLabelsListRecommendedByDatabaseNextOptionalParams, SensitivityLabelsListRecommendedByDatabaseOptionalParams, SensitivityLabelsListRecommendedByDatabaseResponse, + SensitivityLabelsListByDatabaseNextOptionalParams, + SensitivityLabelsListByDatabaseOptionalParams, + SensitivityLabelsListByDatabaseResponse, SensitivityLabelUpdateList, SensitivityLabelsUpdateOptionalParams, - SensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelsDisableRecommendationOptionalParams, SensitivityLabelSource, SensitivityLabelsGetOptionalParams, SensitivityLabelsGetResponse, SensitivityLabelsCreateOrUpdateOptionalParams, SensitivityLabelsCreateOrUpdateResponse, SensitivityLabelsDeleteOptionalParams, + SensitivityLabelsDisableRecommendationOptionalParams, + SensitivityLabelsEnableRecommendationOptionalParams, SensitivityLabelsListCurrentByDatabaseNextResponse, - SensitivityLabelsListRecommendedByDatabaseNextResponse + SensitivityLabelsListRecommendedByDatabaseNextResponse, + SensitivityLabelsListByDatabaseNextResponse } from "../models"; /// @@ -236,6 +240,100 @@ export class SensitivityLabelsImpl implements SensitivityLabels { } } + /** + * Gets the sensitivity labels of a given 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?: SensitivityLabelsListByDatabaseOptionalParams + ): 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?: SensitivityLabelsListByDatabaseOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SensitivityLabelsListByDatabaseResponse; + 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?: SensitivityLabelsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + serverName, + databaseName, + options + )) { + yield* page; + } + } + /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -299,8 +397,7 @@ export class SensitivityLabelsImpl implements SensitivityLabels { } /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all - * columns) + * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -308,17 +405,19 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - enableRecommendation( + get( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsEnableRecommendationOptionalParams - ): Promise { + sensitivityLabelSource: SensitivityLabelSource, + options?: SensitivityLabelsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -327,14 +426,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, + sensitivityLabelSource, options }, - enableRecommendationOperationSpec + getOperationSpec ); } /** - * Disables sensitivity recommendations on a given column + * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -342,17 +442,19 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - disableRecommendation( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDisableRecommendationOptionalParams - ): Promise { + parameters: SensitivityLabel, + options?: SensitivityLabelsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -361,14 +463,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, + parameters, options }, - disableRecommendationOperationSpec + createOrUpdateOperationSpec ); } /** - * Gets the sensitivity label of a given column + * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -376,19 +479,17 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - sensitivityLabelSource: SensitivityLabelSource, - options?: SensitivityLabelsGetOptionalParams - ): Promise { + options?: SensitivityLabelsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -397,15 +498,14 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, - sensitivityLabelSource, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Creates or updates the sensitivity label of a given column + * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -413,19 +513,17 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - createOrUpdate( + disableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - parameters: SensitivityLabel, - options?: SensitivityLabelsCreateOrUpdateOptionalParams - ): Promise { + options?: SensitivityLabelsDisableRecommendationOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -434,15 +532,15 @@ export class SensitivityLabelsImpl implements SensitivityLabels { schemaName, tableName, columnName, - parameters, options }, - createOrUpdateOperationSpec + disableRecommendationOperationSpec ); } /** - * Deletes the sensitivity label of a given column + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -452,14 +550,14 @@ export class SensitivityLabelsImpl implements SensitivityLabels { * @param columnName The name of the column. * @param options The options parameters. */ - delete( + enableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDeleteOptionalParams + options?: SensitivityLabelsEnableRecommendationOptionalParams ): Promise { return this.client.sendOperationRequest( { @@ -471,7 +569,27 @@ export class SensitivityLabelsImpl implements SensitivityLabels { columnName, options }, - deleteOperationSpec + enableRecommendationOperationSpec + ); + } + + /** + * Gets the sensitivity labels of a given 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?: SensitivityLabelsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec ); } @@ -519,6 +637,28 @@ export class SensitivityLabelsImpl implements SensitivityLabels { listRecommendedByDatabaseNextOperationSpec ); } + + /** + * 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?: SensitivityLabelsListByDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -534,17 +674,17 @@ const listCurrentByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, + Parameters.filter, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion2, Parameters.count ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -554,14 +694,14 @@ const updateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", httpMethod: "PATCH", responses: { 200: {}, default: {} }, - requestBody: Parameters.parameters70, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters51, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", @@ -578,57 +718,19 @@ const listRecommendedByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ + Parameters.apiVersion, + Parameters.filter, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion2, Parameters.includeDisabledRecommendations ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const enableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/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], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2 - ], - serializer -}; -const disableRecommendationOperationSpec: coreClient.OperationSpec = { - path: - "/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], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2 + Parameters.subscriptionId ], + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -641,13 +743,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -669,20 +771,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters69, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, Parameters.sensitivityLabelSource1 ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -691,13 +793,13 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.schemaName, Parameters.tableName, Parameters.columnName, @@ -705,6 +807,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { ], serializer }; +const disableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/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.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource2 + ], + serializer +}; +const enableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/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.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource2 + ], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/sensitivityLabels", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -716,10 +877,10 @@ const listCurrentByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -736,10 +897,30 @@ const listRecommendedByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts index 92f1a49651b1..1753ee1f1c20 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvancedThreatProtectionSettings.ts @@ -310,12 +310,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -330,12 +330,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], headerParameters: [Parameters.accept], @@ -360,16 +360,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters77, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advancedThreatProtectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -384,9 +384,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts index 2351e83c1977..9fdca3b4ada5 100644 --- a/sdk/sql/arm-sql/src/operations/serverAdvisors.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts @@ -111,12 +111,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -131,12 +131,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advisorName ], headerParameters: [Parameters.accept], @@ -152,16 +152,16 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.advisorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts index 76b2422428d1..91eb58b364fc 100644 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts @@ -83,12 +83,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -103,15 +103,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters44, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters79, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index 68cfecf65f06..d5da75090240 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -128,6 +128,24 @@ export class ServerAzureADAdministratorsImpl } } + /** + * Gets a list of Azure Active Directory administrators in 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?: ServerAzureADAdministratorsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -345,24 +363,6 @@ export class ServerAzureADAdministratorsImpl return poller.pollUntilDone(); } - /** - * Gets a list of Azure Active Directory administrators in 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?: ServerAzureADAdministratorsListByServerOptionalParams - ): 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 @@ -386,6 +386,26 @@ export class ServerAzureADAdministratorsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdministratorListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", @@ -396,12 +416,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.administratorName ], headerParameters: [Parameters.accept], @@ -426,16 +446,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters45, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.administratorName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -444,34 +464,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdministratorListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.administratorName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -485,9 +485,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts index 260db69cfe74..f34b126aae69 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -128,6 +128,24 @@ export class ServerAzureADOnlyAuthenticationsImpl } } + /** + * Gets a list of server Azure Active Directory only authentications. + * @param resourceGroupName The name of the resource group that contains 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?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a specific Azure Active Directory only authentication property. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -349,24 +367,6 @@ export class ServerAzureADOnlyAuthenticationsImpl return poller.pollUntilDone(); } - /** - * Gets a list of server Azure Active Directory only authentications. - * @param resourceGroupName The name of the resource group that contains 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?: ServerAzureADOnlyAuthenticationsListByServerOptionalParams - ): 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 @@ -390,6 +390,26 @@ export class ServerAzureADOnlyAuthenticationsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", @@ -400,12 +420,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.authenticationName ], headerParameters: [Parameters.accept], @@ -430,16 +450,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters46, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.authenticationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -448,34 +468,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.authenticationName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AzureADOnlyAuthListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.authenticationName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -489,9 +489,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts index 6339fe76d765..35d1d6913f2b 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -292,12 +292,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -312,12 +312,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], headerParameters: [Parameters.accept], @@ -342,16 +342,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters72, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.blobAuditingPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -366,9 +366,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts index 8ffd26807448..380b7575d4a9 100644 --- a/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts +++ b/sdk/sql/arm-sql/src/operations/serverConfigurationOptions.ts @@ -315,11 +315,11 @@ const listByManagedInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -335,11 +335,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.serverConfigurationOptionName ], @@ -365,16 +365,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters93, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.serverConfigurationOptionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -389,8 +389,8 @@ const listByManagedInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts index 282c76a0dac4..cfc8cbcb806e 100644 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts @@ -126,6 +126,24 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { } } + /** + * Lists connection 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 options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerConnectionPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server connection policy * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -254,24 +272,6 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { return poller.pollUntilDone(); } - /** - * Lists connection 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 options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerConnectionPoliciesListByServerOptionalParams - ): 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 @@ -295,6 +295,26 @@ export class ServerConnectionPoliciesImpl implements ServerConnectionPolicies { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerConnectionPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", @@ -305,12 +325,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.connectionPolicyName ], headerParameters: [Parameters.accept], @@ -335,39 +355,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters66, - queryParameters: [Parameters.apiVersion5], + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.connectionPolicyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion5], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -379,9 +379,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts index 2c5cfdefbeea..1b7f87cf6fef 100644 --- a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -307,12 +307,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -327,12 +327,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.devOpsAuditingSettingsName ], headerParameters: [Parameters.accept], @@ -357,16 +357,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters47, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters84, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.devOpsAuditingSettingsName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -381,9 +381,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index dd82f2d37abc..bbf5904d8655 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -129,6 +129,24 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { } } + /** + * Gets a list of server DNS aliases for 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 that the alias is pointing to. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: ServerDnsAliasesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -335,24 +353,6 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { return poller.pollUntilDone(); } - /** - * Gets a list of server DNS aliases for 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 that the alias is pointing to. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: ServerDnsAliasesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Acquires server DNS alias from another server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -484,6 +484,26 @@ export class ServerDnsAliasesImpl implements ServerDnsAliases { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerDnsAliasListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", @@ -494,12 +514,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], headerParameters: [Parameters.accept], @@ -524,12 +544,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], headerParameters: [Parameters.accept], @@ -540,34 +560,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.dnsAliasName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAliasListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.dnsAliasName ], - headerParameters: [Parameters.accept], serializer }; const acquireOperationSpec: coreClient.OperationSpec = { @@ -589,16 +589,16 @@ const acquireOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters48, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters85, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.dnsAliasName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -613,9 +613,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts index a78a39bb05b3..a88d19bc2a3d 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -394,12 +394,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -414,12 +414,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], headerParameters: [Parameters.accept], @@ -444,16 +444,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters49, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -462,12 +462,12 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.keyName ], serializer @@ -483,9 +483,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts index 013860eb26bc..9cf84209a1c2 100644 --- a/sdk/sql/arm-sql/src/operations/serverOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -166,12 +166,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -187,9 +187,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts index 083cc3b56407..8949c555685b 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -24,7 +24,7 @@ import { ServerSecurityAlertPoliciesListByServerNextOptionalParams, ServerSecurityAlertPoliciesListByServerOptionalParams, ServerSecurityAlertPoliciesListByServerResponse, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ServerSecurityAlertPoliciesGetOptionalParams, ServerSecurityAlertPoliciesGetResponse, ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -127,6 +127,24 @@ export class ServerSecurityAlertPoliciesImpl } } + /** + * Get the server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains 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?: ServerSecurityAlertPoliciesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Get a server's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -138,7 +156,7 @@ export class ServerSecurityAlertPoliciesImpl get( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -159,7 +177,7 @@ export class ServerSecurityAlertPoliciesImpl async beginCreateOrUpdate( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -241,7 +259,7 @@ export class ServerSecurityAlertPoliciesImpl async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise { @@ -255,24 +273,6 @@ export class ServerSecurityAlertPoliciesImpl return poller.pollUntilDone(); } - /** - * Get the server's threat detection policies. - * @param resourceGroupName The name of the resource group that contains 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?: ServerSecurityAlertPoliciesListByServerOptionalParams - ): 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 @@ -296,6 +296,26 @@ export class ServerSecurityAlertPoliciesImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -306,13 +326,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.securityAlertPolicyName + Parameters.subscriptionId, + Parameters.securityAlertPolicyName1 ], headerParameters: [Parameters.accept], serializer @@ -336,37 +356,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters50, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters87, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.securityAlertPolicyName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.securityAlertPolicyName1 ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -380,9 +380,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts index febef7f29788..be7f056a16d6 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustCertificates.ts @@ -405,11 +405,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -425,11 +425,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], @@ -455,16 +455,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters68, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters88, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -473,11 +473,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustCertificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.certificateName ], @@ -494,8 +494,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts index d1f385155bed..ee96e98174c3 100644 --- a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -219,6 +219,24 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { } } + /** + * Lists a server trust 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 locationName The name of the region where the resource is located. + * @param options The options parameters. + */ + private _listByLocation( + resourceGroupName: string, + locationName: string, + options?: ServerTrustGroupsListByLocationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, locationName, options }, + listByLocationOperationSpec + ); + } + /** * Gets a server trust group. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -436,24 +454,6 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { return poller.pollUntilDone(); } - /** - * Lists a server trust 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 locationName The name of the region where the resource is located. - * @param options The options parameters. - */ - private _listByLocation( - resourceGroupName: string, - locationName: string, - options?: ServerTrustGroupsListByLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByLocationOperationSpec - ); - } - /** * Gets a server trust groups by instance name. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -515,6 +515,26 @@ export class ServerTrustGroupsImpl implements ServerTrustGroups { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", @@ -525,11 +545,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], @@ -555,16 +575,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters51, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters89, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -573,36 +593,16 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.serverTrustGroupName ], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerTrustGroupListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByInstanceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustGroups", @@ -613,11 +613,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -634,8 +634,8 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName ], @@ -653,8 +653,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/serverUsages.ts b/sdk/sql/arm-sql/src/operations/serverUsages.ts index f4b83e359898..aa7d28217d4d 100644 --- a/sdk/sql/arm-sql/src/operations/serverUsages.ts +++ b/sdk/sql/arm-sql/src/operations/serverUsages.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ServerUsages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,8 +15,10 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { ServerUsage, + ServerUsagesListByServerNextOptionalParams, ServerUsagesListByServerOptionalParams, - ServerUsagesListByServerResponse + ServerUsagesListByServerResponse, + ServerUsagesListByServerNextResponse } from "../models"; /// @@ -32,7 +35,7 @@ export class ServerUsagesImpl implements ServerUsages { } /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -73,11 +76,29 @@ export class ServerUsagesImpl implements ServerUsages { resourceGroupName: string, serverName: string, options?: ServerUsagesListByServerOptionalParams, - _settings?: PageSettings + settings?: PageSettings ): AsyncIterableIterator { let result: ServerUsagesListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; + 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( @@ -95,7 +116,7 @@ export class ServerUsagesImpl implements ServerUsages { } /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -111,6 +132,26 @@ export class ServerUsagesImpl implements ServerUsages { listByServerOperationSpec ); } + + /** + * 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?: ServerUsagesListByServerNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, nextLink, options }, + listByServerNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -122,14 +163,34 @@ const listByServerOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.ServerUsageListResult - } + }, + default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerUsageListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 0247857673f4..96df0a704208 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -122,6 +122,24 @@ export class ServerVulnerabilityAssessmentsImpl } } + /** + * Lists the 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?: ServerVulnerabilityAssessmentsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets the server's vulnerability assessment. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -192,24 +210,6 @@ export class ServerVulnerabilityAssessmentsImpl ); } - /** - * Lists the 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?: ServerVulnerabilityAssessmentsListByServerOptionalParams - ): 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 @@ -233,6 +233,26 @@ export class ServerVulnerabilityAssessmentsImpl // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", @@ -243,12 +263,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -267,16 +287,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters52, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -285,34 +305,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.vulnerabilityAssessmentName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -326,9 +326,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index 46c3d2d75ef3..a6058e65e2b5 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -757,10 +757,10 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters94, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -773,7 +773,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -788,11 +788,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -807,12 +807,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1, Parameters.expand], + queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -836,15 +836,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters95, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters92, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -853,12 +853,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], serializer }; @@ -881,15 +881,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters96, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters93, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -912,15 +912,15 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters97, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters94, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -943,12 +943,12 @@ const refreshStatusOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -981,8 +981,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts b/sdk/sql/arm-sql/src/operations/serviceObjectives.ts deleted file mode 100644 index f0dc3077156f..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts +++ /dev/null @@ -1,178 +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 { ServiceObjectives } 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 { - ServiceObjective, - ServiceObjectivesListByServerOptionalParams, - ServiceObjectivesListByServerResponse, - ServiceObjectivesGetOptionalParams, - ServiceObjectivesGetResponse -} from "../models"; - -/// -/** Class containing ServiceObjectives operations. */ -export class ServiceObjectivesImpl implements ServiceObjectives { - private readonly client: SqlManagementClient; - - /** - * Initialize a new instance of the class ServiceObjectives class. - * @param client Reference to the service client - */ - constructor(client: SqlManagementClient) { - this.client = client; - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains 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?: ServiceObjectivesListByServerOptionalParams - ): 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?: ServiceObjectivesListByServerOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: ServiceObjectivesListByServerResponse; - result = await this._listByServer(resourceGroupName, serverName, options); - yield result.value || []; - } - - private async *listByServerPagingAll( - resourceGroupName: string, - serverName: string, - options?: ServiceObjectivesListByServerOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByServerPagingPage( - resourceGroupName, - serverName, - options - )) { - yield* page; - } - } - - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - serviceObjectiveName: string, - options?: ServiceObjectivesGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, serviceObjectiveName, options }, - getOperationSpec - ); - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains 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?: ServiceObjectivesListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceObjective - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.serviceObjectiveName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ServiceObjectiveListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts index 6c700e8f6490..6a6e1323a743 100644 --- a/sdk/sql/arm-sql/src/operations/sqlAgent.ts +++ b/sdk/sql/arm-sql/src/operations/sqlAgent.ts @@ -82,11 +82,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -102,15 +102,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters53, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters95, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts index 3a32625f2cb1..15aae44b6e82 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaseline.ts @@ -228,12 +228,12 @@ const listBySqlVulnerabilityAssessmentOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -249,14 +249,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -273,9 +273,9 @@ const listBySqlVulnerabilityAssessmentNextOperationSpec: coreClient.OperationSpe }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts index 2ae82337599a..c18709105d0a 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentBaselines.ts @@ -76,17 +76,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters103, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], - headerParameters: [Parameters.contentType, Parameters.accept], + 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 index 301b471e9641..687b90b42624 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts @@ -137,12 +137,12 @@ const executeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/initiateScan", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts index cae89b6a3181..50c81e5f7a4d 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts @@ -285,14 +285,14 @@ const listByBaselineOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer @@ -307,15 +307,15 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], headerParameters: [Parameters.accept], serializer @@ -330,18 +330,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters104, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -357,12 +357,12 @@ const listByBaselineNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName, - Parameters.baselineName1 + Parameters.baselineName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts index f97474de76cb..79ac40471908 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts @@ -69,15 +69,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}/baselines/{baselineName}/rules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName1 + Parameters.baselineName, + Parameters.ruleId ], serializer }; diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts index a56c63b802f9..7081e7ae0c18 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts @@ -15,7 +15,7 @@ import * as Parameters from "../models/parameters"; import { SqlManagementClient } from "../sqlManagementClient"; import { SqlVulnerabilityAssessmentScanResults, - SQLVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentName, SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams, SqlVulnerabilityAssessmentScanResultListByScanOptionalParams, SqlVulnerabilityAssessmentScanResultListByScanResponse, @@ -50,7 +50,7 @@ export class SqlVulnerabilityAssessmentScanResultImpl public listByScan( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): PagedAsyncIterableIterator { @@ -87,7 +87,7 @@ export class SqlVulnerabilityAssessmentScanResultImpl private async *listByScanPagingPage( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams, settings?: PageSettings @@ -126,7 +126,7 @@ export class SqlVulnerabilityAssessmentScanResultImpl private async *listByScanPagingAll( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): AsyncIterableIterator { @@ -153,7 +153,7 @@ export class SqlVulnerabilityAssessmentScanResultImpl private _listByScan( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): Promise { @@ -182,7 +182,7 @@ export class SqlVulnerabilityAssessmentScanResultImpl get( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: SqlVulnerabilityAssessmentScanResultGetOptionalParams @@ -213,7 +213,7 @@ export class SqlVulnerabilityAssessmentScanResultImpl private _listByScanNext( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, nextLink: string, options?: SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams @@ -244,14 +244,14 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer @@ -266,14 +266,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.scanId, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName1, + Parameters.scanId, Parameters.scanResultId ], headerParameters: [Parameters.accept], @@ -290,12 +290,12 @@ const listByScanNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.scanId, - Parameters.vulnerabilityAssessmentName1 + Parameters.vulnerabilityAssessmentName1, + Parameters.scanId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts index 595448cda75d..93f8dc4ea0c8 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -226,12 +226,12 @@ const listBySqlVulnerabilityAssessmentsOperationSpec: coreClient.OperationSpec = }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], headerParameters: [Parameters.accept], @@ -247,12 +247,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8, Parameters.systemDatabaseName], + queryParameters: [Parameters.apiVersion, Parameters.systemDatabaseName], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName, Parameters.scanId ], @@ -270,9 +270,9 @@ const listBySqlVulnerabilityAssessmentsNextOperationSpec: coreClient.OperationSp }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.vulnerabilityAssessmentName ], diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts index dbbda10f99b5..03e1a5319ed1 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessments.ts @@ -57,12 +57,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/sqlVulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], serializer diff --git a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts index c2c1cd6bd25b..fbff9b435526 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentsSettings.ts @@ -221,12 +221,12 @@ const listByServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -241,13 +241,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.vulnerabilityAssessmentName2 + Parameters.subscriptionId, + Parameters.vulnerabilityAssessmentName1 ], headerParameters: [Parameters.accept], serializer @@ -265,16 +265,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters105, - queryParameters: [Parameters.apiVersion8], + requestBody: Parameters.parameters96, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -289,9 +289,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts index 9c59b042e8ec..01162434a149 100644 --- a/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts +++ b/sdk/sql/arm-sql/src/operations/startStopManagedInstanceSchedules.ts @@ -255,11 +255,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -275,11 +275,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], @@ -299,16 +299,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters98, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters97, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -317,11 +317,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/{startStopScheduleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.startStopScheduleName ], @@ -338,8 +338,8 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.managedInstanceName ], diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index c81d4a018732..379b8de8a0eb 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.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], 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 index 0afc123924ac..399513c4407d 100644 --- a/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts +++ b/sdk/sql/arm-sql/src/operations/synapseLinkWorkspaces.ts @@ -183,13 +183,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -205,10 +205,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index cf38ba59ef0a..0418b99a70ee 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -227,6 +227,24 @@ export class SyncAgentsImpl implements SyncAgents { } } + /** + * Lists sync agents in 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 on which the sync agent is hosted. + * @param options The options parameters. + */ + private _listByServer( + resourceGroupName: string, + serverName: string, + options?: SyncAgentsListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a sync agent. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -444,24 +462,6 @@ export class SyncAgentsImpl implements SyncAgents { return poller.pollUntilDone(); } - /** - * Lists sync agents in 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 on which the sync agent is hosted. - * @param options The options parameters. - */ - private _listByServer( - resourceGroupName: string, - serverName: string, - options?: SyncAgentsListByServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, options }, - listByServerOperationSpec - ); - } - /** * Generates a sync agent key. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -547,6 +547,26 @@ export class SyncAgentsImpl implements SyncAgents { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncAgentListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", @@ -557,12 +577,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -587,16 +607,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters54, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters98, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -605,34 +625,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.syncAgentName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncAgentListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.syncAgentName ], - headerParameters: [Parameters.accept], serializer }; const generateKeyOperationSpec: coreClient.OperationSpec = { @@ -645,12 +645,12 @@ const generateKeyOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -666,12 +666,12 @@ const listLinkedDatabasesOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.syncAgentName ], headerParameters: [Parameters.accept], @@ -688,9 +688,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], @@ -707,9 +707,9 @@ const listLinkedDatabasesNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncAgentName ], diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts index 5c49f2c47c3d..9808ce53a97d 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -24,6 +24,10 @@ import { SyncGroupsListSyncDatabaseIdsNextOptionalParams, SyncGroupsListSyncDatabaseIdsOptionalParams, SyncGroupsListSyncDatabaseIdsResponse, + SyncGroup, + SyncGroupsListByDatabaseNextOptionalParams, + SyncGroupsListByDatabaseOptionalParams, + SyncGroupsListByDatabaseResponse, SyncFullSchemaProperties, SyncGroupsListHubSchemasNextOptionalParams, SyncGroupsListHubSchemasOptionalParams, @@ -33,13 +37,6 @@ import { SyncGroupsType, SyncGroupsListLogsOptionalParams, SyncGroupsListLogsResponse, - SyncGroup, - SyncGroupsListByDatabaseNextOptionalParams, - SyncGroupsListByDatabaseOptionalParams, - SyncGroupsListByDatabaseResponse, - SyncGroupsRefreshHubSchemaOptionalParams, - SyncGroupsCancelSyncOptionalParams, - SyncGroupsTriggerSyncOptionalParams, SyncGroupsGetOptionalParams, SyncGroupsGetResponse, SyncGroupsCreateOrUpdateOptionalParams, @@ -47,10 +44,13 @@ import { SyncGroupsDeleteOptionalParams, SyncGroupsUpdateOptionalParams, SyncGroupsUpdateResponse, + SyncGroupsCancelSyncOptionalParams, + SyncGroupsRefreshHubSchemaOptionalParams, + SyncGroupsTriggerSyncOptionalParams, SyncGroupsListSyncDatabaseIdsNextResponse, + SyncGroupsListByDatabaseNextResponse, SyncGroupsListHubSchemasNextResponse, - SyncGroupsListLogsNextResponse, - SyncGroupsListByDatabaseNextResponse + SyncGroupsListLogsNextResponse } from "../models"; /// @@ -136,26 +136,23 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Gets a collection of hub database schemas. + * Lists sync groups under a hub 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 on which the sync group is hosted. - * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - public listHubSchemas( + public listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listHubSchemasPagingAll( + options?: SyncGroupsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( resourceGroupName, serverName, databaseName, - syncGroupName, options ); return { @@ -169,11 +166,10 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listHubSchemasPagingPage( + return this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, - syncGroupName, options, settings ); @@ -181,22 +177,20 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listHubSchemasPagingPage( + private async *listByDatabasePagingPage( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams, + options?: SyncGroupsListByDatabaseOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListHubSchemasResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListByDatabaseResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listHubSchemas( + result = await this._listByDatabase( resourceGroupName, serverName, databaseName, - syncGroupName, options ); let page = result.value || []; @@ -205,11 +199,10 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listHubSchemasNext( + result = await this._listByDatabaseNext( resourceGroupName, serverName, databaseName, - syncGroupName, continuationToken, options ); @@ -220,18 +213,16 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listHubSchemasPagingAll( + private async *listByDatabasePagingAll( resourceGroupName: string, serverName: string, databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listHubSchemasPagingPage( + options?: SyncGroupsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( resourceGroupName, serverName, databaseName, - syncGroupName, options )) { yield* page; @@ -239,35 +230,26 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Gets a collection of sync group logs. + * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param startTime Get logs generated after this time. - * @param endTime Get logs generated before this time. - * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ - public listLogs( + public listHubSchemas( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listLogsPagingAll( + options?: SyncGroupsListHubSchemasOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listHubSchemasPagingAll( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options ); return { @@ -281,14 +263,11 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listLogsPagingPage( + return this.listHubSchemasPagingPage( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options, settings ); @@ -296,28 +275,22 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listLogsPagingPage( + private async *listHubSchemasPagingPage( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams, + options?: SyncGroupsListHubSchemasOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListLogsResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListHubSchemasResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listLogs( + result = await this._listHubSchemas( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options ); let page = result.value || []; @@ -326,7 +299,7 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listLogsNext( + result = await this._listHubSchemasNext( resourceGroupName, serverName, databaseName, @@ -341,24 +314,18 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listLogsPagingAll( + private async *listHubSchemasPagingAll( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listLogsPagingPage( + options?: SyncGroupsListHubSchemasOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listHubSchemasPagingPage( resourceGroupName, serverName, databaseName, syncGroupName, - startTime, - endTime, - typeParam, options )) { yield* page; @@ -366,23 +333,35 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Lists sync groups under a hub database. + * Gets a collection of sync group logs. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param typeParam The types of logs to retrieve. * @param options The options parameters. */ - public listByDatabase( + public listLogs( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabasePagingAll( + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listLogsPagingAll( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options ); return { @@ -396,10 +375,14 @@ export class SyncGroupsImpl implements SyncGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByDatabasePagingPage( + return this.listLogsPagingPage( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options, settings ); @@ -407,20 +390,28 @@ export class SyncGroupsImpl implements SyncGroups { }; } - private async *listByDatabasePagingPage( + private async *listLogsPagingPage( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams, + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { - let result: SyncGroupsListByDatabaseResponse; + ): AsyncIterableIterator { + let result: SyncGroupsListLogsResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByDatabase( + result = await this._listLogs( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options ); let page = result.value || []; @@ -429,10 +420,11 @@ export class SyncGroupsImpl implements SyncGroups { yield page; } while (continuationToken) { - result = await this._listByDatabaseNext( + result = await this._listLogsNext( resourceGroupName, serverName, databaseName, + syncGroupName, continuationToken, options ); @@ -443,16 +435,24 @@ export class SyncGroupsImpl implements SyncGroups { } } - private async *listByDatabasePagingAll( + private async *listLogsPagingAll( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabasePagingPage( + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listLogsPagingPage( resourceGroupName, serverName, databaseName, + syncGroupName, + startTime, + endTime, + typeParam, options )) { yield* page; @@ -475,7 +475,27 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Refreshes a hub database schema. + * Lists sync groups under a hub 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 on which the sync group is hosted. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SyncGroupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + + /** + * Gets a sync 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 serverName The name of the server. @@ -483,17 +503,46 @@ export class SyncGroupsImpl implements SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - async beginRefreshHubSchema( + get( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise, void>> { + options?: SyncGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a sync 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 serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -536,11 +585,15 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, + parameters, options }, - spec: refreshHubSchemaOperationSpec + spec: createOrUpdateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + SyncGroupsCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -549,183 +602,54 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Refreshes a hub database schema. + * Creates or updates a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginRefreshHubSchemaAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise { - const poller = await this.beginRefreshHubSchema( + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, serverName, databaseName, syncGroupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Gets a collection of hub database schemas. - * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - private _listHubSchemas( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsListHubSchemasOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - listHubSchemasOperationSpec - ); - } - - /** - * Gets a collection of sync group logs. - * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param startTime Get logs generated after this time. - * @param endTime Get logs generated before this time. - * @param typeParam The types of logs to retrieve. - * @param options The options parameters. - */ - private _listLogs( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - startTime: string, - endTime: string, - typeParam: SyncGroupsType, - options?: SyncGroupsListLogsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - startTime, - endTime, - typeParam, - options - }, - listLogsOperationSpec - ); - } - - /** - * Cancels a sync group synchronization. - * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - cancelSync( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsCancelSyncOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - cancelSyncOperationSpec - ); - } - - /** - * Triggers a sync group synchronization. - * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - triggerSync( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsTriggerSyncOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - triggerSyncOperationSpec - ); - } - - /** - * Gets a sync 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 serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncGroupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - getOperationSpec - ); - } - - /** - * Creates or updates a sync group. + * Deletes a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginDelete( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsCreateOrUpdateResponse - > - > { + options?: SyncGroupsDeleteOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -768,15 +692,11 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, - parameters, options }, - spec: createOrUpdateOperationSpec + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - SyncGroupsCreateOrUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -785,54 +705,58 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Creates or updates a sync group. + * Deletes a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: SyncGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( resourceGroupName, serverName, databaseName, syncGroupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Deletes a sync group. + * Updates a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginDelete( + async beginUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise, void>> { + parameters: SyncGroup, + options?: SyncGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -875,11 +799,15 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, + parameters, options }, - spec: deleteOperationSpec + spec: updateOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + SyncGroupsUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -888,58 +816,135 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Deletes a sync group. + * Updates a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: SyncGroup, + options?: SyncGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( resourceGroupName, serverName, databaseName, syncGroupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Updates a sync group. + * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginUpdate( + cancelSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsUpdateResponse - > - > { + options?: SyncGroupsCancelSyncOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + cancelSyncOperationSpec + ); + } + + /** + * Gets a collection of hub database schemas. + * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + private _listHubSchemas( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncGroupsListHubSchemasOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + listHubSchemasOperationSpec + ); + } + + /** + * Gets a collection of sync group logs. + * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param typeParam The types of logs to retrieve. + * @param options The options parameters. + */ + private _listLogs( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + startTime: string, + endTime: string, + typeParam: SyncGroupsType, + options?: SyncGroupsListLogsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + syncGroupName, + startTime, + endTime, + typeParam, + options + }, + listLogsOperationSpec + ); + } + + /** + * Refreshes a hub database schema. + * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + async beginRefreshHubSchema( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -982,15 +987,11 @@ export class SyncGroupsImpl implements SyncGroups { serverName, databaseName, syncGroupName, - parameters, options }, - spec: updateOperationSpec + spec: refreshHubSchemaOperationSpec }); - const poller = await createHttpPoller< - SyncGroupsUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -999,51 +1000,50 @@ export class SyncGroupsImpl implements SyncGroups { } /** - * Updates a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - async beginUpdateAndWait( + async beginRefreshHubSchemaAndWait( resourceGroupName: string, serverName: string, - databaseName: string, - syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + databaseName: string, + syncGroupName: string, + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise { + const poller = await this.beginRefreshHubSchema( resourceGroupName, serverName, databaseName, syncGroupName, - parameters, options ); return poller.pollUntilDone(); } /** - * Lists sync groups under a hub database. + * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. + * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - private _listByDatabase( + triggerSync( resourceGroupName: string, serverName: string, databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): Promise { + syncGroupName: string, + options?: SyncGroupsTriggerSyncOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, options }, - listByDatabaseOperationSpec + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + triggerSyncOperationSpec ); } @@ -1064,6 +1064,28 @@ export class SyncGroupsImpl implements SyncGroups { ); } + /** + * 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 on which the sync group is hosted. + * @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?: SyncGroupsListByDatabaseNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, nextLink, options }, + listByDatabaseNextOperationSpec + ); + } + /** * ListHubSchemasNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1125,28 +1147,6 @@ export class SyncGroupsImpl implements SyncGroups { listLogsNextOperationSpec ); } - - /** - * 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 on which the sync group is hosted. - * @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?: SyncGroupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, nextLink, options }, - listByDatabaseNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -1161,7 +1161,7 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1170,104 +1170,27 @@ const listSyncDatabaseIdsOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { - path: - "/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], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; -const listHubSchemasOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listLogsOperationSpec: coreClient.OperationSpec = { +const listByDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupLogListResult + bodyMapper: Mappers.SyncGroupListResult }, default: {} }, - queryParameters: [ - Parameters.apiVersion2, - Parameters.startTime1, - Parameters.endTime1, - Parameters.typeParam, - Parameters.continuationToken - ], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer }; -const cancelSyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; -const triggerSyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", - httpMethod: "POST", - responses: { 200: {}, default: {} }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName - ], - serializer -}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", @@ -1278,13 +1201,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], headerParameters: [Parameters.accept], @@ -1309,17 +1232,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters99, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1328,13 +1251,13 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], serializer @@ -1358,41 +1281,118 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters55, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters99, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const cancelSyncOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; +const listHubSchemasOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupListResult + bodyMapper: Mappers.SyncFullSchemaPropertiesListResult }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId, + Parameters.syncGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listLogsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncGroupLogListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.startTime1, + Parameters.endTime1, + Parameters.typeParam, + Parameters.continuationToken + ], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer }; +const refreshHubSchemaOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", + httpMethod: "POST", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; +const triggerSyncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", + httpMethod: "POST", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + serializer +}; const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1411,64 +1411,64 @@ const listSyncDatabaseIdsNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { +const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult + bodyMapper: Mappers.SyncGroupListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.nextLink, - Parameters.syncGroupName + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listLogsNextOperationSpec: coreClient.OperationSpec = { +const listHubSchemasNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupLogListResult + bodyMapper: Mappers.SyncFullSchemaPropertiesListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer }; -const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { +const listLogsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SyncGroupListResult + bodyMapper: Mappers.SyncGroupLogListResult }, default: {} }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.syncGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts index 04387805936e..9d7545adbcca 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -268,6 +268,28 @@ export class SyncMembersImpl implements SyncMembers { } } + /** + * Lists sync members in the given sync 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 serverName The name of the server. + * @param databaseName The name of the database on which the sync group is hosted. + * @param syncGroupName The name of the sync group. + * @param options The options parameters. + */ + private _listBySyncGroup( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + options?: SyncMembersListBySyncGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, syncGroupName, options }, + listBySyncGroupOperationSpec + ); + } + /** * Gets a sync member. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -645,59 +667,6 @@ export class SyncMembersImpl implements SyncMembers { return poller.pollUntilDone(); } - /** - * Lists sync members in the given sync 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 serverName The name of the server. - * @param databaseName The name of the database on which the sync group is hosted. - * @param syncGroupName The name of the sync group. - * @param options The options parameters. - */ - private _listBySyncGroup( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - options?: SyncMembersListBySyncGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serverName, databaseName, syncGroupName, options }, - listBySyncGroupOperationSpec - ); - } - - /** - * Gets a sync member database schema. - * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. - * @param syncGroupName The name of the sync group on which the sync member is hosted. - * @param syncMemberName The name of the sync member. - * @param options The options parameters. - */ - private _listMemberSchemas( - resourceGroupName: string, - serverName: string, - databaseName: string, - syncGroupName: string, - syncMemberName: string, - options?: SyncMembersListMemberSchemasOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - listMemberSchemasOperationSpec - ); - } - /** * Refreshes a sync member database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -804,6 +773,37 @@ export class SyncMembersImpl implements SyncMembers { return poller.pollUntilDone(); } + /** + * Gets a sync member database schema. + * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. + * @param syncGroupName The name of the sync group on which the sync member is hosted. + * @param syncMemberName The name of the sync member. + * @param options The options parameters. + */ + private _listMemberSchemas( + resourceGroupName: string, + serverName: string, + databaseName: string, + syncGroupName: string, + syncMemberName: string, + options?: SyncMembersListMemberSchemasOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + syncGroupName, + syncMemberName, + options + }, + listMemberSchemasOperationSpec + ); + } + /** * ListBySyncGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -872,6 +872,28 @@ export class SyncMembersImpl implements SyncMembers { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listBySyncGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SyncMemberListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.syncGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", @@ -882,13 +904,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], @@ -914,18 +936,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -934,13 +956,13 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], @@ -965,41 +987,36 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters56, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters100, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.syncGroupName, Parameters.syncMemberName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const listBySyncGroupOperationSpec: coreClient.OperationSpec = { +const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SyncMemberListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], + "/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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName + Parameters.subscriptionId, + Parameters.syncGroupName, + Parameters.syncMemberName ], - headerParameters: [Parameters.accept], serializer }; const listMemberSchemasOperationSpec: coreClient.OperationSpec = { @@ -1012,34 +1029,17 @@ const listMemberSchemasOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName - ], - headerParameters: [Parameters.accept], - serializer -}; -const refreshMemberSchemaOperationSpec: coreClient.OperationSpec = { - path: - "/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], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, Parameters.syncGroupName, Parameters.syncMemberName ], + headerParameters: [Parameters.accept], serializer }; const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { @@ -1053,10 +1053,10 @@ const listBySyncGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName ], @@ -1074,10 +1074,10 @@ const listMemberSchemasNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.syncGroupName, Parameters.syncMemberName diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index 5742260419be..58cbde8a3a5a 100644 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts @@ -128,13 +128,13 @@ const createOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/tdeCertificates", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.contentType], mediaType: "json", diff --git a/sdk/sql/arm-sql/src/operations/timeZones.ts b/sdk/sql/arm-sql/src/operations/timeZones.ts index 56026f2bf621..2cb598dd6fd3 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.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], 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 fab2b91250dd..dbf9b284e19b 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -336,13 +336,13 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -357,13 +357,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.tdeName ], headerParameters: [Parameters.accept], @@ -388,17 +388,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters99, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters101, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.tdeName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -413,10 +413,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/usages.ts b/sdk/sql/arm-sql/src/operations/usages.ts index b2be9a59c7bb..06ce5078b66c 100644 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ b/sdk/sql/arm-sql/src/operations/usages.ts @@ -170,11 +170,11 @@ const listByInstancePoolOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion4, Parameters.expandChildren], + queryParameters: [Parameters.apiVersion, Parameters.expandChildren], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.instancePoolName ], headerParameters: [Parameters.accept], @@ -191,8 +191,8 @@ const listByInstancePoolNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.instancePoolName ], diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts index 051d774412c9..3757b1fcdf5b 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -539,7 +539,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -554,11 +554,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -573,11 +573,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], headerParameters: [Parameters.accept], @@ -588,11 +588,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], serializer @@ -616,15 +616,15 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters83, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters102, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -647,11 +647,11 @@ const updateDnsServersOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.virtualClusterName ], headerParameters: [Parameters.accept], @@ -685,8 +685,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index f469ce039851..4a096d2dceda 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts @@ -126,6 +126,24 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { } } + /** + * Gets a list of virtual network rules in 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?: VirtualNetworkRulesListByServerOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, options }, + listByServerOperationSpec + ); + } + /** * Gets a virtual network rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -343,24 +361,6 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { return poller.pollUntilDone(); } - /** - * Gets a list of virtual network rules in 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?: VirtualNetworkRulesListByServerOptionalParams - ): 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 @@ -384,6 +384,26 @@ export class VirtualNetworkRulesImpl implements VirtualNetworkRules { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRuleListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", @@ -394,12 +414,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.virtualNetworkRuleName ], headerParameters: [Parameters.accept], @@ -424,16 +444,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters57, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters103, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.virtualNetworkRuleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -442,34 +462,14 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.virtualNetworkRuleName - ], - serializer -}; -const listByServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.virtualNetworkRuleName ], - headerParameters: [Parameters.accept], serializer }; const listByServerNextOperationSpec: coreClient.OperationSpec = { @@ -483,9 +483,9 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts index 0f26287cb527..3097b5c07774 100644 --- a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -148,6 +148,34 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { } } + /** + * Gets the list of workload classifiers for a workload 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 serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifiers from. + * @param options The options parameters. + */ + private _listByWorkloadGroup( + resourceGroupName: string, + serverName: string, + databaseName: string, + workloadGroupName: string, + options?: WorkloadClassifiersListByWorkloadGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + options + }, + listByWorkloadGroupOperationSpec + ); + } + /** * Gets a workload classifier * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -405,34 +433,6 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { return poller.pollUntilDone(); } - /** - * Gets the list of workload classifiers for a workload 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 serverName The name of the server. - * @param databaseName The name of the database. - * @param workloadGroupName The name of the workload group from which to receive the classifiers from. - * @param options The options parameters. - */ - private _listByWorkloadGroup( - resourceGroupName: string, - serverName: string, - databaseName: string, - workloadGroupName: string, - options?: WorkloadClassifiersListByWorkloadGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - workloadGroupName, - options - }, - listByWorkloadGroupOperationSpec - ); - } - /** * ListByWorkloadGroupNext * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -467,6 +467,28 @@ export class WorkloadClassifiersImpl implements WorkloadClassifiers { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifierListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.workloadGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", @@ -477,13 +499,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], @@ -509,18 +531,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters58, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters104, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -529,40 +551,18 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName, Parameters.workloadClassifierName ], serializer }; -const listByWorkloadGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkloadClassifierListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.workloadGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -574,10 +574,10 @@ const listByWorkloadGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.workloadGroupName ], diff --git a/sdk/sql/arm-sql/src/operations/workloadGroups.ts b/sdk/sql/arm-sql/src/operations/workloadGroups.ts index 6c70d693176e..8e424bd55e2d 100644 --- a/sdk/sql/arm-sql/src/operations/workloadGroups.ts +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -139,6 +139,26 @@ export class WorkloadGroupsImpl implements WorkloadGroups { } } + /** + * Gets the list of workload groups + * @param resourceGroupName The name of the resource group that contains 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?: WorkloadGroupsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, databaseName, options }, + listByDatabaseOperationSpec + ); + } + /** * Gets a workload group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -381,26 +401,6 @@ export class WorkloadGroupsImpl implements WorkloadGroups { return poller.pollUntilDone(); } - /** - * Gets the list of workload groups - * @param resourceGroupName The name of the resource group that contains 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?: WorkloadGroupsListByDatabaseOptionalParams - ): 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 @@ -426,6 +426,27 @@ export class WorkloadGroupsImpl implements WorkloadGroups { // 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}/workloadGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroupListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", @@ -436,13 +457,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName ], headerParameters: [Parameters.accept], @@ -467,17 +488,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters59, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters105, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.workloadGroupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -486,36 +507,15 @@ 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.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.workloadGroupName - ], - serializer -}; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkloadGroupListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName + Parameters.workloadGroupName ], - headerParameters: [Parameters.accept], serializer }; const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { @@ -529,10 +529,10 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink ], headerParameters: [Parameters.accept], diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts index c2869cb72d2c..8923ae23a9e2 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingPolicies.ts @@ -7,43 +7,48 @@ */ import { + DataMaskingPolicyName, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse, DataMaskingPolicy, DataMaskingPoliciesCreateOrUpdateOptionalParams, - DataMaskingPoliciesCreateOrUpdateResponse, - DataMaskingPoliciesGetOptionalParams, - DataMaskingPoliciesGetResponse + DataMaskingPoliciesCreateOrUpdateResponse } from "../models"; /** Interface representing a DataMaskingPolicies. */ export interface DataMaskingPolicies { /** - * Creates or updates a database data masking policy + * Gets the database data masking 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 Parameters for creating or updating a data masking policy. + * @param dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, - parameters: DataMaskingPolicy, - options?: DataMaskingPoliciesCreateOrUpdateOptionalParams - ): Promise; + dataMaskingPolicyName: DataMaskingPolicyName, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise; /** - * Gets a database data masking policy. + * Creates or updates a database data masking 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 dataMaskingPolicyName The name of the database for which the data masking policy applies. + * @param parameters Parameters for creating or updating a data masking policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, - options?: DataMaskingPoliciesGetOptionalParams - ): Promise; + dataMaskingPolicyName: DataMaskingPolicyName, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts index 6bf212be628a..6e0a6759777b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/dataMaskingRules.ts @@ -9,6 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DataMaskingRule, + DataMaskingPolicyName, DataMaskingRulesListByDatabaseOptionalParams, DataMaskingRulesCreateOrUpdateOptionalParams, DataMaskingRulesCreateOrUpdateResponse @@ -23,12 +24,14 @@ export interface DataMaskingRules { * 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 dataMaskingPolicyName The name of the database for which the data masking rule applies. * @param options The options parameters. */ listByDatabase( resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, options?: DataMaskingRulesListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** @@ -37,6 +40,7 @@ export interface DataMaskingRules { * 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 dataMaskingPolicyName The name of the database for which the data masking policy applies. * @param dataMaskingRuleName The name of the data masking rule. * @param parameters The required parameters for creating or updating a data masking rule. * @param options The options parameters. @@ -45,6 +49,7 @@ export interface DataMaskingRules { resourceGroupName: string, serverName: string, databaseName: string, + dataMaskingPolicyName: DataMaskingPolicyName, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts index 7a44394d45f9..7a641d988afa 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseExtensionsOperations.ts @@ -51,7 +51,7 @@ export interface DatabaseExtensionsOperations { options?: DatabaseExtensionsGetOptionalParams ): Promise; /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -74,7 +74,7 @@ export interface DatabaseExtensionsOperations { > >; /** - * Perform a database extension operation, like polybase import + * Perform a database extension operation, like database import, database export, or polybase import * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts index f28d111d2a45..0de29f10f985 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SqlVulnerabilityAssessmentScanResults, - SQLVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentName, DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams, DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams, DatabaseSqlVulnerabilityAssessmentScanResultGetResponse @@ -32,7 +32,7 @@ export interface DatabaseSqlVulnerabilityAssessmentScanResult { resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): PagedAsyncIterableIterator; @@ -51,7 +51,7 @@ export interface DatabaseSqlVulnerabilityAssessmentScanResult { resourceGroupName: string, serverName: string, databaseName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts index 867519ccf003..fcab875bd5e4 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databaseVulnerabilityAssessmentScans.ts @@ -12,11 +12,11 @@ import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, - DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, DatabaseVulnerabilityAssessmentScansGetOptionalParams, DatabaseVulnerabilityAssessmentScansGetResponse, DatabaseVulnerabilityAssessmentScansExportOptionalParams, - DatabaseVulnerabilityAssessmentScansExportResponse + DatabaseVulnerabilityAssessmentScansExportResponse, + DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams } from "../models"; /// @@ -39,7 +39,7 @@ export interface DatabaseVulnerabilityAssessmentScans { options?: DatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** - * Executes a Vulnerability Assessment database scan. + * 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. @@ -48,34 +48,34 @@ export interface DatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - beginInitiateScan( + get( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise; /** - * Executes a Vulnerability Assessment database scan. + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains 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 databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ - beginInitiateScanAndWait( + export( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise; /** - * Gets a vulnerability assessment scan record of a database. + * 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. @@ -84,30 +84,30 @@ export interface DatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - get( + beginInitiateScan( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; /** - * Convert an existing scan result to a human readable format. If already exists nothing happens + * 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 scanned database. + * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - export( + beginInitiateScanAndWait( resourceGroupName: string, serverName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: DatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise; + options?: DatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts index 8f79003b89da..f5536fb35b9d 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/databases.ts @@ -9,10 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Metric, - DatabasesListMetricsOptionalParams, - MetricDefinition, - DatabasesListMetricDefinitionsOptionalParams, Database, DatabasesListByServerOptionalParams, DatabasesListByElasticPoolOptionalParams, @@ -44,36 +40,6 @@ import { /// /** Interface representing a Databases. */ export interface Databases { - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains 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 filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - listMetrics( - resourceGroupName: string, - serverName: string, - databaseName: string, - filter: string, - options?: DatabasesListMetricsOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains 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. - */ - listMetricDefinitions( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: DatabasesListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts index 3cb9703777b3..1ca81d4da40a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts @@ -13,11 +13,15 @@ import { DistributedAvailabilityGroupsListByInstanceOptionalParams, DistributedAvailabilityGroupsGetOptionalParams, DistributedAvailabilityGroupsGetResponse, + DistributedAvailabilityGroupsCreateOrUpdateRequestBody, DistributedAvailabilityGroupsCreateOrUpdateOptionalParams, DistributedAvailabilityGroupsCreateOrUpdateResponse, DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, - DistributedAvailabilityGroupsUpdateResponse + DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse } from "../models"; /// @@ -62,7 +66,7 @@ export interface DistributedAvailabilityGroups { resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -83,7 +87,7 @@ export interface DistributedAvailabilityGroups { resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, - parameters: DistributedAvailabilityGroup, + parameters: DistributedAvailabilityGroupsCreateOrUpdateRequestBody, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams ): Promise; /** @@ -151,4 +155,41 @@ export interface DistributedAvailabilityGroups { parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsUpdateOptionalParams ): Promise; + /** + * Sets the role for managed instance in a distributed availability 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 managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + beginSetRole( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DistributedAvailabilityGroupsSetRoleResponse + > + >; + /** + * Sets the role for managed instance in a distributed availability 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 managedInstanceName The name of the managed instance. + * @param distributedAvailabilityGroupName The distributed availability group name. + * @param parameters The distributed availability group set role request parameters. + * @param options The options parameters. + */ + beginSetRoleAndWait( + resourceGroupName: string, + managedInstanceName: string, + distributedAvailabilityGroupName: string, + parameters: DistributedAvailabilityGroupSetRole, + options?: DistributedAvailabilityGroupsSetRoleOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts deleted file mode 100644 index 8ed1453d251f..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolActivities.ts +++ /dev/null @@ -1,32 +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 { - ElasticPoolActivity, - ElasticPoolActivitiesListByElasticPoolOptionalParams -} from "../models"; - -/// -/** Interface representing a ElasticPoolActivities. */ -export interface ElasticPoolActivities { - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains 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 for which to get the current activity. - * @param options The options parameters. - */ - listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts deleted file mode 100644 index c89936b0d92b..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,32 +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 { - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams -} from "../models"; - -/// -/** Interface representing a ElasticPoolDatabaseActivities. */ -export interface ElasticPoolDatabaseActivities { - /** - * Returns activity on databases inside of 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. - */ - listByElasticPool( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolDatabaseActivitiesListByElasticPoolOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts index b541bbe69419..063a1e86a954 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/elasticPools.ts @@ -9,10 +9,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Metric, - ElasticPoolsListMetricsOptionalParams, - MetricDefinition, - ElasticPoolsListMetricDefinitionsOptionalParams, ElasticPool, ElasticPoolsListByServerOptionalParams, ElasticPoolsGetOptionalParams, @@ -29,36 +25,6 @@ import { /// /** Interface representing a ElasticPools. */ export interface ElasticPools { - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains 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 filter An OData filter expression that describes a subset of metrics to return. - * @param options The options parameters. - */ - listMetrics( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - filter: string, - options?: ElasticPoolsListMetricsOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains 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. - */ - listMetricDefinitions( - resourceGroupName: string, - serverName: string, - elasticPoolName: string, - options?: ElasticPoolsListMetricDefinitionsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts index b9045ebd226a..5f8e53550314 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/firewallRules.ts @@ -10,14 +10,14 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { FirewallRule, FirewallRulesListByServerOptionalParams, + FirewallRuleList, + FirewallRulesReplaceOptionalParams, + FirewallRulesReplaceResponse, FirewallRulesGetOptionalParams, FirewallRulesGetResponse, FirewallRulesCreateOrUpdateOptionalParams, FirewallRulesCreateOrUpdateResponse, - FirewallRulesDeleteOptionalParams, - FirewallRuleList, - FirewallRulesReplaceOptionalParams, - FirewallRulesReplaceResponse + FirewallRulesDeleteOptionalParams } from "../models"; /// @@ -35,6 +35,20 @@ export interface FirewallRules { serverName: string, options?: FirewallRulesListByServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Replaces all firewall rules on the 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 parameters A list of server firewall rules. + * @param options The options parameters. + */ + replace( + resourceGroupName: string, + serverName: string, + parameters: FirewallRuleList, + options?: FirewallRulesReplaceOptionalParams + ): Promise; /** * Gets a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -79,18 +93,4 @@ export interface FirewallRules { firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams ): Promise; - /** - * Replaces all firewall rules on the 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 parameters A list of server firewall rules. - * @param options The options parameters. - */ - replace( - resourceGroupName: string, - serverName: string, - parameters: FirewallRuleList, - options?: FirewallRulesReplaceOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts index 597dd83ae5ff..3310663b5299 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/geoBackupPolicies.ts @@ -9,63 +9,63 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { GeoBackupPolicy, - GeoBackupPoliciesListByDatabaseOptionalParams, + GeoBackupPoliciesListOptionalParams, GeoBackupPolicyName, - GeoBackupPoliciesCreateOrUpdateOptionalParams, - GeoBackupPoliciesCreateOrUpdateResponse, GeoBackupPoliciesGetOptionalParams, - GeoBackupPoliciesGetResponse + GeoBackupPoliciesGetResponse, + GeoBackupPoliciesCreateOrUpdateOptionalParams, + GeoBackupPoliciesCreateOrUpdateResponse } from "../models"; /// /** Interface representing a GeoBackupPolicies. */ export interface GeoBackupPolicies { /** - * Returns a list of geo backup policies. + * Gets a list of Geo backup policies for the given database resource. * @param resourceGroupName The name of the resource group that contains 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( + list( resourceGroupName: string, serverName: string, databaseName: string, - options?: GeoBackupPoliciesListByDatabaseOptionalParams + options?: GeoBackupPoliciesListOptionalParams ): PagedAsyncIterableIterator; /** - * Updates a database geo backup policy. + * Gets a Geo backup policy for the given database resource. * @param resourceGroupName The name of the resource group that contains 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 geoBackupPolicyName The name of the geo backup policy. - * @param parameters The required parameters for creating or updating the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - parameters: GeoBackupPolicy, - options?: GeoBackupPoliciesCreateOrUpdateOptionalParams - ): Promise; + options?: GeoBackupPoliciesGetOptionalParams + ): Promise; /** - * Gets a geo backup policy. + * Create or update a database default Geo backup 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 geoBackupPolicyName The name of the geo backup policy. + * @param geoBackupPolicyName The name of the Geo backup policy. This should always be 'Default'. + * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The options parameters. */ - get( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, geoBackupPolicyName: GeoBackupPolicyName, - options?: GeoBackupPoliciesGetOptionalParams - ): Promise; + parameters: GeoBackupPolicy, + options?: GeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts index 511f96805c87..c10041cb37aa 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -6,58 +6,85 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./backupShortTermRetentionPolicies"; +export * from "./serverBlobAuditingPolicies"; +export * from "./databaseBlobAuditingPolicies"; +export * from "./extendedDatabaseBlobAuditingPolicies"; +export * from "./extendedServerBlobAuditingPolicies"; export * from "./dataMaskingPolicies"; export * from "./dataMaskingRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serverUsages"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvancedThreatProtectionSettings"; export * from "./databaseAdvisors"; export * from "./databaseAutomaticTuningOperations"; export * from "./databaseColumns"; +export * from "./databaseEncryptionProtectors"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; export * from "./databaseRecommendedActions"; export * from "./databaseSchemas"; export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseSqlVulnerabilityAssessmentBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; +export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseSqlVulnerabilityAssessmentScanResult"; +export * from "./databaseSqlVulnerabilityAssessmentScans"; +export * from "./databaseSqlVulnerabilityAssessmentsSettings"; export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; export * from "./deletedServers"; +export * from "./distributedAvailabilityGroups"; export * from "./elasticPoolOperations"; +export * from "./elasticPools"; export * from "./encryptionProtectors"; +export * from "./endpointCertificates"; +export * from "./failoverGroups"; export * from "./firewallRules"; +export * from "./geoBackupPolicies"; +export * from "./iPv6FirewallRules"; +export * from "./instanceFailoverGroups"; export * from "./instancePools"; export * from "./jobAgents"; export * from "./jobCredentials"; export * from "./jobExecutions"; -export * from "./jobs"; export * from "./jobStepExecutions"; export * from "./jobSteps"; export * from "./jobTargetExecutions"; export * from "./jobTargetGroups"; export * from "./jobVersions"; +export * from "./jobs"; +export * from "./ledgerDigestUploadsOperations"; export * from "./capabilities"; +export * from "./longTermRetentionBackups"; +export * from "./longTermRetentionManagedInstanceBackups"; export * from "./longTermRetentionPolicies"; export * from "./maintenanceWindowOptionsOperations"; export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; +export * from "./managedDatabaseAdvancedThreatProtectionSettings"; export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseMoveOperations"; export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; export * from "./managedDatabaseTables"; export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessments"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseVulnerabilityAssessments"; +export * from "./managedDatabases"; export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAdvancedThreatProtectionSettings"; export * from "./managedInstanceAzureADOnlyAuthentications"; +export * from "./managedInstanceDtcs"; export * from "./managedInstanceEncryptionProtectors"; export * from "./managedInstanceKeys"; export * from "./managedInstanceLongTermRetentionPolicies"; @@ -66,80 +93,42 @@ export * from "./managedInstancePrivateEndpointConnections"; export * from "./managedInstancePrivateLinkResources"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstances"; +export * from "./managedLedgerDigestUploadsOperations"; export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerDnsAliases"; export * from "./managedServerSecurityAlertPolicies"; +export * from "./networkSecurityPerimeterConfigurations"; export * from "./operations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableDatabases"; export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvancedThreatProtectionSettings"; export * from "./serverAdvisors"; export * from "./serverAutomaticTuningOperations"; export * from "./serverAzureADAdministrators"; export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverConfigurationOptions"; +export * from "./serverConnectionPolicies"; export * from "./serverDevOpsAuditSettings"; export * from "./serverDnsAliases"; export * from "./serverKeys"; export * from "./serverOperations"; export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustCertificates"; export * from "./serverTrustGroups"; +export * from "./serverUsages"; export * from "./serverVulnerabilityAssessments"; -export * from "./sqlAgent"; -export * from "./subscriptionUsages"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./tdeCertificates"; -export * from "./timeZones"; -export * from "./virtualNetworkRules"; -export * from "./workloadClassifiers"; -export * from "./workloadGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./databaseExtensionsOperations"; -export * from "./databaseOperations"; -export * from "./databaseUsages"; -export * from "./ledgerDigestUploadsOperations"; -export * from "./outboundFirewallRules"; -export * from "./usages"; -export * from "./longTermRetentionBackups"; -export * from "./longTermRetentionManagedInstanceBackups"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./serverConnectionPolicies"; -export * from "./distributedAvailabilityGroups"; -export * from "./serverTrustCertificates"; -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 "./managedDatabaseAdvancedThreatProtectionSettings"; -export * from "./managedInstanceAdvancedThreatProtectionSettings"; -export * from "./replicationLinks"; -export * from "./managedDatabaseMoveOperations"; -export * from "./managedInstanceDtcs"; -export * from "./synapseLinkWorkspaces"; -export * from "./virtualClusters"; -export * from "./instanceFailoverGroups"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./databaseEncryptionProtectors"; -export * from "./managedDatabases"; -export * from "./managedInstances"; -export * from "./managedLedgerDigestUploadsOperations"; -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./serverConfigurationOptions"; export * from "./servers"; -export * from "./startStopManagedInstanceSchedules"; -export * from "./transparentDataEncryptions"; -export * from "./failoverGroups"; -export * from "./iPv6FirewallRules"; +export * from "./sqlAgent"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -149,9 +138,17 @@ export * from "./sqlVulnerabilityAssessmentScanResult"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentsSettings"; export * from "./sqlVulnerabilityAssessments"; -export * from "./databaseSqlVulnerabilityAssessmentBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentExecuteScan"; -export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseSqlVulnerabilityAssessmentScanResult"; -export * from "./databaseSqlVulnerabilityAssessmentScans"; -export * from "./databaseSqlVulnerabilityAssessmentsSettings"; +export * from "./startStopManagedInstanceSchedules"; +export * from "./subscriptionUsages"; +export * from "./synapseLinkWorkspaces"; +export * from "./syncAgents"; +export * from "./syncGroups"; +export * from "./syncMembers"; +export * from "./tdeCertificates"; +export * from "./timeZones"; +export * from "./transparentDataEncryptions"; +export * from "./usages"; +export * from "./virtualClusters"; +export * from "./virtualNetworkRules"; +export * from "./workloadClassifiers"; +export * from "./workloadGroups"; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts b/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts index abd5edb6b950..ad85070b5916 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/instancePools.ts @@ -10,8 +10,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { InstancePool, - InstancePoolsListByResourceGroupOptionalParams, InstancePoolsListOptionalParams, + InstancePoolsListByResourceGroupOptionalParams, InstancePoolsGetOptionalParams, InstancePoolsGetResponse, InstancePoolsCreateOrUpdateOptionalParams, @@ -25,6 +25,13 @@ import { /// /** Interface representing a InstancePools. */ export interface InstancePools { + /** + * Gets a list of all instance pools in the subscription. + * @param options The options parameters. + */ + list( + options?: InstancePoolsListOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a list of instance pools in the resource group * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -35,13 +42,6 @@ export interface InstancePools { resourceGroupName: string, options?: InstancePoolsListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * Gets a list of all instance pools in the subscription. - * @param options The options parameters. - */ - list( - options?: InstancePoolsListOptionalParams - ): PagedAsyncIterableIterator; /** * Gets an instance pool. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts index d74fc17c51d6..bd1f03157e8b 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobExecutions.ts @@ -12,13 +12,13 @@ import { JobExecution, JobExecutionsListByAgentOptionalParams, JobExecutionsListByJobOptionalParams, - JobExecutionsCancelOptionalParams, - JobExecutionsCreateOptionalParams, - JobExecutionsCreateResponse, JobExecutionsGetOptionalParams, JobExecutionsGetResponse, JobExecutionsCreateOrUpdateOptionalParams, - JobExecutionsCreateOrUpdateResponse + JobExecutionsCreateOrUpdateResponse, + JobExecutionsCancelOptionalParams, + JobExecutionsCreateOptionalParams, + JobExecutionsCreateResponse } from "../models"; /// @@ -55,117 +55,117 @@ export interface JobExecutions { options?: JobExecutionsListByJobOptionalParams ): PagedAsyncIterableIterator; /** - * Requests cancellation of a job execution. + * Gets a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution to cancel. + * @param jobExecutionId The id of the job execution * @param options The options parameters. */ - cancel( + get( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsCancelOptionalParams - ): Promise; + options?: JobExecutionsGetOptionalParams + ): Promise; /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreate( + beginCreateOrUpdate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateResponse + OperationState, + JobExecutionsCreateOrUpdateResponse > >; /** - * Starts an elastic job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. + * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateAndWait( + beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - options?: JobExecutionsCreateOptionalParams - ): Promise; + jobExecutionId: string, + options?: JobExecutionsCreateOrUpdateOptionalParams + ): Promise; /** - * Gets a job execution. + * Requests cancellation of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job. - * @param jobExecutionId The id of the job execution + * @param jobExecutionId The id of the job execution to cancel. * @param options The options parameters. */ - get( + cancel( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobExecutionsGetOptionalParams - ): Promise; + options?: JobExecutionsCancelOptionalParams + ): Promise; /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateOrUpdate( + beginCreate( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams + options?: JobExecutionsCreateOptionalParams ): Promise< SimplePollerLike< - OperationState, - JobExecutionsCreateOrUpdateResponse + OperationState, + JobExecutionsCreateResponse > >; /** - * Creates or updates a job execution. + * Starts an elastic job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. - * @param jobExecutionId The job execution id to create the job execution under. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginCreateAndWait( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, - jobExecutionId: string, - options?: JobExecutionsCreateOrUpdateOptionalParams - ): Promise; + options?: JobExecutionsCreateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts index a6b38d15ea5b..6d1be1898afd 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobSteps.ts @@ -9,38 +9,20 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { JobStep, - JobStepsListByVersionOptionalParams, JobStepsListByJobOptionalParams, - JobStepsGetByVersionOptionalParams, - JobStepsGetByVersionResponse, + JobStepsListByVersionOptionalParams, JobStepsGetOptionalParams, JobStepsGetResponse, JobStepsCreateOrUpdateOptionalParams, JobStepsCreateOrUpdateResponse, - JobStepsDeleteOptionalParams + JobStepsDeleteOptionalParams, + JobStepsGetByVersionOptionalParams, + JobStepsGetByVersionResponse } from "../models"; /// /** Interface representing a JobSteps. */ export interface JobSteps { - /** - * Gets all job steps in the specified job version. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param jobAgentName The name of the job agent. - * @param jobName The name of the job to get. - * @param jobVersion The version of the job to get. - * @param options The options parameters. - */ - listByVersion( - resourceGroupName: string, - serverName: string, - jobAgentName: string, - jobName: string, - jobVersion: number, - options?: JobStepsListByVersionOptionalParams - ): PagedAsyncIterableIterator; /** * Gets all job steps for a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -58,25 +40,23 @@ export interface JobSteps { options?: JobStepsListByJobOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the specified version of a job step. + * Gets all job steps in the specified job version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. - * @param jobName The name of the job. + * @param jobName The name of the job to get. * @param jobVersion The version of the job to get. - * @param stepName The name of the job step. * @param options The options parameters. */ - getByVersion( + listByVersion( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, - stepName: string, - options?: JobStepsGetByVersionOptionalParams - ): Promise; + options?: JobStepsListByVersionOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a job step in a job's current version. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -133,4 +113,24 @@ export interface JobSteps { stepName: string, options?: JobStepsDeleteOptionalParams ): Promise; + /** + * Gets the specified version of a job step. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param jobAgentName The name of the job agent. + * @param jobName The name of the job. + * @param jobVersion The version of the job to get. + * @param stepName The name of the job step. + * @param options The options parameters. + */ + getByVersion( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + jobName: string, + jobVersion: number, + stepName: string, + options?: JobStepsGetByVersionOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts index 9fc54e524215..7559b110bf62 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobTargetExecutions.ts @@ -9,8 +9,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { JobExecution, - JobTargetExecutionsListByJobExecutionOptionalParams, JobTargetExecutionsListByStepOptionalParams, + JobTargetExecutionsListByJobExecutionOptionalParams, JobTargetExecutionsGetOptionalParams, JobTargetExecutionsGetResponse } from "../models"; @@ -19,42 +19,42 @@ import { /** Interface representing a JobTargetExecutions. */ export interface JobTargetExecutions { /** - * Lists target executions for all steps of a job execution. + * Lists the target executions of a job step execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution + * @param stepName The name of the step. * @param options The options parameters. */ - listByJobExecution( + listByStep( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - options?: JobTargetExecutionsListByJobExecutionOptionalParams + stepName: string, + options?: JobTargetExecutionsListByStepOptionalParams ): PagedAsyncIterableIterator; /** - * Lists the target executions of a job step execution. + * Lists target executions for all steps of a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param jobAgentName The name of the job agent. * @param jobName The name of the job to get. * @param jobExecutionId The id of the job execution - * @param stepName The name of the step. * @param options The options parameters. */ - listByStep( + listByJobExecution( resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, - stepName: string, - options?: JobTargetExecutionsListByStepOptionalParams + options?: JobTargetExecutionsListByJobExecutionOptionalParams ): PagedAsyncIterableIterator; /** * Gets a target execution. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts index 1eb1ef588d07..1aefe1d8bd53 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts @@ -10,46 +10,33 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { LongTermRetentionBackup, - LongTermRetentionBackupsListByDatabaseOptionalParams, LongTermRetentionBackupsListByLocationOptionalParams, LongTermRetentionBackupsListByServerOptionalParams, - LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsListByDatabaseOptionalParams, LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionBackupsListByResourceGroupServerOptionalParams, + LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, + LongTermRetentionBackupsGetOptionalParams, + LongTermRetentionBackupsGetResponse, + LongTermRetentionBackupsDeleteOptionalParams, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, - LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams + LongTermRetentionBackupsUpdateByResourceGroupResponse } from "../models"; /// /** Interface representing a LongTermRetentionBackups. */ export interface LongTermRetentionBackups { - /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The options parameters. - */ - listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. * @param locationName The location of the database @@ -72,19 +59,16 @@ export interface LongTermRetentionBackups { ): PagedAsyncIterableIterator; /** * Lists all long term retention backups 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 locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The options parameters. */ - listByResourceGroupDatabase( - resourceGroupName: string, + listByDatabase( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + options?: LongTermRetentionBackupsListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for a given location. @@ -112,6 +96,67 @@ export interface LongTermRetentionBackups { longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists all long term retention backups 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 locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param options The options parameters. + */ + listByResourceGroupDatabase( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + get( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise; + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + beginDelete( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param options The options parameters. + */ + beginDeleteAndWait( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise; /** * Copy an existing long term retention backup. * @param locationName The location of the database. @@ -192,48 +237,57 @@ export interface LongTermRetentionBackups { ): Promise; /** * Gets a long term retention backup. + * @param resourceGroupName The 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 The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - get( + getByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsGetOptionalParams - ): Promise; + options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams + ): Promise; /** * Deletes a long term retention backup. + * @param resourceGroupName The 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 The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - beginDelete( + beginDeleteByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams ): Promise, void>>; /** * Deletes a long term retention backup. + * @param resourceGroupName The 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 The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The options parameters. */ - beginDeleteAndWait( + beginDeleteByResourceGroupAndWait( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams + options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams ): Promise; /** * Copy an existing long term retention backup to a different server. @@ -325,58 +379,4 @@ export interface LongTermRetentionBackups { parameters: UpdateLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams ): Promise; - /** - * Gets a long term retention backup. - * @param resourceGroupName The 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 The location of the database. - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - getByResourceGroup( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsGetByResourceGroupOptionalParams - ): Promise; - /** - * Deletes a long term retention backup. - * @param resourceGroupName The 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 The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - beginDeleteByResourceGroup( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise, void>>; - /** - * Deletes a long term retention backup. - * @param resourceGroupName The 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 The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param backupName The backup name. - * @param options The options parameters. - */ - beginDeleteByResourceGroupAndWait( - resourceGroupName: string, - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - backupName: string, - options?: LongTermRetentionBackupsDeleteByResourceGroupOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts index b69527af808c..02115fbf09f6 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionManagedInstanceBackups.ts @@ -10,12 +10,12 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedInstanceLongTermRetentionBackup, + LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, - LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, + LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, - LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, LongTermRetentionManagedInstanceBackupsGetOptionalParams, LongTermRetentionManagedInstanceBackupsGetResponse, LongTermRetentionManagedInstanceBackupsDeleteOptionalParams, @@ -27,6 +27,15 @@ import { /// /** Interface representing a LongTermRetentionManagedInstanceBackups. */ export interface LongTermRetentionManagedInstanceBackups { + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param options The options parameters. + */ + listByLocation( + locationName: string, + options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. * @param locationName The location of the database. @@ -53,12 +62,15 @@ export interface LongTermRetentionManagedInstanceBackups { ): PagedAsyncIterableIterator; /** * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The 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 The location of the database. * @param options The options parameters. */ - listByLocation( + listByResourceGroupLocation( + resourceGroupName: string, locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams + options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator; /** * Lists all long term retention backups for a managed database. @@ -90,18 +102,6 @@ export interface LongTermRetentionManagedInstanceBackups { managedInstanceName: string, options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams ): PagedAsyncIterableIterator; - /** - * Lists the long term retention backups for managed databases in a given location. - * @param resourceGroupName The 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 The location of the database. - * @param options The options parameters. - */ - listByResourceGroupLocation( - resourceGroupName: string, - locationName: string, - options?: LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams - ): PagedAsyncIterableIterator; /** * Gets a long term retention backup for a managed database. * @param locationName The location of the database. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts index 10a0d7c5aa26..1d79592030d9 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts @@ -52,7 +52,7 @@ export interface LongTermRetentionPolicies { options?: LongTermRetentionPoliciesGetOptionalParams ): Promise; /** - * Sets a database's long term retention policy. + * Set or update a database's long term retention 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. @@ -75,7 +75,7 @@ export interface LongTermRetentionPolicies { > >; /** - * Sets a database's long term retention policy. + * Set or update a database's long term retention 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. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts index d9e14da84f1f..f0c117f4b1a8 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseSensitivityLabels.ts @@ -11,6 +11,9 @@ import { SensitivityLabel, ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams, ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, + ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams, + SensitivityLabelUpdateList, + ManagedDatabaseSensitivityLabelsUpdateOptionalParams, SensitivityLabelSource, ManagedDatabaseSensitivityLabelsGetOptionalParams, ManagedDatabaseSensitivityLabelsGetResponse, @@ -18,9 +21,7 @@ import { ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse, ManagedDatabaseSensitivityLabelsDeleteOptionalParams, ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams, - ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelUpdateList, - ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams } from "../models"; /// @@ -54,6 +55,36 @@ export interface ManagedDatabaseSensitivityLabels { databaseName: string, options?: ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the sensitivity labels of a given 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?: ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update sensitivity labels of a given database using an operations batch. + * @param resourceGroupName The 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 A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + parameters: SensitivityLabelUpdateList, + options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams + ): Promise; /** * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -159,20 +190,4 @@ export interface ManagedDatabaseSensitivityLabels { columnName: string, options?: ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams ): Promise; - /** - * Update sensitivity labels of a given database using an operations batch. - * @param resourceGroupName The 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 A list of sensitivity label update operations. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - managedInstanceName: string, - databaseName: string, - parameters: SensitivityLabelUpdateList, - options?: ManagedDatabaseSensitivityLabelsUpdateOptionalParams - ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts index 4730f0544871..01e0fbabe295 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedDatabaseVulnerabilityAssessmentScans.ts @@ -12,11 +12,11 @@ import { VulnerabilityAssessmentScanRecord, VulnerabilityAssessmentName, ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, + ManagedDatabaseVulnerabilityAssessmentScansGetResponse, ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams, ManagedDatabaseVulnerabilityAssessmentScansExportResponse, - ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams, - ManagedDatabaseVulnerabilityAssessmentScansGetResponse + ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams } from "../models"; /// @@ -39,7 +39,7 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { options?: ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams ): PagedAsyncIterableIterator; /** - * Executes a Vulnerability Assessment database scan. + * 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 managedInstanceName The name of the managed instance. @@ -48,52 +48,52 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - beginInitiateScan( + get( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise, void>>; + options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams + ): Promise; /** - * Executes a Vulnerability Assessment database scan. + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The 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 databaseName The name of the scanned database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param scanId The vulnerability assessment scan Id. * @param options The options parameters. */ - beginInitiateScanAndWait( + export( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + ): Promise; /** - * Convert an existing scan result to a human readable format. If already exists nothing happens + * 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 managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. + * @param databaseName The name of the database. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. - * @param scanId The vulnerability assessment scan Id. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - export( + beginInitiateScan( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; /** - * Gets a vulnerability assessment scan record of a database. + * 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 managedInstanceName The name of the managed instance. @@ -102,12 +102,12 @@ export interface ManagedDatabaseVulnerabilityAssessmentScans { * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The options parameters. */ - get( + beginInitiateScanAndWait( resourceGroupName: string, managedInstanceName: string, databaseName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, - options?: ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams - ): Promise; + options?: ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts index 278f0b4c3c42..e9c1556de46a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceEncryptionProtectors.ts @@ -12,11 +12,11 @@ import { ManagedInstanceEncryptionProtector, ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams, EncryptionProtectorName, - ManagedInstanceEncryptionProtectorsRevalidateOptionalParams, ManagedInstanceEncryptionProtectorsGetOptionalParams, ManagedInstanceEncryptionProtectorsGetResponse, ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams, - ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse + ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse, + ManagedInstanceEncryptionProtectorsRevalidateOptionalParams } from "../models"; /// @@ -34,34 +34,6 @@ export interface ManagedInstanceEncryptionProtectors { managedInstanceName: string, options?: ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams ): PagedAsyncIterableIterator; - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. - * @param options The options parameters. - */ - beginRevalidate( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise, void>>; - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. - * @param options The options parameters. - */ - beginRevalidateAndWait( - resourceGroupName: string, - managedInstanceName: string, - encryptionProtectorName: EncryptionProtectorName, - options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - ): Promise; /** * Gets a managed instance encryption protector. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -113,4 +85,32 @@ export interface ManagedInstanceEncryptionProtectors { parameters: ManagedInstanceEncryptionProtector, options?: ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams ): Promise; + /** + * Revalidates an existing encryption protector. + * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. + * @param options The options parameters. + */ + beginRevalidate( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise, void>>; + /** + * Revalidates an existing encryption protector. + * @param resourceGroupName The 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 encryptionProtectorName The name of the encryption protector to be updated. + * @param options The options parameters. + */ + beginRevalidateAndWait( + resourceGroupName: string, + managedInstanceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: ManagedInstanceEncryptionProtectorsRevalidateOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts index 564702efdb0a..ac05a3216c5a 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstanceLongTermRetentionPolicies.ts @@ -15,7 +15,9 @@ import { ManagedInstanceLongTermRetentionPoliciesGetOptionalParams, ManagedInstanceLongTermRetentionPoliciesGetResponse, ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams, - ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse + ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse, + ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse } from "../models"; /// @@ -94,4 +96,41 @@ export interface ManagedInstanceLongTermRetentionPolicies { parameters: ManagedInstanceLongTermRetentionPolicy, options?: ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams ): Promise; + /** + * Deletes a managed database's long term retention 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstanceLongTermRetentionPoliciesDeleteResponse + > + >; + /** + * Deletes a managed database's long term retention 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param policyName The policy name. Should always be Default. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + managedInstanceName: string, + databaseName: string, + policyName: ManagedInstanceLongTermRetentionPolicyName, + options?: ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts index 8be022d6aaec..54d21d5143d7 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedInstances.ts @@ -26,8 +26,12 @@ import { ManagedInstancesUpdateOptionalParams, ManagedInstancesUpdateResponse, ManagedInstancesFailoverOptionalParams, + ManagedInstancesRefreshStatusOptionalParams, + ManagedInstancesRefreshStatusResponse, ManagedInstancesStartOptionalParams, - ManagedInstancesStopOptionalParams + ManagedInstancesStartResponse, + ManagedInstancesStopOptionalParams, + ManagedInstancesStopResponse } from "../models"; /// @@ -212,6 +216,35 @@ export interface ManagedInstances { managedInstanceName: string, options?: ManagedInstancesFailoverOptionalParams ): Promise; + /** + * Refresh external governance enablement status. + * @param resourceGroupName The 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. + */ + beginRefreshStatus( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesRefreshStatusResponse + > + >; + /** + * Refresh external governance enablement status. + * @param resourceGroupName The 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. + */ + beginRefreshStatusAndWait( + resourceGroupName: string, + managedInstanceName: string, + options?: ManagedInstancesRefreshStatusOptionalParams + ): Promise; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -223,7 +256,12 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStartResponse + > + >; /** * Starts the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -235,7 +273,7 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStartOptionalParams - ): Promise; + ): Promise; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -247,7 +285,12 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedInstancesStopResponse + > + >; /** * Stops the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -259,5 +302,5 @@ export interface ManagedInstances { resourceGroupName: string, managedInstanceName: string, options?: ManagedInstancesStopOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts index cb8ed03f3506..6427586070b5 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/managedServerSecurityAlertPolicies.ts @@ -11,7 +11,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedServerSecurityAlertPolicy, ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ManagedServerSecurityAlertPoliciesGetOptionalParams, ManagedServerSecurityAlertPoliciesGetResponse, ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -44,7 +44,7 @@ export interface ManagedServerSecurityAlertPolicies { get( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams ): Promise; /** @@ -59,7 +59,7 @@ export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdate( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -80,7 +80,7 @@ export interface ManagedServerSecurityAlertPolicies { beginCreateOrUpdateAndWait( resourceGroupName: string, managedInstanceName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..a58b36488f28 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,82 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServerOptionalParams, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse +} from "../models"; + +/// +/** Interface representing a NetworkSecurityPerimeterConfigurations. */ +export interface NetworkSecurityPerimeterConfigurations { + /** + * Gets a list of NSP configurations for 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?: NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams + ): Promise; + /** + * Reconcile network security perimeter configuration for SQL Resource Provider + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + beginReconcile( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + >; + /** + * Reconcile network security perimeter configuration for SQL Resource Provider + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param nspConfigName + * @param options The options parameters. + */ + beginReconcileAndWait( + resourceGroupName: string, + serverName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + ): Promise; +} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts b/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts index 29322a46884a..41e1fcd9752d 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/outboundFirewallRules.ts @@ -53,14 +53,12 @@ export interface OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -74,14 +72,12 @@ export interface OutboundFirewallRules { * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param outboundRuleFqdn - * @param parameters An Azure SQL DB Server Outbound Firewall Rule. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, outboundRuleFqdn: string, - parameters: OutboundFirewallRule, options?: OutboundFirewallRulesCreateOrUpdateOptionalParams ): Promise; /** diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts index 2e29e28ed53b..8e4d638bebd8 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sensitivityLabels.ts @@ -11,16 +11,17 @@ import { SensitivityLabel, SensitivityLabelsListCurrentByDatabaseOptionalParams, SensitivityLabelsListRecommendedByDatabaseOptionalParams, + SensitivityLabelsListByDatabaseOptionalParams, SensitivityLabelUpdateList, SensitivityLabelsUpdateOptionalParams, - SensitivityLabelsEnableRecommendationOptionalParams, - SensitivityLabelsDisableRecommendationOptionalParams, SensitivityLabelSource, SensitivityLabelsGetOptionalParams, SensitivityLabelsGetResponse, SensitivityLabelsCreateOrUpdateOptionalParams, SensitivityLabelsCreateOrUpdateResponse, - SensitivityLabelsDeleteOptionalParams + SensitivityLabelsDeleteOptionalParams, + SensitivityLabelsDisableRecommendationOptionalParams, + SensitivityLabelsEnableRecommendationOptionalParams } from "../models"; /// @@ -54,6 +55,20 @@ export interface SensitivityLabels { databaseName: string, options?: SensitivityLabelsListRecommendedByDatabaseOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the sensitivity labels of a given 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?: SensitivityLabelsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; /** * Update sensitivity labels of a given database using an operations batch. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -71,8 +86,7 @@ export interface SensitivityLabels { options?: SensitivityLabelsUpdateOptionalParams ): Promise; /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all - * columns) + * Gets the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -80,19 +94,21 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - enableRecommendation( + get( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsEnableRecommendationOptionalParams - ): Promise; + sensitivityLabelSource: SensitivityLabelSource, + options?: SensitivityLabelsGetOptionalParams + ): Promise; /** - * Disables sensitivity recommendations on a given column + * Creates or updates the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -100,19 +116,21 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - disableRecommendation( + createOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDisableRecommendationOptionalParams - ): Promise; + parameters: SensitivityLabel, + options?: SensitivityLabelsCreateOrUpdateOptionalParams + ): Promise; /** - * Gets the sensitivity label of a given column + * Deletes the sensitivity label of a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -120,21 +138,19 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. * @param options The options parameters. */ - get( + delete( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - sensitivityLabelSource: SensitivityLabelSource, - options?: SensitivityLabelsGetOptionalParams - ): Promise; + options?: SensitivityLabelsDeleteOptionalParams + ): Promise; /** - * Creates or updates the sensitivity label of a given column + * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -142,21 +158,20 @@ export interface SensitivityLabels { * @param schemaName The name of the schema. * @param tableName The name of the table. * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. * @param options The options parameters. */ - createOrUpdate( + disableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - parameters: SensitivityLabel, - options?: SensitivityLabelsCreateOrUpdateOptionalParams - ): Promise; + options?: SensitivityLabelsDisableRecommendationOptionalParams + ): Promise; /** - * Deletes the sensitivity label of a given column + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -166,13 +181,13 @@ export interface SensitivityLabels { * @param columnName The name of the column. * @param options The options parameters. */ - delete( + enableRecommendation( resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, - options?: SensitivityLabelsDeleteOptionalParams + options?: SensitivityLabelsEnableRecommendationOptionalParams ): Promise; } diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts deleted file mode 100644 index addf8110e3b0..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverCommunicationLinks.ts +++ /dev/null @@ -1,101 +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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - ServerCommunicationLink, - ServerCommunicationLinksListByServerOptionalParams, - ServerCommunicationLinksDeleteOptionalParams, - ServerCommunicationLinksGetOptionalParams, - ServerCommunicationLinksGetResponse, - ServerCommunicationLinksCreateOrUpdateOptionalParams, - ServerCommunicationLinksCreateOrUpdateResponse -} from "../models"; - -/// -/** Interface representing a ServerCommunicationLinks. */ -export interface ServerCommunicationLinks { - /** - * Gets a list of server communication links. - * @param resourceGroupName The name of the resource group that contains 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?: ServerCommunicationLinksListByServerOptionalParams - ): PagedAsyncIterableIterator; - /** - * Deletes a server communication 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 communicationLinkName The name of the server communication link. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksDeleteOptionalParams - ): Promise; - /** - * Returns a server communication 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 communicationLinkName The name of the server communication link. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - options?: ServerCommunicationLinksGetOptionalParams - ): Promise; - /** - * Creates a server communication 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 communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ServerCommunicationLinksCreateOrUpdateResponse - > - >; - /** - * Creates a server communication 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 communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serverName: string, - communicationLinkName: string, - parameters: ServerCommunicationLink, - options?: ServerCommunicationLinksCreateOrUpdateOptionalParams - ): Promise; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts index 1822ab56744c..d75617a8a677 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverSecurityAlertPolicies.ts @@ -11,7 +11,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ServerSecurityAlertPolicy, ServerSecurityAlertPoliciesListByServerOptionalParams, - SecurityAlertPolicyName, + SecurityAlertPolicyNameAutoGenerated, ServerSecurityAlertPoliciesGetOptionalParams, ServerSecurityAlertPoliciesGetResponse, ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams, @@ -44,7 +44,7 @@ export interface ServerSecurityAlertPolicies { get( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams ): Promise; /** @@ -59,7 +59,7 @@ export interface ServerSecurityAlertPolicies { beginCreateOrUpdate( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise< @@ -80,7 +80,7 @@ export interface ServerSecurityAlertPolicies { beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, - securityAlertPolicyName: SecurityAlertPolicyName, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts index 8f0e03fb7a9e..5da881ab19de 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/serverUsages.ts @@ -13,7 +13,7 @@ import { ServerUsage, ServerUsagesListByServerOptionalParams } from "../models"; /** Interface representing a ServerUsages. */ export interface ServerUsages { /** - * Returns server usages. + * Gets server usages. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts b/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts deleted file mode 100644 index 3c14a0a36783..000000000000 --- a/sdk/sql/arm-sql/src/operationsInterfaces/serviceObjectives.ts +++ /dev/null @@ -1,46 +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 { - ServiceObjective, - ServiceObjectivesListByServerOptionalParams, - ServiceObjectivesGetOptionalParams, - ServiceObjectivesGetResponse -} from "../models"; - -/// -/** Interface representing a ServiceObjectives. */ -export interface ServiceObjectives { - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains 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?: ServiceObjectivesListByServerOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serverName: string, - serviceObjectiveName: string, - options?: ServiceObjectivesGetOptionalParams - ): Promise; -} diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts index 859313120118..bfc6d32a2b2c 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/sqlVulnerabilityAssessmentScanResult.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SqlVulnerabilityAssessmentScanResults, - SQLVulnerabilityAssessmentName, + SqlVulnerabilityAssessmentName, SqlVulnerabilityAssessmentScanResultListByScanOptionalParams, SqlVulnerabilityAssessmentScanResultGetOptionalParams, SqlVulnerabilityAssessmentScanResultGetResponse @@ -30,7 +30,7 @@ export interface SqlVulnerabilityAssessmentScanResult { listByScan( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, options?: SqlVulnerabilityAssessmentScanResultListByScanOptionalParams ): PagedAsyncIterableIterator; @@ -47,7 +47,7 @@ export interface SqlVulnerabilityAssessmentScanResult { get( resourceGroupName: string, serverName: string, - vulnerabilityAssessmentName: SQLVulnerabilityAssessmentName, + vulnerabilityAssessmentName: SqlVulnerabilityAssessmentName, scanId: string, scanResultId: string, options?: SqlVulnerabilityAssessmentScanResultGetOptionalParams diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts index b5e658e4de5f..57849b89ace3 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/syncGroups.ts @@ -11,23 +11,23 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SyncDatabaseIdProperties, SyncGroupsListSyncDatabaseIdsOptionalParams, + SyncGroup, + SyncGroupsListByDatabaseOptionalParams, SyncFullSchemaProperties, SyncGroupsListHubSchemasOptionalParams, SyncGroupLogProperties, SyncGroupsType, SyncGroupsListLogsOptionalParams, - SyncGroup, - SyncGroupsListByDatabaseOptionalParams, - SyncGroupsRefreshHubSchemaOptionalParams, - SyncGroupsCancelSyncOptionalParams, - SyncGroupsTriggerSyncOptionalParams, SyncGroupsGetOptionalParams, SyncGroupsGetResponse, SyncGroupsCreateOrUpdateOptionalParams, SyncGroupsCreateOrUpdateResponse, SyncGroupsDeleteOptionalParams, SyncGroupsUpdateOptionalParams, - SyncGroupsUpdateResponse + SyncGroupsUpdateResponse, + SyncGroupsCancelSyncOptionalParams, + SyncGroupsRefreshHubSchemaOptionalParams, + SyncGroupsTriggerSyncOptionalParams } from "../models"; /// @@ -42,6 +42,20 @@ export interface SyncGroups { locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists sync groups under a hub 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 on which the sync group is hosted. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + serverName: string, + databaseName: string, + options?: SyncGroupsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; /** * Gets a collection of hub database schemas. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -81,21 +95,7 @@ export interface SyncGroups { options?: SyncGroupsListLogsOptionalParams ): PagedAsyncIterableIterator; /** - * Lists sync groups under a hub 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 on which the sync group is hosted. - * @param options The options parameters. - */ - listByDatabase( - resourceGroupName: string, - serverName: string, - databaseName: string, - options?: SyncGroupsListByDatabaseOptionalParams - ): PagedAsyncIterableIterator; - /** - * Refreshes a hub database schema. + * Gets a sync 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 serverName The name of the server. @@ -103,47 +103,56 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginRefreshHubSchema( + get( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise, void>>; + options?: SyncGroupsGetOptionalParams + ): Promise; /** - * Refreshes a hub database schema. + * Creates or updates a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginRefreshHubSchemaAndWait( + beginCreateOrUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsRefreshHubSchemaOptionalParams - ): Promise; + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + SyncGroupsCreateOrUpdateResponse + > + >; /** - * Cancels a sync group synchronization. + * Creates or updates a sync 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 serverName The name of the server. * @param databaseName The name of the database on which the sync group is hosted. * @param syncGroupName The name of the sync group. + * @param parameters The requested sync group resource state. * @param options The options parameters. */ - cancelSync( + beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsCancelSyncOptionalParams - ): Promise; + parameters: SyncGroup, + options?: SyncGroupsCreateOrUpdateOptionalParams + ): Promise; /** - * Triggers a sync group synchronization. + * Deletes a sync 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 serverName The name of the server. @@ -151,15 +160,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - triggerSync( + beginDelete( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsTriggerSyncOptionalParams - ): Promise; + options?: SyncGroupsDeleteOptionalParams + ): Promise, void>>; /** - * Gets a sync group. + * Deletes a sync 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 serverName The name of the server. @@ -167,15 +176,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - get( + beginDeleteAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsGetOptionalParams - ): Promise; + options?: SyncGroupsDeleteOptionalParams + ): Promise; /** - * Creates or updates a sync group. + * Updates a sync 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 serverName The name of the server. @@ -184,21 +193,21 @@ export interface SyncGroups { * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginCreateOrUpdate( + beginUpdate( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams + options?: SyncGroupsUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - SyncGroupsCreateOrUpdateResponse + OperationState, + SyncGroupsUpdateResponse > >; /** - * Creates or updates a sync group. + * Updates a sync 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 serverName The name of the server. @@ -207,16 +216,16 @@ export interface SyncGroups { * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginUpdateAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: SyncGroup, - options?: SyncGroupsCreateOrUpdateOptionalParams - ): Promise; + options?: SyncGroupsUpdateOptionalParams + ): Promise; /** - * Deletes a sync group. + * Cancels a sync group synchronization. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -224,15 +233,15 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginDelete( + cancelSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise, void>>; + options?: SyncGroupsCancelSyncOptionalParams + ): Promise; /** - * Deletes a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -240,52 +249,43 @@ export interface SyncGroups { * @param syncGroupName The name of the sync group. * @param options The options parameters. */ - beginDeleteAndWait( + beginRefreshHubSchema( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - options?: SyncGroupsDeleteOptionalParams - ): Promise; + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise, void>>; /** - * Updates a sync group. + * Refreshes a hub database schema. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginUpdate( + beginRefreshHubSchemaAndWait( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SyncGroupsUpdateResponse - > - >; + options?: SyncGroupsRefreshHubSchemaOptionalParams + ): Promise; /** - * Updates a sync group. + * Triggers a sync group synchronization. * @param resourceGroupName The name of the resource group that contains 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 on which the sync group is hosted. * @param syncGroupName The name of the sync group. - * @param parameters The requested sync group resource state. * @param options The options parameters. */ - beginUpdateAndWait( + triggerSync( resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, - parameters: SyncGroup, - options?: SyncGroupsUpdateOptionalParams - ): Promise; + options?: SyncGroupsTriggerSyncOptionalParams + ): Promise; } diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 6b05bd664956..c025eb6b5c3b 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -8,60 +8,92 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + BackupShortTermRetentionPoliciesImpl, + ServerBlobAuditingPoliciesImpl, + DatabaseBlobAuditingPoliciesImpl, + ExtendedDatabaseBlobAuditingPoliciesImpl, + ExtendedServerBlobAuditingPoliciesImpl, DataMaskingPoliciesImpl, DataMaskingRulesImpl, - GeoBackupPoliciesImpl, - DatabasesImpl, - ElasticPoolsImpl, - ServerCommunicationLinksImpl, - ServiceObjectivesImpl, - ElasticPoolActivitiesImpl, - ElasticPoolDatabaseActivitiesImpl, - ServerUsagesImpl, + DataWarehouseUserActivitiesOperationsImpl, + DatabaseAdvancedThreatProtectionSettingsImpl, DatabaseAdvisorsImpl, DatabaseAutomaticTuningOperationsImpl, DatabaseColumnsImpl, + DatabaseEncryptionProtectorsImpl, + DatabaseExtensionsOperationsImpl, + DatabaseOperationsImpl, DatabaseRecommendedActionsImpl, DatabaseSchemasImpl, DatabaseSecurityAlertPoliciesImpl, + DatabaseSqlVulnerabilityAssessmentBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, + DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, + DatabaseSqlVulnerabilityAssessmentScanResultImpl, + DatabaseSqlVulnerabilityAssessmentScansImpl, + DatabaseSqlVulnerabilityAssessmentsSettingsImpl, DatabaseTablesImpl, + DatabaseUsagesImpl, DatabaseVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseVulnerabilityAssessmentsImpl, DatabaseVulnerabilityAssessmentScansImpl, - DataWarehouseUserActivitiesOperationsImpl, + DatabaseVulnerabilityAssessmentsImpl, + DatabasesImpl, DeletedServersImpl, + DistributedAvailabilityGroupsImpl, ElasticPoolOperationsImpl, + ElasticPoolsImpl, EncryptionProtectorsImpl, + EndpointCertificatesImpl, + FailoverGroupsImpl, FirewallRulesImpl, + GeoBackupPoliciesImpl, + IPv6FirewallRulesImpl, + InstanceFailoverGroupsImpl, InstancePoolsImpl, JobAgentsImpl, JobCredentialsImpl, JobExecutionsImpl, - JobsImpl, JobStepExecutionsImpl, JobStepsImpl, JobTargetExecutionsImpl, JobTargetGroupsImpl, JobVersionsImpl, + JobsImpl, + LedgerDigestUploadsOperationsImpl, CapabilitiesImpl, + LongTermRetentionBackupsImpl, + LongTermRetentionManagedInstanceBackupsImpl, LongTermRetentionPoliciesImpl, MaintenanceWindowOptionsOperationsImpl, MaintenanceWindowsOperationsImpl, ManagedBackupShortTermRetentionPoliciesImpl, + ManagedDatabaseAdvancedThreatProtectionSettingsImpl, ManagedDatabaseColumnsImpl, + ManagedDatabaseMoveOperationsImpl, ManagedDatabaseQueriesImpl, + ManagedDatabaseRestoreDetailsImpl, ManagedDatabaseSchemasImpl, ManagedDatabaseSecurityAlertPoliciesImpl, ManagedDatabaseSecurityEventsImpl, + ManagedDatabaseSensitivityLabelsImpl, + ManagedDatabaseRecommendedSensitivityLabelsImpl, ManagedDatabaseTablesImpl, ManagedDatabaseTransparentDataEncryptionImpl, ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl, - ManagedDatabaseVulnerabilityAssessmentsImpl, ManagedDatabaseVulnerabilityAssessmentScansImpl, + ManagedDatabaseVulnerabilityAssessmentsImpl, + ManagedDatabasesImpl, ManagedInstanceAdministratorsImpl, + ManagedInstanceAdvancedThreatProtectionSettingsImpl, ManagedInstanceAzureADOnlyAuthenticationsImpl, + ManagedInstanceDtcsImpl, ManagedInstanceEncryptionProtectorsImpl, ManagedInstanceKeysImpl, ManagedInstanceLongTermRetentionPoliciesImpl, @@ -70,80 +102,42 @@ import { ManagedInstancePrivateLinkResourcesImpl, ManagedInstanceTdeCertificatesImpl, ManagedInstanceVulnerabilityAssessmentsImpl, + ManagedInstancesImpl, + ManagedLedgerDigestUploadsOperationsImpl, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl, + ManagedServerDnsAliasesImpl, ManagedServerSecurityAlertPoliciesImpl, + NetworkSecurityPerimeterConfigurationsImpl, OperationsImpl, + OutboundFirewallRulesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, + RecoverableDatabasesImpl, RecoverableManagedDatabasesImpl, + ReplicationLinksImpl, + RestorableDroppedDatabasesImpl, + RestorableDroppedManagedDatabasesImpl, RestorePointsImpl, + SensitivityLabelsImpl, + RecommendedSensitivityLabelsImpl, + ServerAdvancedThreatProtectionSettingsImpl, ServerAdvisorsImpl, ServerAutomaticTuningOperationsImpl, ServerAzureADAdministratorsImpl, ServerAzureADOnlyAuthenticationsImpl, + ServerConfigurationOptionsImpl, + ServerConnectionPoliciesImpl, ServerDevOpsAuditSettingsImpl, ServerDnsAliasesImpl, ServerKeysImpl, ServerOperationsImpl, ServerSecurityAlertPoliciesImpl, + ServerTrustCertificatesImpl, ServerTrustGroupsImpl, + ServerUsagesImpl, ServerVulnerabilityAssessmentsImpl, - SqlAgentImpl, - SubscriptionUsagesImpl, - SyncAgentsImpl, - SyncGroupsImpl, - SyncMembersImpl, - TdeCertificatesImpl, - TimeZonesImpl, - VirtualNetworkRulesImpl, - WorkloadClassifiersImpl, - WorkloadGroupsImpl, - BackupShortTermRetentionPoliciesImpl, - DatabaseExtensionsOperationsImpl, - DatabaseOperationsImpl, - DatabaseUsagesImpl, - LedgerDigestUploadsOperationsImpl, - OutboundFirewallRulesImpl, - UsagesImpl, - LongTermRetentionBackupsImpl, - LongTermRetentionManagedInstanceBackupsImpl, - RestorableDroppedManagedDatabasesImpl, - ServerConnectionPoliciesImpl, - DistributedAvailabilityGroupsImpl, - ServerTrustCertificatesImpl, - EndpointCertificatesImpl, - ManagedDatabaseSensitivityLabelsImpl, - ManagedDatabaseRecommendedSensitivityLabelsImpl, - SensitivityLabelsImpl, - RecommendedSensitivityLabelsImpl, - ServerBlobAuditingPoliciesImpl, - DatabaseBlobAuditingPoliciesImpl, - ExtendedDatabaseBlobAuditingPoliciesImpl, - ExtendedServerBlobAuditingPoliciesImpl, - DatabaseAdvancedThreatProtectionSettingsImpl, - ServerAdvancedThreatProtectionSettingsImpl, - ManagedServerDnsAliasesImpl, - ManagedDatabaseAdvancedThreatProtectionSettingsImpl, - ManagedInstanceAdvancedThreatProtectionSettingsImpl, - ReplicationLinksImpl, - ManagedDatabaseMoveOperationsImpl, - ManagedInstanceDtcsImpl, - SynapseLinkWorkspacesImpl, - VirtualClustersImpl, - InstanceFailoverGroupsImpl, - ManagedDatabaseRestoreDetailsImpl, - DatabaseEncryptionProtectorsImpl, - ManagedDatabasesImpl, - ManagedInstancesImpl, - ManagedLedgerDigestUploadsOperationsImpl, - RecoverableDatabasesImpl, - RestorableDroppedDatabasesImpl, - ServerConfigurationOptionsImpl, ServersImpl, - StartStopManagedInstanceSchedulesImpl, - TransparentDataEncryptionsImpl, - FailoverGroupsImpl, - IPv6FirewallRulesImpl, + SqlAgentImpl, SqlVulnerabilityAssessmentBaselineImpl, SqlVulnerabilityAssessmentBaselinesImpl, SqlVulnerabilityAssessmentExecuteScanImpl, @@ -153,66 +147,101 @@ import { SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentsSettingsImpl, SqlVulnerabilityAssessmentsImpl, - DatabaseSqlVulnerabilityAssessmentBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, - DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentScanResultImpl, - DatabaseSqlVulnerabilityAssessmentScansImpl, - DatabaseSqlVulnerabilityAssessmentsSettingsImpl + StartStopManagedInstanceSchedulesImpl, + SubscriptionUsagesImpl, + SynapseLinkWorkspacesImpl, + SyncAgentsImpl, + SyncGroupsImpl, + SyncMembersImpl, + TdeCertificatesImpl, + TimeZonesImpl, + TransparentDataEncryptionsImpl, + UsagesImpl, + VirtualClustersImpl, + VirtualNetworkRulesImpl, + WorkloadClassifiersImpl, + WorkloadGroupsImpl } from "./operations"; import { + BackupShortTermRetentionPolicies, + ServerBlobAuditingPolicies, + DatabaseBlobAuditingPolicies, + ExtendedDatabaseBlobAuditingPolicies, + ExtendedServerBlobAuditingPolicies, DataMaskingPolicies, DataMaskingRules, - GeoBackupPolicies, - Databases, - ElasticPools, - ServerCommunicationLinks, - ServiceObjectives, - ElasticPoolActivities, - ElasticPoolDatabaseActivities, - ServerUsages, + DataWarehouseUserActivitiesOperations, + DatabaseAdvancedThreatProtectionSettings, DatabaseAdvisors, DatabaseAutomaticTuningOperations, DatabaseColumns, + DatabaseEncryptionProtectors, + DatabaseExtensionsOperations, + DatabaseOperations, DatabaseRecommendedActions, DatabaseSchemas, DatabaseSecurityAlertPolicies, + DatabaseSqlVulnerabilityAssessmentBaselines, + DatabaseSqlVulnerabilityAssessmentExecuteScan, + DatabaseSqlVulnerabilityAssessmentRuleBaselines, + DatabaseSqlVulnerabilityAssessmentScanResult, + DatabaseSqlVulnerabilityAssessmentScans, + DatabaseSqlVulnerabilityAssessmentsSettings, DatabaseTables, + DatabaseUsages, DatabaseVulnerabilityAssessmentRuleBaselines, - DatabaseVulnerabilityAssessments, DatabaseVulnerabilityAssessmentScans, - DataWarehouseUserActivitiesOperations, + DatabaseVulnerabilityAssessments, + Databases, DeletedServers, + DistributedAvailabilityGroups, ElasticPoolOperations, + ElasticPools, EncryptionProtectors, + EndpointCertificates, + FailoverGroups, FirewallRules, + GeoBackupPolicies, + IPv6FirewallRules, + InstanceFailoverGroups, InstancePools, JobAgents, JobCredentials, JobExecutions, - Jobs, JobStepExecutions, JobSteps, JobTargetExecutions, JobTargetGroups, JobVersions, + Jobs, + LedgerDigestUploadsOperations, Capabilities, + LongTermRetentionBackups, + LongTermRetentionManagedInstanceBackups, LongTermRetentionPolicies, MaintenanceWindowOptionsOperations, MaintenanceWindowsOperations, ManagedBackupShortTermRetentionPolicies, + ManagedDatabaseAdvancedThreatProtectionSettings, ManagedDatabaseColumns, + ManagedDatabaseMoveOperations, ManagedDatabaseQueries, + ManagedDatabaseRestoreDetails, ManagedDatabaseSchemas, ManagedDatabaseSecurityAlertPolicies, ManagedDatabaseSecurityEvents, + ManagedDatabaseSensitivityLabels, + ManagedDatabaseRecommendedSensitivityLabels, ManagedDatabaseTables, ManagedDatabaseTransparentDataEncryption, ManagedDatabaseVulnerabilityAssessmentRuleBaselines, - ManagedDatabaseVulnerabilityAssessments, ManagedDatabaseVulnerabilityAssessmentScans, + ManagedDatabaseVulnerabilityAssessments, + ManagedDatabases, ManagedInstanceAdministrators, + ManagedInstanceAdvancedThreatProtectionSettings, ManagedInstanceAzureADOnlyAuthentications, + ManagedInstanceDtcs, ManagedInstanceEncryptionProtectors, ManagedInstanceKeys, ManagedInstanceLongTermRetentionPolicies, @@ -221,80 +250,42 @@ import { ManagedInstancePrivateLinkResources, ManagedInstanceTdeCertificates, ManagedInstanceVulnerabilityAssessments, + ManagedInstances, + ManagedLedgerDigestUploadsOperations, ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies, + ManagedServerDnsAliases, ManagedServerSecurityAlertPolicies, + NetworkSecurityPerimeterConfigurations, Operations, + OutboundFirewallRules, PrivateEndpointConnections, PrivateLinkResources, + RecoverableDatabases, RecoverableManagedDatabases, + ReplicationLinks, + RestorableDroppedDatabases, + RestorableDroppedManagedDatabases, RestorePoints, + SensitivityLabels, + RecommendedSensitivityLabels, + ServerAdvancedThreatProtectionSettings, ServerAdvisors, ServerAutomaticTuningOperations, ServerAzureADAdministrators, ServerAzureADOnlyAuthentications, + ServerConfigurationOptions, + ServerConnectionPolicies, ServerDevOpsAuditSettings, ServerDnsAliases, ServerKeys, ServerOperations, ServerSecurityAlertPolicies, + ServerTrustCertificates, ServerTrustGroups, + ServerUsages, ServerVulnerabilityAssessments, - SqlAgent, - SubscriptionUsages, - SyncAgents, - SyncGroups, - SyncMembers, - TdeCertificates, - TimeZones, - VirtualNetworkRules, - WorkloadClassifiers, - WorkloadGroups, - BackupShortTermRetentionPolicies, - DatabaseExtensionsOperations, - DatabaseOperations, - DatabaseUsages, - LedgerDigestUploadsOperations, - OutboundFirewallRules, - Usages, - LongTermRetentionBackups, - LongTermRetentionManagedInstanceBackups, - RestorableDroppedManagedDatabases, - ServerConnectionPolicies, - DistributedAvailabilityGroups, - ServerTrustCertificates, - EndpointCertificates, - ManagedDatabaseSensitivityLabels, - ManagedDatabaseRecommendedSensitivityLabels, - SensitivityLabels, - RecommendedSensitivityLabels, - ServerBlobAuditingPolicies, - DatabaseBlobAuditingPolicies, - ExtendedDatabaseBlobAuditingPolicies, - ExtendedServerBlobAuditingPolicies, - DatabaseAdvancedThreatProtectionSettings, - ServerAdvancedThreatProtectionSettings, - ManagedServerDnsAliases, - ManagedDatabaseAdvancedThreatProtectionSettings, - ManagedInstanceAdvancedThreatProtectionSettings, - ReplicationLinks, - ManagedDatabaseMoveOperations, - ManagedInstanceDtcs, - SynapseLinkWorkspaces, - VirtualClusters, - InstanceFailoverGroups, - ManagedDatabaseRestoreDetails, - DatabaseEncryptionProtectors, - ManagedDatabases, - ManagedInstances, - ManagedLedgerDigestUploadsOperations, - RecoverableDatabases, - RestorableDroppedDatabases, - ServerConfigurationOptions, Servers, - StartStopManagedInstanceSchedules, - TransparentDataEncryptions, - FailoverGroups, - IPv6FirewallRules, + SqlAgent, SqlVulnerabilityAssessmentBaseline, SqlVulnerabilityAssessmentBaselines, SqlVulnerabilityAssessmentExecuteScan, @@ -304,18 +295,27 @@ import { SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentsSettings, SqlVulnerabilityAssessments, - DatabaseSqlVulnerabilityAssessmentBaselines, - DatabaseSqlVulnerabilityAssessmentExecuteScan, - DatabaseSqlVulnerabilityAssessmentRuleBaselines, - DatabaseSqlVulnerabilityAssessmentScanResult, - DatabaseSqlVulnerabilityAssessmentScans, - DatabaseSqlVulnerabilityAssessmentsSettings + StartStopManagedInstanceSchedules, + SubscriptionUsages, + SynapseLinkWorkspaces, + SyncAgents, + SyncGroups, + SyncMembers, + TdeCertificates, + TimeZones, + TransparentDataEncryptions, + Usages, + VirtualClusters, + VirtualNetworkRules, + WorkloadClassifiers, + WorkloadGroups } from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; export class SqlManagementClient extends coreClient.ServiceClient { $host: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the SqlManagementClient class. @@ -344,7 +344,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/10.1.0-beta.2`; + const packageDetails = `azsdk-js-arm-sql/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -397,56 +397,106 @@ export class SqlManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2023-02-01-preview"; + this.backupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesImpl( + this + ); + this.serverBlobAuditingPolicies = new ServerBlobAuditingPoliciesImpl(this); + this.databaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesImpl( + this + ); + this.extendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesImpl( + this + ); this.dataMaskingPolicies = new DataMaskingPoliciesImpl(this); this.dataMaskingRules = new DataMaskingRulesImpl(this); - this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); - this.databases = new DatabasesImpl(this); - this.elasticPools = new ElasticPoolsImpl(this); - this.serverCommunicationLinks = new ServerCommunicationLinksImpl(this); - this.serviceObjectives = new ServiceObjectivesImpl(this); - this.elasticPoolActivities = new ElasticPoolActivitiesImpl(this); - this.elasticPoolDatabaseActivities = new ElasticPoolDatabaseActivitiesImpl( + this.dataWarehouseUserActivitiesOperations = new DataWarehouseUserActivitiesOperationsImpl( + this + ); + this.databaseAdvancedThreatProtectionSettings = new DatabaseAdvancedThreatProtectionSettingsImpl( this ); - this.serverUsages = new ServerUsagesImpl(this); this.databaseAdvisors = new DatabaseAdvisorsImpl(this); this.databaseAutomaticTuningOperations = new DatabaseAutomaticTuningOperationsImpl( this ); this.databaseColumns = new DatabaseColumnsImpl(this); + this.databaseEncryptionProtectors = new DatabaseEncryptionProtectorsImpl( + this + ); + this.databaseExtensionsOperations = new DatabaseExtensionsOperationsImpl( + this + ); + this.databaseOperations = new DatabaseOperationsImpl(this); this.databaseRecommendedActions = new DatabaseRecommendedActionsImpl(this); this.databaseSchemas = new DatabaseSchemasImpl(this); this.databaseSecurityAlertPolicies = new DatabaseSecurityAlertPoliciesImpl( this ); - this.databaseTables = new DatabaseTablesImpl(this); - this.databaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesImpl( + this.databaseSqlVulnerabilityAssessmentBaselines = new DatabaseSqlVulnerabilityAssessmentBaselinesImpl( this ); - this.databaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsImpl( + 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.databaseTables = new DatabaseTablesImpl(this); + this.databaseUsages = new DatabaseUsagesImpl(this); + this.databaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesImpl( this ); this.databaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansImpl( this ); - this.dataWarehouseUserActivitiesOperations = new DataWarehouseUserActivitiesOperationsImpl( + this.databaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsImpl( this ); + this.databases = new DatabasesImpl(this); this.deletedServers = new DeletedServersImpl(this); + this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( + this + ); this.elasticPoolOperations = new ElasticPoolOperationsImpl(this); + this.elasticPools = new ElasticPoolsImpl(this); this.encryptionProtectors = new EncryptionProtectorsImpl(this); + this.endpointCertificates = new EndpointCertificatesImpl(this); + this.failoverGroups = new FailoverGroupsImpl(this); this.firewallRules = new FirewallRulesImpl(this); + this.geoBackupPolicies = new GeoBackupPoliciesImpl(this); + this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); + this.instanceFailoverGroups = new InstanceFailoverGroupsImpl(this); this.instancePools = new InstancePoolsImpl(this); this.jobAgents = new JobAgentsImpl(this); this.jobCredentials = new JobCredentialsImpl(this); this.jobExecutions = new JobExecutionsImpl(this); - this.jobs = new JobsImpl(this); this.jobStepExecutions = new JobStepExecutionsImpl(this); this.jobSteps = new JobStepsImpl(this); this.jobTargetExecutions = new JobTargetExecutionsImpl(this); this.jobTargetGroups = new JobTargetGroupsImpl(this); this.jobVersions = new JobVersionsImpl(this); + this.jobs = new JobsImpl(this); + this.ledgerDigestUploadsOperations = new LedgerDigestUploadsOperationsImpl( + this + ); this.capabilities = new CapabilitiesImpl(this); + this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); + this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( + this + ); this.longTermRetentionPolicies = new LongTermRetentionPoliciesImpl(this); this.maintenanceWindowOptionsOperations = new MaintenanceWindowOptionsOperationsImpl( this @@ -457,8 +507,17 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedBackupShortTermRetentionPolicies = new ManagedBackupShortTermRetentionPoliciesImpl( this ); + this.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( + this + ); this.managedDatabaseColumns = new ManagedDatabaseColumnsImpl(this); + this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( + this + ); this.managedDatabaseQueries = new ManagedDatabaseQueriesImpl(this); + this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( + this + ); this.managedDatabaseSchemas = new ManagedDatabaseSchemasImpl(this); this.managedDatabaseSecurityAlertPolicies = new ManagedDatabaseSecurityAlertPoliciesImpl( this @@ -466,6 +525,12 @@ 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 @@ -473,18 +538,23 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedDatabaseVulnerabilityAssessmentRuleBaselines = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl( this ); - this.managedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsImpl( + this.managedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansImpl( this ); - this.managedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansImpl( + this.managedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsImpl( this ); + this.managedDatabases = new ManagedDatabasesImpl(this); this.managedInstanceAdministrators = new ManagedInstanceAdministratorsImpl( this ); + this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( + this + ); this.managedInstanceAzureADOnlyAuthentications = new ManagedInstanceAzureADOnlyAuthenticationsImpl( this ); + this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); this.managedInstanceEncryptionProtectors = new ManagedInstanceEncryptionProtectorsImpl( this ); @@ -505,19 +575,41 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.managedInstanceVulnerabilityAssessments = new ManagedInstanceVulnerabilityAssessmentsImpl( this ); + this.managedInstances = new ManagedInstancesImpl(this); + this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( + this + ); this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesImpl( this ); + this.managedServerDnsAliases = new ManagedServerDnsAliasesImpl(this); this.managedServerSecurityAlertPolicies = new ManagedServerSecurityAlertPoliciesImpl( this ); + this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl( + this + ); this.operations = new OperationsImpl(this); + this.outboundFirewallRules = new OutboundFirewallRulesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.recoverableDatabases = new RecoverableDatabasesImpl(this); this.recoverableManagedDatabases = new RecoverableManagedDatabasesImpl( this ); + this.replicationLinks = new ReplicationLinksImpl(this); + this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); + this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( + this + ); this.restorePoints = new RestorePointsImpl(this); + this.sensitivityLabels = new SensitivityLabelsImpl(this); + this.recommendedSensitivityLabels = new RecommendedSensitivityLabelsImpl( + this + ); + this.serverAdvancedThreatProtectionSettings = new ServerAdvancedThreatProtectionSettingsImpl( + this + ); this.serverAdvisors = new ServerAdvisorsImpl(this); this.serverAutomaticTuningOperations = new ServerAutomaticTuningOperationsImpl( this @@ -528,6 +620,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.serverAzureADOnlyAuthentications = new ServerAzureADOnlyAuthenticationsImpl( this ); + this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); + this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); this.serverDevOpsAuditSettings = new ServerDevOpsAuditSettingsImpl(this); this.serverDnsAliases = new ServerDnsAliasesImpl(this); this.serverKeys = new ServerKeysImpl(this); @@ -535,108 +629,14 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesImpl( this ); + this.serverTrustCertificates = new ServerTrustCertificatesImpl(this); this.serverTrustGroups = new ServerTrustGroupsImpl(this); + this.serverUsages = new ServerUsagesImpl(this); this.serverVulnerabilityAssessments = new ServerVulnerabilityAssessmentsImpl( this ); - this.sqlAgent = new SqlAgentImpl(this); - this.subscriptionUsages = new SubscriptionUsagesImpl(this); - this.syncAgents = new SyncAgentsImpl(this); - this.syncGroups = new SyncGroupsImpl(this); - this.syncMembers = new SyncMembersImpl(this); - this.tdeCertificates = new TdeCertificatesImpl(this); - this.timeZones = new TimeZonesImpl(this); - this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); - this.workloadClassifiers = new WorkloadClassifiersImpl(this); - this.workloadGroups = new WorkloadGroupsImpl(this); - this.backupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesImpl( - this - ); - this.databaseExtensionsOperations = new DatabaseExtensionsOperationsImpl( - this - ); - this.databaseOperations = new DatabaseOperationsImpl(this); - this.databaseUsages = new DatabaseUsagesImpl(this); - this.ledgerDigestUploadsOperations = new LedgerDigestUploadsOperationsImpl( - this - ); - this.outboundFirewallRules = new OutboundFirewallRulesImpl(this); - this.usages = new UsagesImpl(this); - this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); - this.longTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsImpl( - this - ); - this.restorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesImpl( - this - ); - this.serverConnectionPolicies = new ServerConnectionPoliciesImpl(this); - this.distributedAvailabilityGroups = new DistributedAvailabilityGroupsImpl( - this - ); - this.serverTrustCertificates = new ServerTrustCertificatesImpl(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.managedDatabaseAdvancedThreatProtectionSettings = new ManagedDatabaseAdvancedThreatProtectionSettingsImpl( - this - ); - this.managedInstanceAdvancedThreatProtectionSettings = new ManagedInstanceAdvancedThreatProtectionSettingsImpl( - this - ); - this.replicationLinks = new ReplicationLinksImpl(this); - this.managedDatabaseMoveOperations = new ManagedDatabaseMoveOperationsImpl( - this - ); - this.managedInstanceDtcs = new ManagedInstanceDtcsImpl(this); - this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); - this.virtualClusters = new VirtualClustersImpl(this); - this.instanceFailoverGroups = new InstanceFailoverGroupsImpl(this); - this.managedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsImpl( - this - ); - this.databaseEncryptionProtectors = new DatabaseEncryptionProtectorsImpl( - this - ); - this.managedDatabases = new ManagedDatabasesImpl(this); - this.managedInstances = new ManagedInstancesImpl(this); - this.managedLedgerDigestUploadsOperations = new ManagedLedgerDigestUploadsOperationsImpl( - this - ); - this.recoverableDatabases = new RecoverableDatabasesImpl(this); - this.restorableDroppedDatabases = new RestorableDroppedDatabasesImpl(this); - this.serverConfigurationOptions = new ServerConfigurationOptionsImpl(this); this.servers = new ServersImpl(this); - this.startStopManagedInstanceSchedules = new StartStopManagedInstanceSchedulesImpl( - this - ); - this.transparentDataEncryptions = new TransparentDataEncryptionsImpl(this); - this.failoverGroups = new FailoverGroupsImpl(this); - this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); + this.sqlAgent = new SqlAgentImpl(this); this.sqlVulnerabilityAssessmentBaseline = new SqlVulnerabilityAssessmentBaselineImpl( this ); @@ -664,78 +664,132 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.sqlVulnerabilityAssessments = new SqlVulnerabilityAssessmentsImpl( 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.startStopManagedInstanceSchedules = new StartStopManagedInstanceSchedulesImpl( this ); + this.subscriptionUsages = new SubscriptionUsagesImpl(this); + this.synapseLinkWorkspaces = new SynapseLinkWorkspacesImpl(this); + this.syncAgents = new SyncAgentsImpl(this); + this.syncGroups = new SyncGroupsImpl(this); + this.syncMembers = new SyncMembersImpl(this); + this.tdeCertificates = new TdeCertificatesImpl(this); + this.timeZones = new TimeZonesImpl(this); + this.transparentDataEncryptions = new TransparentDataEncryptionsImpl(this); + this.usages = new UsagesImpl(this); + this.virtualClusters = new VirtualClustersImpl(this); + this.virtualNetworkRules = new VirtualNetworkRulesImpl(this); + this.workloadClassifiers = new WorkloadClassifiersImpl(this); + this.workloadGroups = new WorkloadGroupsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } + backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; + serverBlobAuditingPolicies: ServerBlobAuditingPolicies; + databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; + extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; + extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; dataMaskingPolicies: DataMaskingPolicies; dataMaskingRules: DataMaskingRules; - geoBackupPolicies: GeoBackupPolicies; - databases: Databases; - elasticPools: ElasticPools; - serverCommunicationLinks: ServerCommunicationLinks; - serviceObjectives: ServiceObjectives; - elasticPoolActivities: ElasticPoolActivities; - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - serverUsages: ServerUsages; + dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; + databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; databaseAdvisors: DatabaseAdvisors; databaseAutomaticTuningOperations: DatabaseAutomaticTuningOperations; databaseColumns: DatabaseColumns; + databaseEncryptionProtectors: DatabaseEncryptionProtectors; + databaseExtensionsOperations: DatabaseExtensionsOperations; + databaseOperations: DatabaseOperations; databaseRecommendedActions: DatabaseRecommendedActions; databaseSchemas: DatabaseSchemas; databaseSecurityAlertPolicies: DatabaseSecurityAlertPolicies; + databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; + databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; + databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; + databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; + databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; + databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; databaseTables: DatabaseTables; + databaseUsages: DatabaseUsages; databaseVulnerabilityAssessmentRuleBaselines: DatabaseVulnerabilityAssessmentRuleBaselines; - databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; databaseVulnerabilityAssessmentScans: DatabaseVulnerabilityAssessmentScans; - dataWarehouseUserActivitiesOperations: DataWarehouseUserActivitiesOperations; + databaseVulnerabilityAssessments: DatabaseVulnerabilityAssessments; + databases: Databases; deletedServers: DeletedServers; + distributedAvailabilityGroups: DistributedAvailabilityGroups; elasticPoolOperations: ElasticPoolOperations; + elasticPools: ElasticPools; encryptionProtectors: EncryptionProtectors; + endpointCertificates: EndpointCertificates; + failoverGroups: FailoverGroups; firewallRules: FirewallRules; + geoBackupPolicies: GeoBackupPolicies; + iPv6FirewallRules: IPv6FirewallRules; + instanceFailoverGroups: InstanceFailoverGroups; instancePools: InstancePools; jobAgents: JobAgents; jobCredentials: JobCredentials; jobExecutions: JobExecutions; - jobs: Jobs; jobStepExecutions: JobStepExecutions; jobSteps: JobSteps; jobTargetExecutions: JobTargetExecutions; jobTargetGroups: JobTargetGroups; jobVersions: JobVersions; + jobs: Jobs; + ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; capabilities: Capabilities; + longTermRetentionBackups: LongTermRetentionBackups; + longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; longTermRetentionPolicies: LongTermRetentionPolicies; maintenanceWindowOptionsOperations: MaintenanceWindowOptionsOperations; maintenanceWindowsOperations: MaintenanceWindowsOperations; managedBackupShortTermRetentionPolicies: ManagedBackupShortTermRetentionPolicies; + managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; managedDatabaseColumns: ManagedDatabaseColumns; + managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; managedDatabaseQueries: ManagedDatabaseQueries; + managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; managedDatabaseSchemas: ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: ManagedDatabaseSecurityAlertPolicies; managedDatabaseSecurityEvents: ManagedDatabaseSecurityEvents; + managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; managedDatabaseTables: ManagedDatabaseTables; managedDatabaseTransparentDataEncryption: ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: ManagedDatabaseVulnerabilityAssessmentRuleBaselines; - managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; managedDatabaseVulnerabilityAssessmentScans: ManagedDatabaseVulnerabilityAssessmentScans; + managedDatabaseVulnerabilityAssessments: ManagedDatabaseVulnerabilityAssessments; + managedDatabases: ManagedDatabases; managedInstanceAdministrators: ManagedInstanceAdministrators; + managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; managedInstanceAzureADOnlyAuthentications: ManagedInstanceAzureADOnlyAuthentications; + managedInstanceDtcs: ManagedInstanceDtcs; managedInstanceEncryptionProtectors: ManagedInstanceEncryptionProtectors; managedInstanceKeys: ManagedInstanceKeys; managedInstanceLongTermRetentionPolicies: ManagedInstanceLongTermRetentionPolicies; @@ -744,80 +798,42 @@ export class SqlManagementClient extends coreClient.ServiceClient { managedInstancePrivateLinkResources: ManagedInstancePrivateLinkResources; managedInstanceTdeCertificates: ManagedInstanceTdeCertificates; managedInstanceVulnerabilityAssessments: ManagedInstanceVulnerabilityAssessments; + managedInstances: ManagedInstances; + managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; + managedServerDnsAliases: ManagedServerDnsAliases; managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; operations: Operations; + outboundFirewallRules: OutboundFirewallRules; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + recoverableDatabases: RecoverableDatabases; recoverableManagedDatabases: RecoverableManagedDatabases; + replicationLinks: ReplicationLinks; + restorableDroppedDatabases: RestorableDroppedDatabases; + restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; restorePoints: RestorePoints; + sensitivityLabels: SensitivityLabels; + recommendedSensitivityLabels: RecommendedSensitivityLabels; + serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; serverAdvisors: ServerAdvisors; serverAutomaticTuningOperations: ServerAutomaticTuningOperations; serverAzureADAdministrators: ServerAzureADAdministrators; serverAzureADOnlyAuthentications: ServerAzureADOnlyAuthentications; + serverConfigurationOptions: ServerConfigurationOptions; + serverConnectionPolicies: ServerConnectionPolicies; serverDevOpsAuditSettings: ServerDevOpsAuditSettings; serverDnsAliases: ServerDnsAliases; serverKeys: ServerKeys; serverOperations: ServerOperations; serverSecurityAlertPolicies: ServerSecurityAlertPolicies; + serverTrustCertificates: ServerTrustCertificates; serverTrustGroups: ServerTrustGroups; + serverUsages: ServerUsages; serverVulnerabilityAssessments: ServerVulnerabilityAssessments; - sqlAgent: SqlAgent; - subscriptionUsages: SubscriptionUsages; - syncAgents: SyncAgents; - syncGroups: SyncGroups; - syncMembers: SyncMembers; - tdeCertificates: TdeCertificates; - timeZones: TimeZones; - virtualNetworkRules: VirtualNetworkRules; - workloadClassifiers: WorkloadClassifiers; - workloadGroups: WorkloadGroups; - backupShortTermRetentionPolicies: BackupShortTermRetentionPolicies; - databaseExtensionsOperations: DatabaseExtensionsOperations; - databaseOperations: DatabaseOperations; - databaseUsages: DatabaseUsages; - ledgerDigestUploadsOperations: LedgerDigestUploadsOperations; - outboundFirewallRules: OutboundFirewallRules; - usages: Usages; - longTermRetentionBackups: LongTermRetentionBackups; - longTermRetentionManagedInstanceBackups: LongTermRetentionManagedInstanceBackups; - restorableDroppedManagedDatabases: RestorableDroppedManagedDatabases; - serverConnectionPolicies: ServerConnectionPolicies; - distributedAvailabilityGroups: DistributedAvailabilityGroups; - serverTrustCertificates: ServerTrustCertificates; - endpointCertificates: EndpointCertificates; - managedDatabaseSensitivityLabels: ManagedDatabaseSensitivityLabels; - managedDatabaseRecommendedSensitivityLabels: ManagedDatabaseRecommendedSensitivityLabels; - sensitivityLabels: SensitivityLabels; - recommendedSensitivityLabels: RecommendedSensitivityLabels; - serverBlobAuditingPolicies: ServerBlobAuditingPolicies; - databaseBlobAuditingPolicies: DatabaseBlobAuditingPolicies; - extendedDatabaseBlobAuditingPolicies: ExtendedDatabaseBlobAuditingPolicies; - extendedServerBlobAuditingPolicies: ExtendedServerBlobAuditingPolicies; - databaseAdvancedThreatProtectionSettings: DatabaseAdvancedThreatProtectionSettings; - serverAdvancedThreatProtectionSettings: ServerAdvancedThreatProtectionSettings; - managedServerDnsAliases: ManagedServerDnsAliases; - managedDatabaseAdvancedThreatProtectionSettings: ManagedDatabaseAdvancedThreatProtectionSettings; - managedInstanceAdvancedThreatProtectionSettings: ManagedInstanceAdvancedThreatProtectionSettings; - replicationLinks: ReplicationLinks; - managedDatabaseMoveOperations: ManagedDatabaseMoveOperations; - managedInstanceDtcs: ManagedInstanceDtcs; - synapseLinkWorkspaces: SynapseLinkWorkspaces; - virtualClusters: VirtualClusters; - instanceFailoverGroups: InstanceFailoverGroups; - managedDatabaseRestoreDetails: ManagedDatabaseRestoreDetails; - databaseEncryptionProtectors: DatabaseEncryptionProtectors; - managedDatabases: ManagedDatabases; - managedInstances: ManagedInstances; - managedLedgerDigestUploadsOperations: ManagedLedgerDigestUploadsOperations; - recoverableDatabases: RecoverableDatabases; - restorableDroppedDatabases: RestorableDroppedDatabases; - serverConfigurationOptions: ServerConfigurationOptions; servers: Servers; - startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; - transparentDataEncryptions: TransparentDataEncryptions; - failoverGroups: FailoverGroups; - iPv6FirewallRules: IPv6FirewallRules; + sqlAgent: SqlAgent; sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; @@ -827,10 +843,18 @@ export class SqlManagementClient extends coreClient.ServiceClient { sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentsSettings: SqlVulnerabilityAssessmentsSettings; sqlVulnerabilityAssessments: SqlVulnerabilityAssessments; - databaseSqlVulnerabilityAssessmentBaselines: DatabaseSqlVulnerabilityAssessmentBaselines; - databaseSqlVulnerabilityAssessmentExecuteScan: DatabaseSqlVulnerabilityAssessmentExecuteScan; - databaseSqlVulnerabilityAssessmentRuleBaselines: DatabaseSqlVulnerabilityAssessmentRuleBaselines; - databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; - databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; - databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; + startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; + subscriptionUsages: SubscriptionUsages; + synapseLinkWorkspaces: SynapseLinkWorkspaces; + syncAgents: SyncAgents; + syncGroups: SyncGroups; + syncMembers: SyncMembers; + tdeCertificates: TdeCertificates; + timeZones: TimeZones; + transparentDataEncryptions: TransparentDataEncryptions; + usages: Usages; + virtualClusters: VirtualClusters; + virtualNetworkRules: VirtualNetworkRules; + workloadClassifiers: WorkloadClassifiers; + workloadGroups: WorkloadGroups; } 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"