From e419535451645c638ffdc72cdcc6899ed443bc90 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 6 Oct 2023 17:47:55 +0000 Subject: [PATCH] CodeGen from PR 26098 in Azure/azure-rest-api-specs Merge f6b17e1c928c5943774c6d265708a8f53b8550f6 into 9d5a9025be2589426419f9e4e2a63a3a1fd1b478 --- common/config/rush/pnpm-lock.yaml | 14 +- sdk/sql/arm-sql/CHANGELOG.md | 1767 +- sdk/sql/arm-sql/_meta.json | 6 +- sdk/sql/arm-sql/package.json | 18 +- sdk/sql/arm-sql/review/arm-sql.api.md | 1222 +- sdk/sql/arm-sql/src/models/index.ts | 18697 ++++++++-------- sdk/sql/arm-sql/src/models/mappers.ts | 16228 +++++++------- sdk/sql/arm-sql/src/models/parameters.ts | 1815 +- .../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 | 20 +- ...databaseSqlVulnerabilityAssessmentScans.ts | 10 +- ...baseSqlVulnerabilityAssessmentsSettings.ts | 12 +- .../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 | 172 +- .../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 | 144 +- .../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/jobPrivateEndpoints.ts | 542 + .../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 | 1538 +- ...longTermRetentionManagedInstanceBackups.ts | 542 +- .../operations/longTermRetentionPolicies.ts | 100 +- .../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 | 20 +- .../sqlVulnerabilityAssessmentScans.ts | 10 +- .../operations/sqlVulnerabilityAssessments.ts | 4 +- .../sqlVulnerabilityAssessmentsSettings.ts | 20 +- .../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 +- .../databaseVulnerabilityAssessmentScans.ts | 44 +- .../src/operationsInterfaces/databases.ts | 34 - .../distributedAvailabilityGroups.ts | 42 +- .../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 | 144 +- .../src/operationsInterfaces/instancePools.ts | 16 +- .../src/operationsInterfaces/jobExecutions.ts | 72 +- .../jobPrivateEndpoints.ts | 127 + .../src/operationsInterfaces/jobSteps.ts | 58 +- .../jobTargetExecutions.ts | 18 +- .../longTermRetentionBackups.ts | 275 +- ...longTermRetentionManagedInstanceBackups.ts | 32 +- .../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 - .../src/operationsInterfaces/syncGroups.ts | 148 +- sdk/sql/arm-sql/src/sqlManagementClient.ts | 724 +- sdk/sql/arm-sql/test/sampleTest.ts | 43 + sdk/sql/arm-sql/tsconfig.json | 10 +- 195 files changed, 29450 insertions(+), 26440 deletions(-) delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts create mode 100644 sdk/sql/arm-sql/src/operations/jobPrivateEndpoints.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/jobPrivateEndpoints.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/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index bde321a58542..e3ce5716b4f2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3962,7 +3962,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug@3.2.7: @@ -4214,7 +4214,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231005 + typescript: 5.3.0-dev.20231006 dev: false /eastasianwidth@0.2.0: @@ -8963,8 +8963,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231005: - resolution: {integrity: sha512-Twm3wBauTO94CSWbjXFMpsHsbaOUVssreq6pUo4wr8YsaIp0jim8EeCa9LfawFetQ+P4PODMmiM+uBhhWRVX0Q==} + /typescript@5.3.0-dev.20231006: + resolution: {integrity: sha512-jD5wAzdZhl5Emk89dTMb7EqlUmO+n+U/uldQsSMxYh1HQG9J5Ti63B6em7Ob7DgoT7pvbqFUBn3X7UxaBba1Tg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -15864,10 +15864,11 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-UWDalBs3pL6NKyLm9H7SFi3VKFjVN9dln3jnfAbSe68XMQoYTkutl0l8mQ3VuaLo784IKDp/7XabT/nPT4SBIA==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-WKRCqnYXQ09FZaDbEPOQxIf1vp1N7nmnEdVyBcqPjS0E/ThLSY/hU/73NIDnTvpDWyHYIzuxcJxgI1blpEgWRQ==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: + '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.38.0(@types/node@14.18.63) '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) '@rollup/plugin-json': 6.0.0(rollup@2.79.1) @@ -15879,7 +15880,7 @@ packages: cross-env: 7.0.3 dotenv: 16.3.1 mkdirp: 2.1.6 - mocha: 10.2.0 + mocha: 7.2.0 rimraf: 5.0.5 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.63)(rollup@2.79.1) @@ -15890,6 +15891,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-sqlvirtualmachine.tgz: diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index c677249f75de..5af7c4d07a25 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,779 +1,1028 @@ # Release History - -## 10.1.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 10.1.0-beta.2 (2023-09-20) - + +## 11.0.0-beta.1 (2023-10-06) + **Features** -- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover -- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait -- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders -- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams -- Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse -- Added Type Alias FreeLimitExhaustionBehavior -- 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 DatabaseUpdate has a new optional parameter encryptionProtectorAutoRotation -- Interface DatabaseUpdate has a new optional parameter freeLimitExhaustionBehavior -- Interface DatabaseUpdate has a new optional parameter useFreeLimit -- 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 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 ManagedDatabase has a new optional parameter isLedgerOn -- Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn -- Interface PrivateEndpointConnection has a new optional parameter groupIds -- Interface Server has a new optional parameter isIPv6Enabled -- Interface ServerUpdate has a new optional parameter isIPv6Enabled -- Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime -- Added Enum KnownFreeLimitExhaustionBehavior - -## 10.1.0-beta.1 (2023-07-28) + - Added operation group JobPrivateEndpoints + - 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 LongTermRetentionBackups.beginChangeAccessTier + - Added operation LongTermRetentionBackups.beginChangeAccessTierAndWait + - Added operation LongTermRetentionBackups.beginChangeAccessTierByResourceGroup + - Added operation LongTermRetentionBackups.beginChangeAccessTierByResourceGroupAndWait + - 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 ChangeLongTermRetentionBackupAccessTierParameters + - Added Interface DataMaskingRulesListByDatabaseNextOptionalParams + - Added Interface DistributedAvailabilityGroupDatabase + - 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 JobAgentEditionCapability + - Added Interface JobAgentIdentity + - Added Interface JobAgentServiceLevelObjectiveCapability + - Added Interface JobAgentUserAssignedIdentity + - Added Interface JobAgentVersionCapability + - Added Interface JobPrivateEndpoint + - Added Interface JobPrivateEndpointListResult + - Added Interface JobPrivateEndpointsCreateOrUpdateOptionalParams + - Added Interface JobPrivateEndpointsDeleteOptionalParams + - Added Interface JobPrivateEndpointsGetOptionalParams + - Added Interface JobPrivateEndpointsListByAgentNextOptionalParams + - Added Interface JobPrivateEndpointsListByAgentOptionalParams + - Added Interface LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams + - Added Interface LongTermRetentionBackupsChangeAccessTierOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + - Added Interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams + - Added Interface ManagedInstancesRefreshStatusOptionalParams + - Added Interface MaxLimitRangeCapability + - 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 PerDatabaseAutoPauseDelayTimeRange + - Added Interface PhaseDetails + - Added Interface QueryMetricIntervalAutoGenerated + - Added Interface RefreshExternalGovernanceStatusOperationResultMI + - Added Interface SensitivityLabelsListByDatabaseNextOptionalParams + - Added Interface SensitivityLabelsListByDatabaseOptionalParams + - Added Interface ServerUsagesListByServerNextOptionalParams + - Added Interface UpsertManagedServerOperationStepWithEstimatesAndDuration + - Added Type Alias AuthMetadataLookupModes + - Added Type Alias BackupStorageAccessTier + - Added Type Alias ClientClassificationSource + - Added Type Alias DataMaskingPolicyName + - Added Type Alias DataMaskingRulesListByDatabaseNextResponse + - Added Type Alias DistributedAvailabilityGroupsSetRoleResponse + - Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse + - Added Type Alias FailoverModeType + - 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 JobAgentIdentityType + - Added Type Alias JobPrivateEndpointsCreateOrUpdateResponse + - Added Type Alias JobPrivateEndpointsGetResponse + - Added Type Alias JobPrivateEndpointsListByAgentNextResponse + - Added Type Alias JobPrivateEndpointsListByAgentResponse + - Added Type Alias LinkRole + - Added Type Alias LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse + - Added Type Alias LongTermRetentionBackupsChangeAccessTierResponse + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse + - Added Type Alias ManagedDatabaseSensitivityLabelsListByDatabaseResponse + - Added Type Alias ManagedInstanceDatabaseFormat + - 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 SeedingModeType + - 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 failoverMode + - 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 DistributedAvailabilityGroup has a new optional parameter seedingMode + - Interface EditionCapability has a new optional parameter zonePinning + - Interface ElasticPool has a new optional parameter autoPauseDelay + - 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 ElasticPoolPerDatabaseSettings has a new optional parameter autoPauseDelay + - Interface ElasticPoolPerformanceLevelCapability has a new optional parameter supportedAutoPauseDelay + - Interface ElasticPoolPerformanceLevelCapability has a new optional parameter supportedMinCapacities + - Interface ElasticPoolPerformanceLevelCapability has a new optional parameter supportedPerDatabaseAutoPauseDelay + - Interface ElasticPoolUpdate has a new optional parameter autoPauseDelay + - 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 InstancePool has a new optional parameter dnsZone + - Interface InstancePool has a new optional parameter maintenanceConfigurationId + - Interface InstancePoolUpdate has a new optional parameter dnsZone + - Interface InstancePoolUpdate has a new optional parameter licenseType + - Interface InstancePoolUpdate has a new optional parameter maintenanceConfigurationId + - Interface InstancePoolUpdate has a new optional parameter sku + - Interface InstancePoolUpdate has a new optional parameter subnetId + - Interface InstancePoolUpdate has a new optional parameter vCores + - Interface JobAgent has a new optional parameter identity + - Interface JobAgentUpdate has a new optional parameter identity + - Interface LocationCapabilities has a new optional parameter supportedJobAgentVersions + - Interface LongTermRetentionBackup has a new optional parameter backupStorageAccessTier + - Interface LongTermRetentionBackup has a new optional parameter isBackupImmutable + - Interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams has a new optional parameter filter + - Interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams has a new optional parameter skip + - Interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams has a new optional parameter top + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams has a new optional parameter filter + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams has a new optional parameter skip + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams has a new optional parameter top + - Interface ManagedDatabase has a new optional parameter isLedgerOn + - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn + - Interface ManagedInstance has a new optional parameter authenticationMetadata + - Interface ManagedInstance has a new optional parameter createTime + - Interface ManagedInstance has a new optional parameter databaseFormat + - 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 ManagedInstanceLongTermRetentionBackup has a new optional parameter backupStorageAccessTier + - Interface ManagedInstanceLongTermRetentionPolicy has a new optional parameter backupStorageAccessTier + - Interface ManagedInstancePrivateLinkProperties has a new optional parameter requiredZoneNames + - Interface ManagedInstanceUpdate has a new optional parameter authenticationMetadata + - Interface ManagedInstanceUpdate has a new optional parameter createTime + - Interface ManagedInstanceUpdate has a new optional parameter databaseFormat + - 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 SensitivityLabel has a new optional parameter clientClassificationSource + - 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 KnownAuthMetadataLookupModes + - Added Enum KnownBackupStorageAccessTier + - Added Enum KnownClientClassificationSource + - Added Enum KnownDataMaskingPolicyName + - Added Enum KnownFailoverModeType + - Added Enum KnownFreeLimitExhaustionBehavior + - Added Enum KnownFreemiumType + - Added Enum KnownHybridSecondaryUsage + - Added Enum KnownHybridSecondaryUsageDetected + - Added Enum KnownInstanceRole + - Added Enum KnownJobAgentIdentityType + - Added Enum KnownLinkRole + - Added Enum KnownManagedInstanceDatabaseFormat + - Added Enum KnownPhase + - Added Enum KnownReplicaConnectedState + - Added Enum KnownReplicaSynchronizationHealth + - Added Enum KnownReplicationModeType + - Added Enum KnownRoleChangeType + - Added Enum KnownSecurityAlertPolicyNameAutoGenerated + - Added Enum KnownSeedingModeType + - Added Enum KnownStatus + - Enum KnownCapabilityGroup has a new value SupportedJobAgentVersions + - Enum KnownOperationMode has a new value Export + - Enum KnownOperationMode has a new value Import + - Enum KnownStorageCapabilityStorageAccountType has a new value Gzrs -**Features** - -- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover -- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait -- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders -- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams -- Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse -- 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 ElasticPoolUpdate has a new optional parameter availabilityZone -- Interface ElasticPoolUpdate has a new optional parameter minCapacity -- Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType -- Interface ManagedDatabase has a new optional parameter isLedgerOn -- Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn -- Interface PrivateEndpointConnection has a new optional parameter groupIds -- Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime +**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 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 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 + - 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 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 + - Type of parameter intervals of interface QueryStatisticsProperties is changed from QueryMetricInterval[] to QueryMetricIntervalAutoGenerated[] + - 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 KnownUnitDefinitionType + - Removed Enum KnownUnitType + - Removed Enum KnownUpsertManagedServerOperationStepStatus + + ## 10.0.0 (2023-03-22) - + **Features** -- Added operation group DatabaseAdvancedThreatProtectionSettings -- Added operation group DatabaseEncryptionProtectors -- Added operation group DatabaseSqlVulnerabilityAssessmentBaselines -- Added operation group DatabaseSqlVulnerabilityAssessmentExecuteScan -- Added operation group DatabaseSqlVulnerabilityAssessmentRuleBaselines -- Added operation group DatabaseSqlVulnerabilityAssessmentScanResult -- Added operation group DatabaseSqlVulnerabilityAssessmentScans -- Added operation group DatabaseSqlVulnerabilityAssessmentsSettings -- Added operation group DistributedAvailabilityGroups -- Added operation group EndpointCertificates -- Added operation group IPv6FirewallRules -- Added operation group ManagedDatabaseAdvancedThreatProtectionSettings -- Added operation group ManagedDatabaseMoveOperations -- Added operation group ManagedInstanceAdvancedThreatProtectionSettings -- Added operation group ManagedInstanceDtcs -- Added operation group ManagedLedgerDigestUploadsOperations -- Added operation group ManagedServerDnsAliases -- Added operation group ServerAdvancedThreatProtectionSettings -- Added operation group ServerConfigurationOptions -- Added operation group ServerTrustCertificates -- Added operation group SqlVulnerabilityAssessmentBaseline -- Added operation group SqlVulnerabilityAssessmentBaselines -- Added operation group SqlVulnerabilityAssessmentExecuteScan -- Added operation group SqlVulnerabilityAssessmentRuleBaseline -- Added operation group SqlVulnerabilityAssessmentRuleBaselines -- Added operation group SqlVulnerabilityAssessments -- Added operation group SqlVulnerabilityAssessmentScanResult -- Added operation group SqlVulnerabilityAssessmentScans -- Added operation group SqlVulnerabilityAssessmentsSettings -- Added operation group StartStopManagedInstanceSchedules -- Added operation group SynapseLinkWorkspaces -- Added operation ManagedDatabases.beginCancelMove -- Added operation ManagedDatabases.beginCancelMoveAndWait -- Added operation ManagedDatabases.beginCompleteMove -- Added operation ManagedDatabases.beginCompleteMoveAndWait -- Added operation ManagedDatabases.beginStartMove -- Added operation ManagedDatabases.beginStartMoveAndWait -- Added operation ManagedInstances.beginStart -- Added operation ManagedInstances.beginStartAndWait -- Added operation ManagedInstances.beginStop -- Added operation ManagedInstances.beginStopAndWait -- Added operation ManagedInstances.listOutboundNetworkDependenciesByManagedInstance -- Added operation ReplicationLinks.beginDelete -- Added operation ReplicationLinks.beginDeleteAndWait -- Added operation Servers.beginRefreshStatus -- Added operation Servers.beginRefreshStatusAndWait -- Added operation TransparentDataEncryptions.beginCreateOrUpdate -- Added operation TransparentDataEncryptions.beginCreateOrUpdateAndWait -- Added operation VirtualClusters.beginUpdateDnsServers -- Added operation VirtualClusters.beginUpdateDnsServersAndWait -- Added Interface Baseline -- Added Interface BaselineAdjustedResult -- Added Interface BenchmarkReference -- Added Interface DatabaseAdvancedThreatProtection -- Added Interface DatabaseAdvancedThreatProtectionListResult -- Added Interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams -- Added Interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams -- Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams -- Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams -- Added Interface DatabaseEncryptionProtectorsRevalidateOptionalParams -- Added Interface DatabaseEncryptionProtectorsRevertOptionalParams -- Added Interface DatabaseKey -- Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentBaselineSet -- Added Interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult -- Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaseline -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams -- Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams -- Added Interface DistributedAvailabilityGroup -- Added Interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams -- Added Interface DistributedAvailabilityGroupsDeleteOptionalParams -- Added Interface DistributedAvailabilityGroupsGetOptionalParams -- Added Interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams -- Added Interface DistributedAvailabilityGroupsListByInstanceOptionalParams -- Added Interface DistributedAvailabilityGroupsListResult -- Added Interface DistributedAvailabilityGroupsUpdateOptionalParams -- Added Interface EndpointCertificate -- Added Interface EndpointCertificateListResult -- Added Interface EndpointCertificatesGetOptionalParams -- Added Interface EndpointCertificatesListByInstanceNextOptionalParams -- Added Interface EndpointCertificatesListByInstanceOptionalParams -- Added Interface EndpointDependency -- Added Interface EndpointDetail -- Added Interface IPv6FirewallRule -- Added Interface IPv6FirewallRuleListResult -- Added Interface IPv6FirewallRulesCreateOrUpdateOptionalParams -- Added Interface IPv6FirewallRulesDeleteOptionalParams -- Added Interface IPv6FirewallRulesGetOptionalParams -- Added Interface IPv6FirewallRulesListByServerNextOptionalParams -- Added Interface IPv6FirewallRulesListByServerOptionalParams -- Added Interface LogicalServerAdvancedThreatProtectionListResult -- Added Interface ManagedDatabaseAdvancedThreatProtection -- Added Interface ManagedDatabaseAdvancedThreatProtectionListResult -- Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams -- Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams -- Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams -- Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams -- Added Interface ManagedDatabaseMoveDefinition -- Added Interface ManagedDatabaseMoveOperationListResult -- Added Interface ManagedDatabaseMoveOperationResult -- Added Interface ManagedDatabaseMoveOperationsGetOptionalParams -- Added Interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams -- Added Interface ManagedDatabaseMoveOperationsListByLocationOptionalParams -- Added Interface ManagedDatabaseRestoreDetailsBackupSetProperties -- Added Interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties -- Added Interface ManagedDatabasesCancelMoveOptionalParams -- Added Interface ManagedDatabasesCompleteMoveOptionalParams -- Added Interface ManagedDatabasesStartMoveOptionalParams -- Added Interface ManagedDatabaseStartMoveDefinition -- Added Interface ManagedInstanceAdvancedThreatProtection -- Added Interface ManagedInstanceAdvancedThreatProtectionListResult -- Added Interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams -- Added Interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams -- Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams -- Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams -- Added Interface ManagedInstanceDtc -- Added Interface ManagedInstanceDtcListResult -- Added Interface ManagedInstanceDtcsCreateOrUpdateOptionalParams -- Added Interface ManagedInstanceDtcSecuritySettings -- Added Interface ManagedInstanceDtcsGetOptionalParams -- Added Interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams -- Added Interface ManagedInstanceDtcsListByManagedInstanceOptionalParams -- Added Interface ManagedInstanceDtcTransactionManagerCommunicationSettings -- Added Interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams -- Added Interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams -- Added Interface ManagedInstancesStartOptionalParams -- Added Interface ManagedInstancesStopOptionalParams -- Added Interface ManagedLedgerDigestUploads -- Added Interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams -- Added Interface ManagedLedgerDigestUploadsDisableOptionalParams -- Added Interface ManagedLedgerDigestUploadsGetOptionalParams -- Added Interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams -- Added Interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams -- Added Interface ManagedLedgerDigestUploadsListResult -- Added Interface ManagedServerDnsAlias -- Added Interface ManagedServerDnsAliasAcquisition -- Added Interface ManagedServerDnsAliasCreation -- Added Interface ManagedServerDnsAliasesAcquireOptionalParams -- Added Interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams -- Added Interface ManagedServerDnsAliasesDeleteOptionalParams -- Added Interface ManagedServerDnsAliasesGetOptionalParams -- Added Interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams -- Added Interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams -- Added Interface ManagedServerDnsAliasListResult -- Added Interface OutboundEnvironmentEndpoint -- Added Interface OutboundEnvironmentEndpointCollection -- Added Interface QueryCheck -- Added Interface RecoverableDatabasesListByServerNextOptionalParams -- Added Interface RefreshExternalGovernanceStatusOperationResult -- Added Interface Remediation -- Added Interface ScheduleItem -- Added Interface ServerAdvancedThreatProtection -- Added Interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams -- Added Interface ServerAdvancedThreatProtectionSettingsGetOptionalParams -- Added Interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams -- Added Interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams -- Added Interface ServerConfigurationOption -- Added Interface ServerConfigurationOptionListResult -- Added Interface ServerConfigurationOptionsCreateOrUpdateOptionalParams -- Added Interface ServerConfigurationOptionsGetOptionalParams -- Added Interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams -- Added Interface ServerConfigurationOptionsListByManagedInstanceOptionalParams -- Added Interface ServersRefreshStatusOptionalParams -- Added Interface ServerTrustCertificate -- Added Interface ServerTrustCertificatesCreateOrUpdateOptionalParams -- Added Interface ServerTrustCertificatesDeleteOptionalParams -- Added Interface ServerTrustCertificatesGetOptionalParams -- Added Interface ServerTrustCertificatesListByInstanceNextOptionalParams -- Added Interface ServerTrustCertificatesListByInstanceOptionalParams -- Added Interface ServerTrustCertificatesListResult -- Added Interface SqlVulnerabilityAssessment -- Added Interface SqlVulnerabilityAssessmentBaselineGetOptionalParams -- Added Interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams -- Added Interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams -- Added Interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams -- Added Interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams -- Added Interface SqlVulnerabilityAssessmentListResult -- Added Interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams -- Added Interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams -- Added Interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams -- Added Interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams -- Added Interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams -- Added Interface SqlVulnerabilityAssessmentScanError -- Added Interface SQLVulnerabilityAssessmentScanListResult -- Added Interface SqlVulnerabilityAssessmentScanRecord -- Added Interface SqlVulnerabilityAssessmentScanRecordListResult -- Added Interface SqlVulnerabilityAssessmentScanResultGetOptionalParams -- Added Interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams -- Added Interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams -- Added Interface SqlVulnerabilityAssessmentScanResults -- Added Interface SqlVulnerabilityAssessmentScansGetOptionalParams -- Added Interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams -- Added Interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams -- Added Interface SqlVulnerabilityAssessmentsDeleteOptionalParams -- Added Interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams -- Added Interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams -- Added Interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams -- Added Interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams -- Added Interface StartStopManagedInstanceSchedule -- Added Interface StartStopManagedInstanceScheduleListResult -- Added Interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams -- Added Interface StartStopManagedInstanceSchedulesDeleteOptionalParams -- Added Interface StartStopManagedInstanceSchedulesGetOptionalParams -- Added Interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams -- Added Interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams -- Added Interface SynapseLinkWorkspace -- Added Interface SynapseLinkWorkspaceInfoProperties -- Added Interface SynapseLinkWorkspaceListResult -- Added Interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams -- Added Interface SynapseLinkWorkspacesListByDatabaseOptionalParams -- Added Interface UpdateVirtualClusterDnsServersOperation -- Added Interface VaRule -- Added Type Alias AdvancedThreatProtectionName -- Added Type Alias AdvancedThreatProtectionState -- Added Type Alias AlwaysEncryptedEnclaveType -- Added Type Alias AvailabilityZoneType -- Added Type Alias BaselineName -- Added Type Alias DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse -- Added Type Alias DatabaseAdvancedThreatProtectionSettingsGetResponse -- Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse -- Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse -- Added Type Alias DatabaseKeyType -- Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultGetResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentScansGetResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse -- Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse -- Added Type Alias DevOpsAuditingSettingsName -- Added Type Alias DistributedAvailabilityGroupsCreateOrUpdateResponse -- Added Type Alias DistributedAvailabilityGroupsGetResponse -- Added Type Alias DistributedAvailabilityGroupsListByInstanceNextResponse -- Added Type Alias DistributedAvailabilityGroupsListByInstanceResponse -- Added Type Alias DistributedAvailabilityGroupsUpdateResponse -- Added Type Alias DNSRefreshOperationStatus -- Added Type Alias DtcName -- Added Type Alias EndpointCertificatesGetResponse -- Added Type Alias EndpointCertificatesListByInstanceNextResponse -- Added Type Alias EndpointCertificatesListByInstanceResponse -- Added Type Alias ExternalGovernanceStatus -- Added Type Alias IPv6FirewallRulesCreateOrUpdateResponse -- Added Type Alias IPv6FirewallRulesGetResponse -- Added Type Alias IPv6FirewallRulesListByServerNextResponse -- Added Type Alias IPv6FirewallRulesListByServerResponse -- Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse -- Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse -- Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse -- Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse -- Added Type Alias ManagedDatabaseMoveOperationsGetResponse -- Added Type Alias ManagedDatabaseMoveOperationsListByLocationNextResponse -- Added Type Alias ManagedDatabaseMoveOperationsListByLocationResponse -- Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse -- Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsGetResponse -- Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse -- Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse -- Added Type Alias ManagedInstanceDtcsCreateOrUpdateResponse -- Added Type Alias ManagedInstanceDtcsGetResponse -- Added Type Alias ManagedInstanceDtcsListByManagedInstanceNextResponse -- Added Type Alias ManagedInstanceDtcsListByManagedInstanceResponse -- Added Type Alias ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse -- Added Type Alias ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse -- Added Type Alias ManagedLedgerDigestUploadsCreateOrUpdateResponse -- Added Type Alias ManagedLedgerDigestUploadsDisableResponse -- Added Type Alias ManagedLedgerDigestUploadsGetResponse -- Added Type Alias ManagedLedgerDigestUploadsListByDatabaseNextResponse -- Added Type Alias ManagedLedgerDigestUploadsListByDatabaseResponse -- Added Type Alias ManagedLedgerDigestUploadsName -- Added Type Alias ManagedLedgerDigestUploadsState -- Added Type Alias ManagedServerDnsAliasesAcquireResponse -- Added Type Alias ManagedServerDnsAliasesCreateOrUpdateResponse -- Added Type Alias ManagedServerDnsAliasesGetResponse -- Added Type Alias ManagedServerDnsAliasesListByManagedInstanceNextResponse -- Added Type Alias ManagedServerDnsAliasesListByManagedInstanceResponse -- Added Type Alias MoveOperationMode -- Added Type Alias RecoverableDatabasesListByServerNextResponse -- Added Type Alias ReplicationLinksFailoverAllowDataLossResponse -- Added Type Alias ReplicationLinksFailoverResponse -- Added Type Alias ReplicationMode -- Added Type Alias RuleSeverity -- Added Type Alias RuleStatus -- Added Type Alias RuleType -- Added Type Alias SecondaryInstanceType -- Added Type Alias ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse -- Added Type Alias ServerAdvancedThreatProtectionSettingsGetResponse -- Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerNextResponse -- Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerResponse -- Added Type Alias ServerConfigurationOptionName -- Added Type Alias ServerConfigurationOptionsCreateOrUpdateResponse -- Added Type Alias ServerConfigurationOptionsGetResponse -- Added Type Alias ServerConfigurationOptionsListByManagedInstanceNextResponse -- Added Type Alias ServerConfigurationOptionsListByManagedInstanceResponse -- Added Type Alias ServerPublicNetworkAccessFlag -- Added Type Alias ServersRefreshStatusResponse -- Added Type Alias ServerTrustCertificatesCreateOrUpdateResponse -- Added Type Alias ServerTrustCertificatesGetResponse -- Added Type Alias ServerTrustCertificatesListByInstanceNextResponse -- Added Type Alias ServerTrustCertificatesListByInstanceResponse -- Added Type Alias SqlVulnerabilityAssessmentBaselineGetResponse -- Added Type Alias SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse -- Added Type Alias SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse -- Added Type Alias SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse -- Added Type Alias SQLVulnerabilityAssessmentName -- Added Type Alias SqlVulnerabilityAssessmentName -- Added Type Alias SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse -- Added Type Alias SqlVulnerabilityAssessmentRuleBaselineGetResponse -- Added Type Alias SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse -- Added Type Alias SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse -- Added Type Alias SqlVulnerabilityAssessmentScanResultGetResponse -- Added Type Alias SqlVulnerabilityAssessmentScanResultListByScanNextResponse -- Added Type Alias SqlVulnerabilityAssessmentScanResultListByScanResponse -- Added Type Alias SqlVulnerabilityAssessmentScansGetResponse -- Added Type Alias SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse -- Added Type Alias SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse -- Added Type Alias SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse -- Added Type Alias SqlVulnerabilityAssessmentsSettingsGetResponse -- Added Type Alias SqlVulnerabilityAssessmentsSettingsListByServerNextResponse -- Added Type Alias SqlVulnerabilityAssessmentsSettingsListByServerResponse -- Added Type Alias SqlVulnerabilityAssessmentState -- Added Type Alias StartStopManagedInstanceSchedulesCreateOrUpdateResponse -- Added Type Alias StartStopManagedInstanceSchedulesGetResponse -- Added Type Alias StartStopManagedInstanceSchedulesListByInstanceNextResponse -- Added Type Alias StartStopManagedInstanceSchedulesListByInstanceResponse -- Added Type Alias StartStopScheduleName -- Added Type Alias SynapseLinkWorkspacesListByDatabaseNextResponse -- Added Type Alias SynapseLinkWorkspacesListByDatabaseResponse -- Added Type Alias SyncGroupsType -- Interface Database has a new optional parameter availabilityZone -- Interface Database has a new optional parameter encryptionProtector -- Interface Database has a new optional parameter keys -- Interface Database has a new optional parameter manualCutover -- Interface Database has a new optional parameter performCutover -- Interface Database has a new optional parameter preferredEnclaveType -- Interface Database has a new optional parameter sourceResourceId -- Interface DatabaseBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse -- Interface DatabasesGetOptionalParams has a new optional parameter expand -- Interface DatabasesGetOptionalParams has a new optional parameter filter -- Interface DatabaseUpdate has a new optional parameter encryptionProtector -- Interface DatabaseUpdate has a new optional parameter keys -- Interface DatabaseUpdate has a new optional parameter manualCutover -- Interface DatabaseUpdate has a new optional parameter performCutover -- Interface DatabaseUpdate has a new optional parameter preferredEnclaveType -- Interface ElasticPool has a new optional parameter highAvailabilityReplicaCount -- Interface ElasticPoolUpdate has a new optional parameter highAvailabilityReplicaCount -- Interface ExtendedDatabaseBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse -- Interface ExtendedServerBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse -- Interface InstanceFailoverGroup has a new optional parameter secondaryType -- Interface ManagedDatabase has a new optional parameter crossSubscriptionRestorableDroppedDatabaseId -- Interface ManagedDatabase has a new optional parameter crossSubscriptionSourceDatabaseId -- Interface ManagedDatabase has a new optional parameter crossSubscriptionTargetManagedInstanceId -- Interface ManagedDatabase has a new optional parameter storageContainerIdentity -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentBackupType -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentRestoredSizeMB -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentRestorePlanSizeMB -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter diffBackupSets -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter fullBackupSets -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter logBackupSets -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesQueued -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesRestored -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesRestoring -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesSkipped -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesUnrestorable -- Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter typePropertiesType -- Interface ManagedDatabaseUpdate has a new optional parameter crossSubscriptionRestorableDroppedDatabaseId -- Interface ManagedDatabaseUpdate has a new optional parameter crossSubscriptionSourceDatabaseId -- Interface ManagedDatabaseUpdate has a new optional parameter crossSubscriptionTargetManagedInstanceId -- Interface ManagedDatabaseUpdate has a new optional parameter storageContainerIdentity -- Interface PrivateEndpointConnectionProperties has a new optional parameter groupIds -- Interface RecoverableDatabase has a new optional parameter keys -- Interface RecoverableDatabaseListResult has a new optional parameter nextLink -- Interface RecoverableDatabasesGetOptionalParams has a new optional parameter expand -- Interface RecoverableDatabasesGetOptionalParams has a new optional parameter filter -- Interface ReplicationLinksDeleteOptionalParams has a new optional parameter resumeFrom -- Interface ReplicationLinksDeleteOptionalParams has a new optional parameter updateIntervalInMs -- Interface RestorableDroppedDatabase has a new optional parameter keys -- Interface RestorableDroppedDatabasesGetOptionalParams has a new optional parameter expand -- Interface RestorableDroppedDatabasesGetOptionalParams has a new optional parameter filter -- Interface Server has a new optional parameter externalGovernanceStatus -- Interface ServerBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse -- Interface ServerDevOpsAuditingSettings has a new optional parameter isManagedIdentityInUse -- Interface ServerUpdate has a new optional parameter externalGovernanceStatus -- Interface TransparentDataEncryptionsCreateOrUpdateOptionalParams has a new optional parameter resumeFrom -- Interface TransparentDataEncryptionsCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs -- Interface VirtualCluster has a new optional parameter version -- Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter resumeFrom -- Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter updateIntervalInMs -- Interface VirtualClusterUpdate has a new optional parameter version -- Added Enum KnownAdvancedThreatProtectionName -- Added Enum KnownAlwaysEncryptedEnclaveType -- Added Enum KnownAvailabilityZoneType -- Added Enum KnownBaselineName -- Added Enum KnownDatabaseKeyType -- Added Enum KnownDevOpsAuditingSettingsName -- Added Enum KnownDNSRefreshOperationStatus -- Added Enum KnownDtcName -- Added Enum KnownExternalGovernanceStatus -- Added Enum KnownManagedLedgerDigestUploadsName -- Added Enum KnownManagedLedgerDigestUploadsState -- Added Enum KnownMoveOperationMode -- Added Enum KnownReplicationMode -- Added Enum KnownRuleSeverity -- Added Enum KnownRuleStatus -- Added Enum KnownRuleType -- Added Enum KnownSecondaryInstanceType -- Added Enum KnownServerConfigurationOptionName -- Added Enum KnownServerPublicNetworkAccessFlag -- Added Enum KnownSQLVulnerabilityAssessmentName -- Added Enum KnownSqlVulnerabilityAssessmentName -- Added Enum KnownStartStopScheduleName -- Added Enum KnownSyncGroupsType -- Enum KnownManagedDatabaseStatus has a new value DbCopying -- Enum KnownManagedDatabaseStatus has a new value DbMoving -- Enum KnownManagedDatabaseStatus has a new value Starting -- Enum KnownManagedDatabaseStatus has a new value Stopped -- Enum KnownManagedDatabaseStatus has a new value Stopping -- Enum KnownReplicationLinkType has a new value Standby -- Enum KnownSecondaryType has a new value Standby + - Added operation group DatabaseAdvancedThreatProtectionSettings + - Added operation group DatabaseEncryptionProtectors + - Added operation group DatabaseSqlVulnerabilityAssessmentBaselines + - Added operation group DatabaseSqlVulnerabilityAssessmentExecuteScan + - Added operation group DatabaseSqlVulnerabilityAssessmentRuleBaselines + - Added operation group DatabaseSqlVulnerabilityAssessmentScanResult + - Added operation group DatabaseSqlVulnerabilityAssessmentScans + - Added operation group DatabaseSqlVulnerabilityAssessmentsSettings + - Added operation group DistributedAvailabilityGroups + - Added operation group EndpointCertificates + - Added operation group IPv6FirewallRules + - Added operation group ManagedDatabaseAdvancedThreatProtectionSettings + - Added operation group ManagedDatabaseMoveOperations + - Added operation group ManagedInstanceAdvancedThreatProtectionSettings + - Added operation group ManagedInstanceDtcs + - Added operation group ManagedLedgerDigestUploadsOperations + - Added operation group ManagedServerDnsAliases + - Added operation group ServerAdvancedThreatProtectionSettings + - Added operation group ServerConfigurationOptions + - Added operation group ServerTrustCertificates + - Added operation group SqlVulnerabilityAssessmentBaseline + - Added operation group SqlVulnerabilityAssessmentBaselines + - Added operation group SqlVulnerabilityAssessmentExecuteScan + - Added operation group SqlVulnerabilityAssessmentRuleBaseline + - Added operation group SqlVulnerabilityAssessmentRuleBaselines + - Added operation group SqlVulnerabilityAssessments + - Added operation group SqlVulnerabilityAssessmentScanResult + - Added operation group SqlVulnerabilityAssessmentScans + - Added operation group SqlVulnerabilityAssessmentsSettings + - Added operation group StartStopManagedInstanceSchedules + - Added operation group SynapseLinkWorkspaces + - Added operation ManagedDatabases.beginCancelMove + - Added operation ManagedDatabases.beginCancelMoveAndWait + - Added operation ManagedDatabases.beginCompleteMove + - Added operation ManagedDatabases.beginCompleteMoveAndWait + - Added operation ManagedDatabases.beginStartMove + - Added operation ManagedDatabases.beginStartMoveAndWait + - Added operation ManagedInstances.beginStart + - Added operation ManagedInstances.beginStartAndWait + - Added operation ManagedInstances.beginStop + - Added operation ManagedInstances.beginStopAndWait + - Added operation ManagedInstances.listOutboundNetworkDependenciesByManagedInstance + - Added operation ReplicationLinks.beginDelete + - Added operation ReplicationLinks.beginDeleteAndWait + - Added operation Servers.beginRefreshStatus + - Added operation Servers.beginRefreshStatusAndWait + - Added operation TransparentDataEncryptions.beginCreateOrUpdate + - Added operation TransparentDataEncryptions.beginCreateOrUpdateAndWait + - Added operation VirtualClusters.beginUpdateDnsServers + - Added operation VirtualClusters.beginUpdateDnsServersAndWait + - Added Interface Baseline + - Added Interface BaselineAdjustedResult + - Added Interface BenchmarkReference + - Added Interface DatabaseAdvancedThreatProtection + - Added Interface DatabaseAdvancedThreatProtectionListResult + - Added Interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + - Added Interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + - Added Interface DatabaseEncryptionProtectorsRevalidateOptionalParams + - Added Interface DatabaseEncryptionProtectorsRevertOptionalParams + - Added Interface DatabaseKey + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselineSet + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaseline + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams + - Added Interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams + - Added Interface DistributedAvailabilityGroup + - Added Interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams + - Added Interface DistributedAvailabilityGroupsDeleteOptionalParams + - Added Interface DistributedAvailabilityGroupsGetOptionalParams + - Added Interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams + - Added Interface DistributedAvailabilityGroupsListByInstanceOptionalParams + - Added Interface DistributedAvailabilityGroupsListResult + - Added Interface DistributedAvailabilityGroupsUpdateOptionalParams + - Added Interface EndpointCertificate + - Added Interface EndpointCertificateListResult + - Added Interface EndpointCertificatesGetOptionalParams + - Added Interface EndpointCertificatesListByInstanceNextOptionalParams + - Added Interface EndpointCertificatesListByInstanceOptionalParams + - Added Interface EndpointDependency + - Added Interface EndpointDetail + - Added Interface IPv6FirewallRule + - Added Interface IPv6FirewallRuleListResult + - Added Interface IPv6FirewallRulesCreateOrUpdateOptionalParams + - Added Interface IPv6FirewallRulesDeleteOptionalParams + - Added Interface IPv6FirewallRulesGetOptionalParams + - Added Interface IPv6FirewallRulesListByServerNextOptionalParams + - Added Interface IPv6FirewallRulesListByServerOptionalParams + - Added Interface LogicalServerAdvancedThreatProtectionListResult + - Added Interface ManagedDatabaseAdvancedThreatProtection + - Added Interface ManagedDatabaseAdvancedThreatProtectionListResult + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams + - Added Interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + - Added Interface ManagedDatabaseMoveDefinition + - Added Interface ManagedDatabaseMoveOperationListResult + - Added Interface ManagedDatabaseMoveOperationResult + - Added Interface ManagedDatabaseMoveOperationsGetOptionalParams + - Added Interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams + - Added Interface ManagedDatabaseMoveOperationsListByLocationOptionalParams + - Added Interface ManagedDatabaseRestoreDetailsBackupSetProperties + - Added Interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties + - Added Interface ManagedDatabasesCancelMoveOptionalParams + - Added Interface ManagedDatabasesCompleteMoveOptionalParams + - Added Interface ManagedDatabasesStartMoveOptionalParams + - Added Interface ManagedDatabaseStartMoveDefinition + - Added Interface ManagedInstanceAdvancedThreatProtection + - Added Interface ManagedInstanceAdvancedThreatProtectionListResult + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams + - Added Interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams + - Added Interface ManagedInstanceDtc + - Added Interface ManagedInstanceDtcListResult + - Added Interface ManagedInstanceDtcsCreateOrUpdateOptionalParams + - Added Interface ManagedInstanceDtcSecuritySettings + - Added Interface ManagedInstanceDtcsGetOptionalParams + - Added Interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams + - Added Interface ManagedInstanceDtcsListByManagedInstanceOptionalParams + - Added Interface ManagedInstanceDtcTransactionManagerCommunicationSettings + - Added Interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams + - Added Interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams + - Added Interface ManagedInstancesStartOptionalParams + - Added Interface ManagedInstancesStopOptionalParams + - Added Interface ManagedLedgerDigestUploads + - Added Interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + - Added Interface ManagedLedgerDigestUploadsDisableOptionalParams + - Added Interface ManagedLedgerDigestUploadsGetOptionalParams + - Added Interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams + - Added Interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams + - Added Interface ManagedLedgerDigestUploadsListResult + - Added Interface ManagedServerDnsAlias + - Added Interface ManagedServerDnsAliasAcquisition + - Added Interface ManagedServerDnsAliasCreation + - Added Interface ManagedServerDnsAliasesAcquireOptionalParams + - Added Interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams + - Added Interface ManagedServerDnsAliasesDeleteOptionalParams + - Added Interface ManagedServerDnsAliasesGetOptionalParams + - Added Interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams + - Added Interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams + - Added Interface ManagedServerDnsAliasListResult + - Added Interface OutboundEnvironmentEndpoint + - Added Interface OutboundEnvironmentEndpointCollection + - Added Interface QueryCheck + - Added Interface RecoverableDatabasesListByServerNextOptionalParams + - Added Interface RefreshExternalGovernanceStatusOperationResult + - Added Interface Remediation + - Added Interface ScheduleItem + - Added Interface ServerAdvancedThreatProtection + - Added Interface ServerAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsGetOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalParams + - Added Interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams + - Added Interface ServerConfigurationOption + - Added Interface ServerConfigurationOptionListResult + - Added Interface ServerConfigurationOptionsCreateOrUpdateOptionalParams + - Added Interface ServerConfigurationOptionsGetOptionalParams + - Added Interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams + - Added Interface ServerConfigurationOptionsListByManagedInstanceOptionalParams + - Added Interface ServersRefreshStatusOptionalParams + - Added Interface ServerTrustCertificate + - Added Interface ServerTrustCertificatesCreateOrUpdateOptionalParams + - Added Interface ServerTrustCertificatesDeleteOptionalParams + - Added Interface ServerTrustCertificatesGetOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceNextOptionalParams + - Added Interface ServerTrustCertificatesListByInstanceOptionalParams + - Added Interface ServerTrustCertificatesListResult + - Added Interface SqlVulnerabilityAssessment + - Added Interface SqlVulnerabilityAssessmentBaselineGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams + - Added Interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + - Added Interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams + - Added Interface SqlVulnerabilityAssessmentListResult + - Added Interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams + - Added Interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanError + - Added Interface SQLVulnerabilityAssessmentScanListResult + - Added Interface SqlVulnerabilityAssessmentScanRecord + - Added Interface SqlVulnerabilityAssessmentScanRecordListResult + - Added Interface SqlVulnerabilityAssessmentScanResultGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + - Added Interface SqlVulnerabilityAssessmentScanResults + - Added Interface SqlVulnerabilityAssessmentScansGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams + - Added Interface SqlVulnerabilityAssessmentsDeleteOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams + - Added Interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams + - Added Interface StartStopManagedInstanceSchedule + - Added Interface StartStopManagedInstanceScheduleListResult + - Added Interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams + - Added Interface StartStopManagedInstanceSchedulesDeleteOptionalParams + - Added Interface StartStopManagedInstanceSchedulesGetOptionalParams + - Added Interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams + - Added Interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams + - Added Interface SynapseLinkWorkspace + - Added Interface SynapseLinkWorkspaceInfoProperties + - Added Interface SynapseLinkWorkspaceListResult + - Added Interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams + - Added Interface SynapseLinkWorkspacesListByDatabaseOptionalParams + - Added Interface UpdateVirtualClusterDnsServersOperation + - Added Interface VaRule + - Added Type Alias AdvancedThreatProtectionName + - Added Type Alias AdvancedThreatProtectionState + - Added Type Alias AlwaysEncryptedEnclaveType + - Added Type Alias AvailabilityZoneType + - Added Type Alias BaselineName + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + - Added Type Alias DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse + - Added Type Alias DatabaseKeyType + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScansGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse + - Added Type Alias DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse + - Added Type Alias DevOpsAuditingSettingsName + - Added Type Alias DistributedAvailabilityGroupsCreateOrUpdateResponse + - Added Type Alias DistributedAvailabilityGroupsGetResponse + - Added Type Alias DistributedAvailabilityGroupsListByInstanceNextResponse + - Added Type Alias DistributedAvailabilityGroupsListByInstanceResponse + - Added Type Alias DistributedAvailabilityGroupsUpdateResponse + - Added Type Alias DNSRefreshOperationStatus + - Added Type Alias DtcName + - Added Type Alias EndpointCertificatesGetResponse + - Added Type Alias EndpointCertificatesListByInstanceNextResponse + - Added Type Alias EndpointCertificatesListByInstanceResponse + - Added Type Alias ExternalGovernanceStatus + - Added Type Alias IPv6FirewallRulesCreateOrUpdateResponse + - Added Type Alias IPv6FirewallRulesGetResponse + - Added Type Alias IPv6FirewallRulesListByServerNextResponse + - Added Type Alias IPv6FirewallRulesListByServerResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse + - Added Type Alias ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse + - Added Type Alias ManagedDatabaseMoveOperationsGetResponse + - Added Type Alias ManagedDatabaseMoveOperationsListByLocationNextResponse + - Added Type Alias ManagedDatabaseMoveOperationsListByLocationResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse + - Added Type Alias ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse + - Added Type Alias ManagedInstanceDtcsCreateOrUpdateResponse + - Added Type Alias ManagedInstanceDtcsGetResponse + - Added Type Alias ManagedInstanceDtcsListByManagedInstanceNextResponse + - Added Type Alias ManagedInstanceDtcsListByManagedInstanceResponse + - Added Type Alias ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse + - Added Type Alias ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse + - Added Type Alias ManagedLedgerDigestUploadsCreateOrUpdateResponse + - Added Type Alias ManagedLedgerDigestUploadsDisableResponse + - Added Type Alias ManagedLedgerDigestUploadsGetResponse + - Added Type Alias ManagedLedgerDigestUploadsListByDatabaseNextResponse + - Added Type Alias ManagedLedgerDigestUploadsListByDatabaseResponse + - Added Type Alias ManagedLedgerDigestUploadsName + - Added Type Alias ManagedLedgerDigestUploadsState + - Added Type Alias ManagedServerDnsAliasesAcquireResponse + - Added Type Alias ManagedServerDnsAliasesCreateOrUpdateResponse + - Added Type Alias ManagedServerDnsAliasesGetResponse + - Added Type Alias ManagedServerDnsAliasesListByManagedInstanceNextResponse + - Added Type Alias ManagedServerDnsAliasesListByManagedInstanceResponse + - Added Type Alias MoveOperationMode + - Added Type Alias RecoverableDatabasesListByServerNextResponse + - Added Type Alias ReplicationLinksFailoverAllowDataLossResponse + - Added Type Alias ReplicationLinksFailoverResponse + - Added Type Alias ReplicationMode + - Added Type Alias RuleSeverity + - Added Type Alias RuleStatus + - Added Type Alias RuleType + - Added Type Alias SecondaryInstanceType + - Added Type Alias ServerAdvancedThreatProtectionSettingsCreateOrUpdateResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsGetResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerNextResponse + - Added Type Alias ServerAdvancedThreatProtectionSettingsListByServerResponse + - Added Type Alias ServerConfigurationOptionName + - Added Type Alias ServerConfigurationOptionsCreateOrUpdateResponse + - Added Type Alias ServerConfigurationOptionsGetResponse + - Added Type Alias ServerConfigurationOptionsListByManagedInstanceNextResponse + - Added Type Alias ServerConfigurationOptionsListByManagedInstanceResponse + - Added Type Alias ServerPublicNetworkAccessFlag + - Added Type Alias ServersRefreshStatusResponse + - Added Type Alias ServerTrustCertificatesCreateOrUpdateResponse + - Added Type Alias ServerTrustCertificatesGetResponse + - Added Type Alias ServerTrustCertificatesListByInstanceNextResponse + - Added Type Alias ServerTrustCertificatesListByInstanceResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselineGetResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse + - Added Type Alias SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse + - Added Type Alias SQLVulnerabilityAssessmentName + - Added Type Alias SqlVulnerabilityAssessmentName + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineGetResponse + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse + - Added Type Alias SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse + - Added Type Alias SqlVulnerabilityAssessmentScanResultGetResponse + - Added Type Alias SqlVulnerabilityAssessmentScanResultListByScanNextResponse + - Added Type Alias SqlVulnerabilityAssessmentScanResultListByScanResponse + - Added Type Alias SqlVulnerabilityAssessmentScansGetResponse + - Added Type Alias SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse + - Added Type Alias SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsListByServerNextResponse + - Added Type Alias SqlVulnerabilityAssessmentsSettingsListByServerResponse + - Added Type Alias SqlVulnerabilityAssessmentState + - Added Type Alias StartStopManagedInstanceSchedulesCreateOrUpdateResponse + - Added Type Alias StartStopManagedInstanceSchedulesGetResponse + - Added Type Alias StartStopManagedInstanceSchedulesListByInstanceNextResponse + - Added Type Alias StartStopManagedInstanceSchedulesListByInstanceResponse + - Added Type Alias StartStopScheduleName + - Added Type Alias SynapseLinkWorkspacesListByDatabaseNextResponse + - Added Type Alias SynapseLinkWorkspacesListByDatabaseResponse + - Added Type Alias SyncGroupsType + - Interface Database has a new optional parameter availabilityZone + - Interface Database has a new optional parameter encryptionProtector + - Interface Database has a new optional parameter keys + - Interface Database has a new optional parameter manualCutover + - Interface Database has a new optional parameter performCutover + - Interface Database has a new optional parameter preferredEnclaveType + - Interface Database has a new optional parameter sourceResourceId + - Interface DatabaseBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface DatabasesGetOptionalParams has a new optional parameter expand + - Interface DatabasesGetOptionalParams has a new optional parameter filter + - Interface DatabaseUpdate has a new optional parameter encryptionProtector + - Interface DatabaseUpdate has a new optional parameter keys + - Interface DatabaseUpdate has a new optional parameter manualCutover + - Interface DatabaseUpdate has a new optional parameter performCutover + - Interface DatabaseUpdate has a new optional parameter preferredEnclaveType + - Interface ElasticPool has a new optional parameter highAvailabilityReplicaCount + - Interface ElasticPoolUpdate has a new optional parameter highAvailabilityReplicaCount + - Interface ExtendedDatabaseBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface ExtendedServerBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface InstanceFailoverGroup has a new optional parameter secondaryType + - Interface ManagedDatabase has a new optional parameter crossSubscriptionRestorableDroppedDatabaseId + - Interface ManagedDatabase has a new optional parameter crossSubscriptionSourceDatabaseId + - Interface ManagedDatabase has a new optional parameter crossSubscriptionTargetManagedInstanceId + - Interface ManagedDatabase has a new optional parameter storageContainerIdentity + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentBackupType + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentRestoredSizeMB + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter currentRestorePlanSizeMB + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter diffBackupSets + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter fullBackupSets + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter logBackupSets + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesQueued + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesRestored + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesRestoring + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesSkipped + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter numberOfFilesUnrestorable + - Interface ManagedDatabaseRestoreDetailsResult has a new optional parameter typePropertiesType + - Interface ManagedDatabaseUpdate has a new optional parameter crossSubscriptionRestorableDroppedDatabaseId + - Interface ManagedDatabaseUpdate has a new optional parameter crossSubscriptionSourceDatabaseId + - Interface ManagedDatabaseUpdate has a new optional parameter crossSubscriptionTargetManagedInstanceId + - Interface ManagedDatabaseUpdate has a new optional parameter storageContainerIdentity + - Interface PrivateEndpointConnectionProperties has a new optional parameter groupIds + - Interface RecoverableDatabase has a new optional parameter keys + - Interface RecoverableDatabaseListResult has a new optional parameter nextLink + - Interface RecoverableDatabasesGetOptionalParams has a new optional parameter expand + - Interface RecoverableDatabasesGetOptionalParams has a new optional parameter filter + - Interface ReplicationLinksDeleteOptionalParams has a new optional parameter resumeFrom + - Interface ReplicationLinksDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface RestorableDroppedDatabase has a new optional parameter keys + - Interface RestorableDroppedDatabasesGetOptionalParams has a new optional parameter expand + - Interface RestorableDroppedDatabasesGetOptionalParams has a new optional parameter filter + - Interface Server has a new optional parameter externalGovernanceStatus + - Interface ServerBlobAuditingPolicy has a new optional parameter isManagedIdentityInUse + - Interface ServerDevOpsAuditingSettings has a new optional parameter isManagedIdentityInUse + - Interface ServerUpdate has a new optional parameter externalGovernanceStatus + - Interface TransparentDataEncryptionsCreateOrUpdateOptionalParams has a new optional parameter resumeFrom + - Interface TransparentDataEncryptionsCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface VirtualCluster has a new optional parameter version + - Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter resumeFrom + - Interface VirtualClustersUpdateDnsServersOptionalParams has a new optional parameter updateIntervalInMs + - Interface VirtualClusterUpdate has a new optional parameter version + - Added Enum KnownAdvancedThreatProtectionName + - Added Enum KnownAlwaysEncryptedEnclaveType + - Added Enum KnownAvailabilityZoneType + - Added Enum KnownBaselineName + - Added Enum KnownDatabaseKeyType + - Added Enum KnownDevOpsAuditingSettingsName + - Added Enum KnownDNSRefreshOperationStatus + - Added Enum KnownDtcName + - Added Enum KnownExternalGovernanceStatus + - Added Enum KnownManagedLedgerDigestUploadsName + - Added Enum KnownManagedLedgerDigestUploadsState + - Added Enum KnownMoveOperationMode + - Added Enum KnownReplicationMode + - Added Enum KnownRuleSeverity + - Added Enum KnownRuleStatus + - Added Enum KnownRuleType + - Added Enum KnownSecondaryInstanceType + - Added Enum KnownServerConfigurationOptionName + - Added Enum KnownServerPublicNetworkAccessFlag + - Added Enum KnownSQLVulnerabilityAssessmentName + - Added Enum KnownSqlVulnerabilityAssessmentName + - Added Enum KnownStartStopScheduleName + - Added Enum KnownSyncGroupsType + - Enum KnownManagedDatabaseStatus has a new value DbCopying + - Enum KnownManagedDatabaseStatus has a new value DbMoving + - Enum KnownManagedDatabaseStatus has a new value Starting + - Enum KnownManagedDatabaseStatus has a new value Stopped + - Enum KnownManagedDatabaseStatus has a new value Stopping + - Enum KnownReplicationLinkType has a new value Standby + - Enum KnownSecondaryType has a new value Standby **Breaking Changes** -- Removed operation group OperationsHealthOperations -- Removed operation ReplicationLinks.beginUnlink -- Removed operation ReplicationLinks.beginUnlinkAndWait -- Removed operation ReplicationLinks.delete -- Removed operation TransparentDataEncryptions.createOrUpdate -- Removed operation VirtualClusters.updateDnsServers -- Operation ServerDevOpsAuditSettings.beginCreateOrUpdate has a new signature -- Operation ServerDevOpsAuditSettings.beginCreateOrUpdateAndWait has a new signature -- Operation ServerDevOpsAuditSettings.get has a new signature -- Operation SyncGroups.listLogs has a new signature -- Interface Database no longer has parameter primaryDelegatedIdentityClientId -- Interface DatabaseIdentity no longer has parameter delegatedResources -- Interface DatabaseUpdate no longer has parameter primaryDelegatedIdentityClientId -- Interface VirtualCluster no longer has parameter family -- Interface VirtualCluster no longer has parameter maintenanceConfigurationId -- Interface VirtualClusterUpdate no longer has parameter family -- Interface VirtualClusterUpdate no longer has parameter maintenanceConfigurationId -- Type of parameter unrestorableFiles of interface ManagedDatabaseRestoreDetailsResult is changed from string[] to ManagedDatabaseRestoreDetailsUnrestorableFileProperties[] -- Type of parameter publicNetworkAccess of interface Server is changed from ServerNetworkAccessFlag to ServerPublicNetworkAccessFlag -- Type of parameter publicNetworkAccess of interface ServerUpdate is changed from ServerNetworkAccessFlag to ServerPublicNetworkAccessFlag -- Class SqlManagementClient no longer has parameter operationsHealthOperations -- Removed Enum KnownDnsRefreshConfigurationPropertiesStatus -- Removed Enum KnownEnum60 - + - Removed operation group OperationsHealthOperations + - Removed operation ReplicationLinks.beginUnlink + - Removed operation ReplicationLinks.beginUnlinkAndWait + - Removed operation ReplicationLinks.delete + - Removed operation TransparentDataEncryptions.createOrUpdate + - Removed operation VirtualClusters.updateDnsServers + - Operation ServerDevOpsAuditSettings.beginCreateOrUpdate has a new signature + - Operation ServerDevOpsAuditSettings.beginCreateOrUpdateAndWait has a new signature + - Operation ServerDevOpsAuditSettings.get has a new signature + - Operation SyncGroups.listLogs has a new signature + - Interface Database no longer has parameter primaryDelegatedIdentityClientId + - Interface DatabaseIdentity no longer has parameter delegatedResources + - Interface DatabaseUpdate no longer has parameter primaryDelegatedIdentityClientId + - Interface VirtualCluster no longer has parameter family + - Interface VirtualCluster no longer has parameter maintenanceConfigurationId + - Interface VirtualClusterUpdate no longer has parameter family + - Interface VirtualClusterUpdate no longer has parameter maintenanceConfigurationId + - Type of parameter unrestorableFiles of interface ManagedDatabaseRestoreDetailsResult is changed from string[] to ManagedDatabaseRestoreDetailsUnrestorableFileProperties[] + - Type of parameter publicNetworkAccess of interface Server is changed from ServerNetworkAccessFlag to ServerPublicNetworkAccessFlag + - Type of parameter publicNetworkAccess of interface ServerUpdate is changed from ServerNetworkAccessFlag to ServerPublicNetworkAccessFlag + - Class SqlManagementClient no longer has parameter operationsHealthOperations + - Removed Enum KnownDnsRefreshConfigurationPropertiesStatus + - Removed Enum KnownEnum60 + + ## 9.1.0 (2022-12-14) - + **Features** -- Added Interface Advisor -- Added Interface BackupShortTermRetentionPolicy -- Added Interface Database -- Added Interface DatabaseAutomaticTuning -- Added Interface DatabaseBlobAuditingPolicy -- Added Interface DatabaseColumn -- Added Interface DatabaseExtensions -- Added Interface DatabaseOperation -- Added Interface DatabaseSchema -- Added Interface DatabaseSecurityAlertPolicy -- Added Interface DatabaseTable -- Added Interface DatabaseUsage -- Added Interface DatabaseVulnerabilityAssessment -- Added Interface DatabaseVulnerabilityAssessmentRuleBaseline -- Added Interface DatabaseVulnerabilityAssessmentScansExport -- Added Interface DataMaskingPolicy -- Added Interface DataMaskingRule -- Added Interface DataWarehouseUserActivities -- Added Interface DeletedServer -- Added Interface ElasticPool -- Added Interface ElasticPoolActivity -- Added Interface ElasticPoolDatabaseActivity -- Added Interface ElasticPoolOperation -- Added Interface EncryptionProtector -- Added Interface ExtendedDatabaseBlobAuditingPolicy -- Added Interface ExtendedServerBlobAuditingPolicy -- Added Interface FailoverGroup -- Added Interface FirewallRule -- Added Interface GeoBackupPolicy -- Added Interface ImportExportExtensionsOperationResult -- Added Interface ImportExportOperationResult -- Added Interface InstanceFailoverGroup -- Added Interface InstancePool -- Added Interface Job -- Added Interface JobAgent -- Added Interface JobCredential -- Added Interface JobExecution -- Added Interface JobStep -- Added Interface JobTargetGroup -- Added Interface JobVersion -- Added Interface LedgerDigestUploads -- Added Interface LogicalDatabaseTransparentDataEncryption -- Added Interface LongTermRetentionBackup -- Added Interface LongTermRetentionBackupOperationResult -- Added Interface LongTermRetentionPolicy -- Added Interface MaintenanceWindowOptions -- Added Interface MaintenanceWindows -- Added Interface ManagedBackupShortTermRetentionPolicy -- Added Interface ManagedDatabase -- Added Interface ManagedDatabaseRestoreDetailsResult -- Added Interface ManagedDatabaseSecurityAlertPolicy -- Added Interface ManagedInstance -- Added Interface ManagedInstanceAdministrator -- Added Interface ManagedInstanceAzureADOnlyAuthentication -- Added Interface ManagedInstanceEncryptionProtector -- Added Interface ManagedInstanceKey -- Added Interface ManagedInstanceLongTermRetentionBackup -- Added Interface ManagedInstanceLongTermRetentionPolicy -- Added Interface ManagedInstanceOperation -- Added Interface ManagedInstancePrivateEndpointConnection -- Added Interface ManagedInstancePrivateLink -- Added Interface ManagedInstanceQuery -- Added Interface ManagedInstanceVulnerabilityAssessment -- Added Interface ManagedServerSecurityAlertPolicy -- Added Interface ManagedTransparentDataEncryption -- Added Interface OperationsHealth -- Added Interface OutboundFirewallRule -- Added Interface PrivateEndpointConnection -- Added Interface PrivateLinkResource -- Added Interface ProxyResource -- Added Interface ProxyResourceWithWritableName -- Added Interface QueryStatistics -- Added Interface RecommendedAction -- Added Interface RecommendedSensitivityLabelUpdate -- Added Interface RecoverableDatabase -- Added Interface RecoverableManagedDatabase -- Added Interface ReplicationLink -- Added Interface RestorableDroppedDatabase -- Added Interface RestorableDroppedManagedDatabase -- Added Interface RestorePoint -- Added Interface SecurityEvent -- Added Interface SensitivityLabel -- Added Interface SensitivityLabelUpdate -- Added Interface Server -- Added Interface ServerAutomaticTuning -- Added Interface ServerAzureADAdministrator -- Added Interface ServerAzureADOnlyAuthentication -- Added Interface ServerBlobAuditingPolicy -- Added Interface ServerCommunicationLink -- Added Interface ServerConnectionPolicy -- Added Interface ServerDevOpsAuditingSettings -- Added Interface ServerDnsAlias -- Added Interface ServerKey -- Added Interface ServerOperation -- Added Interface ServerSecurityAlertPolicy -- Added Interface ServerTrustGroup -- Added Interface ServerVulnerabilityAssessment -- Added Interface ServiceObjective -- Added Interface SqlAgentConfiguration -- Added Interface SubscriptionUsage -- Added Interface SyncAgent -- Added Interface SyncAgentLinkedDatabase -- Added Interface SyncGroup -- Added Interface SyncMember -- Added Interface TdeCertificate -- Added Interface TimeZone -- Added Interface TrackedResource -- Added Interface UpdateManagedInstanceDnsServersOperation -- Added Interface VirtualCluster -- Added Interface VirtualNetworkRule -- Added Interface VulnerabilityAssessmentScanRecord -- Added Interface WorkloadClassifier -- Added Interface WorkloadGroup -- Added function getContinuationToken -- Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter column -- Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter orderBy -- Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter schema -- Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter skiptoken -- Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter table -- Interface DatabaseColumnsListByTableNextOptionalParams no longer has parameter filter -- Interface DatabaseSchemasListByDatabaseNextOptionalParams no longer has parameter filter -- Interface DatabasesListByServerNextOptionalParams no longer has parameter skipToken -- Interface DatabaseTablesListBySchemaNextOptionalParams no longer has parameter filter -- Interface ElasticPoolsListByServerNextOptionalParams no longer has parameter skip -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter createTimeMax -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter createTimeMin -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter endTimeMax -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter endTimeMin -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter isActive -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter skip -- Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter top -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter createTimeMax -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter createTimeMin -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter endTimeMax -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter endTimeMin -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter isActive -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter skip -- Interface JobExecutionsListByJobNextOptionalParams no longer has parameter top -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMax -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMin -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMax -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMin -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter isActive -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter skip -- Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter top -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMax -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMin -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMax -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMin -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter isActive -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter skip -- Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter top -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter createTimeMax -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter createTimeMin -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter endTimeMax -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter endTimeMin -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter isActive -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter skip -- Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter top -- Interface LongTermRetentionBackupsListByDatabaseNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionBackupsListByDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionBackupsListByLocationNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionBackupsListByLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionBackupsListByServerNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionBackupsListByServerNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter databaseState -- Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase -- Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter column -- Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter orderBy -- Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter schema -- Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter skiptoken -- Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter table -- Interface ManagedDatabaseColumnsListByTableNextOptionalParams no longer has parameter filter -- Interface ManagedDatabaseQueriesListByQueryNextOptionalParams no longer has parameter endTime -- Interface ManagedDatabaseQueriesListByQueryNextOptionalParams no longer has parameter interval -- Interface ManagedDatabaseQueriesListByQueryNextOptionalParams no longer has parameter startTime -- Interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams no longer has parameter filter -- Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter filter -- Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter skip -- Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter skiptoken -- Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter top -- Interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter count -- Interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter filter -- Interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter skipToken -- Interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter filter -- Interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter includeDisabledRecommendations -- Interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter skipToken -- Interface ManagedDatabaseTablesListBySchemaNextOptionalParams no longer has parameter filter -- Interface ManagedInstanceKeysListByInstanceNextOptionalParams no longer has parameter filter -- Interface ManagedInstancesListByInstancePoolNextOptionalParams no longer has parameter expand -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter aggregationFunction -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter databases -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter endTime -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter interval -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter numberOfQueries -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter observationMetric -- Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter startTime -- Interface ManagedInstancesListByResourceGroupNextOptionalParams no longer has parameter expand -- Interface ManagedInstancesListNextOptionalParams no longer has parameter expand -- Interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter count -- Interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter filter -- Interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter skipToken -- Interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter filter -- Interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter includeDisabledRecommendations -- Interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter skipToken -- Interface ServersListByResourceGroupNextOptionalParams no longer has parameter expand -- Interface ServersListNextOptionalParams no longer has parameter expand -- Interface SyncGroupsListLogsNextOptionalParams no longer has parameter continuationToken -- Interface UsagesListByInstancePoolNextOptionalParams no longer has parameter expandChildren - + - Added Interface Advisor + - Added Interface BackupShortTermRetentionPolicy + - Added Interface Database + - Added Interface DatabaseAutomaticTuning + - Added Interface DatabaseBlobAuditingPolicy + - Added Interface DatabaseColumn + - Added Interface DatabaseExtensions + - Added Interface DatabaseOperation + - Added Interface DatabaseSchema + - Added Interface DatabaseSecurityAlertPolicy + - Added Interface DatabaseTable + - Added Interface DatabaseUsage + - Added Interface DatabaseVulnerabilityAssessment + - Added Interface DatabaseVulnerabilityAssessmentRuleBaseline + - Added Interface DatabaseVulnerabilityAssessmentScansExport + - Added Interface DataMaskingPolicy + - Added Interface DataMaskingRule + - Added Interface DataWarehouseUserActivities + - Added Interface DeletedServer + - Added Interface ElasticPool + - Added Interface ElasticPoolActivity + - Added Interface ElasticPoolDatabaseActivity + - Added Interface ElasticPoolOperation + - Added Interface EncryptionProtector + - Added Interface ExtendedDatabaseBlobAuditingPolicy + - Added Interface ExtendedServerBlobAuditingPolicy + - Added Interface FailoverGroup + - Added Interface FirewallRule + - Added Interface GeoBackupPolicy + - Added Interface ImportExportExtensionsOperationResult + - Added Interface ImportExportOperationResult + - Added Interface InstanceFailoverGroup + - Added Interface InstancePool + - Added Interface Job + - Added Interface JobAgent + - Added Interface JobCredential + - Added Interface JobExecution + - Added Interface JobStep + - Added Interface JobTargetGroup + - Added Interface JobVersion + - Added Interface LedgerDigestUploads + - Added Interface LogicalDatabaseTransparentDataEncryption + - Added Interface LongTermRetentionBackup + - Added Interface LongTermRetentionBackupOperationResult + - Added Interface LongTermRetentionPolicy + - Added Interface MaintenanceWindowOptions + - Added Interface MaintenanceWindows + - Added Interface ManagedBackupShortTermRetentionPolicy + - Added Interface ManagedDatabase + - Added Interface ManagedDatabaseRestoreDetailsResult + - Added Interface ManagedDatabaseSecurityAlertPolicy + - Added Interface ManagedInstance + - Added Interface ManagedInstanceAdministrator + - Added Interface ManagedInstanceAzureADOnlyAuthentication + - Added Interface ManagedInstanceEncryptionProtector + - Added Interface ManagedInstanceKey + - Added Interface ManagedInstanceLongTermRetentionBackup + - Added Interface ManagedInstanceLongTermRetentionPolicy + - Added Interface ManagedInstanceOperation + - Added Interface ManagedInstancePrivateEndpointConnection + - Added Interface ManagedInstancePrivateLink + - Added Interface ManagedInstanceQuery + - Added Interface ManagedInstanceVulnerabilityAssessment + - Added Interface ManagedServerSecurityAlertPolicy + - Added Interface ManagedTransparentDataEncryption + - Added Interface OperationsHealth + - Added Interface OutboundFirewallRule + - Added Interface PrivateEndpointConnection + - Added Interface PrivateLinkResource + - Added Interface ProxyResource + - Added Interface ProxyResourceWithWritableName + - Added Interface QueryStatistics + - Added Interface RecommendedAction + - Added Interface RecommendedSensitivityLabelUpdate + - Added Interface RecoverableDatabase + - Added Interface RecoverableManagedDatabase + - Added Interface ReplicationLink + - Added Interface RestorableDroppedDatabase + - Added Interface RestorableDroppedManagedDatabase + - Added Interface RestorePoint + - Added Interface SecurityEvent + - Added Interface SensitivityLabel + - Added Interface SensitivityLabelUpdate + - Added Interface Server + - Added Interface ServerAutomaticTuning + - Added Interface ServerAzureADAdministrator + - Added Interface ServerAzureADOnlyAuthentication + - Added Interface ServerBlobAuditingPolicy + - Added Interface ServerCommunicationLink + - Added Interface ServerConnectionPolicy + - Added Interface ServerDevOpsAuditingSettings + - Added Interface ServerDnsAlias + - Added Interface ServerKey + - Added Interface ServerOperation + - Added Interface ServerSecurityAlertPolicy + - Added Interface ServerTrustGroup + - Added Interface ServerVulnerabilityAssessment + - Added Interface ServiceObjective + - Added Interface SqlAgentConfiguration + - Added Interface SubscriptionUsage + - Added Interface SyncAgent + - Added Interface SyncAgentLinkedDatabase + - Added Interface SyncGroup + - Added Interface SyncMember + - Added Interface TdeCertificate + - Added Interface TimeZone + - Added Interface TrackedResource + - Added Interface UpdateManagedInstanceDnsServersOperation + - Added Interface VirtualCluster + - Added Interface VirtualNetworkRule + - Added Interface VulnerabilityAssessmentScanRecord + - Added Interface WorkloadClassifier + - Added Interface WorkloadGroup + - Added function getContinuationToken + - Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter column + - Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter orderBy + - Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter schema + - Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter skiptoken + - Interface DatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter table + - Interface DatabaseColumnsListByTableNextOptionalParams no longer has parameter filter + - Interface DatabaseSchemasListByDatabaseNextOptionalParams no longer has parameter filter + - Interface DatabasesListByServerNextOptionalParams no longer has parameter skipToken + - Interface DatabaseTablesListBySchemaNextOptionalParams no longer has parameter filter + - Interface ElasticPoolsListByServerNextOptionalParams no longer has parameter skip + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter createTimeMax + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter createTimeMin + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter endTimeMax + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter endTimeMin + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter isActive + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter skip + - Interface JobExecutionsListByAgentNextOptionalParams no longer has parameter top + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter createTimeMax + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter createTimeMin + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter endTimeMax + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter endTimeMin + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter isActive + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter skip + - Interface JobExecutionsListByJobNextOptionalParams no longer has parameter top + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMax + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMin + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMax + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMin + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter isActive + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter skip + - Interface JobStepExecutionsListByJobExecutionNextOptionalParams no longer has parameter top + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMax + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter createTimeMin + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMax + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter endTimeMin + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter isActive + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter skip + - Interface JobTargetExecutionsListByJobExecutionNextOptionalParams no longer has parameter top + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter createTimeMax + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter createTimeMin + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter endTimeMax + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter endTimeMin + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter isActive + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter skip + - Interface JobTargetExecutionsListByStepNextOptionalParams no longer has parameter top + - Interface LongTermRetentionBackupsListByDatabaseNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionBackupsListByDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionBackupsListByLocationNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionBackupsListByLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionBackupsListByServerNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionBackupsListByServerNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter databaseState + - Interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams no longer has parameter onlyLatestPerDatabase + - Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter column + - Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter orderBy + - Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter schema + - Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter skiptoken + - Interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams no longer has parameter table + - Interface ManagedDatabaseColumnsListByTableNextOptionalParams no longer has parameter filter + - Interface ManagedDatabaseQueriesListByQueryNextOptionalParams no longer has parameter endTime + - Interface ManagedDatabaseQueriesListByQueryNextOptionalParams no longer has parameter interval + - Interface ManagedDatabaseQueriesListByQueryNextOptionalParams no longer has parameter startTime + - Interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams no longer has parameter filter + - Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter filter + - Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter skip + - Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter skiptoken + - Interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams no longer has parameter top + - Interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter count + - Interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter filter + - Interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter skipToken + - Interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter filter + - Interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter includeDisabledRecommendations + - Interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter skipToken + - Interface ManagedDatabaseTablesListBySchemaNextOptionalParams no longer has parameter filter + - Interface ManagedInstanceKeysListByInstanceNextOptionalParams no longer has parameter filter + - Interface ManagedInstancesListByInstancePoolNextOptionalParams no longer has parameter expand + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter aggregationFunction + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter databases + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter endTime + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter interval + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter numberOfQueries + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter observationMetric + - Interface ManagedInstancesListByManagedInstanceNextOptionalParams no longer has parameter startTime + - Interface ManagedInstancesListByResourceGroupNextOptionalParams no longer has parameter expand + - Interface ManagedInstancesListNextOptionalParams no longer has parameter expand + - Interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter count + - Interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter filter + - Interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams no longer has parameter skipToken + - Interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter filter + - Interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter includeDisabledRecommendations + - Interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams no longer has parameter skipToken + - Interface ServersListByResourceGroupNextOptionalParams no longer has parameter expand + - Interface ServersListNextOptionalParams no longer has parameter expand + - Interface SyncGroupsListLogsNextOptionalParams no longer has parameter continuationToken + - Interface UsagesListByInstancePoolNextOptionalParams no longer has parameter expandChildren + ## 9.0.1 (2022-05-01) **Features** -- Bug fix + - Bug fix ## 9.0.0 (2021-12-07) @@ -783,4 +1032,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/sql/arm-sql/_meta.json b/sdk/sql/arm-sql/_meta.json index df0553898d9b..2213bc88484d 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0d9dd8cfd99b5e6e373fb1d18a481b93e1d2a428", + "commit": "f10704e0351741c016de4a179c386ab6b9cbc370", "readme": "specification/sql/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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.2", - "use": "@autorest/typescript@6.0.9" + "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 bc05a4d7f562..651cf45414e3 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SqlManagementClient.", - "version": "10.1.0-beta.3", + "version": "11.0.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -40,10 +40,10 @@ "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^3.3.0", + "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", - "mocha": "^10.0.0", + "mocha": "^7.1.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", @@ -112,13 +112,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 593dedf2bb05..0043319edec9 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -52,6 +52,9 @@ export type AlwaysEncryptedEnclaveType = string; // @public export type AuthenticationName = string; +// @public +export type AuthMetadataLookupModes = string; + // @public export type AutoExecuteStatus = "Enabled" | "Disabled" | "Default"; @@ -172,6 +175,9 @@ export interface BackupShortTermRetentionPolicyListResult { readonly value?: BackupShortTermRetentionPolicy[]; } +// @public +export type BackupStorageAccessTier = string; + // @public export type BackupStorageRedundancy = string; @@ -223,6 +229,18 @@ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled"; // @public export type CatalogCollationType = string; +// @public +export interface CertificateInfo { + readonly certificateName?: string; + readonly expiryDate?: Date; +} + +// @public +export interface ChangeLongTermRetentionBackupAccessTierParameters { + backupStorageAccessTier: string; + operationMode: string; +} + // @public export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; @@ -242,6 +260,9 @@ export interface CheckNameAvailabilityResponse { readonly reason?: CheckNameAvailabilityReason; } +// @public +export type ClientClassificationSource = string; + // @public export type ColumnDataType = string; @@ -578,7 +599,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; @@ -663,6 +691,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; @@ -754,8 +783,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; } @@ -944,20 +971,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; @@ -1489,8 +1502,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 @@ -1517,6 +1530,9 @@ export interface DataMaskingPolicy extends ProxyResource { readonly maskingLevel?: string; } +// @public +export type DataMaskingPolicyName = string; + // @public export interface DataMaskingRule extends ProxyResource { aliasName?: string; @@ -1537,13 +1553,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 @@ -1553,6 +1570,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 { } @@ -1561,10 +1585,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 { @@ -1685,16 +1709,41 @@ export type DiffBackupIntervalInHours = number; // @public export interface DistributedAvailabilityGroup extends ProxyResource { + databases?: DistributedAvailabilityGroupDatabase[]; readonly distributedAvailabilityGroupId?: string; + readonly distributedAvailabilityGroupName?: string; + failoverMode?: FailoverModeType; + instanceAvailabilityGroupName?: string; + instanceLinkRole?: LinkRole; + partnerAvailabilityGroupName?: string; + partnerEndpoint?: string; + readonly partnerLinkRole?: LinkRole; + replicationMode?: ReplicationModeType; + seedingMode?: SeedingModeType; +} + +// @public +export interface DistributedAvailabilityGroupDatabase { + readonly connectedState?: ReplicaConnectedState; + 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 @@ -1703,6 +1752,8 @@ export interface DistributedAvailabilityGroups { beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, parameters: DistributedAvailabilityGroup, options?: DistributedAvailabilityGroupsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, managedInstanceName: string, distributedAvailabilityGroupName: string, options?: DistributedAvailabilityGroupsDeleteOptionalParams): Promise; + 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; @@ -1724,6 +1775,12 @@ export interface DistributedAvailabilityGroupsDeleteOptionalParams extends coreC updateIntervalInMs?: number; } +// @public +export interface DistributedAvailabilityGroupSetRole { + instanceRole: InstanceRole; + roleChangeType: RoleChangeType; +} + // @public export interface DistributedAvailabilityGroupsGetOptionalParams extends coreClient.OperationOptions { } @@ -1751,6 +1808,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; @@ -1774,11 +1840,13 @@ export interface EditionCapability { readonly status?: CapabilityStatus; readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; readonly supportedStorageCapabilities?: StorageCapability[]; + readonly zonePinning?: boolean; readonly zoneRedundant?: boolean; } // @public export interface ElasticPool extends TrackedResource { + autoPauseDelay?: number; availabilityZone?: AvailabilityZoneType; readonly creationDate?: Date; highAvailabilityReplicaCount?: number; @@ -1794,91 +1862,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; } @@ -1958,6 +1948,7 @@ export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { // @public export interface ElasticPoolPerDatabaseSettings { + autoPauseDelay?: number; maxCapacity?: number; minCapacity?: number; } @@ -1970,9 +1961,12 @@ export interface ElasticPoolPerformanceLevelCapability { reason?: string; readonly sku?: Sku; readonly status?: CapabilityStatus; + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; readonly supportedLicenseTypes?: LicenseTypeCapability[]; readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly supportedMinCapacities?: MinCapacityCapability[]; + readonly supportedPerDatabaseAutoPauseDelay?: PerDatabaseAutoPauseDelayTimeRange; readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; readonly zoneRedundant?: boolean; @@ -1990,8 +1984,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 @@ -2037,20 +2029,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; @@ -2065,6 +2043,7 @@ export type ElasticPoolsUpdateResponse = ElasticPool; // @public export interface ElasticPoolUpdate { + autoPauseDelay?: number; availabilityZone?: AvailabilityZoneType; highAvailabilityReplicaCount?: number; licenseType?: ElasticPoolLicenseType; @@ -2196,6 +2175,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; @@ -2468,6 +2467,9 @@ export interface FailoverGroupUpdate { }; } +// @public +export type FailoverModeType = string; + // @public export interface FirewallRule extends ProxyResourceWithWritableName { endIpAddress?: string; @@ -2537,11 +2539,20 @@ 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 @@ -2559,34 +2570,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 GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult; +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + +// @public +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +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; @@ -2612,9 +2637,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; @@ -2751,7 +2779,9 @@ export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroup // @public export interface InstancePool extends TrackedResource { + readonly dnsZone?: string; licenseType?: InstancePoolLicenseType; + maintenanceConfigurationId?: string; sku?: Sku; subnetId?: string; vCores?: number; @@ -2857,9 +2887,15 @@ export type InstancePoolsUpdateResponse = InstancePool; // @public export interface InstancePoolUpdate { + readonly dnsZone?: string; + licenseType?: InstancePoolLicenseType; + maintenanceConfigurationId?: string; + sku?: Sku; + subnetId?: string; tags?: { [propertyName: string]: string; }; + vCores?: number; } // @public @@ -2871,6 +2907,9 @@ export interface InstancePoolVcoresCapability { readonly value?: number; } +// @public +export type InstanceRole = string; + // @public export interface IPv6FirewallRule extends ProxyResourceWithWritableName { endIPv6Address?: string; @@ -2936,10 +2975,31 @@ export interface Job extends ProxyResource { // @public export interface JobAgent extends TrackedResource { databaseId?: string; + identity?: JobAgentIdentity; sku?: Sku; readonly state?: JobAgentState; } +// @public +export interface JobAgentEditionCapability { + readonly name?: string; + reason?: string; + readonly status?: CapabilityStatus; + readonly supportedServiceLevelObjectives?: JobAgentServiceLevelObjectiveCapability[]; +} + +// @public +export interface JobAgentIdentity { + tenantId?: string; + type: JobAgentIdentityType; + userAssignedIdentities?: { + [propertyName: string]: JobAgentUserAssignedIdentity; + }; +} + +// @public +export type JobAgentIdentityType = string; + // @public export interface JobAgentListResult { readonly nextLink?: string; @@ -2973,6 +3033,14 @@ export interface JobAgentsDeleteOptionalParams extends coreClient.OperationOptio updateIntervalInMs?: number; } +// @public +export interface JobAgentServiceLevelObjectiveCapability { + readonly name?: string; + reason?: string; + readonly sku?: Sku; + readonly status?: CapabilityStatus; +} + // @public export interface JobAgentsGetOptionalParams extends coreClient.OperationOptions { } @@ -3008,11 +3076,26 @@ export type JobAgentsUpdateResponse = JobAgent; // @public export interface JobAgentUpdate { + identity?: JobAgentIdentity; tags?: { [propertyName: string]: string; }; } +// @public +export interface JobAgentUserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export interface JobAgentVersionCapability { + readonly name?: string; + reason?: string; + readonly status?: CapabilityStatus; + readonly supportedEditions?: JobAgentEditionCapability[]; +} + // @public export interface JobCredential extends ProxyResource { password?: string; @@ -3187,6 +3270,64 @@ export interface JobListResult { readonly value?: Job[]; } +// @public +export interface JobPrivateEndpoint extends ProxyResource { + readonly privateEndpointId?: string; + targetServerAzureResourceId?: string; +} + +// @public +export interface JobPrivateEndpointListResult { + readonly nextLink?: string; + readonly value?: JobPrivateEndpoint[]; +} + +// @public +export interface JobPrivateEndpoints { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, privateEndpointName: string, parameters: JobPrivateEndpoint, options?: JobPrivateEndpointsCreateOrUpdateOptionalParams): Promise, JobPrivateEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, privateEndpointName: string, parameters: JobPrivateEndpoint, options?: JobPrivateEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serverName: string, jobAgentName: string, privateEndpointName: string, options?: JobPrivateEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serverName: string, jobAgentName: string, privateEndpointName: string, options?: JobPrivateEndpointsDeleteOptionalParams): Promise; + get(resourceGroupName: string, serverName: string, jobAgentName: string, privateEndpointName: string, options?: JobPrivateEndpointsGetOptionalParams): Promise; + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: JobPrivateEndpointsListByAgentOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface JobPrivateEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type JobPrivateEndpointsCreateOrUpdateResponse = JobPrivateEndpoint; + +// @public +export interface JobPrivateEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface JobPrivateEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobPrivateEndpointsGetResponse = JobPrivateEndpoint; + +// @public +export interface JobPrivateEndpointsListByAgentNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobPrivateEndpointsListByAgentNextResponse = JobPrivateEndpointListResult; + +// @public +export interface JobPrivateEndpointsListByAgentOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobPrivateEndpointsListByAgentResponse = JobPrivateEndpointListResult; + // @public export interface Jobs { createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Job, options?: JobsCreateOrUpdateOptionalParams): Promise; @@ -3313,7 +3454,7 @@ export interface JobStepListResult { // @public export interface JobStepOutput { - credential: string; + credential?: string; databaseName: string; resourceGroupName?: string; schemaName?: string; @@ -3585,6 +3726,13 @@ export enum KnownAuthenticationName { Default = "Default" } +// @public +export enum KnownAuthMetadataLookupModes { + AzureAD = "AzureAD", + Paired = "Paired", + Windows = "Windows" +} + // @public export enum KnownAvailabilityZoneType { NoPreference = "NoPreference", @@ -3593,6 +3741,12 @@ export enum KnownAvailabilityZoneType { Two = "2" } +// @public +export enum KnownBackupStorageAccessTier { + Archive = "Archive", + Hot = "Hot" +} + // @public export enum KnownBackupStorageRedundancy { Geo = "Geo", @@ -3611,6 +3765,7 @@ export enum KnownCapabilityGroup { SupportedEditions = "supportedEditions", SupportedElasticPoolEditions = "supportedElasticPoolEditions", SupportedInstancePoolEditions = "supportedInstancePoolEditions", + SupportedJobAgentVersions = "supportedJobAgentVersions", SupportedManagedInstanceEditions = "supportedManagedInstanceEditions", SupportedManagedInstanceVersions = "supportedManagedInstanceVersions" } @@ -3621,6 +3776,14 @@ export enum KnownCatalogCollationType { SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS" } +// @public +export enum KnownClientClassificationSource { + MIP = "MIP", + Native = "Native", + None = "None", + Recommended = "Recommended" +} + // @public export enum KnownColumnDataType { Bigint = "bigint", @@ -3744,6 +3907,11 @@ export enum KnownDatabaseStatus { Suspect = "Suspect" } +// @public +export enum KnownDataMaskingPolicyName { + Default = "Default" +} + // @public export enum KnownDataWarehouseUserActivityName { Current = "current" @@ -3813,17 +3981,41 @@ export enum KnownFailoverGroupReplicationRole { Secondary = "Secondary" } +// @public +export enum KnownFailoverModeType { + Manual = "Manual", + None = "None" +} + // @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", @@ -3844,6 +4036,20 @@ export enum KnownInstancePoolLicenseType { LicenseIncluded = "LicenseIncluded" } +// @public +export enum KnownInstanceRole { + Primary = "Primary", + Secondary = "Secondary" +} + +// @public +export enum KnownJobAgentIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssignedUserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownJobAgentState { Creating = "Creating", @@ -3896,6 +4102,12 @@ export enum KnownLedgerDigestUploadsName { Current = "current" } +// @public +export enum KnownLinkRole { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownLogSizeUnit { Gigabytes = "Gigabytes", @@ -3940,6 +4152,12 @@ export enum KnownManagedInstanceAdministratorType { ActiveDirectory = "ActiveDirectory" } +// @public +export enum KnownManagedInstanceDatabaseFormat { + AlwaysUpToDate = "AlwaysUpToDate", + SQLServer2022 = "SQLServer2022" +} + // @public export enum KnownManagedInstanceLicenseType { BasePrice = "BasePrice", @@ -3951,25 +4169,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", @@ -4034,6 +4233,8 @@ export enum KnownMoveOperationMode { // @public export enum KnownOperationMode { + Export = "Export", + Import = "Import", PolybaseImport = "PolybaseImport" } @@ -4055,13 +4256,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 @@ -4146,6 +4345,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", @@ -4154,7 +4366,7 @@ export enum KnownReplicationLinkType { } // @public -export enum KnownReplicationMode { +export enum KnownReplicationModeType { Async = "Async", Sync = "Sync" } @@ -4178,6 +4390,12 @@ export enum KnownRestoreDetailsName { Default = "Default" } +// @public +export enum KnownRoleChangeType { + Forced = "Forced", + Planned = "Planned" +} + // @public export enum KnownRuleSeverity { High = "High", @@ -4224,9 +4442,20 @@ export enum KnownSecondaryType { // @public export enum KnownSecurityAlertPolicyName { + Default = "default" +} + +// @public +export enum KnownSecurityAlertPolicyNameAutoGenerated { Default = "Default" } +// @public +export enum KnownSeedingModeType { + Automatic = "Automatic", + Manual = "Manual" +} + // @public export enum KnownServerConfigurationOptionName { AllowPolybaseExport = "allowPolybaseExport" @@ -4270,75 +4499,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", @@ -4371,9 +4531,20 @@ export enum KnownStartStopScheduleName { Default = "default" } +// @public +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" } @@ -4469,36 +4640,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", @@ -4602,11 +4743,15 @@ export interface LicenseTypeCapability { readonly status?: CapabilityStatus; } +// @public +export type LinkRole = string; + // @public export interface LocationCapabilities { readonly name?: string; reason?: string; readonly status?: CapabilityStatus; + readonly supportedJobAgentVersions?: JobAgentVersionCapability[]; readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; readonly supportedServerVersions?: ServerVersionCapability[]; } @@ -4646,10 +4791,12 @@ export type LogSizeUnit = string; // @public export interface LongTermRetentionBackup extends ProxyResource { readonly backupExpirationTime?: Date; + readonly backupStorageAccessTier?: BackupStorageAccessTier; readonly backupStorageRedundancy?: BackupStorageRedundancy; readonly backupTime?: Date; readonly databaseDeletionTime?: Date; readonly databaseName?: string; + isBackupImmutable?: boolean; requestedBackupStorageRedundancy?: BackupStorageRedundancy; readonly serverCreateTime?: Date; readonly serverName?: string; @@ -4674,6 +4821,10 @@ export interface LongTermRetentionBackupOperationResult extends ProxyResource { // @public export interface LongTermRetentionBackups { + beginChangeAccessTier(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: ChangeLongTermRetentionBackupAccessTierParameters, options?: LongTermRetentionBackupsChangeAccessTierOptionalParams): Promise, LongTermRetentionBackupsChangeAccessTierResponse>>; + beginChangeAccessTierAndWait(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: ChangeLongTermRetentionBackupAccessTierParameters, options?: LongTermRetentionBackupsChangeAccessTierOptionalParams): Promise; + beginChangeAccessTierByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: ChangeLongTermRetentionBackupAccessTierParameters, options?: LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams): Promise, LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse>>; + beginChangeAccessTierByResourceGroupAndWait(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: ChangeLongTermRetentionBackupAccessTierParameters, options?: LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams): Promise; beginCopy(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyOptionalParams): Promise, LongTermRetentionBackupsCopyResponse>>; beginCopyAndWait(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyOptionalParams): Promise; beginCopyByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams): Promise, LongTermRetentionBackupsCopyByResourceGroupResponse>>; @@ -4696,6 +4847,24 @@ export interface LongTermRetentionBackups { listByServer(locationName: string, longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByServerOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse = LongTermRetentionBackup; + +// @public +export interface LongTermRetentionBackupsChangeAccessTierOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LongTermRetentionBackupsChangeAccessTierResponse = LongTermRetentionBackup; + // @public export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -4938,7 +5107,10 @@ export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = // @public export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams extends coreClient.OperationOptions { databaseState?: DatabaseState; + filter?: string; onlyLatestPerDatabase?: boolean; + skip?: number; + top?: number; } // @public @@ -4986,7 +5158,10 @@ export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNe // @public export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams extends coreClient.OperationOptions { databaseState?: DatabaseState; + filter?: string; onlyLatestPerDatabase?: boolean; + skip?: number; + top?: number; } // @public @@ -5616,6 +5791,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; @@ -5647,6 +5823,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 { } @@ -5952,21 +6143,29 @@ export interface ManagedInstance extends TrackedResource { administratorLogin?: string; administratorLoginPassword?: string; administrators?: ManagedInstanceExternalAdministrator; + authenticationMetadata?: AuthMetadataLookupModes; collation?: string; + readonly createTime?: Date; readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + databaseFormat?: ManagedInstanceDatabaseFormat; 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; @@ -5975,10 +6174,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; } @@ -6153,6 +6355,9 @@ export interface ManagedInstanceAzureADOnlyAuthListResult { readonly value?: ManagedInstanceAzureADOnlyAuthentication[]; } +// @public +export type ManagedInstanceDatabaseFormat = string; + // @public export interface ManagedInstanceDtc extends ProxyResource { dtcEnabled?: boolean; @@ -6224,12 +6429,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 @@ -6312,6 +6517,7 @@ export interface ManagedInstanceFamilyCapability { readonly status?: CapabilityStatus; readonly supportedLicenseTypes?: LicenseTypeCapability[]; readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly zoneRedundant?: boolean; } // @public @@ -6389,6 +6595,7 @@ export interface ManagedInstanceListResult { // @public export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { readonly backupExpirationTime?: Date; + readonly backupStorageAccessTier?: BackupStorageAccessTier; readonly backupStorageRedundancy?: BackupStorageRedundancy; readonly backupTime?: Date; readonly databaseDeletionTime?: Date; @@ -6407,6 +6614,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; } @@ -6420,6 +6629,15 @@ export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalP // @public export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; +// @public +export interface ManagedInstanceLongTermRetentionPoliciesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedInstanceLongTermRetentionPoliciesDeleteResponse = ManagedInstanceLongTermRetentionPolicy; + // @public export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions { } @@ -6443,6 +6661,7 @@ export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = Man // @public export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { + backupStorageAccessTier?: BackupStorageAccessTier; monthlyRetention?: string; weeklyRetention?: string; weekOfYear?: number; @@ -6531,7 +6750,7 @@ export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInst // @public export interface ManagedInstanceOperationSteps { readonly currentStep?: number; - readonly stepsList?: UpsertManagedServerOperationStep[]; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; readonly totalSteps?: string; } @@ -6633,6 +6852,7 @@ export interface ManagedInstancePrivateLinkListResult { export interface ManagedInstancePrivateLinkProperties { readonly groupId?: string; readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; } // @public @@ -6669,9 +6889,6 @@ export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { status: string; } -// @public -export type ManagedInstancePropertiesProvisioningState = string; - // @public export type ManagedInstanceProxyOverride = string; @@ -6694,10 +6911,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; @@ -6818,18 +7037,33 @@ export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResp // @public export type ManagedInstancesListResponse = ManagedInstanceListResult; +// @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; @@ -6856,21 +7090,29 @@ export interface ManagedInstanceUpdate { administratorLogin?: string; administratorLoginPassword?: string; administrators?: ManagedInstanceExternalAdministrator; + authenticationMetadata?: AuthMetadataLookupModes; collation?: string; + readonly createTime?: Date; readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + databaseFormat?: ManagedInstanceDatabaseFormat; 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; @@ -6879,26 +7121,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; } @@ -7165,9 +7418,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; } @@ -7237,6 +7490,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; @@ -7257,79 +7519,168 @@ 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 NetworkIsolationSettings { + sqlServerResourceId?: string; + storageAccountResourceId?: string; } // @public -export interface MetricDefinition { - readonly metricAvailabilities?: MetricAvailability[]; - readonly name?: MetricName; - readonly primaryAggregationType?: PrimaryAggregationType; - readonly resourceUri?: string; - readonly unit?: UnitDefinitionType; +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + // (undocumented) + networkSecurityPerimeter?: NSPConfigPerimeter; + // (undocumented) + profile?: NSPConfigProfile; + // (undocumented) + provisioningIssues?: NSPProvisioningIssue[]; + // (undocumented) + provisioningState?: string; + // (undocumented) + resourceAssociation?: NSPConfigAssociation; } // @public -export interface MetricDefinitionListResult { - value: MetricDefinition[]; +export interface NetworkSecurityPerimeterConfigurationListResult { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; } // @public -export interface MetricListResult { - value: Metric[]; +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 MetricName { - readonly localizedValue?: string; - readonly value?: string; +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type MetricType = string; +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; // @public -export interface MetricValue { - readonly average?: number; - readonly count?: number; - readonly maximum?: number; - readonly minimum?: number; - readonly timestamp?: Date; - readonly total?: number; +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface MinCapacityCapability { - reason?: string; - readonly status?: CapabilityStatus; - readonly value?: number; +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams extends coreClient.OperationOptions { } // @public -export type MoveOperationMode = string; +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; // @public -export interface Name { - localizedValue?: string; - value?: string; +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface NetworkIsolationSettings { - sqlServerResourceId?: string; - storageAccountResourceId?: string; +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 @@ -7350,14 +7701,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; @@ -7414,8 +7757,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; @@ -7474,6 +7817,16 @@ export interface PartnerRegionInfo { // @public export type PauseDelayTimeUnit = string; +// @public +export interface PerDatabaseAutoPauseDelayTimeRange { + readonly default?: number; + readonly doNotPauseValue?: number; + readonly maxValue?: number; + readonly minValue?: number; + readonly stepSize?: number; + readonly unit?: PauseDelayTimeUnit; +} + // @public export interface PerformanceLevelCapability { readonly unit?: PerformanceLevelUnit; @@ -7484,7 +7837,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; @@ -7656,6 +8017,14 @@ export interface QueryMetricInterval { metrics?: QueryMetricProperties[]; } +// @public +export interface QueryMetricIntervalAutoGenerated { + readonly executionCount?: number; + readonly intervalStartTime?: string; + readonly intervalType?: QueryTimeGrainType; + metrics?: QueryMetricProperties[]; +} + // @public export interface QueryMetricProperties { readonly avg?: number; @@ -7685,7 +8054,7 @@ export interface QueryStatistics extends ProxyResource { export interface QueryStatisticsProperties { readonly databaseName?: string; readonly endTime?: string; - intervals?: QueryMetricInterval[]; + intervals?: QueryMetricIntervalAutoGenerated[]; readonly queryId?: string; readonly startTime?: string; } @@ -7901,6 +8270,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; @@ -7909,11 +8288,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; @@ -8006,7 +8392,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"; @@ -8204,6 +8590,9 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult; // @public export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +// @public +export type RoleChangeType = string; + // @public export type RuleSeverity = string; @@ -8233,6 +8622,9 @@ export type SecondaryType = string; // @public export type SecurityAlertPolicyName = string; +// @public +export type SecurityAlertPolicyNameAutoGenerated = string; + // @public export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; @@ -8278,8 +8670,13 @@ export interface SecurityEventSqlInjectionAdditionalProperties { // @public export type SecurityEventType = "Undefined" | "SqlInjectionVulnerability" | "SqlInjectionExploit"; +// @public +export type SeedingModeType = string; + // @public export interface SensitivityLabel extends ProxyResource { + // (undocumented) + clientClassificationSource?: ClientClassificationSource; readonly columnName?: string; informationType?: string; informationTypeId?: string; @@ -8309,6 +8706,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; @@ -8340,6 +8738,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 { } @@ -8693,55 +9106,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; @@ -9161,9 +9525,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; } @@ -9435,19 +9799,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 @@ -9455,6 +9817,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 { } @@ -9528,15 +9897,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; @@ -9548,41 +9908,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; @@ -9606,13 +9940,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; @@ -9647,6 +9974,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; @@ -9707,10 +10036,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) distributedAvailabilityGroups: DistributedAvailabilityGroups; // (undocumented) - elasticPoolActivities: ElasticPoolActivities; - // (undocumented) - elasticPoolDatabaseActivities: ElasticPoolDatabaseActivities; - // (undocumented) elasticPoolOperations: ElasticPoolOperations; // (undocumented) elasticPools: ElasticPools; @@ -9741,6 +10066,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) jobExecutions: JobExecutions; // (undocumented) + jobPrivateEndpoints: JobPrivateEndpoints; + // (undocumented) jobs: Jobs; // (undocumented) jobStepExecutions: JobStepExecutions; @@ -9833,6 +10160,8 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) managedServerSecurityAlertPolicies: ManagedServerSecurityAlertPolicies; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operations: Operations; // (undocumented) outboundFirewallRules: OutboundFirewallRules; @@ -9869,8 +10198,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverBlobAuditingPolicies: ServerBlobAuditingPolicies; // (undocumented) - serverCommunicationLinks: ServerCommunicationLinks; - // (undocumented) serverConfigurationOptions: ServerConfigurationOptions; // (undocumented) serverConnectionPolicies: ServerConnectionPolicies; @@ -9895,8 +10222,6 @@ export class SqlManagementClient extends coreClient.ServiceClient { // (undocumented) serverVulnerabilityAssessments: ServerVulnerabilityAssessments; // (undocumented) - serviceObjectives: ServiceObjectives; - // (undocumented) sqlAgent: SqlAgent; // (undocumented) sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; @@ -9951,6 +10276,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { // @public export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; + apiVersion?: string; endpoint?: string; } @@ -10280,6 +10606,9 @@ export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopM // @public export type StartStopScheduleName = string; +// @public +export type Status = string; + // @public export interface StorageCapability { reason?: string; @@ -10964,12 +11293,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; @@ -10993,18 +11316,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 197576b2ff76..88a27d4f4392 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,685 +717,1024 @@ 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. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + 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 included (free) max size. + * 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 includedMaxSize?: MaxSizeCapability; + 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; /** - * Whether or not zone redundancy is supported for the service objective. + * 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 zoneRedundant?: boolean; + readonly pausedDate?: Date; /** - * Supported time range for auto pause delay + * 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 supportedAutoPauseDelay?: AutoPauseDelayTimeRange; + 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; /** - * List of supported min capacities + * Infra encryption is enabled for this database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMinCapacities?: MinCapacityCapability[]; + 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; /** - * The compute model - * 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 computeModel?: string; + freeLimitExhaustionBehavior?: FreeLimitExhaustionBehavior; /** - * List of supported maintenance configurations - * 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 supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + manualCutover?: boolean; /** - * The status of the capability. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + performCutover?: boolean; + /** The flag to enable or disable auto rotation of database encryption protector AKV key. */ + encryptionProtectorAutoRotation?: boolean; } -/** The maximum size range capability. */ -export interface MaxSizeRangeCapability { - /** - * Minimum value. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minValue?: MaxSizeCapability; +/** 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 { /** - * Maximum value. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: MaxSizeCapability; + readonly value?: DeletedServer[]; /** - * Scale/step size for discrete values between the minimum value and the 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 scaleSize?: MaxSizeCapability; + readonly nextLink?: string; +} + +/** A list of distributed availability groups in instance. */ +export interface DistributedAvailabilityGroupsListResult { /** - * Size of transaction log. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logSize?: LogSizeCapability; + readonly value?: DistributedAvailabilityGroup[]; /** - * 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 capability. */ -export interface MaxSizeCapability { +/** Database specific information */ +export interface DistributedAvailabilityGroupDatabase { + /** The name of the database in link */ + databaseName?: string; /** - * The maximum size limit (see 'unit' for the units). + * Managed instance replica id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly instanceReplicaId?: string; /** - * The units that the limit is expressed in. + * SQL server replica id * 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 partnerReplicaId?: string; /** - * The log 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?: LogSizeUnit; -} - -/** The performance level capability. */ -export interface PerformanceLevelCapability { + readonly synchronizationHealth?: ReplicaSynchronizationHealth; /** - * Performance level value. + * Link connected state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly connectedState?: ReplicaConnectedState; /** - * Unit type used to measure performance level. + * Last received 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 lastReceivedLsn?: string; /** - * License type identifier. + * Last received LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly lastReceivedTime?: Date; /** - * The status of the capability. + * Last sent 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 lastSentLsn?: string; /** - * Minimum value + * Last sent LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly minValue?: number; + readonly lastSentTime?: Date; /** - * Maximum value + * Last commit LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxValue?: number; + readonly lastCommitLsn?: string; /** - * Step value for discrete values between the minimum value and the maximum value. + * Last commit LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepSize?: number; + readonly lastCommitTime?: Date; /** - * Default value is no value is provided + * Last hardened LSN * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly default?: number; + readonly lastHardenedLsn?: string; /** - * Unit of time that delay is expressed in + * Last hardened LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: PauseDelayTimeUnit; + readonly lastHardenedTime?: Date; /** - * Value that is used to not pause (infinite delay before pause) + * Last backup LSN * 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 lastBackupLsn?: string; /** - * Min capacity value + * Last backup LSN time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly lastBackupTime?: Date; /** - * The status of the capability. + * The most recent link connection error description * 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 maintenance configuration capability */ -export interface MaintenanceConfigurationCapability { + readonly mostRecentLinkError?: string; /** - * Maintenance configuration name + * SQL server certificate validity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly partnerAuthCertValidity?: CertificateInfo; /** - * Whether or not zone redundancy is supported for the maintenance configuration. + * 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 zoneRedundant?: boolean; + readonly instanceSendReplicationLagSeconds?: number; /** - * The status of the capability. + * 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 status?: CapabilityStatus; - /** The reason for the capability not being available. */ - reason?: string; + readonly instanceRedoReplicationLagSeconds?: number; } -/** The read scale capability. */ -export interface ReadScaleCapability { +/** Certificate information */ +export interface CertificateInfo { /** - * The maximum number of read scale replicas. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxNumberOfReplicas?: number; + readonly certificateName?: 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 storage account type capability. */ -export interface StorageCapability { +/** 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 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?: 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 elastic pool edition capability. */ -export interface ElasticPoolEditionCapability { +/** The result of an elastic pool list request. */ +export interface ElasticPoolListResult { /** - * 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?: ElasticPool[]; /** - * 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; +} + +/** 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; + /** Auto Pause Delay for per database within pool */ + autoPauseDelay?: 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; + /** Time in minutes after which elastic pool is automatically paused. A value of -1 means that automatic pause is disabled */ + autoPauseDelay?: 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 { /** - * 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?: EncryptionProtector[]; /** - * 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 endpoint certificates on the target instance. */ +export interface EndpointCertificateListResult { /** - * 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?: EndpointCertificate[]; /** - * 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; +} + +/** A list of failover groups. */ +export interface FailoverGroupListResult { /** - * The maximum number of databases supported. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxDatabaseCount?: number; + readonly value?: FailoverGroup[]; /** - * The included (free) max size for this 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 includedMaxSize?: MaxSizeCapability; + 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 list of supported max sizes. + * Geo location of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly location?: string; /** - * The list of supported per database max sizes. + * Replication role of the partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; + 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 per database max performance levels. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; + readonly value?: FirewallRule[]; /** - * Whether or not zone redundancy is supported for the 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 zoneRedundant?: boolean; + readonly nextLink?: string; +} + +/** ARM resource. */ +export interface ResourceWithWritableName { /** - * List of supported maintenance configurations + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; + readonly id?: string; + /** Resource name. */ + name?: string; /** - * The status of the capability. + * Resource type. * 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 type?: string; } -/** The max per-database performance level capability. */ -export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { +/** A list of server firewall rules. */ +export interface FirewallRuleList { + values?: FirewallRule[]; +} + +/** The list of geo backup policies. */ +export interface GeoBackupPolicyListResult { /** - * 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?: GeoBackupPolicy[]; /** - * 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; +} + +/** The response to a list IPv6 firewall rules request */ +export interface IPv6FirewallRuleListResult { /** - * 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?: IPv6FirewallRule[]; /** - * 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 { +/** A list of instance failover groups. */ +export interface InstanceFailoverGroupListResult { /** - * The minimum 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?: InstanceFailoverGroup[]; /** - * 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; +} + +/** 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 status of the capability. + * Replication role of the partner managed instances. * 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 replicationRole?: InstanceFailoverGroupReplicationRole; } -/** The managed instance capability */ -export interface ManagedInstanceVersionCapability { +/** 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 { /** - * 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?: InstancePool[]; /** - * 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[]; + readonly nextLink?: string; +} + +/** An update to an Instance pool. */ +export interface InstancePoolUpdate { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** 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; /** - * The list of supported instance pool editions. + * The Dns Zone that the managed instance pool is in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; + readonly dnsZone?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; +} + +/** A list of Azure SQL job agents. */ +export interface JobAgentListResult { /** - * 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?: JobAgent[]; + /** + * 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 server capability */ -export interface ManagedInstanceEditionCapability { +/** Azure Active Directory identity configuration for a resource. */ +export interface JobAgentIdentity { + /** The job agent identity tenant id */ + tenantId?: string; + /** The job agent identity type */ + type: JobAgentIdentityType; + /** The resource ids of the user assigned identities to use */ + userAssignedIdentities?: { + [propertyName: string]: JobAgentUserAssignedIdentity; + }; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface JobAgentUserAssignedIdentity { /** - * The managed server version name. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly principalId?: string; /** - * The supported families. + * The Azure Active Directory client id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; + readonly clientId?: string; +} + +/** An update to an Azure SQL job agent. */ +export interface JobAgentUpdate { + /** Managed identity assigned to job agent */ + identity?: JobAgentIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** A list of job credentials. */ +export interface JobCredentialListResult { /** - * The list of supported storage capabilities for this edition + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedStorageCapabilities?: StorageCapability[]; + readonly value?: JobCredential[]; /** - * Whether or not zone redundancy is supported 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 zoneRedundant?: boolean; + readonly nextLink?: string; +} + +/** A list of job executions. */ +export interface JobExecutionListResult { /** - * 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?: JobExecution[]; + /** + * 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 server family capability. */ -export interface ManagedInstanceFamilyCapability { +/** The target that a job execution is executed on. */ +export interface JobExecutionTarget { /** - * Family name. + * The type of the target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly type?: JobTargetType; /** - * SKU name. + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sku?: string; + readonly serverName?: string; /** - * List of supported license types. + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly databaseName?: string; +} + +/** A list of job agent private endpoints. */ +export interface JobPrivateEndpointListResult { /** - * List of supported virtual cores values. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly value?: JobPrivateEndpoint[]; /** - * 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 virtual cores capability. */ -export interface ManagedInstanceVcoresCapability { +/** A list of job steps. */ +export interface JobStepListResult { /** - * 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?: JobStep[]; /** - * 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; +} + +/** 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 { /** - * 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?: JobTargetGroup[]; /** - * 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; +} + +/** 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 { /** - * True if this service objective is supported for managed instances in an instance pool. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly instancePoolSupported?: boolean; + readonly value?: JobVersion[]; /** - * True if this service objective is supported for standalone managed instances. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly standaloneSupported?: boolean; + readonly nextLink?: string; +} + +/** A list of jobs. */ +export interface JobListResult { /** - * 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?: ManagedInstanceMaintenanceConfigurationCapability[]; + readonly value?: Job[]; /** - * 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 maintenance configuration capability */ -export interface ManagedInstanceMaintenanceConfigurationCapability { +/** 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 { /** - * Maintenance configuration name + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: LedgerDigestUploads[]; /** - * 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 instance pool capability */ -export interface InstancePoolEditionCapability { +/** The location capability. */ +export interface LocationCapabilities { /** - * The instance pool version name. + * The location 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 server versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedFamilies?: InstancePoolFamilyCapability[]; + readonly supportedServerVersions?: ServerVersionCapability[]; + /** + * The list of supported managed instance versions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; + /** + * The list of supported job agent versions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedJobAgentVersions?: JobAgentVersionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1478,23 +1744,23 @@ export interface InstancePoolEditionCapability { reason?: string; } -/** The instance pool family capability. */ -export interface InstancePoolFamilyCapability { +/** The server capability */ +export interface ServerVersionCapability { /** - * Family name. + * The server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * List of supported license types. + * The list of supported database editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly supportedEditions?: EditionCapability[]; /** - * List of supported virtual cores values. + * The list of supported elastic pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; + readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1504,23 +1770,38 @@ export interface InstancePoolFamilyCapability { reason?: string; } -/** The managed instance virtual cores capability. */ -export interface InstancePoolVcoresCapability { +/** The edition capability. */ +export interface EditionCapability { /** - * The virtual cores identifier. + * The database edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The virtual cores value. + * 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 value?: number; + readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; /** - * Storage limit. + * 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 storageLimit?: MaxSizeCapability; + readonly zoneRedundant?: boolean; + /** + * The read scale capability for the edition. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly readScale?: ReadScaleCapability; + /** + * 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 supportedStorageCapabilities?: StorageCapability[]; + /** + * 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 zonePinning?: boolean; /** * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1530,979 +1811,845 @@ export interface InstancePoolVcoresCapability { reason?: string; } -/** A list of long term retention policies. */ -export interface LongTermRetentionPolicyListResult { +/** The service objectives capability. */ +export interface ServiceObjectiveCapability { /** - * Array of results. + * The unique ID of the service objective. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LongTermRetentionPolicy[]; + readonly id?: string; /** - * Link to retrieve next page of results. + * The service objective name. * 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 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?: ManagedBackupShortTermRetentionPolicy[]; + 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; -} - -/** Execution statistics for one particular query */ -export interface ManagedInstanceQueryStatistics { + 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?: QueryStatistics[]; + 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; -} - -/** Properties of a query execution statistics. */ -export interface QueryStatisticsProperties { + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Database name of the database in which this query was executed. + * The included (free) max size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly includedMaxSize?: MaxSizeCapability; /** - * Unique query id (unique within one database). + * 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 queryId?: string; + readonly zoneRedundant?: boolean; /** - * The start time for the metric (ISO-8601 format). + * Supported time range for auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** - * The end time for the metric (ISO-8601 format). + * List of supported min capacities * 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 supportedMinCapacities?: MinCapacityCapability[]; /** - * The start time for the metric interval (ISO-8601 format). + * The compute model * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalStartTime?: string; + readonly computeModel?: string; /** - * Interval type (length). + * List of supported maintenance configurations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * Execution count of a query in this interval. + * Whether or not zone pinning is supported. * 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 a topquery metric in one interval. */ -export interface QueryMetricProperties { + readonly zonePinning?: boolean; /** - * The name information for the metric. + * List of supported free limit exhaustion behaviors * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly supportedFreeLimitExhaustionBehaviors?: FreeLimitExhaustionBehaviorCapability[]; /** - * The UI appropriate name for the metric. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The maximum size range capability. */ +export interface MaxSizeRangeCapability { /** - * The unit of the metric. + * Minimum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QueryMetricUnitType; + readonly minValue?: MaxSizeCapability; /** - * The value of the metric. + * Maximum value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: number; + readonly maxValue?: MaxSizeCapability; /** - * Metric value when min() aggregate function is used over the interval. + * 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 min?: number; + readonly scaleSize?: MaxSizeCapability; /** - * Metric value when max() aggregate function is used over the interval. + * Size of transaction log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly logSize?: LogSizeCapability; /** - * Metric value when avg() 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 avg?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The maximum size capability. */ +export interface MaxSizeCapability { /** - * Metric value when sum() 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 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?: MaxSizeUnit; } -/** A list of the managed database's security alert policies. */ -export interface ManagedDatabaseSecurityAlertPolicyListResult { +/** The log size capability. */ +export interface LogSizeCapability { /** - * Array of results. + * 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 value?: ManagedDatabaseSecurityAlertPolicy[]; + readonly limit?: number; /** - * Link to retrieve next page of results. + * The units that the limit is expressed in. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly unit?: LogSizeUnit; } -/** A list of security events. */ -export interface SecurityEventCollection { +/** 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?: SecurityEvent[]; + 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; } -/** 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; +/** The license type capability */ +export interface LicenseTypeCapability { /** - * The statement + * License type identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statement?: string; + readonly name?: string; /** - * The statement highlight offset + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightOffset?: number; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** Supported auto pause delay time range */ +export interface AutoPauseDelayTimeRange { /** - * The statement highlight length + * Minimum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statementHighlightLength?: number; + readonly minValue?: number; /** - * The sql error code + * Maximum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly maxValue?: number; /** - * The sql error severity + * 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 errorSeverity?: number; + readonly stepSize?: number; /** - * The sql error message + * Default value is no value is provided * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; -} - -/** A list of managed transparent data encryptions */ -export interface ManagedTransparentDataEncryptionListResult { + readonly default?: number; /** - * Array of results. + * Unit of time that delay is expressed in * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedTransparentDataEncryption[]; + readonly unit?: PauseDelayTimeUnit; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; + readonly doNotPauseValue?: number; } -/** A list of managed instance administrators. */ -export interface ManagedInstanceAdministratorListResult { +/** 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?: ManagedInstanceAdministrator[]; + 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 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?: ManagedInstanceAzureADOnlyAuthentication[]; +/** The maintenance configuration capability */ +export interface MaintenanceConfigurationCapability { /** - * Link to retrieve next page of results. + * Maintenance configuration name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of managed instance encryption protectors. */ -export interface ManagedInstanceEncryptionProtectorListResult { + readonly name?: string; /** - * Array 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 value?: ManagedInstanceEncryptionProtector[]; + readonly zoneRedundant?: boolean; /** - * 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 { +/** 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?: ManagedInstanceKey[]; + 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 long term retention policies. */ -export interface ManagedInstanceLongTermRetentionPolicyListResult { +/** 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?: ManagedInstanceLongTermRetentionPolicy[]; + 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; } -/** The response to a list managed instance operations request */ -export interface ManagedInstanceOperationListResult { +/** 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?: ManagedInstanceOperation[]; + 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; } -/** The parameters of a managed instance operation. */ -export interface ManagedInstanceOperationParametersPair { +/** The elastic pool edition capability. */ +export interface ElasticPoolEditionCapability { /** - * The current parameters. + * The elastic pool edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentParameters?: UpsertManagedServerOperationParameters; + readonly name?: string; /** - * The requested parameters. + * 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 requestedParameters?: UpsertManagedServerOperationParameters; -} - -export interface UpsertManagedServerOperationParameters { - family?: string; - tier?: string; - vCores?: number; - storageSizeInGB?: number; -} - -/** The steps of a managed instance operation. */ -export interface ManagedInstanceOperationSteps { + readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; /** - * The total number of operation steps. + * 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 totalSteps?: string; + readonly zoneRedundant?: boolean; /** - * The number of current operation steps. + * 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 currentStep?: number; + readonly zonePinning?: boolean; /** - * The operation steps list. + * The status of the capability. * 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; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** 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; +/** The Elastic Pool performance level capability. */ +export interface ElasticPoolPerformanceLevelCapability { /** - * State of the Private Endpoint Connection. + * The performance level for the pool. * 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 performanceLevel?: PerformanceLevelCapability; /** - * The private link service connection description. + * The sku. * 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 sku?: Sku; /** - * Array of results. + * List of supported license types. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstancePrivateEndpointConnection[]; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Link to retrieve next page of results. + * The maximum number of databases supported. * 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 maxDatabaseCount?: number; /** - * Array of results. + * 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 value?: ManagedInstancePrivateLink[]; + readonly includedMaxSize?: MaxSizeCapability; /** - * Link to retrieve next page of results. + * The list of supported max sizes. * 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 supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * The private link resource group id. + * The list of supported per database max sizes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; /** - * The private link resource required member names. + * 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 requiredMembers?: string[]; -} - -/** A list of the ManagedInstance's vulnerability assessments. */ -export interface ManagedInstanceVulnerabilityAssessmentListResult { + readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; /** - * Array 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 value?: ManagedInstanceVulnerabilityAssessment[]; + readonly zoneRedundant?: boolean; /** - * Link to retrieve next page of results. + * List of supported maintenance configurations * 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 supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * Array of results. + * List of supported min capacities * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedServerSecurityAlertPolicy[]; + readonly supportedMinCapacities?: MinCapacityCapability[]; /** - * Link to retrieve next page of results. + * Supported time range for auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Result of the request to list SQL operations. */ -export interface OperationListResult { + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** - * Array of results. + * Supported time range for per database auto pause delay * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly supportedPerDatabaseAutoPauseDelay?: PerDatabaseAutoPauseDelayTimeRange; /** - * 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; } -/** SQL REST API operation definition. */ -export interface Operation { +/** The max per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** - * The name of the operation being performed on this particular object. + * The maximum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly limit?: number; /** - * The localized display information for this particular operation / action. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly display?: OperationDisplay; + readonly unit?: PerformanceLevelUnit; /** - * The intended executor of the operation. + * The list of supported min database performance levels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly origin?: OperationOrigin; + readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; /** - * 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 localized friendly form of the resource provider name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; +/** The minimum per-database performance level capability. */ +export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** - * The localized friendly form of the resource type related to this action/operation. + * The minimum performance level per database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly limit?: number; /** - * The localized friendly name for the operation. + * Unit type used to measure performance level. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly unit?: PerformanceLevelUnit; /** - * The localized friendly description for the operation. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of private endpoint connections. */ -export interface PrivateEndpointConnectionListResult { +/** Supported auto pause delay time range */ +export interface PerDatabaseAutoPauseDelayTimeRange { /** - * Array of results. + * Minimum value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: PrivateEndpointConnection[]; + 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; -} - -/** Properties of a private endpoint connection. */ -export interface PrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; + readonly maxValue?: number; /** - * Group IDs. + * 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 groupIds?: string[]; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + readonly stepSize?: number; /** - * State of the private endpoint connection. + * Default value if no value is provided * 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 default?: number; /** - * The actions required for private link service connection. + * Unit of time that delay is expressed in * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { + readonly unit?: PauseDelayTimeUnit; /** - * Array of results. + * 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 value?: PrivateLinkResource[]; + readonly doNotPauseValue?: number; +} + +/** The managed instance capability */ +export interface ManagedInstanceVersionCapability { /** - * Link to retrieve next page of results. + * The server version name. * 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 name?: string; /** - * The private link resource group id. + * The list of supported managed instance editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly supportedEditions?: ManagedInstanceEditionCapability[]; /** - * The private link resource required member names. + * The list of supported instance pool editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; /** - * The private link resource required zone names. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredZoneNames?: string[]; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of recoverable managed databases. */ -export interface RecoverableManagedDatabaseListResult { +/** The managed server capability */ +export interface ManagedInstanceEditionCapability { /** - * Array of results. + * The managed server version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableManagedDatabase[]; + readonly name?: string; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A list of long term retention backups. */ -export interface RestorePointListResult { + readonly isGeneralPurposeV2?: boolean; /** - * Array of results. + * The supported families. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RestorePoint[]; + readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; /** - * Link to retrieve next page of results. + * 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 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 supportedStorageCapabilities?: StorageCapability[]; /** - * Automatic tuning option actual state. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningOptionModeActual; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The managed server family capability. */ +export interface ManagedInstanceFamilyCapability { /** - * Reason code if desired and actual state are different. + * Family name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reasonCode?: number; + readonly name?: string; /** - * Reason description if desired and actual state are different. + * SKU name. * 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 sku?: string; /** - * Array of results. + * 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 value?: ServerAzureADAdministrator[]; + readonly zoneRedundant?: boolean; /** - * 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; -} - -/** A list of active directory only authentications. */ -export interface AzureADOnlyAuthListResult { + 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?: ServerAzureADOnlyAuthentication[]; + readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; /** - * 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 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?: ServerDevOpsAuditingSettings[]; + 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 server DNS aliases. */ -export interface ServerDnsAliasListResult { + readonly value?: number; /** - * Array of results. + * Included size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerDnsAlias[]; + readonly includedMaxSize?: MaxSizeCapability; /** - * Link to retrieve next page of results. + * Storage size ranges. * 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; -} - -/** A list of server keys. */ -export interface ServerKeyListResult { + readonly supportedStorageSizes?: MaxSizeRangeCapability[]; /** - * Array of results. + * Included storage IOps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerKey[]; + readonly includedStorageIOps?: number; /** - * Link to retrieve next page of results. + * Storage IOps ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** The response to a list server operations request */ -export interface ServerOperationListResult { + readonly supportedStorageIOps?: MaxLimitRangeCapability; /** - * Array 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 value?: ServerOperation[]; + readonly iopsMinValueOverrideFactorPerSelectedStorageGB?: number; /** - * Link to retrieve next page 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 nextLink?: string; -} - -/** A list of the server's security alert policies. */ -export interface LogicalServerSecurityAlertPolicyListResult { + readonly iopsIncludedValueOverrideFactorPerSelectedStorageGB?: number; /** - * Array of results. + * Included storage throughput MBps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerSecurityAlertPolicy[]; + readonly includedStorageThroughputMBps?: number; /** - * Link to retrieve next page of results. + * Storage throughput MBps ranges. * 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 supportedStorageThroughputMBps?: MaxLimitRangeCapability; /** - * Array of results. + * 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 value?: ServerTrustGroup[]; + readonly throughputMBpsMinValueOverrideFactorPerSelectedStorageGB?: number; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A list of the server's vulnerability assessments. */ -export interface ServerVulnerabilityAssessmentListResult { + 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?: ServerVulnerabilityAssessment[]; + 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 subscription usage metrics in a location. */ -export interface SubscriptionUsageListResult { + 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?: SubscriptionUsage[]; + 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 sync agents. */ -export interface SyncAgentListResult { +/** 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?: SyncAgent[]; + 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; -} - -/** Properties of an Azure SQL Database sync agent key. */ -export interface SyncAgentKeyProperties { + readonly maxValue?: number; /** - * Key of sync agent. + * 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 syncAgentKey?: string; + readonly scaleSize?: number; + /** + * 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 sync agent linked databases. */ -export interface SyncAgentLinkedDatabaseListResult { +/** 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?: SyncAgentLinkedDatabase[]; + 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; } -/** A list of sync database ID properties. */ -export interface SyncDatabaseIdListResult { +/** 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?: SyncDatabaseIdProperties[]; + 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; -} - -/** Properties of the sync database id. */ -export interface SyncDatabaseIdProperties { + readonly supportedFamilies?: InstancePoolFamilyCapability[]; /** - * ARM resource id of sync database. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** A list of sync schema properties. */ -export interface SyncFullSchemaPropertiesListResult { +/** 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?: SyncFullSchemaProperties[]; + 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; -} - -/** Properties of the database full schema. */ -export interface SyncFullSchemaProperties { + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * List of tables in the database full schema. + * List of supported virtual cores values. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tables?: SyncFullSchemaTable[]; + readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; /** - * Last update time of the database schema. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUpdateTime?: Date; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; } -/** Properties of the table in the database full schema. */ -export interface SyncFullSchemaTable { +/** The managed instance virtual cores capability. */ +export interface InstancePoolVcoresCapability { /** - * List of columns in the table of database full schema. + * The virtual cores identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly columns?: SyncFullSchemaTableColumn[]; + readonly name?: string; /** - * Error id of the table. + * The virtual cores value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorId?: string; + readonly value?: number; /** - * If there is error in the table. + * Storage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hasError?: boolean; + readonly storageLimit?: MaxSizeCapability; /** - * Name of the table. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The job agent version capability. */ +export interface JobAgentVersionCapability { /** - * Quoted name of the table. + * The job agent version name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; -} - -/** Properties of the column in the table of database full schema. */ -export interface SyncFullSchemaTableColumn { + readonly name?: string; /** - * Data size of the column. + * The list of supported editions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataSize?: string; + readonly supportedEditions?: JobAgentEditionCapability[]; /** - * Data type of the column. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataType?: string; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The job agent edition capability. */ +export interface JobAgentEditionCapability { /** - * Error id of the column. + * The job agent edition name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorId?: string; + readonly name?: string; /** - * If there is error in the table. + * The list of supported service level objectives for the edition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hasError?: boolean; + readonly supportedServiceLevelObjectives?: JobAgentServiceLevelObjectiveCapability[]; /** - * If it is the primary key of the table. + * The status of the capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isPrimaryKey?: boolean; + readonly status?: CapabilityStatus; + /** The reason for the capability not being available. */ + reason?: string; +} + +/** The job agent service level objective capability. */ +export interface JobAgentServiceLevelObjectiveCapability { /** - * Name of the column. + * The service objective name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * Quoted name of the column. + * The sku. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly quotedName?: string; + readonly sku?: Sku; + /** + * 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 sync group log properties. */ -export interface SyncGroupLogListResult { +/** 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?: SyncGroupLogProperties[]; + 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. @@ -2510,73 +2657,92 @@ export interface SyncGroupLogListResult { readonly nextLink?: string; } -/** Properties of an Azure SQL Database sync group log. */ -export interface SyncGroupLogProperties { +/** Contains the information necessary to change long term retention backup access tier and related operation mode. */ +export interface ChangeLongTermRetentionBackupAccessTierParameters { + /** The long term retention backup storage access tier */ + backupStorageAccessTier: string; + /** The operation mode when updating ltr backup storage access tier */ + operationMode: 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; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * Timestamp of the sync group log. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timestamp?: Date; + readonly code?: string; /** - * Type of the sync group log. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: SyncGroupLogType; + readonly message?: string; /** - * Source of the sync group log. + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly source?: string; + readonly target?: string; /** - * Details of the sync group log. + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: string; + readonly details?: ErrorDetail[]; /** - * TracingId of the sync group log. + * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tracingId?: string; + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * OperationStatus of the sync group log. + * The additional info type. * 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; + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } -/** 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; +/** 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; } -/** 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; +/** 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 sync groups. */ -export interface SyncGroupListResult { +/** 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 value?: SyncGroup[]; + 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. @@ -2584,13 +2750,13 @@ export interface SyncGroupListResult { readonly nextLink?: string; } -/** A list of Azure SQL Database sync members. */ -export interface SyncMemberListResult { +/** 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?: SyncMember[]; + 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. @@ -2598,13 +2764,23 @@ export interface SyncMemberListResult { readonly nextLink?: string; } -/** A list of time zones. */ -export interface TimeZoneListResult { +/** 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?: TimeZone[]; + 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. @@ -2612,13 +2788,13 @@ export interface TimeZoneListResult { readonly nextLink?: string; } -/** A list of virtual network rules. */ -export interface VirtualNetworkRuleListResult { +/** A list of the managed database's Advanced Threat Protection settings. */ +export interface ManagedDatabaseAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: VirtualNetworkRule[]; + 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. @@ -2626,13 +2802,13 @@ export interface VirtualNetworkRuleListResult { readonly nextLink?: string; } -/** A list of workload classifiers for a workload group. */ -export interface WorkloadClassifierListResult { +/** 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?: WorkloadClassifier[]; + 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. @@ -2640,13 +2816,13 @@ export interface WorkloadClassifierListResult { readonly nextLink?: string; } -/** A list of workload groups. */ -export interface WorkloadGroupListResult { +/** Execution statistics for one particular query */ +export interface ManagedInstanceQueryStatistics { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: WorkloadGroup[]; + readonly value?: QueryStatistics[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2654,194 +2830,126 @@ export interface WorkloadGroupListResult { readonly nextLink?: string; } -/** 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[]; +/** Properties of a query metrics interval. */ +export interface QueryMetricInterval { /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** Import export operation extensions list. */ -export interface ImportExportExtensionsOperationListResult { + readonly intervalStartTime?: string; /** - * Array of results. + * Interval type (length). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ImportExportExtensionsOperationResult[]; + readonly intervalType?: QueryTimeGrainType; /** - * Link to retrieve next page of results. + * Execution count of a query in this interval. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly executionCount?: number; + /** List of metric objects for this interval */ + metrics?: QueryMetricProperties[]; } -/** 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?: DatabaseOperation[]; +/** Properties of a topquery metric in one interval. */ +export interface QueryMetricProperties { /** - * Link to retrieve next page of results. + * The name information for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of database usage metrics. */ -export interface DatabaseUsageListResult { + readonly name?: string; /** - * Array of results. + * The UI appropriate name for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseUsage[]; + readonly displayName?: string; /** - * Link to retrieve next page of results. + * The unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of ledger digest upload settings. */ -export interface LedgerDigestUploadsListResult { + readonly unit?: QueryMetricUnitType; /** - * Array of results. + * The value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LedgerDigestUploads[]; + readonly value?: number; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A list of outbound rules. */ -export interface OutboundFirewallRuleListResult { + readonly min?: number; /** - * Array of results. + * 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 value?: OutboundFirewallRule[]; + readonly max?: number; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A list of usages. */ -export interface UsageListResult { + 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?: Usage[]; + 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; } -/** ARM usage. */ -export interface Usage { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; +/** The managed database's restore details backup set properties. */ +export interface ManagedDatabaseRestoreDetailsBackupSetProperties { /** - * Resource name. + * Backup set status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: Name; + readonly status?: string; /** - * Resource type. + * First stripe name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly firstStripeName?: string; /** - * Usage unit. + * Number of stripes. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly numberOfStripes?: number; /** - * Usage current value. + * Backup size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly backupSizeMB?: number; /** - * Usage limit. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly restoreStartedTimestampUtc?: Date; /** - * Usage requested limit. + * Last restored file time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedLimit?: number; -} - -/** 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; + readonly restoreFinishedTimestampUtc?: Date; } -/** 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?: LongTermRetentionBackup[]; +/** The managed database's restore details unrestorable file properties. */ +export interface ManagedDatabaseRestoreDetailsUnrestorableFileProperties { /** - * Link to retrieve next page of results. + * File name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly name?: string; } -/** A list of long term retention backups for managed database(s). */ -export interface ManagedInstanceLongTermRetentionBackupListResult { +/** 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?: ManagedInstanceLongTermRetentionBackup[]; + 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. @@ -2849,13 +2957,13 @@ export interface ManagedInstanceLongTermRetentionBackupListResult { readonly nextLink?: string; } -/** A list of restorable dropped managed databases. */ -export interface RestorableDroppedManagedDatabaseListResult { +/** 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?: RestorableDroppedManagedDatabase[]; + 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. @@ -2863,60 +2971,43 @@ 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[]; +/** The properties of a security event sql injection additional properties. */ +export interface SecurityEventSqlInjectionAdditionalProperties { /** - * Link to retrieve next page of results. + * The threat 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 threatId?: string; /** - * Array of results. + * The statement * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DistributedAvailabilityGroup[]; + readonly statement?: string; /** - * Link to retrieve next page of results. + * The statement highlight offset * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server trust certificates in instance. */ -export interface ServerTrustCertificatesListResult { + readonly statementHighlightOffset?: number; /** - * Array of results. + * The statement highlight length * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerTrustCertificate[]; + readonly statementHighlightLength?: number; /** - * Link to retrieve next page of results. + * The sql error code * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of endpoint certificates on the target instance. */ -export interface EndpointCertificateListResult { + readonly errorCode?: number; /** - * Array of results. + * The sql error severity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: EndpointCertificate[]; + readonly errorSeverity?: number; /** - * Link to retrieve next page of results. + * The sql error message * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly errorMessage?: string; } /** A list of sensitivity labels. */ @@ -2943,13 +3034,13 @@ export interface RecommendedSensitivityLabelUpdateList { operations?: RecommendedSensitivityLabelUpdate[]; } -/** A list of server auditing settings. */ -export interface ServerBlobAuditingPolicyListResult { +/** 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?: ServerBlobAuditingPolicy[]; + 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. @@ -2957,13 +3048,13 @@ export interface ServerBlobAuditingPolicyListResult { readonly nextLink?: string; } -/** A list of database auditing settings. */ -export interface DatabaseBlobAuditingPolicyListResult { +/** 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?: DatabaseBlobAuditingPolicy[]; + 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. @@ -2971,95 +3062,98 @@ export interface DatabaseBlobAuditingPolicyListResult { readonly nextLink?: string; } -/** A list of database extended auditing settings. */ -export interface ExtendedDatabaseBlobAuditingPolicyListResult { +/** An managed database update. */ +export interface ManagedDatabaseUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Collation of the managed database. */ + collation?: string; /** - * Array of results. + * Status of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ExtendedDatabaseBlobAuditingPolicy[]; + readonly status?: ManagedDatabaseStatus; /** - * Link to retrieve next page of results. + * Creation date of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A list of server extended auditing settings. */ -export interface ExtendedServerBlobAuditingPolicyListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ExtendedServerBlobAuditingPolicy[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A list of the database's Advanced Threat Protection configurations. */ -export interface DatabaseAdvancedThreatProtectionListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DatabaseAdvancedThreatProtection[]; + readonly creationDate?: Date; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; -} - -/** A list of the server's Advanced Threat Protection configurations. */ -export interface LogicalServerAdvancedThreatProtectionListResult { + 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; /** - * Array of results. + * Geo paired region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ServerAdvancedThreatProtection[]; + 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; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; + 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; } -/** 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?: ManagedServerDnsAlias[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Contains the information necessary to perform a managed database move. */ +export interface ManagedDatabaseMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; } -/** A managed server dns alias creation request. */ -export interface ManagedServerDnsAliasCreation { - /** Whether or not DNS record should be created for this alias. */ - createDnsRecord?: boolean; +/** Contains the information necessary to perform a complete database restore operation. */ +export interface CompleteDatabaseRestoreDefinition { + /** The last backup name to apply */ + lastBackupName: string; } -/** 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; +/** Contains the information necessary to start a managed database move. */ +export interface ManagedDatabaseStartMoveDefinition { + /** The destination managed database ID */ + destinationManagedDatabaseId: string; + /** The move operation mode. */ + operationMode?: MoveOperationMode; } -/** A list of the managed database's Advanced Threat Protection settings. */ -export interface ManagedDatabaseAdvancedThreatProtectionListResult { +/** 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?: ManagedDatabaseAdvancedThreatProtection[]; + 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. @@ -3081,27 +3175,13 @@ export interface ManagedInstanceAdvancedThreatProtectionListResult { readonly nextLink?: string; } -/** A list of replication links. */ -export interface ReplicationLinkListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ReplicationLink[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** List of managed database move operations. */ -export interface ManagedDatabaseMoveOperationListResult { +/** 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?: ManagedDatabaseMoveOperationResult[]; + 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. @@ -3147,13 +3227,13 @@ export interface ManagedInstanceDtcTransactionManagerCommunicationSettings { authentication?: string; } -/** A list of synapselink workspaces */ -export interface SynapseLinkWorkspaceListResult { +/** 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?: SynapseLinkWorkspace[]; + 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. @@ -3161,21 +3241,13 @@ export interface SynapseLinkWorkspaceListResult { 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 { +/** 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?: VirtualCluster[]; + 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. @@ -3183,31 +3255,27 @@ export interface VirtualClusterListResult { readonly nextLink?: string; } -/** An update request for virtual cluster. */ -export interface VirtualClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** A list of long term retention policies. */ +export interface ManagedInstanceLongTermRetentionPolicyListResult { /** - * Subnet resource ID for the virtual cluster. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subnetId?: string; - /** Virtual cluster version. */ - version?: string; + readonly value?: ManagedInstanceLongTermRetentionPolicy[]; /** - * List of resources in this virtual cluster. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly childResources?: string[]; + readonly nextLink?: string; } -/** A list of instance failover groups. */ -export interface InstanceFailoverGroupListResult { +/** The response to a list managed instance operations request */ +export interface ManagedInstanceOperationListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: InstanceFailoverGroup[]; + readonly value?: ManagedInstanceOperation[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3215,89 +3283,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; +/** The parameters of a managed instance operation. */ +export interface ManagedInstanceOperationParametersPair { /** - * Replication role of the partner managed instances. + * The current parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; + readonly currentParameters?: UpsertManagedServerOperationParameters; + /** + * The requested parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requestedParameters?: UpsertManagedServerOperationParameters; } -/** 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; +export interface UpsertManagedServerOperationParameters { + family?: string; + tier?: string; + vCores?: number; + storageSizeInGB?: number; } -/** The managed database's restore details backup set properties. */ -export interface ManagedDatabaseRestoreDetailsBackupSetProperties { - /** - * Backup set status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * First stripe name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly firstStripeName?: string; - /** - * Number of stripes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfStripes?: number; +/** The steps of a managed instance operation. */ +export interface ManagedInstanceOperationSteps { /** - * Backup size. + * The total number of operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupSizeMB?: number; + readonly totalSteps?: string; /** - * Last restored file time. + * The number of current operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreStartedTimestampUtc?: Date; + readonly currentStep?: number; /** - * Last restored file time. + * The operation steps list. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restoreFinishedTimestampUtc?: Date; + readonly stepsList?: UpsertManagedServerOperationStepWithEstimatesAndDuration[]; } -/** 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; +export interface UpsertManagedServerOperationStepWithEstimatesAndDuration { + stepStartTime?: Date; + stepEndTime?: Date; + timeElapsed?: string; + order?: number; + name?: string; + status?: Status; } -/** A list of databases. */ -export interface DatabaseListResult { +/** 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?: Database[]; + 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. @@ -3305,317 +3346,320 @@ export interface DatabaseListResult { readonly nextLink?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseIdentity { - /** The identity type */ - type?: DatabaseIdentityType; +/** 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; /** - * The Azure Active Directory tenant id. + * State of the Private Endpoint Connection. * 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 }; + readonly provisioningState?: string; } -/** Azure Active Directory identity configuration for a resource. */ -export interface DatabaseUserIdentity { +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; /** - * The Azure Active Directory principal id. + * The private link service connection description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly actionsRequired?: string; +} + +/** A list of private link resources */ +export interface ManagedInstancePrivateLinkListResult { /** - * The Azure Active Directory client id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; -} - -/** Database level key used for encryption at rest. */ -export interface DatabaseKey { + readonly value?: ManagedInstancePrivateLink[]; /** - * The database key type. Only supported value is 'AzureKeyVault'. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: DatabaseKeyType; + readonly nextLink?: string; +} + +/** Properties of a private link resource. */ +export interface ManagedInstancePrivateLinkProperties { /** - * Thumbprint of the database key. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly groupId?: string; /** - * The database key creation date. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly requiredMembers?: string[]; /** - * Subregion of the server key. + * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; + readonly requiredZoneNames?: 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 }; +/** A list of the ManagedInstance's vulnerability assessments. */ +export interface ManagedInstanceVulnerabilityAssessmentListResult { /** - * Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. - * - * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. - * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. - * - * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. - * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. - * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - createMode?: CreateMode; - /** The collation of the database. */ - collation?: string; - /** The max size of the database expressed in bytes. */ - maxSizeBytes?: number; - /** The name of the sample schema to apply when creating this database. */ - sampleName?: SampleName; - /** The resource identifier of the elastic pool containing this database. */ - elasticPoolId?: string; - /** The resource identifier of the source database associated with create operation of this database. */ - sourceDatabaseId?: string; + readonly value?: ManagedInstanceVulnerabilityAssessment[]; /** - * The status of the database. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: DatabaseStatus; + readonly nextLink?: string; +} + +/** A list of managed instances. */ +export interface ManagedInstanceListResult { /** - * The ID of the database. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + readonly value?: ManagedInstance[]; /** - * The creation date of the database (ISO8601 format). + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly nextLink?: string; +} + +/** 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 }; /** - * The current service level objective name of the database. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjectiveName?: string; + 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; /** - * The requested service level objective name of the database. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjectiveName?: string; + readonly tenantId?: string; +} + +/** Azure Active Directory identity configuration for a resource. */ +export interface UserIdentity { /** - * The default secondary region for this database. + * The Azure Active Directory principal id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly defaultSecondaryLocation?: string; + readonly principalId?: string; /** - * Failover Group resource identifier that this database belongs to. + * The Azure Active Directory client id. * 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 clientId?: string; +} + +/** A private endpoint connection under a managed instance */ +export interface ManagedInstancePecProperty { /** - * The max log size for this database. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxLogSizeBytes?: number; + readonly id?: string; /** - * This records the earliest start date and time that restore is available for this database (ISO8601 format). + * Private endpoint connection properties * 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 properties?: ManagedInstancePrivateEndpointConnectionProperties; +} + +/** Properties of a active directory administrator. */ +export interface ManagedInstanceExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** The managed instance's service principal configuration for a resource. */ +export interface ServicePrincipal { /** - * The name and tier of the SKU. + * The Azure Active Directory application object id. * 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 principalId?: string; /** - * The storage account type used to store backups for this database. + * The Azure Active Directory application client id. * 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 clientId?: string; /** - * The date when database was paused by user configuration or action(ISO8601 format). Null if the database is ready. + * The Azure Active Directory tenant id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pausedDate?: Date; + readonly tenantId?: string; + /** Service principal type. */ + type?: ServicePrincipalType; +} + +/** An update request for an Azure SQL Database managed instance. */ +export interface ManagedInstanceUpdate { + /** Managed instance sku */ + sku?: Sku; + /** Managed instance identity */ + identity?: ResourceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. + * Provisioning state of managed instance. * 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?: ProvisioningState; /** - * Infra encryption is enabled for this database. + * 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 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; + 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; /** - * 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. + * The state of the managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - freeLimitExhaustionBehavior?: FreeLimitExhaustionBehavior; + 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; /** - * 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. + * 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. */ - manualCutover?: boolean; + 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; /** - * 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. + * The Dns Zone that the managed instance is in. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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 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; -} - -/** Contains the private endpoint connection requests status. */ -export interface PrivateEndpointConnectionRequestStatus { + 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; /** - * Resource id for which the private endpoint is created. + * 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 privateLinkServiceId?: string; + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; /** - * The connection name for the private endpoint. + * 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 privateEndpointConnectionName?: string; + 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; /** - * Status of this private endpoint connection. + * Virtual cluster resource id for the Managed Instance. * 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 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; + /** The managed instance's authentication metadata lookup mode. */ + authenticationMetadata?: AuthMetadataLookupModes; + /** Specifies the internal format of instance databases specific to the SQL engine version. */ + databaseFormat?: ManagedInstanceDatabaseFormat; } -/** The result of an elastic pool list request. */ -export interface ElasticPoolListResult { +/** 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?: ElasticPool[]; + 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. @@ -3623,47 +3667,50 @@ 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 endpoint that the managed instance service requires outbound network access to. */ +export interface OutboundEnvironmentEndpoint { + /** + * 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 category?: string; + /** + * 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 endpoints?: EndpointDependency[]; } -/** 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 domain name that the managed instance service needs to communicate with, along with additional details. */ +export interface EndpointDependency { + /** + * The domain name of the dependency. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly domainName?: string; + /** + * 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 endpointDetails?: EndpointDetail[]; } -/** A list of managed databases. */ -export interface ManagedDatabaseListResult { +/** 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 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?: ManagedDatabase[]; + 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. @@ -3671,98 +3718,95 @@ 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; +export interface TopQueries { /** - * Status of the database. + * Requested number of top queries. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedDatabaseStatus; + readonly numberOfQueries?: number; /** - * Creation date of the database. + * Aggregation function used to calculate query metrics. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly aggregationFunction?: string; /** - * Earliest restore point in time for point in time restore. + * Metric used to rank queries. * 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 observationMetric?: string; /** - * Geo paired region. + * Interval type (length). * 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 intervalType?: QueryTimeGrainType; /** - * Instance Failover Group resource identifier that this managed database belongs to. + * 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 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; + readonly startTime?: string; + /** + * 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?: string; + /** List of top resource consuming queries with appropriate metric data */ + queries?: QueryStatisticsProperties[]; } -/** Contains the information necessary to perform a complete database restore operation. */ -export interface CompleteDatabaseRestoreDefinition { - /** The last backup name to apply */ - lastBackupName: string; +/** Properties of a query execution statistics. */ +export interface QueryStatisticsProperties { + /** + * 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 databaseName?: string; + /** + * Unique query id (unique within one database). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queryId?: string; + /** + * 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?: string; + /** + * 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?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricIntervalAutoGenerated[]; } -/** 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; +/** Properties of a query metrics interval. */ +export interface QueryMetricIntervalAutoGenerated { + /** + * 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 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[]; } -/** A list of managed instances. */ -export interface ManagedInstanceListResult { +/** A list of ledger digest upload settings. */ +export interface ManagedLedgerDigestUploadsListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: ManagedInstance[]; + readonly value?: ManagedLedgerDigestUploads[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3770,192 +3814,178 @@ 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 managed server DNS aliases. */ +export interface ManagedServerDnsAliasListResult { /** - * 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?: ManagedServerDnsAlias[]; /** - * 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 { +/** 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 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; } -/** A private endpoint connection under a managed instance */ -export interface ManagedInstancePecProperty { +/** A list of NSP configurations for a server. */ +export interface NetworkSecurityPerimeterConfigurationListResult { /** - * 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?: NetworkSecurityPerimeterConfiguration[]; /** - * Private endpoint connection properties + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; + readonly nextLink?: string; } -/** 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; +export interface NSPConfigPerimeter { + id?: string; + perimeterGuid?: string; + location?: string; } -/** The managed instance's service principal configuration for a resource. */ -export interface ServicePrincipal { +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 Azure Active Directory application object id. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly value?: Operation[]; /** - * The Azure Active Directory application client id. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly nextLink?: string; +} + +/** SQL REST API operation definition. */ +export interface Operation { /** - * The Azure Active Directory tenant id. + * 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. */ - readonly tenantId?: string; - /** Service principal type. */ - type?: ServicePrincipalType; -} - -/** An update request for an Azure SQL Database managed instance. */ -export interface ManagedInstanceUpdate { - /** Managed instance sku */ - sku?: Sku; - /** Managed instance identity */ - identity?: ResourceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ManagedInstancePropertiesProvisioningState; + readonly name?: string; /** - * Specifies the mode of database creation. - * - * Default: Regular instance creation. - * - * Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. + * The localized display information for this particular operation / action. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - managedInstanceCreateMode?: ManagedServerCreateMode; + readonly display?: OperationDisplay; /** - * The fully qualified domain name of the managed instance. + * The intended executor of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; - /** Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation). */ - administratorLogin?: string; - /** The administrator login password (required for managed instance creation). */ - administratorLoginPassword?: string; - /** Subnet resource ID for the managed instance. */ - subnetId?: string; + readonly origin?: OperationOrigin; /** - * The state of the managed instance. + * Additional descriptions for the operation. * 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 properties?: { [propertyName: string]: Record }; +} + +/** Display metadata associated with the operation. */ +export interface OperationDisplay { /** - * The Dns Zone that the managed instance is in. + * 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 dnsZone?: string; - /** The resource id of another managed instance whose DNS zone this managed instance will share after creation. */ - dnsZonePartner?: string; - /** Whether or not the public data endpoint is enabled. */ - publicDataEndpointEnabled?: boolean; - /** The resource identifier of the source managed instance associated with create operation of this instance. */ - sourceManagedInstanceId?: string; - /** Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. */ - restorePointInTime?: Date; - /** Connection type used for connecting to the instance. */ - proxyOverride?: ManagedInstanceProxyOverride; + readonly provider?: string; /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + * The 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. */ - 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 resource?: string; /** - * List of private endpoint connections on a managed instance. + * The localized friendly name for the operation. * 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 operation?: string; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * The localized friendly description for the operation. * 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 description?: string; } -/** A collection of endpoints that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpointCollection { +/** A list of outbound rules. */ +export interface OutboundFirewallRuleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: OutboundEnvironmentEndpoint[]; + readonly value?: OutboundFirewallRule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3963,50 +3993,62 @@ export interface OutboundEnvironmentEndpointCollection { readonly nextLink?: string; } -/** An endpoint that the managed instance service requires outbound network access to. */ -export interface OutboundEnvironmentEndpoint { +/** A list of private endpoint connections. */ +export interface PrivateEndpointConnectionListResult { /** - * 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?: PrivateEndpointConnection[]; /** - * 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 { +/** Properties of a private endpoint connection. */ +export interface PrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * The domain name of the dependency. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly domainName?: string; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * The IP Addresses and Ports used when connecting to DomainName. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endpointDetails?: EndpointDetail[]; + readonly provisioningState?: PrivateEndpointProvisioningState; } -/** A domain name that the managed instance service needs to communicate with, along with additional details. */ -export interface EndpointDetail { +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; /** - * The port an endpoint is connected to. + * The actions required for private link service connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly port?: number; + readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; } -/** A list of top resource consuming queries on managed instance */ -export interface TopQueriesListResult { +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopQueries[]; + readonly value?: PrivateLinkResource[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4014,48 +4056,46 @@ 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; +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { /** - * Aggregation function used to calculate query metrics. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly aggregationFunction?: string; + readonly groupId?: string; /** - * Metric used to rank queries. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly observationMetric?: string; + readonly requiredMembers?: string[]; /** - * Interval type (length). + * The private link resource required zone names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intervalType?: QueryTimeGrainType; + readonly requiredZoneNames?: string[]; +} + +/** A list of recoverable databases. */ +export interface RecoverableDatabaseListResult { /** - * 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?: RecoverableDatabase[]; /** - * 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 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?: ManagedLedgerDigestUploads[]; + 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. @@ -4063,13 +4103,13 @@ export interface ManagedLedgerDigestUploadsListResult { readonly nextLink?: string; } -/** A list of recoverable databases. */ -export interface RecoverableDatabaseListResult { +/** A list of replication links. */ +export interface ReplicationLinkListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: RecoverableDatabase[]; + readonly value?: ReplicationLink[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4091,13 +4131,13 @@ export interface RestorableDroppedDatabaseListResult { readonly nextLink?: string; } -/** A list of server configuration options. */ -export interface ServerConfigurationOptionListResult { +/** 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?: ServerConfigurationOption[]; + 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. @@ -4105,13 +4145,13 @@ export interface ServerConfigurationOptionListResult { readonly nextLink?: string; } -/** Managed instance's Start/Stop schedule list result. */ -export interface StartStopManagedInstanceScheduleListResult { +/** A list of long term retention backups. */ +export interface RestorePointListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: StartStopManagedInstanceSchedule[]; + readonly value?: RestorePoint[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4119,25 +4159,19 @@ export interface StartStopManagedInstanceScheduleListResult { readonly nextLink?: string; } -/** Schedule info describing when the server should be started or stopped. */ -export interface ScheduleItem { - /** Start day. */ - startDay: DayOfWeek; - /** Start time. */ - startTime: string; - /** Stop day. */ - stopDay: DayOfWeek; - /** Stop time. */ - stopTime: string; +/** 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 transparent data encryptions */ -export interface LogicalDatabaseTransparentDataEncryptionListResult { +/** A list of the server's Advanced Threat Protection configurations. */ +export interface LogicalServerAdvancedThreatProtectionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: LogicalDatabaseTransparentDataEncryption[]; + readonly value?: ServerAdvancedThreatProtection[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4145,27 +4179,34 @@ export interface LogicalDatabaseTransparentDataEncryptionListResult { readonly nextLink?: string; } -/** The response to a list IPv6 firewall rules request */ -export interface IPv6FirewallRuleListResult { +/** Automatic tuning properties for individual advisors. */ +export interface AutomaticTuningServerOptions { + /** Automatic tuning option desired state. */ + desiredState?: AutomaticTuningOptionModeDesired; /** - * Array of results. + * Automatic tuning option actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: IPv6FirewallRule[]; + readonly actualState?: AutomaticTuningOptionModeActual; /** - * Link to retrieve next page of results. + * 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 nextLink?: string; + readonly reasonCode?: number; + /** + * 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 reasonDesc?: AutomaticTuningServerReason; } -/** A list of SQL Vulnerability Assessments baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { +/** A list of active directory administrators. */ +export interface AdministratorListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentBaselineSet[]; + readonly value?: ServerAzureADAdministrator[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4173,13 +4214,13 @@ export interface DatabaseSqlVulnerabilityAssessmentBaselineSetListResult { readonly nextLink?: string; } -/** A list of SQL Vulnerability Assessments rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { +/** A list of active directory only authentications. */ +export interface AzureADOnlyAuthListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: DatabaseSqlVulnerabilityAssessmentRuleBaseline[]; + readonly value?: ServerAzureADOnlyAuthentication[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4187,13 +4228,13 @@ export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult { readonly nextLink?: string; } -/** A list of vulnerability assessment scan results. */ -export interface SQLVulnerabilityAssessmentScanListResult { +/** A list of server configuration options. */ +export interface ServerConfigurationOptionListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SqlVulnerabilityAssessmentScanResults[]; + readonly value?: ServerConfigurationOption[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4201,157 +4242,117 @@ export interface SQLVulnerabilityAssessmentScanListResult { readonly nextLink?: string; } -/** SQL Vulnerability Assessment remediation Details. */ -export interface Remediation { +/** A list of server connection policy objects. */ +export interface ServerConnectionPolicyListResult { /** - * 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?: ServerConnectionPolicy[]; /** - * 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; +} + +/** A list of server DevOps audit settings. */ +export interface ServerDevOpsAuditSettingsListResult { /** - * SQL Vulnerability Assessment is remediation automated. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly automated?: boolean; + readonly value?: ServerDevOpsAuditingSettings[]; /** - * SQL Vulnerability Assessment optional link to remediate in Azure Portal. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly portalLink?: string; + readonly nextLink?: string; } -/** 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; - /** - * SQL Vulnerability Assessment baseline status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: RuleStatus; +/** A list of server DNS aliases. */ +export interface ServerDnsAliasListResult { /** - * SQL Vulnerability Assessment results that are not in baseline + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsNotInBaseline?: string[][]; + readonly value?: ServerDnsAlias[]; /** - * SQL Vulnerability Assessment results that are in baseline. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resultsOnlyInBaseline?: string[][]; + readonly nextLink?: string; } -/** 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; +/** 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; } -/** 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; +/** A list of server keys. */ +export interface ServerKeyListResult { /** - * SQL Vulnerability Assessment rule description. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly value?: ServerKey[]; /** - * SQL Vulnerability Assessment rule rationale. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rationale?: string; + readonly nextLink?: string; +} + +/** The response to a list server operations request */ +export interface ServerOperationListResult { /** - * 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?: ServerOperation[]; /** - * 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 { - /** - * SQL Vulnerability Assessment rule query. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly query?: string; +/** A list of the server's security alert policies. */ +export interface LogicalServerSecurityAlertPolicyListResult { /** - * SQL Vulnerability Assessment query expected result. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly expectedResult?: string[][]; + readonly value?: ServerSecurityAlertPolicy[]; /** - * SQL Vulnerability Assessment column names of query expected result. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly columnNames?: string[]; + readonly nextLink?: string; } -/** SQL Vulnerability Assessment benchmark reference */ -export interface BenchmarkReference { +/** A list of server trust certificates in instance. */ +export interface ServerTrustCertificatesListResult { /** - * SQL Vulnerability Assessment benchmark name + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly benchmark?: string; + readonly value?: ServerTrustCertificate[]; /** - * SQL Vulnerability Assessment benchmark reference. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reference?: string; + readonly nextLink?: string; } -/** A list of vulnerability assessment scan records. */ -export interface SqlVulnerabilityAssessmentScanRecordListResult { +/** 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?: SqlVulnerabilityAssessmentScanRecord[]; + 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. @@ -4359,27 +4360,33 @@ export interface SqlVulnerabilityAssessmentScanRecordListResult { readonly nextLink?: string; } -/** Properties of a vulnerability assessment scan error. */ -export interface SqlVulnerabilityAssessmentScanError { +/** Server info for the server trust group. */ +export interface ServerInfo { + /** Server Id. */ + serverId: string; +} + +/** A list of server usage metrics. */ +export interface ServerUsageListResult { /** - * 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?: ServerUsage[]; /** - * 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 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?: SqlVulnerabilityAssessment[]; + 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. @@ -4542,13 +4549,13 @@ export interface ImportNewDatabaseDefinition { networkIsolation?: NetworkIsolationSettings; } -/** A list of failover groups. */ -export interface FailoverGroupListResult { +/** Managed instance's Start/Stop schedule list result. */ +export interface StartStopManagedInstanceScheduleListResult { /** * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: FailoverGroup[]; + readonly value?: StartStopManagedInstanceSchedule[]; /** * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4556,661 +4563,1066 @@ 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; +/** Schedule info describing when the server should be started or stopped. */ +export interface ScheduleItem { + /** Start day. */ + startDay: DayOfWeek; + /** Start time. */ + startTime: string; + /** Stop day. */ + stopDay: DayOfWeek; + /** Stop time. */ + stopTime: string; } -/** 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; +/** 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?: SubscriptionUsage[]; + /** + * 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; } -/** Partner server information for the failover group. */ -export interface PartnerInfo { - /** Resource identifier of the partner server. */ - id: string; +/** A list of synapselink workspaces */ +export interface SynapseLinkWorkspaceListResult { /** - * 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?: SynapseLinkWorkspace[]; /** - * 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[]; - /** List of partner server information for the failover group. */ - partnerServers?: PartnerInfo[]; +/** Properties of a Synapse link workspaces */ +export interface SynapseLinkWorkspaceInfoProperties { + /** Synapse link workspace id. */ + workspaceId?: string; + /** Link connection name. */ + linkConnectionName?: string; } -/** A Slo Usage Metric. */ -export interface SloUsageMetric { +/** A list of sync agents. */ +export interface SyncAgentListResult { /** - * The serviceLevelObjective for SLO usage metric. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjective?: ServiceObjectiveName; + readonly value?: SyncAgent[]; /** - * The serviceLevelObjectiveId 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 serviceLevelObjectiveId?: string; + readonly nextLink?: string; +} + +/** Properties of an Azure SQL Database sync agent key. */ +export interface SyncAgentKeyProperties { /** - * Gets or sets inRangeTimeRatio for SLO usage metric. + * Key of sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inRangeTimeRatio?: number; + readonly syncAgentKey?: string; } -/** The impact of an operation, both in absolute and relative terms. */ -export interface OperationImpact { +/** A list of sync agent linked databases. */ +export interface SyncAgentLinkedDatabaseListResult { /** - * The name of the impact dimension. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: SyncAgentLinkedDatabase[]; /** - * The unit in which estimated impact to dimension is measured. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly nextLink?: string; +} + +/** A list of sync database ID properties. */ +export interface SyncDatabaseIdListResult { /** - * 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?: SyncDatabaseIdProperties[]; /** - * The relative impact to dimension (null if not applicable) + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly changeValueRelative?: number; + readonly nextLink?: string; } -/** The properties that are supported in the $filter operation. */ -export interface SecurityEventsFilterParameters { - /** Filter on the event time. */ - eventTime?: Date; - /** Whether to show server records or not. */ - showServerRecords?: boolean; +/** Properties of the sync database id. */ +export interface SyncDatabaseIdProperties { + /** + * ARM resource id of sync database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; } -/** 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 {} - -/** Represents a database data masking policy. */ -export interface DataMaskingPolicy extends ProxyResource { - /** - * The location of the data masking policy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * The kind of data masking policy. Metadata, used for Azure portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** 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; +/** A list of sync groups. */ +export interface SyncGroupListResult { /** - * The list of the application principals. This is a legacy parameter and is no longer used. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationPrincipals?: string; + readonly value?: SyncGroup[]; /** - * The masking level. This is a legacy parameter and is no longer used. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maskingLevel?: string; + readonly nextLink?: string; } -/** Represents a database data masking rule. */ -export interface DataMaskingRule extends ProxyResource { - /** - * The location of the data masking rule. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * The rule Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly idPropertiesId?: string; - /** The alias name. This is a legacy parameter and is no longer used. */ - aliasName?: string; - /** The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. */ - ruleState?: DataMaskingRuleState; - /** The schema name on which the data masking rule is applied. */ - schemaName?: string; - /** The table name on which the data masking rule is applied. */ - tableName?: string; - /** The column name on which the data masking rule is applied. */ - columnName?: string; - /** The masking function that is used for the data masking rule. */ - maskingFunction?: DataMaskingFunction; - /** The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberFrom?: string; - /** The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. */ - numberTo?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. */ - prefixSize?: string; - /** If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. */ - suffixSize?: string; - /** If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. */ - replacementString?: string; +/** 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; } -/** 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; +/** 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 { /** - * 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?: SyncFullSchemaProperties[]; /** - * 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; +/** Properties of the database full schema. */ +export interface SyncFullSchemaProperties { /** - * Communication link kind. This property is used for Azure Portal metadata. + * List of tables in the database full schema. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly tables?: SyncFullSchemaTable[]; /** - * The state. + * Last update time of the database schema. * 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 lastUpdateTime?: Date; } -/** Represents a database service objective. */ -export interface ServiceObjective extends ProxyResource { +/** Properties of the table in the database full schema. */ +export interface SyncFullSchemaTable { /** - * The name for the service objective. + * 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 serviceObjectiveName?: string; + readonly columns?: SyncFullSchemaTableColumn[]; /** - * Gets whether the service level objective is the default service objective. + * Error id of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefault?: boolean; + readonly errorId?: string; /** - * Gets whether the service level objective is a system service objective. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isSystem?: boolean; + readonly hasError?: boolean; /** - * The description for the service level objective. + * Name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly name?: string; /** - * Gets whether the service level objective is enabled. + * Quoted name of the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly enabled?: boolean; + readonly quotedName?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: 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; +/** Properties of the column in the table of database full schema. */ +export interface SyncFullSchemaTableColumn { /** - * The error code if available. + * Data size of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly dataSize?: string; /** - * The error message if available. + * Data type of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly dataType?: string; /** - * The error severity if available. + * Error id of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly errorId?: string; /** - * The operation name. + * If there is error in the table. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly hasError?: boolean; /** - * The unique operation ID. + * 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 operationId?: string; + readonly isPrimaryKey?: boolean; /** - * The percentage complete if available. + * Name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly name?: string; /** - * The requested max DTU per database if available. + * Quoted name of the column. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuMax?: number; + readonly quotedName?: string; +} + +/** A list of sync group log properties. */ +export interface SyncGroupLogListResult { /** - * The requested min DTU per database if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuMin?: number; + readonly value?: SyncGroupLogProperties[]; /** - * The requested DTU for the pool if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDtu?: number; + readonly nextLink?: string; +} + +/** Properties of an Azure SQL Database sync group log. */ +export interface SyncGroupLogProperties { /** - * The requested name for the elastic pool if available. + * Timestamp of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly timestamp?: Date; /** - * The requested storage limit for the pool in GB if available. + * Type of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedStorageLimitInGB?: number; + readonly type?: SyncGroupLogType; /** - * The name of the elastic pool. + * Source of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly source?: string; /** - * The name of the server the elastic pool is in. + * Details of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly details?: string; /** - * The time the operation started (ISO8601 format). + * TracingId of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly tracingId?: string; /** - * The current state of the operation. + * OperationStatus of the sync group log. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly operationStatus?: string; +} + +/** A list of Azure SQL Database sync members. */ +export interface SyncMemberListResult { /** - * The requested storage limit in MB. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedStorageLimitInMB?: number; + readonly value?: SyncMember[]; /** - * The requested per database DTU guarantee. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuGuarantee?: number; + readonly nextLink?: string; +} + +/** A list of time zones. */ +export interface TimeZoneListResult { /** - * The requested per database DTU cap. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDatabaseDtuCap?: number; + readonly value?: TimeZone[]; /** - * The requested DTU guarantee. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedDtuGuarantee?: number; + readonly nextLink?: string; } -/** Represents the activity on an elastic pool. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** - * The database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; +/** A list of transparent data encryptions */ +export interface LogicalDatabaseTransparentDataEncryptionListResult { /** - * 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?: LogicalDatabaseTransparentDataEncryption[]; /** - * The error code if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly nextLink?: string; +} + +/** A list of usages. */ +export interface UsageListResult { /** - * The error message if available. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly value?: Usage[]; /** - * The error severity if available. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly nextLink?: string; +} + +/** ARM usage. */ +export interface Usage { /** - * The operation name. + * Resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly id?: string; /** - * The unique operation ID. + * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationId?: string; + readonly name?: Name; /** - * The percentage complete if available. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly type?: string; /** - * The name for the elastic pool the database is moving into if available. + * Usage unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedElasticPoolName?: string; + readonly unit?: string; /** - * The name of the current elastic pool the database is in if available. + * Usage current value. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentElasticPoolName?: string; + readonly currentValue?: number; /** - * The name of the current service objective if available. + * Usage limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentServiceObjective?: string; + readonly limit?: number; /** - * The name of the requested service objective if available. + * Usage requested limit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestedServiceObjective?: string; - /** - * The name of the server the elastic pool is in. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serverName?: string; - /** - * The time the operation started (ISO8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The current state of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: string; + readonly requestedLimit?: number; } -/** Database, Server or Elastic Pool Recommended Action. */ -export interface RecommendedAction extends ProxyResource { +/** 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 { /** - * Resource kind. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly value?: VirtualCluster[]; /** - * Resource location. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly nextLink?: string; +} + +/** An update request for virtual cluster. */ +export interface VirtualClusterUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** - * Gets the reason for recommending this action. e.g., DuplicateIndex + * Subnet resource ID for the virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly recommendationReason?: string; + readonly subnetId?: string; + /** Virtual cluster version. */ + version?: string; /** - * Gets the time since when this recommended action is valid. + * List of resources in this virtual cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly validSince?: Date; + readonly childResources?: string[]; +} + +/** A list of virtual network rules. */ +export interface VirtualNetworkRuleListResult { /** - * Gets time when this recommended action was last refreshed. + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRefresh?: Date; - /** Gets the info of the current state the recommended action is in. */ - state?: RecommendedActionStateInfo; + readonly value?: VirtualNetworkRule[]; /** - * Gets if this recommended action is actionable by user + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isExecutableAction?: boolean; + readonly nextLink?: string; +} + +/** A list of workload classifiers for a workload group. */ +export interface WorkloadClassifierListResult { /** - * Gets if changes applied by this recommended action can be reverted by user + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isRevertableAction?: boolean; + readonly value?: WorkloadClassifier[]; /** - * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isArchivedAction?: boolean; + readonly nextLink?: string; +} + +/** A list of workload groups. */ +export interface WorkloadGroupListResult { /** - * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time + * Array of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionStartTime?: Date; + readonly value?: WorkloadGroup[]; /** - * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation + * Link to retrieve next page of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly executeActionDuration?: string; + 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 { /** - * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 revertActionStartTime?: Date; + isDevopsAuditEnabled?: boolean; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 revertActionDuration?: string; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Gets if approval for applying this recommended action was given by user/system. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 executeActionInitiatedBy?: RecommendedActionInitiatedBy; + isAzureMonitorTargetEnabled?: boolean; /** - * Gets the time when this recommended action was approved for execution. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 executeActionInitiatedTime?: 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; /** - * Gets if approval for reverting this recommended action was given by user/system. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 revertActionInitiatedBy?: RecommendedActionInitiatedBy; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A database blob auditing policy. */ +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * Gets the time when this recommended action was approved for revert. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revertActionInitiatedTime?: Date; + readonly kind?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 score?: number; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Gets the implementation details of this recommended action for user to apply it manually. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 implementationDetails?: RecommendedActionImplementationInfo; + isAzureMonitorTargetEnabled?: boolean; /** - * Gets the error details if and why this recommended action is put to error state. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 errorDetails?: RecommendedActionErrorInfo; + 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; /** - * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 estimatedImpact?: RecommendedActionImpactRecord[]; + 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; /** - * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 observedImpact?: RecommendedActionImpactRecord[]; + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Gets the time series info of metrics for this recommended action e.g., CPU consumption time series - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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 timeSeries?: RecommendedActionMetricInfo[]; + isAzureMonitorTargetEnabled?: boolean; /** - * Gets the linked objects, if any. - * 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 linkedObjects?: 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; /** - * Gets additional details specific to this recommended action. - * 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 details?: { [propertyName: string]: Record }; + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** Database, Server or Elastic Pool Advisor. */ -export interface Advisor extends ProxyResource { - /** - * Resource kind. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; +/** An extended server blob auditing policy. */ +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * Resource location. - * 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 location?: string; + isDevopsAuditEnabled?: boolean; + /** Specifies condition of where clause when creating an audit. */ + predicateExpression?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly advisorStatus?: AdvisorStatus; - /** Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled' */ - autoExecuteStatus?: AutoExecuteStatus; + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * DBCC_GROUP + * DATABASE_OWNERSHIP_CHANGE_GROUP + * DATABASE_CHANGE_GROUP + * LEDGER_OPERATION_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + */ + auditActionsAndGroups?: string[]; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + isAzureMonitorTargetEnabled?: boolean; + /** + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + */ + queueDelayMs?: number; + /** Specifies whether Managed Identity is used to access blob storage */ + isManagedIdentityInUse?: boolean; + /** Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ + storageEndpoint?: string; + /** + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + */ + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; +} + +/** A database data masking policy. */ +export interface DataMaskingPolicy extends ProxyResource { + /** + * The location of the data masking policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; + readonly location?: string; /** - * Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. + * The 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 recommendationsStatus?: 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; /** - * Gets the time when the current resource was analyzed for recommendations by this advisor. + * The list of the application principals. This is a legacy parameter and is no longer used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastChecked?: Date; + readonly applicationPrincipals?: string; /** - * Gets the recommended actions for this advisor. + * 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 recommendedActions?: RecommendedAction[]; + readonly maskingLevel?: string; } -/** Database-level Automatic Tuning. */ -export interface DatabaseAutomaticTuning extends ProxyResource { - /** Automatic tuning desired state. */ - desiredState?: AutomaticTuningMode; +/** A database data masking rule. */ +export interface DataMaskingRule extends ProxyResource { /** - * Automatic tuning actual state. + * The location of the data masking rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: AutomaticTuningMode; - /** Automatic tuning options definition. */ - options?: { [propertyName: string]: AutomaticTuningOptions }; + readonly location?: string; + /** + * The kind of Data Masking Rule. Metadata, used for Azure portal. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * The rule Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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; } -/** A database column resource. */ -export interface DatabaseColumn extends ProxyResource { - /** The column data type. */ - columnType?: ColumnDataType; - /** The table temporal type. */ - temporalType?: TableTemporalType; - /** Whether or not the column belongs to a memory optimized table. */ - memoryOptimized?: boolean; - /** Whether or not the column is computed. */ - isComputed?: boolean; +/** User activities of a data warehouse */ +export interface DataWarehouseUserActivities extends ProxyResource { + /** + * Count of running and suspended queries. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly activeQueriesCount?: number; } -/** A database schema resource. */ -export interface DatabaseSchema extends ProxyResource {} - -/** A database security alert policy. */ -export interface DatabaseSecurityAlertPolicy extends ProxyResource { +/** A database Advanced Threat Protection. */ +export interface DatabaseAdvancedThreatProtection extends ProxyResource { /** - * SystemData of SecurityAlertPolicyResource. + * 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 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 state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5218,417 +5630,369 @@ export interface DatabaseSecurityAlertPolicy extends ProxyResource { 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 { +/** Database, Server or Elastic Pool Recommended Action. */ +export interface RecommendedAction extends ProxyResource { /** - * The scan ID. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scanId?: string; + readonly kind?: string; /** - * The scan trigger type. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly location?: string; /** - * The scan status. + * Gets the reason for recommending this action. e.g., DuplicateIndex * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VulnerabilityAssessmentScanState; + readonly recommendationReason?: string; /** - * The scan start time (UTC). + * Gets the time since when this recommended action is valid. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly validSince?: Date; /** - * The scan end time (UTC). + * Gets time when this recommended action was last refreshed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; - /** - * The scan errors. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errors?: VulnerabilityAssessmentScanError[]; + readonly lastRefresh?: Date; + /** Gets the info of the current state the recommended action is in. */ + state?: RecommendedActionStateInfo; /** - * The scan results storage container path. + * Gets if this recommended action is actionable by user * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageContainerPath?: string; + readonly isExecutableAction?: boolean; /** - * The number of failed security checks. + * Gets if changes applied by this recommended action can be reverted by user * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFailedSecurityChecks?: number; -} - -/** A database Vulnerability Assessment scan export resource. */ -export interface DatabaseVulnerabilityAssessmentScansExport - extends ProxyResource { + readonly isRevertableAction?: boolean; /** - * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly exportedReportLocation?: string; -} - -/** User activities of a data warehouse */ -export interface DataWarehouseUserActivities extends ProxyResource { + readonly isArchivedAction?: boolean; /** - * Count of running and suspended queries. + * Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly activeQueriesCount?: number; -} - -/** A deleted server. */ -export interface DeletedServer extends ProxyResource { + readonly executeActionStartTime?: Date; /** - * The version of the deleted server. + * Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly executeActionDuration?: string; /** - * The deletion time of the deleted server. + * Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionTime?: Date; + readonly revertActionStartTime?: Date; /** - * The original ID of the server before deletion. + * Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly originalId?: string; + readonly revertActionDuration?: string; /** - * The fully qualified domain name of the server. + * Gets if approval for applying this recommended action was given by user/system. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedDomainName?: string; -} - -/** A elastic pool operation. */ -export interface ElasticPoolOperation extends ProxyResource { + readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; /** - * The name of the elastic pool the operation is being performed on. + * Gets the time when this recommended action was approved for execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly executeActionInitiatedTime?: Date; /** - * The name of operation. + * Gets if approval for reverting this recommended action was given by user/system. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; /** - * The friendly name of operation. + * Gets the time when this recommended action was approved for revert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly revertActionInitiatedTime?: Date; /** - * The percentage of the operation completed. + * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly score?: number; /** - * The name of the server. + * Gets the implementation details of this recommended action for user to apply it manually. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly implementationDetails?: RecommendedActionImplementationInfo; /** - * The operation start time. + * Gets the error details if and why this recommended action is put to error state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly errorDetails?: RecommendedActionErrorInfo; /** - * The operation state. + * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly estimatedImpact?: RecommendedActionImpactRecord[]; /** - * The operation error code. + * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly observedImpact?: RecommendedActionImpactRecord[]; /** - * The operation error description. + * Gets the time series info of metrics for this recommended action e.g., CPU consumption time series * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly timeSeries?: RecommendedActionMetricInfo[]; /** - * The operation error severity. + * Gets the linked objects, if any. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly linkedObjects?: string[]; /** - * Whether or not the error is a user error. + * Gets additional details specific to this recommended action. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly details?: { [propertyName: string]: Record }; +} + +/** Database, Server or Elastic Pool Advisor. */ +export interface Advisor extends ProxyResource { /** - * The estimated completion time of the operation. + * Resource kind. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly kind?: string; /** - * The operation description. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly location?: string; /** - * Whether the operation can be cancelled. + * Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** The server encryption protector. */ -export interface EncryptionProtector extends ProxyResource { + readonly advisorStatus?: AdvisorStatus; + /** Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled' */ + autoExecuteStatus?: AutoExecuteStatus; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; /** - * Resource location. + * Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly recommendationsStatus?: string; /** - * Subregion of the encryption protector. + * Gets the time when the current resource was analyzed for recommendations by this advisor. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; - /** The name of the server key. */ - serverKeyName?: string; - /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; + readonly lastChecked?: Date; /** - * The URI of the server key. + * Gets the recommended actions for this advisor. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uri?: string; + readonly recommendedActions?: RecommendedAction[]; +} + +/** Database-level Automatic Tuning. */ +export interface DatabaseAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningMode; /** - * Thumbprint of the server key. + * Automatic tuning actual state. * 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 actualState?: AutomaticTuningMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningOptions }; } -/** 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 column resource. */ +export interface DatabaseColumn extends ProxyResource { + /** The column data type. */ + columnType?: ColumnDataType; + /** The table temporal type. */ + temporalType?: TableTemporalType; + /** Whether or not the column belongs to a memory optimized table. */ + memoryOptimized?: boolean; + /** Whether or not the column is computed. */ + isComputed?: boolean; } -/** An execution of a job */ -export interface JobExecution extends ProxyResource { +/** An Extension operation result resource. */ +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** - * The job version number. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobVersion?: number; + readonly requestId?: string; /** - * The job step name. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepName?: string; + readonly requestType?: string; /** - * The job step id. + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stepId?: number; + readonly lastModifiedTime?: string; /** - * The unique identifier of the job execution. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly jobExecutionId?: string; + readonly serverName?: string; /** - * The detailed state of the job execution. + * Database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lifecycle?: JobExecutionLifecycle; + readonly databaseName?: string; /** - * The ARM provisioning state of the job execution. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly status?: string; /** - * The time that the job execution was created. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly errorMessage?: string; /** - * The time that the job execution started. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly queuedTime?: string; /** - * The time that the job execution completed. + * Blob URI. * 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 blobUri?: string; /** - * Start time of the current attempt. + * 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 currentAttemptStartTime?: Date; + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; +} + +/** 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 last status or error message. + * 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 lastMessage?: string; + readonly databaseName?: string; /** - * The target that this execution is executed on. + * The name of operation. * 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 operation?: string; /** - * The job version number. + * The friendly name of operation. * 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 operationFriendlyName?: string; /** - * Database name of the database in which this query was executed. + * The percentage of the operation completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly percentComplete?: number; /** - * Unique query id (unique within one database). + * The name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryId?: string; + readonly serverName?: string; /** - * The start time for the metric (ISO-8601 format). + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: string; + readonly startTime?: Date; /** - * The end time for the metric (ISO-8601 format). + * The operation state. * 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[]; + readonly state?: ManagementOperationState; + /** + * The operation error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorCode?: number; + /** + * The operation error description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorDescription?: string; + /** + * The operation error severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorSeverity?: number; + /** + * Whether or not the error is a user error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isUserError?: boolean; + /** + * The estimated completion time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly estimatedCompletionTime?: Date; + /** + * The operation description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Whether the operation can be cancelled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isCancellable?: boolean; + /** + * The operation phase details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationPhaseDetails?: PhaseDetails; } -/** A managed database security alert policy. */ -export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { +/** A database schema resource. */ +export interface DatabaseSchema extends ProxyResource {} + +/** A database security alert policy. */ +export interface DatabaseSecurityAlertPolicy extends ProxyResource { + /** + * SystemData of SecurityAlertPolicyResource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. */ - state?: SecurityAlertPolicyState; + state?: SecurityAlertsPolicyState; /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ disabledAlerts?: string[]; /** Specifies an array of e-mail addresses to which the alert is sent. */ @@ -5648,485 +6012,436 @@ export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { readonly creationTime?: Date; } -/** A security event. */ -export interface SecurityEvent extends ProxyResource { +/** A database sql vulnerability assessment baseline set. */ +export interface DatabaseSqlVulnerabilityAssessmentBaselineSet + extends ProxyResource { /** - * The time when the security event occurred. + * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly eventTime?: Date; + 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 type of the security event. + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventType?: SecurityEventType; + 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 subscription name + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subscription?: string; + readonly systemData?: SystemData; + /** The rule baseline result */ + results?: string[][]; +} + +/** A database sql vulnerability assessment rule baseline input. */ +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput + extends ProxyResource { /** - * The server name + * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly server?: string; + readonly systemData?: SystemData; + /** The latest scan flag */ + latestScan?: boolean; + /** The rule baseline result */ + results?: string[][]; +} + +export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { /** - * The database name + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly database?: string; + readonly systemData?: SystemData; /** - * The IP address of the client who executed the statement. + * SQL Vulnerability Assessment rule Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientIp?: string; + readonly ruleId?: string; /** - * The application used to execute the statement. + * SQL Vulnerability Assessment rule result status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applicationName?: string; + readonly status?: RuleStatus; /** - * The principal user who executed the statement + * SQL Vulnerability Assessment error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalName?: string; + readonly errorMessage?: string; /** - * The sql injection additional properties, populated only if the type of the security event is sql injection. + * SQL Vulnerability Assessment is the query results trimmed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; -} - -/** A managed database transparent data encryption state. */ -export interface ManagedTransparentDataEncryption extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; -} - -/** An Azure SQL managed instance administrator. */ -export interface ManagedInstanceAdministrator extends ProxyResource { - /** Type of the managed instance administrator. */ - administratorType?: ManagedInstanceAdministratorType; - /** Login name of the managed instance administrator. */ - login?: string; - /** SID (object ID) of the managed instance administrator. */ - sid?: string; - /** Tenant ID of the managed instance administrator. */ - tenantId?: string; -} - -/** Azure Active Directory only authentication. */ -export interface ManagedInstanceAzureADOnlyAuthentication - extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** The managed instance encryption protector. */ -export interface ManagedInstanceEncryptionProtector extends ProxyResource { + readonly isTrimmed?: boolean; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * SQL Vulnerability Assessment query results that was run. * 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 queryResults?: 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. + * SQL Vulnerability Assessment the remediation 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; -} - -/** A managed instance key. */ -export interface ManagedInstanceKey extends ProxyResource { + readonly remediation?: Remediation; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * SQL Vulnerability Assessment rule result adjusted with baseline. * 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 baselineAdjustedResult?: BaselineAdjustedResult; /** - * Thumbprint of the key. + * SQL Vulnerability Assessment rule metadata. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly ruleMetadata?: VaRule; +} + +/** A vulnerability assessment scan record. */ +export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { /** - * The key creation date. + * SystemData of SqlVulnerabilityAssessmentScanRecordResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly systemData?: SystemData; /** - * Key auto rotation opt-in flag. Either true or false. + * The scan ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; -} - -/** A long term retention policy. */ -export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { - /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ - weeklyRetention?: string; - /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ - monthlyRetention?: string; - /** The yearly retention policy for an LTR backup in an ISO 8601 format. */ - yearlyRetention?: string; - /** The week of year to take the yearly backup in an ISO 8601 format. */ - weekOfYear?: number; -} - -/** A managed instance operation. */ -export interface ManagedInstanceOperation extends ProxyResource { + readonly scanId?: string; /** - * The name of the managed instance the operation is being performed on. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * The name of operation. + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly state?: VulnerabilityAssessmentScanState; /** - * The friendly name of operation. + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationFriendlyName?: string; + readonly startTime?: Date; /** - * The percentage of the operation completed. + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly endTime?: Date; /** - * The operation start time. + * The scan errors. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly errors?: SqlVulnerabilityAssessmentScanError[]; /** - * The operation state. + * The server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly server?: string; /** - * The operation error code. + * The database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: number; + readonly database?: string; /** - * The operation error description. + * The SQL version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorDescription?: string; + readonly sqlVersion?: string; /** - * The operation error severity. + * The number of failed rules with high severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorSeverity?: number; + readonly highSeverityFailedRulesCount?: number; /** - * Whether or not the error is a user error. + * The number of failed rules with medium severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUserError?: boolean; + readonly mediumSeverityFailedRulesCount?: number; /** - * The estimated completion time of the operation. + * The number of failed rules with low severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly estimatedCompletionTime?: Date; + readonly lowSeverityFailedRulesCount?: number; /** - * The operation description. + * The number of total passed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly totalPassedRulesCount?: number; /** - * Whether the operation can be cancelled. + * The number of total failed rules. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; + readonly totalFailedRulesCount?: number; /** - * The operation parameters. + * The number of total rules assessed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationParameters?: ManagedInstanceOperationParametersPair; + readonly totalRulesCount?: number; /** - * The operation steps. + * 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 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 isBaselineApplied?: boolean; /** - * State of the Private Endpoint Connection. + * The last scan time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly lastScanTime?: Date; } -/** A private link resource */ -export interface ManagedInstancePrivateLink extends ProxyResource { +/** A SQL Vulnerability Assessment. */ +export interface SqlVulnerabilityAssessment extends ProxyResource { /** - * The private link resource group id. + * SystemData of SqlVulnerabilityAssessmentResource. * 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; + readonly systemData?: SystemData; + /** Specifies the state of the SQL Vulnerability Assessment, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: SqlVulnerabilityAssessmentState; } -/** A managed 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 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 managed server security alert policy. */ -export interface ManagedServerSecurityAlertPolicy extends ProxyResource { +/** Usage metric of a database. */ +export interface DatabaseUsage extends ProxyResource { /** - * SystemData of SecurityAlertPolicyResource. + * User-readable name of the metric. * 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 displayName?: string; /** - * Specifies the UTC creation time of the policy. + * Current value of the metric. * 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 currentValue?: number; /** - * Group IDs. + * Boundary value of the metric. * 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 limit?: number; /** - * State of the private endpoint connection. + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointProvisioningState; + readonly unit?: string; } -/** A private link resource */ -export interface PrivateLinkResource extends ProxyResource { - /** - * The private link resource group id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: PrivateLinkResourceProperties; +/** A database vulnerability assessment rule baseline. */ +export interface DatabaseVulnerabilityAssessmentRuleBaseline + extends ProxyResource { + /** The rule baseline result */ + baselineResults?: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; } -/** A recoverable managed database resource. */ -export interface RecoverableManagedDatabase extends ProxyResource { +/** A vulnerability assessment scan record. */ +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * The last available backup date. + * The scan ID. * 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 scanId?: string; /** - * Resource location. + * The scan trigger type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * The type of restore point + * The scan status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointType?: RestorePointType; + readonly state?: VulnerabilityAssessmentScanState; /** - * The earliest time to which this database can be restored + * The scan start time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly earliestRestoreDate?: Date; + readonly startTime?: Date; /** - * The time the backup was taken + * The scan end time (UTC). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly restorePointCreationDate?: Date; + readonly endTime?: Date; /** - * The label of restore point for backup request by user + * The scan errors. * 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 errors?: VulnerabilityAssessmentScanError[]; /** - * Automatic tuning actual state. + * The scan results storage container path. * 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 }; + 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; } -/** 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; +/** A database Vulnerability Assessment scan export resource. */ +export interface DatabaseVulnerabilityAssessmentScansExport + extends ProxyResource { /** - * Azure Active Directory only Authentication enabled. + * 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 azureADOnlyAuthentication?: boolean; + readonly exportedReportLocation?: string; } -/** Azure Active Directory only authentication. */ -export interface ServerAzureADOnlyAuthentication extends ProxyResource { - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; +/** 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; } -/** A server DevOps auditing settings. */ -export interface ServerDevOpsAuditingSettings extends ProxyResource { +/** An ImportExport operation result resource. */ +export interface ImportExportOperationResult extends ProxyResource { /** - * SystemData of ServerDevOpsAuditSettingsResource. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly requestId?: 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) - * + * Request type. + * 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 requestType?: 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) + * Queued time. + * 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 queuedTime?: string; /** - * The fully qualified DNS record for alias + * Last modified time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly lastModifiedTime?: string; + /** + * Blob Uri. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobUri?: string; + /** + * Server name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverName?: string; + /** + * Database name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseName?: string; + /** + * Operation status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * Error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; + /** + * 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 privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } -/** A server key. */ -export interface ServerKey extends ProxyResource { +/** A deleted server. */ +export interface DeletedServer extends ProxyResource { /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The version of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kind?: string; + readonly version?: string; /** - * Resource location. + * The deletion time of the deleted server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly deletionTime?: Date; /** - * Subregion of the server key. + * The original ID of the server before deletion. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subregion?: string; - /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ - serverKeyType?: ServerKeyType; - /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - uri?: string; + readonly originalId?: string; /** - * Thumbprint of the server key. + * The fully qualified domain name of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly fullyQualifiedDomainName?: string; +} + +/** Distributed availability group between box and Sql Managed Instance. */ +export interface DistributedAvailabilityGroup extends ProxyResource { /** - * The server key creation date. + * Name of the distributed availability group * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationDate?: Date; + readonly distributedAvailabilityGroupName?: string; /** - * Key auto rotation opt-in flag. Either true or false. + * ID of the distributed availability group * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoRotationEnabled?: boolean; + readonly distributedAvailabilityGroupId?: string; + /** Replication mode of the link */ + replicationMode?: ReplicationModeType; + /** + * SQL server side link role + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly partnerLinkRole?: LinkRole; + /** SQL server side availability group name */ + partnerAvailabilityGroupName?: string; + /** SQL server side endpoint - IP or DNS resolvable name */ + partnerEndpoint?: string; + /** Managed instance side link role */ + instanceLinkRole?: LinkRole; + /** Managed instance side availability group name */ + instanceAvailabilityGroupName?: string; + /** The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure. */ + failoverMode?: FailoverModeType; + /** Database seeding mode – can be Automatic (default), or Manual for supported scenarios. */ + seedingMode?: SeedingModeType; + /** Databases in the distributed availability group */ + databases?: DistributedAvailabilityGroupDatabase[]; } -/** A server operation. */ -export interface ServerOperation extends ProxyResource { +/** A elastic pool operation. */ +export interface ElasticPoolOperation extends ProxyResource { + /** + * The name of the elastic pool the operation is being performed on. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly elasticPoolName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6156,7 +6471,7 @@ export interface ServerOperation extends ProxyResource { * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: ManagementOperationState; + readonly state?: string; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6194,461 +6509,301 @@ export interface ServerOperation extends ProxyResource { readonly isCancellable?: boolean; } -/** A server security alert policy. */ -export interface ServerSecurityAlertPolicy 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; +/** The server encryption protector. */ +export interface EncryptionProtector extends ProxyResource { /** - * Specifies the UTC creation time of the policy. + * 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 creationTime?: Date; -} - -/** A server trust group. */ -export interface ServerTrustGroup extends ProxyResource { - /** Group members information for the server trust group. */ - groupMembers?: ServerInfo[]; - /** Trust scope of the server trust group. */ - trustScopes?: ServerTrustGroupPropertiesTrustScopesItem[]; -} - -/** A server vulnerability assessment. */ -export interface ServerVulnerabilityAssessment extends ProxyResource { - /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ - storageContainerPath?: string; - /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageContainerSasKey?: string; - /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall */ - storageAccountAccessKey?: string; - /** The recurring scans settings */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** A recoverable managed database resource. */ -export interface SqlAgentConfiguration extends ProxyResource { - /** The state of Sql Agent. */ - state?: SqlAgentConfigurationPropertiesState; -} - -/** Usage Metric of a Subscription in a Location. */ -export interface SubscriptionUsage extends ProxyResource { + readonly kind?: string; /** - * User-readable name of the metric. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly location?: string; /** - * Current value of the metric. + * Subregion of the encryption protector. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly subregion?: string; + /** The name of the server key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Boundary value of the metric. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly uri?: string; /** - * Unit of the metric. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: string; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; } -/** An Azure SQL Database sync agent. */ -export interface SyncAgent extends ProxyResource { +/** 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 { /** - * Name of the sync agent. + * Resource location. * 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 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; /** - * Last alive time of the sync agent. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastAliveTime?: Date; + readonly replicationRole?: FailoverGroupReplicationRole; /** - * State of the sync agent. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: SyncAgentState; + readonly replicationState?: string; + /** List of partner server information for the failover group. */ + partnerServers?: PartnerInfo[]; + /** List of databases in the failover group. */ + databases?: string[]; +} + +/** A Geo backup policy. */ +export interface GeoBackupPolicy extends ProxyResource { /** - * If the sync agent version is up to date. + * Backup policy location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isUpToDate?: boolean; + readonly location?: string; /** - * Expiration time of the sync agent version. + * 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 expiryTime?: Date; + readonly kind?: string; + /** The state of the geo backup policy. */ + state?: GeoBackupPolicyState; /** - * Version of the sync agent. + * The storage type of the geo backup policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly storageType?: string; } -/** An Azure SQL Database sync agent linked database. */ -export interface SyncAgentLinkedDatabase extends ProxyResource { +/** 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; /** - * Type of the sync agent linked database. + * Local replication role of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseType?: SyncMemberDbType; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** - * Id of the sync agent linked database. + * Replication state of the failover group instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseId?: string; + 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 { /** - * Description of the sync agent linked database. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly jobVersion?: number; /** - * Server name of the sync agent linked database. + * The job step name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly stepName?: string; /** - * Database name of the sync agent linked database. + * The job step id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly stepId?: number; /** - * User name of the sync agent linked database. + * The unique identifier of the job execution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userName?: string; -} - -/** An Azure SQL Database sync group. */ -export interface SyncGroup extends ProxyResource { - /** The name and capacity of the SKU. */ - sku?: Sku; - /** Sync interval of the sync group. */ - interval?: number; + readonly jobExecutionId?: string; /** - * Last sync time of the sync group. + * The detailed state of the job execution. * 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 lifecycle?: JobExecutionLifecycle; /** - * Sync state of the sync group. + * The ARM provisioning state of the job execution. * 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 provisioningState?: ProvisioningState; /** - * Private endpoint name of the sync group if use private link connection is enabled. + * The time that the job execution was created. * 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 createTime?: Date; /** - * Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure. + * The time that the job execution started. * 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 startTime?: Date; /** - * Sync state of the sync member. + * The time that the job execution completed. * 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 endTime?: Date; + /** Number of times the job execution has been attempted. */ + currentAttempts?: number; /** - * The time zone id + * Start time of the current attempt. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeZoneId?: string; + readonly currentAttemptStartTime?: Date; /** - * The time zone display name + * The last status or error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; -} - -/** A virtual network rule. */ -export interface VirtualNetworkRule extends ProxyResource { - /** The ARM resource id of the virtual network subnet. */ - virtualNetworkSubnetId?: string; - /** Create firewall rule before the virtual network has vnet service endpoint enabled. */ - ignoreMissingVnetServiceEndpoint?: boolean; + readonly lastMessage?: string; /** - * Virtual Network Rule State + * The target that this execution is executed on. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VirtualNetworkRuleState; + readonly target?: JobExecutionTarget; } -/** 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; +/** A job agent private endpoint. */ +export interface JobPrivateEndpoint extends ProxyResource { + /** ARM resource id of the server the private endpoint will target. */ + targetServerAzureResourceId?: string; + /** + * Private endpoint id of the private endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointId?: 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 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 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 group of job targets. */ +export interface JobTargetGroup extends ProxyResource { + /** Members of the target group. */ + members?: JobTarget[]; } -/** An export managed database operation result resource. */ -export interface DatabaseExtensions extends ProxyResource { - /** Operation Mode. */ - operationMode?: OperationMode; - /** Storage key type. */ - storageKeyType?: StorageKeyType; - /** Storage key. */ - storageKey?: string; - /** Storage Uri. */ - storageUri?: string; -} +/** A job version. */ +export interface JobVersion extends ProxyResource {} -/** An Extension operation result resource. */ -export interface ImportExportExtensionsOperationResult extends ProxyResource { +/** A job. */ +export interface Job extends ProxyResource { + /** User-defined description of the job. */ + description?: string; /** - * Request Id. + * The job version number. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; - /** - * Request type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestType?: string; - /** - * Last modified time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedTime?: string; - /** - * Server name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serverName?: string; - /** - * Database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * Operation status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; + readonly version?: number; + /** Schedule properties of the job. */ + schedule?: JobSchedule; } -/** A database operation. */ -export interface DatabaseOperation extends ProxyResource { - /** - * The name of the database the operation is being performed on. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseName?: string; - /** - * The name of operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The friendly name of operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationFriendlyName?: string; +/** 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; /** - * The percentage of the operation completed. + * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly state?: LedgerDigestUploadsState; +} + +/** A long term retention backup. */ +export interface LongTermRetentionBackup extends ProxyResource { /** - * The name of the server. + * 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 serverName?: string; /** - * The operation start time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The operation state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ManagementOperationState; - /** - * The operation error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: number; - /** - * The operation error description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorDescription?: string; - /** - * The operation error severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorSeverity?: number; - /** - * Whether or not the error is a user error. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isUserError?: boolean; - /** - * The estimated completion time of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedCompletionTime?: Date; - /** - * The operation description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Whether the operation can be cancelled. + * The create time of the server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isCancellable?: boolean; -} - -/** Usage metric of a database. */ -export interface DatabaseUsage extends ProxyResource { + readonly serverCreateTime?: Date; /** - * User-readable name of the metric. + * 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 displayName?: string; + readonly databaseName?: string; /** - * Current value of the metric. + * The delete time of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly databaseDeletionTime?: Date; /** - * Boundary value of the metric. + * The time the backup was taken * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly backupTime?: Date; /** - * Unit of the metric. + * 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 unit?: string; -} - -/** 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; + readonly backupExpirationTime?: Date; /** - * Specifies the state of ledger digest upload. + * The storage redundancy type of the backup * 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 backupStorageRedundancy?: BackupStorageRedundancy; + /** The storage redundancy type of the backup */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** The setting whether the LTR backup is immutable */ + isBackupImmutable?: boolean; /** - * The state of the outbound rule. + * The BackupStorageAccessTier for the LTR backup * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly backupStorageAccessTier?: BackupStorageAccessTier; } /** A LongTermRetentionBackup operation result resource. */ @@ -6690,18 +6845,18 @@ export interface LongTermRetentionBackupOperationResult extends ProxyResource { readonly message?: string; } -/** A long term retention backup. */ -export interface LongTermRetentionBackup extends ProxyResource { +/** A long term retention backup for a managed database. */ +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * The server name that the backup database belong to. + * 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 serverName?: string; + readonly managedInstanceName?: string; /** - * The create time of the server. + * The create time of the instance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverCreateTime?: Date; + readonly managedInstanceCreateTime?: Date; /** * The name of the database the backup belong to * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6727,721 +6882,450 @@ export interface LongTermRetentionBackup extends ProxyResource { * 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; + /** + * The BackupStorageAccessTier for the LTR backup + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly backupStorageAccessTier?: BackupStorageAccessTier; } -/** A long term retention backup for a managed database. */ -export interface ManagedInstanceLongTermRetentionBackup 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; +} + +/** A managed database Advanced Threat Protection. */ +export interface ManagedDatabaseAdvancedThreatProtection extends ProxyResource { /** - * The managed instance that the backup database belongs to. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceName?: string; + readonly systemData?: SystemData; + /** Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. */ + state?: AdvancedThreatProtectionState; /** - * The create time of the instance. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managedInstanceCreateTime?: Date; + readonly creationTime?: Date; +} + +/** A managed database move operation. */ +export interface ManagedDatabaseMoveOperationResult extends ProxyResource { /** - * The name of the database the backup belong to + * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly operation?: string; /** - * The delete time of the database + * The friendly name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseDeletionTime?: Date; + readonly operationFriendlyName?: string; /** - * The time the backup was taken + * The operation start time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupTime?: Date; + readonly startTime?: Date; /** - * The time the long term retention backup will expire. + * The operation state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupExpirationTime?: Date; + readonly state?: ManagementOperationState; /** - * The storage redundancy type of the backup + * Operation mode. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly backupStorageRedundancy?: BackupStorageRedundancy; -} - -/** A server connection policy */ -export interface ServerConnectionPolicy extends ProxyResource { + readonly operationMode?: MoveOperationMode; /** - * Resource location. + * Source Managed Instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly sourceManagedInstanceName?: string; /** - * Metadata used for the Azure portal experience. + * Target Managed Instance name. * 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 targetManagedInstanceName?: string; /** - * The distributed availability group id + * Source Managed Instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly distributedAvailabilityGroupId?: string; + readonly sourceManagedInstanceId?: string; /** - * The source replica id + * Target Managed instance resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceReplicaId?: string; + readonly targetManagedInstanceId?: string; /** - * The target replica id + * Source database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetReplicaId?: string; + readonly sourceDatabaseName?: string; /** - * The link state + * Target database name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly linkState?: string; + readonly targetDatabaseName?: string; /** - * The last hardened lsn + * Is move operation cancellable. * 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 isCancellable?: boolean; /** - * The certificate thumbprint + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly thumbprint?: string; + readonly errorCode?: number; /** - * The certificate name + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly certificateName?: string; + readonly errorDescription?: string; + /** + * The operation error severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorSeverity?: number; + /** + * Whether or not the error is a user error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isUserError?: boolean; } -/** Certificate used on an endpoint on the Managed Instance. */ -export interface EndpointCertificate extends ProxyResource { - /** The certificate public blob */ - publicBlob?: string; +/** Database query. */ +export interface ManagedInstanceQuery extends ProxyResource { + /** Query text. */ + queryText?: string; } -/** A sensitivity label. */ -export interface SensitivityLabel extends ProxyResource { +export interface QueryStatistics extends ProxyResource { /** - * Resource that manages the sensitivity label. + * 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 managedBy?: string; + readonly databaseName?: string; /** - * The schema name. + * Unique query id (unique within one database). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly schemaName?: string; + readonly queryId?: string; /** - * The table name. + * 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 tableName?: string; + readonly startTime?: string; /** - * The column name. + * 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 columnName?: string; - /** The label name. */ - labelName?: string; - /** The label ID. */ - labelId?: string; - /** The information type. */ - informationType?: string; - /** The information type ID. */ - informationTypeId?: string; + readonly endTime?: string; + /** List of intervals with appropriate metric data */ + intervals?: QueryMetricInterval[]; +} + +/** A managed database restore details. */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. + * Restore type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDisabled?: boolean; - rank?: SensitivityLabelRank; -} - -/** A sensitivity label update operation. */ -export interface SensitivityLabelUpdate extends ProxyResource { - op?: SensitivityLabelUpdateKind; - /** Schema name of the column to update. */ - schema?: string; - /** Table name of the column to update. */ - table?: string; - /** Column name to update. */ - column?: string; - /** The sensitivity label information to apply on a column. */ - sensitivityLabel?: SensitivityLabel; -} - -/** A recommended sensitivity label update operation. */ -export interface RecommendedSensitivityLabelUpdate extends ProxyResource { - op?: RecommendedSensitivityLabelUpdateKind; - /** Schema name of the column to update. */ - schema?: string; - /** Table name of the column to update. */ - table?: string; - /** Column name to update. */ - column?: string; -} - -/** A server blob auditing policy. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { + readonly typePropertiesType?: 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) - * + * Restore status. + * 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 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) + * The reason why restore is in Blocked state. + * 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 blockReason?: 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) - * + * Last uploaded file name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly lastUploadedFileName?: 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. + * Last uploaded file 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 lastUploadedFileTime?: Date; /** - * 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) + * Last restored file name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccountAccessKey?: string; - /** Specifies the blob storage subscription Id. */ - storageAccountSubscriptionId?: string; -} - -/** A database blob auditing policy. */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { + readonly lastRestoredFileName?: string; /** - * Resource kind. + * Last restored file time. * 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 lastRestoredFileTime?: Date; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * 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) + * Percent completed. + * 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 percentCompleted?: number; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * Current restored size MB. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly currentRestoredSizeMB?: 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. + * Current restore plan size MB. + * 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 currentRestorePlanSizeMB?: 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) + * Current backup type. + * 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 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; + readonly currentBackupType?: 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) + * Current restoring file name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentRestoringFileName?: string; + /** + * Number of files detected. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesDetected?: number; + /** + * Number of files queued. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfFilesQueued?: number; + /** + * Number of files skipped. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - auditActionsAndGroups?: string[]; - /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - isStorageSecondaryKeyInUse?: boolean; + readonly numberOfFilesSkipped?: number; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and 'IsAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * Number of files restoring. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly numberOfFilesRestoring?: 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. + * Number of files restored. + * 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 numberOfFilesRestored?: 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) + * Number of files unrestorable. + * 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 numberOfFilesUnrestorable?: number; /** - * 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) - * + * Full backup sets. + * 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 fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * 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) + * Diff backup sets. + * 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 diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * 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) - * + * Log backup sets. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isAzureMonitorTargetEnabled?: boolean; + readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; /** - * 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. + * Unrestorable files. + * 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. */ + 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; /** - * 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) + * Specifies the UTC creation time of the policy. + * 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 creationTime?: Date; } -/** A database Advanced Threat Protection. */ -export interface DatabaseAdvancedThreatProtection extends ProxyResource { +/** A security event. */ +export interface SecurityEvent extends ProxyResource { /** - * SystemData of AdvancedThreatProtectionResource. + * The time when the security event occurred. * 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 eventTime?: Date; /** - * Specifies the UTC creation time of the policy. + * The type of the security event. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; -} - -/** A server Advanced Threat Protection. */ -export interface ServerAdvancedThreatProtection extends ProxyResource { + readonly securityEventType?: SecurityEventType; /** - * SystemData of AdvancedThreatProtectionResource. + * The subscription name * 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 subscription?: string; /** - * Specifies the UTC creation time of the policy. + * The server name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + 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 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 clientIp?: string; + /** + * The application used to execute the statement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applicationName?: string; + /** + * The principal user who executed the statement + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalName?: string; + /** + * 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 securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } -/** A managed server DNS alias. */ -export interface ManagedServerDnsAlias extends ProxyResource { +/** A sensitivity label. */ +export interface SensitivityLabel extends ProxyResource { /** - * The fully qualified DNS record for managed server alias + * Resource that manages the sensitivity label. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureDnsRecord?: string; + readonly managedBy?: string; + /** + * The schema name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly schemaName?: string; /** - * The fully qualified public DNS record for managed server alias + * The table name. * 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 tableName?: string; /** - * SystemData of AdvancedThreatProtectionResource. + * The column name. * 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 columnName?: string; + /** The label name. */ + labelName?: string; + /** The label ID. */ + labelId?: string; + /** The information type. */ + informationType?: string; + /** The information type ID. */ + informationTypeId?: string; /** - * Specifies the UTC creation time of the policy. + * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly isDisabled?: boolean; + rank?: SensitivityLabelRank; + clientClassificationSource?: ClientClassificationSource; +} + +/** A sensitivity label update operation. */ +export interface SensitivityLabelUpdate extends ProxyResource { + op?: SensitivityLabelUpdateKind; + /** Schema name of the column to update. */ + schema?: string; + /** Table name of the column to update. */ + table?: string; + /** Column name to update. */ + column?: string; + /** The sensitivity label information to apply on a column. */ + sensitivityLabel?: SensitivityLabel; +} + +/** A recommended sensitivity label update operation. */ +export interface RecommendedSensitivityLabelUpdate extends ProxyResource { + op?: RecommendedSensitivityLabelUpdateKind; + /** Schema name of the column to update. */ + schema?: string; + /** Table name of the column to update. */ + table?: string; + /** Column name to update. */ + column?: string; +} + +/** A managed database transparent data encryption state. */ +export interface ManagedTransparentDataEncryption extends ProxyResource { + /** Specifies the state of the transparent data encryption. */ + state?: TransparentDataEncryptionState; +} + +/** An Azure SQL managed instance administrator. */ +export interface ManagedInstanceAdministrator extends ProxyResource { + /** Type of the managed instance administrator. */ + administratorType?: ManagedInstanceAdministratorType; + /** Login name of the managed instance administrator. */ + login?: string; + /** SID (object ID) of the managed instance administrator. */ + sid?: string; + /** Tenant ID of the managed instance administrator. */ + tenantId?: string; } /** A managed instance Advanced Threat Protection. */ @@ -7460,67 +7344,107 @@ export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource { readonly creationTime?: Date; } -/** A replication link. */ -export interface ReplicationLink extends ProxyResource { - /** - * Resource partner server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly partnerServer?: string; +/** 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[]; /** - * Resource partner database. + * Host name dns suffix of managed instance DTC. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerDatabase?: string; + readonly dtcHostNameDnsSuffix?: string; /** - * Resource partner location. + * Provisioning state of managed instance DTC. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerLocation?: string; + readonly provisioningState?: ProvisioningState; +} + +/** The managed instance encryption protector. */ +export interface ManagedInstanceEncryptionProtector extends ProxyResource { /** - * Local replication role. + * 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 role?: ReplicationRole; + readonly kind?: string; + /** The name of the managed instance key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Partner replication role. + * The URI of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly partnerRole?: ReplicationRole; + readonly uri?: string; /** - * Replication mode. + * Thumbprint of the server key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationMode?: string; + readonly thumbprint?: string; + /** Key auto rotation opt-in flag. Either true or false. */ + autoRotationEnabled?: boolean; +} + +/** A managed instance key. */ +export interface ManagedInstanceKey extends ProxyResource { /** - * Time at which the link was created. + * 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 startTime?: Date; + 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; /** - * Seeding completion percentage for the link. + * Thumbprint of the key. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentComplete?: number; + readonly thumbprint?: string; /** - * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + * The key creation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: ReplicationState; + readonly creationDate?: Date; /** - * Whether the user is currently allowed to terminate the link. + * 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 isTerminationAllowed?: boolean; + readonly autoRotationEnabled?: boolean; +} + +/** A long term retention policy. */ +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { + /** The BackupStorageAccessTier for the LTR backups */ + backupStorageAccessTier?: BackupStorageAccessTier; + /** 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 { /** - * Link type (GEO, NAMED, STANDBY). + * 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 linkType?: ReplicationLinkType; -} - -/** A managed database move operation. */ -export interface ManagedDatabaseMoveOperationResult extends ProxyResource { + readonly managedInstanceName?: string; /** * The name of operation. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7531,6 +7455,11 @@ export interface ManagedDatabaseMoveOperationResult extends ProxyResource { * 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. @@ -7541,46 +7470,6 @@ export interface ManagedDatabaseMoveOperationResult extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: ManagementOperationState; - /** - * Operation mode. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationMode?: MoveOperationMode; - /** - * Source Managed Instance name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceManagedInstanceName?: string; - /** - * Target Managed Instance name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetManagedInstanceName?: string; - /** - * Source Managed Instance resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceManagedInstanceId?: string; - /** - * Target Managed instance resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetManagedInstanceId?: string; - /** - * Source database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceDatabaseName?: string; - /** - * Target database name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetDatabaseName?: string; - /** - * Is move operation cancellable. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isCancellable?: boolean; /** * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7601,270 +7490,306 @@ export interface ManagedDatabaseMoveOperationResult extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isUserError?: boolean; -} - -/** SQL Managed Instance DTC */ -export interface ManagedInstanceDtc extends ProxyResource { - /** Active status of managed instance DTC. */ - dtcEnabled?: boolean; - /** Security settings of managed instance DTC. */ - securitySettings?: ManagedInstanceDtcSecuritySettings; - /** External dns suffix search list of managed instance DTC. */ - externalDnsSuffixSearchList?: string[]; - /** - * Host name dns suffix of managed instance DTC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dtcHostNameDnsSuffix?: string; - /** - * Provisioning state of managed instance DTC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; -} - -/** Synapse link workspace resource */ -export interface SynapseLinkWorkspace extends ProxyResource { - /** List of all synapselink workspaces */ - workspaces?: SynapseLinkWorkspaceInfoProperties[]; -} - -/** A refresh DNS servers operation. */ -export interface UpdateVirtualClusterDnsServersOperation extends ProxyResource { /** - * The status of the DNS refresh operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: DNSRefreshOperationStatus; -} - -/** 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. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; + readonly estimatedCompletionTime?: Date; /** - * Replication state of the failover group instance. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: string; - /** Partner region information for the failover group. */ - partnerRegions?: PartnerRegionInfo[]; - /** List of managed instance pairs in the failover group. */ - managedInstancePairs?: ManagedInstancePairInfo[]; -} - -/** A managed database restore details. */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { + readonly description?: string; /** - * Restore type. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly typePropertiesType?: string; + readonly isCancellable?: boolean; /** - * Restore status. + * The operation parameters. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * The reason why restore is in Blocked state. + * The operation steps. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly blockReason?: 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; /** - * Last uploaded file name. + * State of the Private Endpoint Connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUploadedFileName?: string; + readonly provisioningState?: string; +} + +/** A private link resource */ +export interface ManagedInstancePrivateLink extends ProxyResource { /** - * Last uploaded file time. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUploadedFileTime?: Date; + 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 { /** - * Last restored file name. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRestoredFileName?: string; + readonly requestId?: string; /** - * Last restored file time. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastRestoredFileTime?: Date; + readonly requestType?: string; /** - * Percent completed. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentCompleted?: number; + readonly queuedTime?: string; /** - * Current restored size MB. + * Managed instance name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoredSizeMB?: number; + readonly managedInstanceName?: string; /** - * Current restore plan size MB. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestorePlanSizeMB?: number; + readonly status?: string; /** - * Current backup type. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentBackupType?: string; + 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; /** - * Current restoring file name. + * Specifies the state of ledger digest upload. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentRestoringFileName?: string; + readonly state?: ManagedLedgerDigestUploadsState; +} + +/** A managed server DNS alias. */ +export interface ManagedServerDnsAlias extends ProxyResource { /** - * Number of files detected. + * The fully qualified DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesDetected?: number; + readonly azureDnsRecord?: string; /** - * Number of files queued. + * The fully qualified public DNS record for managed server alias * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesQueued?: number; + readonly publicAzureDnsRecord?: string; +} + +/** A managed server security alert policy. */ +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** - * Number of files skipped. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesSkipped?: 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; /** - * Number of files restoring. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestoring?: number; + readonly creationTime?: Date; +} + +/** 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 { /** - * Number of files restored. + * The state of the outbound rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesRestored?: number; + readonly provisioningState?: string; +} + +/** A private endpoint connection */ +export interface PrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; /** - * Number of files unrestorable. + * Group IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly numberOfFilesUnrestorable?: number; + readonly groupIds?: string[]; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * Full backup sets. + * State of the private endpoint connection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly provisioningState?: PrivateEndpointProvisioningState; +} + +/** A private link resource */ +export interface PrivateLinkResource extends ProxyResource { /** - * Diff backup sets. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diffBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly properties?: PrivateLinkResourceProperties; +} + +/** A recoverable database resource. */ +export interface RecoverableDatabase extends ProxyResource { /** - * Log backup sets. + * The edition of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logBackupSets?: ManagedDatabaseRestoreDetailsBackupSetProperties[]; + readonly edition?: string; /** - * Unrestorable files. + * The service level objective name of the database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unrestorableFiles?: ManagedDatabaseRestoreDetailsUnrestorableFileProperties[]; -} - -/** An ImportExport operation result resource. */ -export interface ImportExportOperationResult extends ProxyResource { + readonly serviceLevelObjective?: string; /** - * Request Id. + * The elastic pool name of the database * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly elasticPoolName?: string; /** - * Request type. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestType?: string; + readonly lastAvailableBackupDate?: Date; + /** The resource ids of the user assigned identities to use */ + keys?: { [propertyName: string]: DatabaseKey }; +} + +/** A recoverable managed database resource. */ +export interface RecoverableManagedDatabase extends ProxyResource { /** - * Queued time. + * The last available backup date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queuedTime?: string; + readonly lastAvailableBackupDate?: string; +} + +/** A replication link. */ +export interface ReplicationLink extends ProxyResource { /** - * Last modified time. + * Resource partner server. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: string; + readonly partnerServer?: string; /** - * Blob Uri. + * Resource partner database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly blobUri?: string; + readonly partnerDatabase?: string; /** - * Server name. + * Resource partner database Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serverName?: string; + readonly partnerDatabaseId?: string; /** - * Database name. + * Resource partner location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly databaseName?: string; + readonly partnerLocation?: string; /** - * Operation status. + * Local replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly role?: ReplicationRole; /** - * Error message. + * Partner replication role. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly partnerRole?: ReplicationRole; /** - * Gets the status of private endpoints associated with this request. + * Replication mode. * 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 replicationMode?: string; /** - * Specifies the state of ledger digest upload. + * Time at which the link was created. * 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 startTime?: Date; /** - * The edition of the database. + * Seeding completion percentage for the link. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly edition?: string; + readonly percentComplete?: number; /** - * The service level objective name of the database. + * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceLevelObjective?: string; + readonly replicationState?: ReplicationState; /** - * The elastic pool name of the database + * Whether the user is currently allowed to terminate the link. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly elasticPoolName?: string; + readonly isTerminationAllowed?: boolean; /** - * The last available backup date. + * Link type (GEO, NAMED, STANDBY). * 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 linkType?: ReplicationLinkType; } /** A restorable dropped database resource. */ @@ -7909,381 +7834,670 @@ export interface RestorableDroppedDatabase extends ProxyResource { keys?: { [propertyName: string]: DatabaseKey }; } -/** A server configuration option */ -export interface ServerConfigurationOption extends ProxyResource { - /** Value of the server configuration option. */ - serverConfigurationOptionValue?: number; +/** Database restore points. */ +export interface RestorePoint extends ProxyResource { /** - * Provisioning state of server configuration option. + * Resource location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly location?: string; + /** + * The type of restore point + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restorePointType?: RestorePointType; + /** + * The earliest time to which this database can be restored + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly earliestRestoreDate?: Date; + /** + * The time the backup was taken + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restorePointCreationDate?: Date; + /** + * The label of restore point for backup request by user + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restorePointLabel?: string; } -/** Managed instance's Start/Stop schedule. */ -export interface StartStopManagedInstanceSchedule extends ProxyResource { +/** A server Advanced Threat Protection. */ +export interface ServerAdvancedThreatProtection extends ProxyResource { /** - * System data of the scheduled resource. + * SystemData of AdvancedThreatProtectionResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** The description of the schedule. */ - description?: string; - /** The time zone of the schedule. */ - timeZoneId?: string; - /** Schedule list. */ - scheduleList?: ScheduleItem[]; + /** 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; /** - * Next action to be executed (Start or Stop) + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextRunAction?: string; + readonly creationTime?: Date; +} + +/** Server-level Automatic Tuning. */ +export interface ServerAutomaticTuning extends ProxyResource { + /** Automatic tuning desired state. */ + desiredState?: AutomaticTuningServerMode; /** - * Timestamp when the next action will be executed in the corresponding schedule time zone. + * Automatic tuning actual state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextExecutionTime?: string; + readonly actualState?: AutomaticTuningServerMode; + /** Automatic tuning options definition. */ + options?: { [propertyName: string]: AutomaticTuningServerOptions }; } -/** A logical database transparent data encryption state. */ -export interface LogicalDatabaseTransparentDataEncryption - extends ProxyResource { - /** Specifies the state of the transparent data encryption. */ - state?: TransparentDataEncryptionState; +/** Azure Active Directory administrator. */ +export interface ServerAzureADAdministrator extends ProxyResource { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** + * Azure Active Directory only Authentication enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly azureADOnlyAuthentication?: boolean; } -/** A database sql vulnerability assessment baseline set. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselineSet - extends ProxyResource { +/** 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; /** - * SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource. + * Provisioning state of server configuration option. * 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[][] }; + readonly provisioningState?: ProvisioningState; } -/** A database sql vulnerability assessment rule baseline list input. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput - extends ProxyResource { +/** A server connection policy */ +export interface ServerConnectionPolicy extends ProxyResource { /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource. + * Resource location. * 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[][] }; + readonly location?: string; + /** + * Metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** The server connection type. */ + connectionType?: ServerConnectionType; } -/** A database sql vulnerability assessment rule baseline. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaseline - extends ProxyResource { +/** A server DevOps auditing settings. */ +export interface ServerDevOpsAuditingSettings extends ProxyResource { /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource. + * SystemData of ServerDevOpsAuditSettingsResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** The rule baseline result */ - results?: 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) + * + */ + 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; + /** + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + */ + storageAccountAccessKey?: string; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; } -/** A database sql vulnerability assessment rule baseline input. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselineInput - extends ProxyResource { +/** A server DNS alias. */ +export interface ServerDnsAlias extends ProxyResource { /** - * SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource. + * The fully qualified DNS record for alias * 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[][]; + readonly azureDnsRecord?: string; } -export interface SqlVulnerabilityAssessmentScanResults extends ProxyResource { +/** A server key. */ +export interface ServerKey extends ProxyResource { + /** + * Kind of encryption protector. This is metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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 server key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subregion?: string; + /** The server key type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; + /** The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion' */ + 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; + /** + * The server 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 server operation. */ +export interface ServerOperation 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 percentage of the operation completed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** + * The name of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverName?: string; + /** + * The operation start time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The operation state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ManagementOperationState; /** - * SystemData of AdvancedThreatProtectionResource. + * The operation error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly errorCode?: number; /** - * SQL Vulnerability Assessment rule Id. + * The operation error description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleId?: string; + readonly errorDescription?: string; /** - * SQL Vulnerability Assessment rule result status. + * The operation error severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: RuleStatus; + readonly errorSeverity?: number; /** - * SQL Vulnerability Assessment error message. + * 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 errorMessage?: string; + readonly isUserError?: boolean; /** - * SQL Vulnerability Assessment is the query results trimmed. + * The estimated completion time of the operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isTrimmed?: boolean; + readonly estimatedCompletionTime?: Date; /** - * SQL Vulnerability Assessment query results that was run. + * The operation description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queryResults?: string[][]; + readonly description?: string; /** - * SQL Vulnerability Assessment the remediation details. + * Whether the operation can be cancelled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remediation?: Remediation; + readonly isCancellable?: boolean; +} + +/** A server security alert policy. */ +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * SQL Vulnerability Assessment rule result adjusted with baseline. + * SystemData of SecurityAlertPolicyResource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly baselineAdjustedResult?: BaselineAdjustedResult; + 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; /** - * SQL Vulnerability Assessment rule metadata. + * Specifies the UTC creation time of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ruleMetadata?: VaRule; + readonly creationTime?: Date; } -/** A vulnerability assessment scan record. */ -export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource { +/** 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; /** - * SystemData of SqlVulnerabilityAssessmentScanRecordResource. + * The certificate thumbprint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly thumbprint?: string; /** - * The scan ID. + * The certificate name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scanId?: string; + 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 scan trigger type. + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly displayName?: string; /** - * The scan status. + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: VulnerabilityAssessmentScanState; + readonly currentValue?: number; /** - * The scan start time (UTC). + * Boundary value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly limit?: number; /** - * The scan end time (UTC). + * Unit of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTime?: Date; + readonly unit?: string; +} + +/** 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. */ +export interface RefreshExternalGovernanceStatusOperationResult + extends ProxyResource { /** - * The scan errors. + * Request Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: SqlVulnerabilityAssessmentScanError[]; + readonly requestId?: string; /** - * The server name. + * Request type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly server?: string; + readonly requestType?: string; /** - * The database name. + * Queued time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly database?: string; + readonly queuedTime?: string; /** - * The SQL version. + * Server name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sqlVersion?: string; + readonly serverName?: string; /** - * The number of failed rules with high severity. + * Operation status. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly highSeverityFailedRulesCount?: number; + readonly status?: string; /** - * The number of failed rules with medium severity. + * Error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly mediumSeverityFailedRulesCount?: number; + 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 { /** - * The number of failed rules with low severity. + * System data of the scheduled resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lowSeverityFailedRulesCount?: number; + readonly systemData?: SystemData; + /** The description of the schedule. */ + description?: string; + /** The time zone of the schedule. */ + timeZoneId?: string; + /** Schedule list. */ + scheduleList?: ScheduleItem[]; /** - * The number of total passed rules. + * Next action to be executed (Start or Stop) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalPassedRulesCount?: number; + readonly nextRunAction?: string; /** - * The number of total failed rules. + * Timestamp when the next action will be executed in the corresponding schedule time zone. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalFailedRulesCount?: number; + readonly nextExecutionTime?: string; +} + +/** Usage Metric of a Subscription in a Location. */ +export interface SubscriptionUsage extends ProxyResource { /** - * The number of total rules assessed. + * User-readable name of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalRulesCount?: number; + readonly displayName?: string; /** - * Baseline created for this database, and has one or more rules. + * Current value of the metric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isBaselineApplied?: boolean; + readonly currentValue?: number; /** - * The last scan time. + * Boundary value of the metric. * 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 limit?: number; /** - * SystemData of SqlVulnerabilityAssessmentResource. + * Unit of the metric. * 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; + readonly unit?: string; } -/** An RefreshExternalGovernanceStatus operation result resource. */ -export interface RefreshExternalGovernanceStatusOperationResult - extends ProxyResource { +/** Synapse link workspace resource */ +export interface SynapseLinkWorkspace extends ProxyResource { + /** List of all synapselink workspaces */ + workspaces?: SynapseLinkWorkspaceInfoProperties[]; +} + +/** An Azure SQL Database sync agent. */ +export interface SyncAgent extends ProxyResource { /** - * Request Id. + * Name of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestId?: string; + readonly namePropertiesName?: string; + /** ARM resource id of the sync database in the sync agent. */ + syncDatabaseId?: string; /** - * Request type. + * Last alive time of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requestType?: string; + readonly lastAliveTime?: Date; /** - * Queued time. + * State of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly queuedTime?: string; + readonly state?: SyncAgentState; /** - * Server name. + * 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 serverName?: string; + readonly isUpToDate?: boolean; /** - * Operation status. + * Expiration time of the sync agent version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly expiryTime?: Date; /** - * Error message. + * Version of the sync agent. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; + readonly version?: string; } -/** A failover group. */ -export interface FailoverGroup extends ProxyResource { +/** An Azure SQL Database sync agent linked database. */ +export interface SyncAgentLinkedDatabase extends ProxyResource { /** - * Resource location. + * Type of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Read-write endpoint of the failover group instance. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; - /** Read-only endpoint of the failover group instance. */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + readonly databaseType?: SyncMemberDbType; + /** + * Id of the sync agent linked database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseId?: string; + /** + * Description of the sync agent linked database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Server name of the sync agent linked database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverName?: string; /** - * Local replication role of the failover group instance. + * Database name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationRole?: FailoverGroupReplicationRole; + readonly databaseName?: string; /** - * Replication state of the failover group instance. + * User name of the sync agent linked database. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replicationState?: string; - /** List of partner server information for the failover group. */ - partnerServers?: PartnerInfo[]; - /** List of databases in the failover group. */ - databases?: string[]; -} - -/** An 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. */ @@ -8551,12 +8765,48 @@ export interface ElasticPool extends TrackedResource { 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; + /** Time in minutes after which elastic pool is automatically paused. A value of -1 means that automatic pause is disabled */ + autoPauseDelay?: 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; } +/** 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; + /** + * The Dns Zone that the managed instance pool is in. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dnsZone?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; +} + +/** An Azure SQL job agent. */ +export interface JobAgent extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** The identity of the job agent. */ + identity?: JobAgentIdentity; + /** 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. */ @@ -8626,8 +8876,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. * @@ -8641,6 +8894,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). */ @@ -8654,10 +8909,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; /** @@ -8689,29 +8955,74 @@ export interface ManagedInstance extends TrackedResource { /** Specifies maintenance configuration id to apply to this managed instance. */ maintenanceConfigurationId?: string; /** - * List of private endpoint connections on a managed instance. + * List of private endpoint connections on a managed instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** + * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentBackupStorageRedundancy?: BackupStorageRedundancy; + /** The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) */ + requestedBackupStorageRedundancy?: BackupStorageRedundancy; + /** Whether or not the multi-az is enabled. */ + zoneRedundant?: boolean; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ManagedInstanceExternalAdministrator; + /** The managed instance's service principal. */ + servicePrincipal?: ServicePrincipal; + /** + * 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; + /** The managed instance's authentication metadata lookup mode. */ + authenticationMetadata?: AuthMetadataLookupModes; + /** Specifies the internal format of instance databases specific to the SQL engine version. */ + databaseFormat?: ManagedInstanceDatabaseFormat; +} + +/** 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 privateEndpointConnections?: ManagedInstancePecProperty[]; - /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - minimalTlsVersion?: string; + readonly deletionDate?: Date; /** - * The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage) + * The earliest restore date of the database (ISO8601 format). * 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 earliestRestoreDate?: Date; } /** An Azure SQL Database server. */ @@ -8772,6 +9083,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. */ @@ -8784,7 +9111,7 @@ export interface FirewallRule extends ProxyResourceWithWritableName { 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. */ + /** The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress. */ endIPv6Address?: string; } @@ -8793,110 +9120,107 @@ export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders { location?: string; } -/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ -export enum KnownGeoBackupPolicyName { +/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ +export enum KnownDiffBackupIntervalInHours { + /** Twelve */ + Twelve = 12, + /** TwentyFour */ + TwentyFour = 24 +} + +/** + * Defines values for DiffBackupIntervalInHours. \ + * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **12** \ + * **24** + */ +export type DiffBackupIntervalInHours = number; + +/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownShortTermRetentionPolicyName { + /** Default */ + Default = "default" +} + +/** + * Defines values for ShortTermRetentionPolicyName. \ + * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ShortTermRetentionPolicyName = string; + +/** Known values of {@link 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 { @@ -9064,82 +9388,268 @@ export enum KnownColumnDataType { * **xml** \ * **sysname** */ -export type ColumnDataType = string; +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 EncryptionProtectorName} that the service accepts. */ +export enum KnownEncryptionProtectorName { + /** Current */ + Current = "current" +} + +/** + * Defines values for EncryptionProtectorName. \ + * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** + */ +export type EncryptionProtectorName = string; + +/** Known values of {@link OperationMode} that the service accepts. */ +export enum KnownOperationMode { + /** PolybaseImport */ + PolybaseImport = "PolybaseImport", + /** Import */ + Import = "Import", + /** Export */ + Export = "Export" +} + +/** + * Defines values for OperationMode. \ + * {@link KnownOperationMode} can be used interchangeably with OperationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PolybaseImport** \ + * **Import** \ + * **Export** + */ +export type OperationMode = string; + +/** Known values of {@link StorageKeyType} that the service accepts. */ +export enum KnownStorageKeyType { + /** SharedAccessKey */ + SharedAccessKey = "SharedAccessKey", + /** StorageAccessKey */ + StorageAccessKey = "StorageAccessKey" +} + +/** + * Defines values for StorageKeyType. \ + * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SharedAccessKey** \ + * **StorageAccessKey** + */ +export type StorageKeyType = string; + +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + /** Pending */ + Pending = "Pending", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** CancelInProgress */ + CancelInProgress = "CancelInProgress", + /** Cancelled */ + Cancelled = "Cancelled" +} + +/** + * Defines values for ManagementOperationState. \ + * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **CancelInProgress** \ + * **Cancelled** + */ +export type ManagementOperationState = string; + +/** Known values of {@link Phase} that the service accepts. */ +export enum KnownPhase { + /** Copying */ + Copying = "Copying", + /** Catchup */ + Catchup = "Catchup", + /** WaitingForCutover */ + WaitingForCutover = "WaitingForCutover", + /** CutoverInProgress */ + CutoverInProgress = "CutoverInProgress" +} + +/** + * 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 + * **Copying** \ + * **Catchup** \ + * **WaitingForCutover** \ + * **CutoverInProgress** + */ +export type Phase = 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 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 TableTemporalType} that the service accepts. */ -export enum KnownTableTemporalType { - /** NonTemporalTable */ - NonTemporalTable = "NonTemporalTable", - /** HistoryTable */ - HistoryTable = "HistoryTable", - /** SystemVersionedTemporalTable */ - SystemVersionedTemporalTable = "SystemVersionedTemporalTable" +/** Known values of {@link BaselineName} that the service accepts. */ +export enum KnownBaselineName { + /** Default */ + Default = "default" } /** - * Defines values for TableTemporalType. \ - * {@link KnownTableTemporalType} can be used interchangeably with TableTemporalType, + * 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 - * **NonTemporalTable** \ - * **HistoryTable** \ - * **SystemVersionedTemporalTable** + * **default** */ -export type TableTemporalType = string; +export type BaselineName = string; -/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ -export enum KnownSecurityAlertPolicyName { +/** Known values of {@link SQLVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSQLVulnerabilityAssessmentName { /** Default */ - Default = "Default" + Default = "default" } /** - * Defines values for SecurityAlertPolicyName. \ - * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, + * Defines values for SQLVulnerabilityAssessmentName. \ + * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **default** */ -export type SecurityAlertPolicyName = string; +export type SQLVulnerabilityAssessmentName = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** NonFinding */ + NonFinding = "NonFinding", + /** Finding */ + Finding = "Finding", + /** InternalError */ + InternalError = "InternalError" } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * 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 - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **NonFinding** \ + * **Finding** \ + * **InternalError** */ -export type CreatedByType = string; +export type RuleStatus = string; -/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ -export enum KnownVulnerabilityAssessmentName { - /** Default */ - Default = "default" +/** 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 VulnerabilityAssessmentName. \ - * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, + * 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 - * **default** + * **High** \ + * **Medium** \ + * **Low** \ + * **Informational** \ + * **Obsolete** */ -export type VulnerabilityAssessmentName = string; +export type RuleSeverity = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Binary */ + Binary = "Binary", + /** BaselineExpected */ + BaselineExpected = "BaselineExpected", + /** PositiveList */ + PositiveList = "PositiveList", + /** NegativeList */ + NegativeList = "NegativeList" +} + +/** + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Binary** \ + * **BaselineExpected** \ + * **PositiveList** \ + * **NegativeList** + */ +export type RuleType = string; /** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ export enum KnownVulnerabilityAssessmentScanTriggerType { @@ -9183,56 +9693,206 @@ export enum KnownVulnerabilityAssessmentScanState { */ export type VulnerabilityAssessmentScanState = string; -/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ -export enum KnownDataWarehouseUserActivityName { - /** Current */ - Current = "current" +/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ +export enum KnownSqlVulnerabilityAssessmentName { + /** Default */ + Default = "default" } /** - * Defines values for DataWarehouseUserActivityName. \ - * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * 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 - * **current** + * **default** */ -export type DataWarehouseUserActivityName = string; +export type SqlVulnerabilityAssessmentName = string; -/** Known values of {@link ServerKeyType} that the service accepts. */ -export enum KnownServerKeyType { - /** ServiceManaged */ - ServiceManaged = "ServiceManaged", - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link DatabaseIdentityType} that the service accepts. */ +export enum KnownDatabaseIdentityType { + /** None */ + None = "None", + /** UserAssigned */ + UserAssigned = "UserAssigned" +} + +/** + * Defines values for DatabaseIdentityType. \ + * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **UserAssigned** + */ +export type DatabaseIdentityType = string; + +/** Known values of {@link CreateMode} that the service accepts. */ +export enum KnownCreateMode { + /** Default */ + Default = "Default", + /** Copy */ + Copy = "Copy", + /** Secondary */ + Secondary = "Secondary", + /** PointInTimeRestore */ + PointInTimeRestore = "PointInTimeRestore", + /** Restore */ + Restore = "Restore", + /** Recovery */ + Recovery = "Recovery", + /** RestoreExternalBackup */ + RestoreExternalBackup = "RestoreExternalBackup", + /** RestoreExternalBackupSecondary */ + RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary", + /** RestoreLongTermRetentionBackup */ + RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup", + /** OnlineSecondary */ + OnlineSecondary = "OnlineSecondary" +} + +/** + * Defines values for CreateMode. \ + * {@link KnownCreateMode} can be used interchangeably with CreateMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **Copy** \ + * **Secondary** \ + * **PointInTimeRestore** \ + * **Restore** \ + * **Recovery** \ + * **RestoreExternalBackup** \ + * **RestoreExternalBackupSecondary** \ + * **RestoreLongTermRetentionBackup** \ + * **OnlineSecondary** + */ +export type CreateMode = string; + +/** Known values of {@link SampleName} that the service accepts. */ +export enum KnownSampleName { + /** AdventureWorksLT */ + AdventureWorksLT = "AdventureWorksLT", + /** WideWorldImportersStd */ + WideWorldImportersStd = "WideWorldImportersStd", + /** WideWorldImportersFull */ + WideWorldImportersFull = "WideWorldImportersFull" +} + +/** + * Defines values for SampleName. \ + * {@link KnownSampleName} can be used interchangeably with SampleName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AdventureWorksLT** \ + * **WideWorldImportersStd** \ + * **WideWorldImportersFull** + */ +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 ServerKeyType. \ - * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * 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 - * **ServiceManaged** \ - * **AzureKeyVault** + * **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 ServerKeyType = string; +export type DatabaseStatus = string; -/** Known values of {@link EncryptionProtectorName} that the service accepts. */ -export enum KnownEncryptionProtectorName { - /** Current */ - Current = "current" +/** 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 EncryptionProtectorName. \ - * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * 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 - * **current** + * **DATABASE_DEFAULT** \ + * **SQL_Latin1_General_CP1_CI_AS** */ -export type EncryptionProtectorName = string; +export type CatalogCollationType = string; -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { +/** Known values of {@link DatabaseLicenseType} that the service accepts. */ +export enum KnownDatabaseLicenseType { /** LicenseIncluded */ LicenseIncluded = "LicenseIncluded", /** BasePrice */ @@ -9240,1538 +9900,1412 @@ export enum KnownInstancePoolLicenseType { } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * Defines values for DatabaseLicenseType. \ + * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **LicenseIncluded** \ * **BasePrice** */ -export type InstancePoolLicenseType = string; +export type DatabaseLicenseType = 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", +/** Known values of {@link DatabaseReadScale} that the service accepts. */ +export enum KnownDatabaseReadScale { + /** Enabled */ + Enabled = "Enabled", /** Disabled */ Disabled = "Disabled" } /** - * Defines values for JobAgentState. \ - * {@link KnownJobAgentState} can be used interchangeably with JobAgentState, + * Defines values for DatabaseReadScale. \ + * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Ready** \ - * **Updating** \ - * **Deleting** \ + * **Enabled** \ * **Disabled** */ -export type JobAgentState = string; - -/** Known values of {@link JobExecutionLifecycle} that the service accepts. */ -export enum KnownJobExecutionLifecycle { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", - /** WaitingForChildJobExecutions */ - WaitingForChildJobExecutions = "WaitingForChildJobExecutions", - /** WaitingForRetry */ - WaitingForRetry = "WaitingForRetry", - /** Succeeded */ - Succeeded = "Succeeded", - /** SucceededWithSkipped */ - SucceededWithSkipped = "SucceededWithSkipped", - /** Failed */ - Failed = "Failed", - /** TimedOut */ - TimedOut = "TimedOut", - /** Canceled */ - Canceled = "Canceled", - /** Skipped */ - Skipped = "Skipped" -} - -/** - * Defines values for JobExecutionLifecycle. \ - * {@link KnownJobExecutionLifecycle} can be used interchangeably with JobExecutionLifecycle, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Created** \ - * **InProgress** \ - * **WaitingForChildJobExecutions** \ - * **WaitingForRetry** \ - * **Succeeded** \ - * **SucceededWithSkipped** \ - * **Failed** \ - * **TimedOut** \ - * **Canceled** \ - * **Skipped** - */ -export type JobExecutionLifecycle = string; - -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Created */ - Created = "Created", - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" -} - -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Created** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type ProvisioningState = string; - -/** Known values of {@link JobTargetType} that the service accepts. */ -export enum KnownJobTargetType { - /** TargetGroup */ - TargetGroup = "TargetGroup", - /** SqlDatabase */ - SqlDatabase = "SqlDatabase", - /** SqlElasticPool */ - SqlElasticPool = "SqlElasticPool", - /** SqlShardMap */ - SqlShardMap = "SqlShardMap", - /** SqlServer */ - SqlServer = "SqlServer" -} - -/** - * Defines values for JobTargetType. \ - * {@link KnownJobTargetType} can be used interchangeably with JobTargetType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TargetGroup** \ - * **SqlDatabase** \ - * **SqlElasticPool** \ - * **SqlShardMap** \ - * **SqlServer** - */ -export type JobTargetType = string; +export type DatabaseReadScale = string; -/** Known values of {@link JobStepActionType} that the service accepts. */ -export enum KnownJobStepActionType { - /** TSql */ - TSql = "TSql" +/** Known values of {@link SecondaryType} that the service accepts. */ +export enum KnownSecondaryType { + /** Geo */ + Geo = "Geo", + /** Named */ + Named = "Named", + /** Standby */ + Standby = "Standby" } /** - * Defines values for JobStepActionType. \ - * {@link KnownJobStepActionType} can be used interchangeably with JobStepActionType, + * 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 - * **TSql** + * **Geo** \ + * **Named** \ + * **Standby** */ -export type JobStepActionType = string; +export type SecondaryType = string; -/** Known values of {@link JobStepActionSource} that the service accepts. */ -export enum KnownJobStepActionSource { - /** Inline */ - Inline = "Inline" +/** 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 JobStepActionSource. \ - * {@link KnownJobStepActionSource} can be used interchangeably with JobStepActionSource, + * 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 - * **Inline** + * **Geo** \ + * **Local** \ + * **Zone** \ + * **GeoZone** */ -export type JobStepActionSource = string; +export type BackupStorageRedundancy = string; -/** Known values of {@link JobStepOutputType} that the service accepts. */ -export enum KnownJobStepOutputType { - /** SqlDatabase */ - SqlDatabase = "SqlDatabase" +/** Known values of {@link DatabaseKeyType} that the service accepts. */ +export enum KnownDatabaseKeyType { + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for JobStepOutputType. \ - * {@link KnownJobStepOutputType} can be used interchangeably with JobStepOutputType, + * 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 - * **SqlDatabase** + * **AzureKeyVault** */ -export type JobStepOutputType = string; +export type DatabaseKeyType = 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 AlwaysEncryptedEnclaveType} that the service accepts. */ +export enum KnownAlwaysEncryptedEnclaveType { + /** Default */ + Default = "Default", + /** VBS */ + VBS = "VBS" } /** - * Defines values for CapabilityGroup. \ - * {@link KnownCapabilityGroup} can be used interchangeably with CapabilityGroup, + * 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 - * **supportedEditions** \ - * **supportedElasticPoolEditions** \ - * **supportedManagedInstanceVersions** \ - * **supportedInstancePoolEditions** \ - * **supportedManagedInstanceEditions** + * **Default** \ + * **VBS** */ -export type CapabilityGroup = string; +export type AlwaysEncryptedEnclaveType = 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 FreeLimitExhaustionBehavior} that the service accepts. */ +export enum KnownFreeLimitExhaustionBehavior { + /** AutoPause */ + AutoPause = "AutoPause", + /** BillOverUsage */ + BillOverUsage = "BillOverUsage" } /** - * Defines values for MaxSizeUnit. \ - * {@link KnownMaxSizeUnit} can be used interchangeably with MaxSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** + * **AutoPause** \ + * **BillOverUsage** */ -export type MaxSizeUnit = string; +export type FreeLimitExhaustionBehavior = 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 AvailabilityZoneType} that the service accepts. */ +export enum KnownAvailabilityZoneType { + /** NoPreference */ + NoPreference = "NoPreference", + /** One */ + One = "1", + /** Two */ + Two = "2", + /** Three */ + Three = "3" } /** - * Defines values for LogSizeUnit. \ - * {@link KnownLogSizeUnit} can be used interchangeably with LogSizeUnit, + * 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 - * **Megabytes** \ - * **Gigabytes** \ - * **Terabytes** \ - * **Petabytes** \ - * **Percent** + * **NoPreference** \ + * **1** \ + * **2** \ + * **3** */ -export type LogSizeUnit = string; +export type AvailabilityZoneType = string; -/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ -export enum KnownPerformanceLevelUnit { - /** DTU */ - DTU = "DTU", - /** VCores */ - VCores = "VCores" +/** Known values of {@link ReplicaType} that the service accepts. */ +export enum KnownReplicaType { + /** Primary */ + Primary = "Primary", + /** ReadableSecondary */ + ReadableSecondary = "ReadableSecondary" } /** - * Defines values for PerformanceLevelUnit. \ - * {@link KnownPerformanceLevelUnit} can be used interchangeably with PerformanceLevelUnit, + * 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 - * **DTU** \ - * **VCores** + * **Primary** \ + * **ReadableSecondary** */ -export type PerformanceLevelUnit = string; +export type ReplicaType = string; -/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ -export enum KnownPauseDelayTimeUnit { - /** Minutes */ - Minutes = "Minutes" +/** Known values of {@link ReplicationModeType} that the service accepts. */ +export enum KnownReplicationModeType { + /** Async */ + Async = "Async", + /** Sync */ + Sync = "Sync" } /** - * Defines values for PauseDelayTimeUnit. \ - * {@link KnownPauseDelayTimeUnit} can be used interchangeably with PauseDelayTimeUnit, + * 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 - * **Minutes** + * **Async** \ + * **Sync** */ -export type PauseDelayTimeUnit = string; +export type ReplicationModeType = 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 LinkRole} that the service accepts. */ +export enum KnownLinkRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for StorageCapabilityStorageAccountType. \ - * {@link KnownStorageCapabilityStorageAccountType} can be used interchangeably with StorageCapabilityStorageAccountType, + * 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 - * **GRS** \ - * **LRS** \ - * **ZRS** + * **Primary** \ + * **Secondary** */ -export type StorageCapabilityStorageAccountType = string; +export type LinkRole = string; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link FailoverModeType} that the service accepts. */ +export enum KnownFailoverModeType { + /** None */ + None = "None", + /** Manual */ + Manual = "Manual" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * Defines values for FailoverModeType. \ + * {@link KnownFailoverModeType} can be used interchangeably with FailoverModeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **None** \ + * **Manual** */ -export type LongTermRetentionPolicyName = string; +export type FailoverModeType = 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 SeedingModeType} that the service accepts. */ +export enum KnownSeedingModeType { + /** Automatic */ + Automatic = "Automatic", + /** Manual */ + Manual = "Manual" } /** - * Defines values for DayOfWeek. \ - * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * Defines values for SeedingModeType. \ + * {@link KnownSeedingModeType} can be used interchangeably with SeedingModeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Sunday** \ - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** + * **Automatic** \ + * **Manual** */ -export type DayOfWeek = string; +export type SeedingModeType = string; -/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** 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 ManagedShortTermRetentionPolicyName. \ - * {@link KnownManagedShortTermRetentionPolicyName} can be used interchangeably with ManagedShortTermRetentionPolicyName, + * 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 - * **default** + * **NOT_HEALTHY** \ + * **PARTIALLY_HEALTHY** \ + * **HEALTHY** */ -export type ManagedShortTermRetentionPolicyName = string; +export type ReplicaSynchronizationHealth = string; -/** Known values of {@link QueryTimeGrainType} that the service accepts. */ -export enum KnownQueryTimeGrainType { - /** PT1H */ - PT1H = "PT1H", - /** P1D */ - P1D = "P1D" +/** Known values of {@link ReplicaConnectedState} that the service accepts. */ +export enum KnownReplicaConnectedState { + /** Disconnected */ + Disconnected = "DISCONNECTED", + /** Connected */ + Connected = "CONNECTED" } /** - * Defines values for QueryTimeGrainType. \ - * {@link KnownQueryTimeGrainType} can be used interchangeably with QueryTimeGrainType, + * 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 - * **PT1H** \ - * **P1D** + * **DISCONNECTED** \ + * **CONNECTED** */ -export type QueryTimeGrainType = string; +export type ReplicaConnectedState = 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 InstanceRole} that the service accepts. */ +export enum KnownInstanceRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for QueryMetricUnitType. \ - * {@link KnownQueryMetricUnitType} can be used interchangeably with QueryMetricUnitType, + * 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 - * **percentage** \ - * **KB** \ - * **microseconds** \ - * **count** + * **Primary** \ + * **Secondary** */ -export type QueryMetricUnitType = string; +export type InstanceRole = string; -/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ -export enum KnownTransparentDataEncryptionName { - /** Current */ - Current = "current" +/** Known values of {@link RoleChangeType} that the service accepts. */ +export enum KnownRoleChangeType { + /** Forced */ + Forced = "Forced", + /** Planned */ + Planned = "Planned" } /** - * Defines values for TransparentDataEncryptionName. \ - * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, + * 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 - * **current** + * **Forced** \ + * **Planned** */ -export type TransparentDataEncryptionName = string; +export type RoleChangeType = string; -/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ -export enum KnownManagedInstanceAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link ElasticPoolState} that the service accepts. */ +export enum KnownElasticPoolState { + /** Creating */ + Creating = "Creating", + /** Ready */ + Ready = "Ready", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for ManagedInstanceAdministratorType. \ - * {@link KnownManagedInstanceAdministratorType} can be used interchangeably with ManagedInstanceAdministratorType, + * 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 - * **ActiveDirectory** + * **Creating** \ + * **Ready** \ + * **Disabled** */ -export type ManagedInstanceAdministratorType = string; +export type ElasticPoolState = string; -/** Known values of {@link AdministratorName} that the service accepts. */ -export enum KnownAdministratorName { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ +export enum KnownElasticPoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for AdministratorName. \ - * {@link KnownAdministratorName} can be used interchangeably with AdministratorName, + * 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 - * **ActiveDirectory** + * **LicenseIncluded** \ + * **BasePrice** */ -export type AdministratorName = string; +export type ElasticPoolLicenseType = string; -/** Known values of {@link AuthenticationName} that the service accepts. */ -export enum KnownAuthenticationName { - /** Default */ - Default = "Default" +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + /** ServiceManaged */ + ServiceManaged = "ServiceManaged", + /** AzureKeyVault */ + AzureKeyVault = "AzureKeyVault" } /** - * Defines values for AuthenticationName. \ - * {@link KnownAuthenticationName} can be used interchangeably with AuthenticationName, + * 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 - * **Default** + * **ServiceManaged** \ + * **AzureKeyVault** */ -export type AuthenticationName = string; +export type ServerKeyType = string; -/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ -export enum KnownManagedInstanceLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadWriteEndpointFailoverPolicy { + /** Manual */ + Manual = "Manual", + /** Automatic */ + Automatic = "Automatic" } /** - * Defines values for ManagedInstanceLongTermRetentionPolicyName. \ - * {@link KnownManagedInstanceLongTermRetentionPolicyName} can be used interchangeably with ManagedInstanceLongTermRetentionPolicyName, + * 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 - * **default** + * **Manual** \ + * **Automatic** */ -export type ManagedInstanceLongTermRetentionPolicyName = string; +export type ReadWriteEndpointFailoverPolicy = 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 ReadOnlyEndpointFailoverPolicy} that the service accepts. */ +export enum KnownReadOnlyEndpointFailoverPolicy { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" } /** - * Defines values for ManagementOperationState. \ - * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * 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 - * **Pending** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** \ - * **CancelInProgress** \ - * **Cancelled** + * **Disabled** \ + * **Enabled** */ -export type ManagementOperationState = string; +export type ReadOnlyEndpointFailoverPolicy = 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 FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for UpsertManagedServerOperationStepStatus. \ - * {@link KnownUpsertManagedServerOperationStepStatus} can be used interchangeably with UpsertManagedServerOperationStepStatus, + * 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 - * **NotStarted** \ - * **InProgress** \ - * **SlowedDown** \ - * **Completed** \ - * **Failed** \ - * **Canceled** + * **Primary** \ + * **Secondary** */ -export type UpsertManagedServerOperationStepStatus = string; +export type FailoverGroupReplicationRole = string; -/** Known values of {@link OperationOrigin} that the service accepts. */ -export enum KnownOperationOrigin { - /** User */ - User = "user", - /** System */ - System = "system" +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + /** Default */ + Default = "Default" } /** - * Defines values for OperationOrigin. \ - * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin, + * 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 - * **user** \ - * **system** + * **Default** */ -export type OperationOrigin = string; +export type GeoBackupPolicyName = 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 SecondaryInstanceType} that the service accepts. */ +export enum KnownSecondaryInstanceType { + /** Geo */ + Geo = "Geo", + /** Standby */ + Standby = "Standby" } /** - * Defines values for PrivateLinkServiceConnectionStateStatus. \ - * {@link KnownPrivateLinkServiceConnectionStateStatus} can be used interchangeably with PrivateLinkServiceConnectionStateStatus, + * 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 - * **Approved** \ - * **Pending** \ - * **Rejected** \ - * **Disconnected** + * **Geo** \ + * **Standby** */ -export type PrivateLinkServiceConnectionStateStatus = string; +export type SecondaryInstanceType = string; -/** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ -export enum KnownPrivateLinkServiceConnectionStateActionsRequire { - /** None */ - None = "None" +/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ +export enum KnownInstanceFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for PrivateLinkServiceConnectionStateActionsRequire. \ - * {@link KnownPrivateLinkServiceConnectionStateActionsRequire} can be used interchangeably with PrivateLinkServiceConnectionStateActionsRequire, + * 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 - * **None** + * **Primary** \ + * **Secondary** */ -export type PrivateLinkServiceConnectionStateActionsRequire = string; +export type InstanceFailoverGroupReplicationRole = 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 InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for PrivateEndpointProvisioningState. \ - * {@link KnownPrivateEndpointProvisioningState} can be used interchangeably with PrivateEndpointProvisioningState, + * 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 - * **Approving** \ - * **Ready** \ - * **Dropping** \ - * **Failed** \ - * **Rejecting** + * **LicenseIncluded** \ + * **BasePrice** */ -export type PrivateEndpointProvisioningState = string; +export type InstancePoolLicenseType = string; -/** Known values of {@link AdministratorType} that the service accepts. */ -export enum KnownAdministratorType { - /** ActiveDirectory */ - ActiveDirectory = "ActiveDirectory" +/** Known values of {@link JobAgentIdentityType} that the service accepts. */ +export enum KnownJobAgentIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssignedUserAssigned" } /** - * Defines values for AdministratorType. \ - * {@link KnownAdministratorType} can be used interchangeably with AdministratorType, + * Defines values for JobAgentIdentityType. \ + * {@link KnownJobAgentIdentityType} can be used interchangeably with JobAgentIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ActiveDirectory** + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssignedUserAssigned** */ -export type AdministratorType = string; +export type JobAgentIdentityType = string; -/** Known values of {@link DevOpsAuditingSettingsName} that the service accepts. */ -export enum KnownDevOpsAuditingSettingsName { - /** Default */ - Default = "Default" +/** 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 DevOpsAuditingSettingsName. \ - * {@link KnownDevOpsAuditingSettingsName} can be used interchangeably with DevOpsAuditingSettingsName, + * 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 - * **Default** + * **Creating** \ + * **Ready** \ + * **Updating** \ + * **Deleting** \ + * **Disabled** */ -export type DevOpsAuditingSettingsName = string; +export type JobAgentState = string; -/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ -export enum KnownServerTrustGroupPropertiesTrustScopesItem { - /** GlobalTransactions */ - GlobalTransactions = "GlobalTransactions", - /** ServiceBroker */ - ServiceBroker = "ServiceBroker" +/** 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 ServerTrustGroupPropertiesTrustScopesItem. \ - * {@link KnownServerTrustGroupPropertiesTrustScopesItem} can be used interchangeably with ServerTrustGroupPropertiesTrustScopesItem, + * 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 - * **GlobalTransactions** \ - * **ServiceBroker** + * **Created** \ + * **InProgress** \ + * **WaitingForChildJobExecutions** \ + * **WaitingForRetry** \ + * **Succeeded** \ + * **SucceededWithSkipped** \ + * **Failed** \ + * **TimedOut** \ + * **Canceled** \ + * **Skipped** */ -export type ServerTrustGroupPropertiesTrustScopesItem = string; +export type JobExecutionLifecycle = string; -/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ -export enum KnownSqlAgentConfigurationPropertiesState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Created */ + Created = "Created", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" } /** - * Defines values for SqlAgentConfigurationPropertiesState. \ - * {@link KnownSqlAgentConfigurationPropertiesState} can be used interchangeably with SqlAgentConfigurationPropertiesState, + * 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 - * **Enabled** \ - * **Disabled** + * **Created** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** */ -export type SqlAgentConfigurationPropertiesState = string; +export type ProvisioningState = 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 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 SyncAgentState. \ - * {@link KnownSyncAgentState} can be used interchangeably with SyncAgentState, + * 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 - * **Online** \ - * **Offline** \ - * **NeverConnected** + * **TargetGroup** \ + * **SqlDatabase** \ + * **SqlElasticPool** \ + * **SqlShardMap** \ + * **SqlServer** */ -export type SyncAgentState = string; +export type JobTargetType = string; -/** Known values of {@link SyncMemberDbType} that the service accepts. */ -export enum KnownSyncMemberDbType { - /** AzureSqlDatabase */ - AzureSqlDatabase = "AzureSqlDatabase", - /** SqlServerDatabase */ - SqlServerDatabase = "SqlServerDatabase" +/** Known values of {@link JobStepActionType} that the service accepts. */ +export enum KnownJobStepActionType { + /** TSql */ + TSql = "TSql" } /** - * Defines values for SyncMemberDbType. \ - * {@link KnownSyncMemberDbType} can be used interchangeably with SyncMemberDbType, + * 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 - * **AzureSqlDatabase** \ - * **SqlServerDatabase** + * **TSql** */ -export type SyncMemberDbType = string; +export type JobStepActionType = 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 JobStepActionSource} that the service accepts. */ +export enum KnownJobStepActionSource { + /** Inline */ + Inline = "Inline" } /** - * Defines values for SyncGroupsType. \ - * {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **Inline** */ -export type SyncGroupsType = string; +export type JobStepActionSource = 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 JobStepOutputType} that the service accepts. */ +export enum KnownJobStepOutputType { + /** SqlDatabase */ + SqlDatabase = "SqlDatabase" } /** - * Defines values for SyncGroupLogType. \ - * {@link KnownSyncGroupLogType} can be used interchangeably with SyncGroupLogType, + * 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 - * **All** \ - * **Error** \ - * **Warning** \ - * **Success** + * **SqlDatabase** */ -export type SyncGroupLogType = string; +export type JobStepOutputType = string; -/** Known values of {@link SyncConflictResolutionPolicy} that the service accepts. */ -export enum KnownSyncConflictResolutionPolicy { - /** HubWin */ - HubWin = "HubWin", - /** MemberWin */ - MemberWin = "MemberWin" +/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ +export enum KnownLedgerDigestUploadsName { + /** Current */ + Current = "current" } /** - * Defines values for SyncConflictResolutionPolicy. \ - * {@link KnownSyncConflictResolutionPolicy} can be used interchangeably with SyncConflictResolutionPolicy, + * Defines values for LedgerDigestUploadsName. \ + * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HubWin** \ - * **MemberWin** + * **current** */ -export type SyncConflictResolutionPolicy = string; +export type LedgerDigestUploadsName = 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 CapabilityGroup} that the service accepts. */ +export enum KnownCapabilityGroup { + /** SupportedEditions */ + SupportedEditions = "supportedEditions", + /** SupportedElasticPoolEditions */ + SupportedElasticPoolEditions = "supportedElasticPoolEditions", + /** SupportedManagedInstanceVersions */ + SupportedManagedInstanceVersions = "supportedManagedInstanceVersions", + /** SupportedInstancePoolEditions */ + SupportedInstancePoolEditions = "supportedInstancePoolEditions", + /** SupportedManagedInstanceEditions */ + SupportedManagedInstanceEditions = "supportedManagedInstanceEditions", + /** SupportedJobAgentVersions */ + SupportedJobAgentVersions = "supportedJobAgentVersions" } /** - * Defines values for SyncGroupState. \ - * {@link KnownSyncGroupState} can be used interchangeably with SyncGroupState, + * 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 - * **NotReady** \ - * **Error** \ - * **Warning** \ - * **Progressing** \ - * **Good** + * **supportedEditions** \ + * **supportedElasticPoolEditions** \ + * **supportedManagedInstanceVersions** \ + * **supportedInstancePoolEditions** \ + * **supportedManagedInstanceEditions** \ + * **supportedJobAgentVersions** */ -export type SyncGroupState = string; +export type CapabilityGroup = 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 MaxSizeUnit} that the service accepts. */ +export enum KnownMaxSizeUnit { + /** Megabytes */ + Megabytes = "Megabytes", + /** Gigabytes */ + Gigabytes = "Gigabytes", + /** Terabytes */ + Terabytes = "Terabytes", + /** Petabytes */ + Petabytes = "Petabytes" } /** - * Defines values for SyncDirection. \ - * {@link KnownSyncDirection} can be used interchangeably with SyncDirection, + * 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 - * **Bidirectional** \ - * **OneWayMemberToHub** \ - * **OneWayHubToMember** + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** */ -export type SyncDirection = string; +export type MaxSizeUnit = 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 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 SyncMemberState. \ - * {@link KnownSyncMemberState} can be used interchangeably with SyncMemberState, + * 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 - * **SyncInProgress** \ - * **SyncSucceeded** \ - * **SyncFailed** \ - * **DisabledTombstoneCleanup** \ - * **DisabledBackupRestore** \ - * **SyncSucceededWithWarnings** \ - * **SyncCancelling** \ - * **SyncCancelled** \ - * **UnProvisioned** \ - * **Provisioning** \ - * **Provisioned** \ - * **ProvisionFailed** \ - * **DeProvisioning** \ - * **DeProvisioned** \ - * **DeProvisionFailed** \ - * **Reprovisioning** \ - * **ReprovisionFailed** \ - * **UnReprovisioned** + * **Megabytes** \ + * **Gigabytes** \ + * **Terabytes** \ + * **Petabytes** \ + * **Percent** */ -export type SyncMemberState = string; +export type LogSizeUnit = string; -/** Known values of {@link VirtualNetworkRuleState} that the service accepts. */ -export enum KnownVirtualNetworkRuleState { - /** Initializing */ - Initializing = "Initializing", - /** InProgress */ - InProgress = "InProgress", - /** Ready */ - Ready = "Ready", - /** Failed */ - Failed = "Failed", - /** Deleting */ - Deleting = "Deleting", - /** Unknown */ - Unknown = "Unknown" +/** Known values of {@link PerformanceLevelUnit} that the service accepts. */ +export enum KnownPerformanceLevelUnit { + /** DTU */ + DTU = "DTU", + /** VCores */ + VCores = "VCores" } /** - * Defines values for VirtualNetworkRuleState. \ - * {@link KnownVirtualNetworkRuleState} can be used interchangeably with VirtualNetworkRuleState, + * 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 - * **Initializing** \ - * **InProgress** \ - * **Ready** \ - * **Failed** \ - * **Deleting** \ - * **Unknown** + * **DTU** \ + * **VCores** */ -export type VirtualNetworkRuleState = string; +export type PerformanceLevelUnit = string; -/** Known values of {@link ShortTermRetentionPolicyName} that the service accepts. */ -export enum KnownShortTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link PauseDelayTimeUnit} that the service accepts. */ +export enum KnownPauseDelayTimeUnit { + /** Minutes */ + Minutes = "Minutes" } /** - * Defines values for ShortTermRetentionPolicyName. \ - * {@link KnownShortTermRetentionPolicyName} can be used interchangeably with ShortTermRetentionPolicyName, + * 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 - * **default** + * **Minutes** */ -export type ShortTermRetentionPolicyName = string; +export type PauseDelayTimeUnit = string; -/** Known values of {@link DiffBackupIntervalInHours} that the service accepts. */ -export enum KnownDiffBackupIntervalInHours { - /** Twelve */ - Twelve = 12, - /** TwentyFour */ - TwentyFour = 24 +/** 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 DiffBackupIntervalInHours. \ - * {@link KnownDiffBackupIntervalInHours} can be used interchangeably with DiffBackupIntervalInHours, + * 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 - * **12** \ - * **24** + * **GRS** \ + * **LRS** \ + * **ZRS** \ + * **GZRS** */ -export type DiffBackupIntervalInHours = number; +export type StorageCapabilityStorageAccountType = string; -/** Known values of {@link OperationMode} that the service accepts. */ -export enum KnownOperationMode { - /** PolybaseImport */ - PolybaseImport = "PolybaseImport" +/** Known values of {@link DatabaseState} that the service accepts. */ +export enum KnownDatabaseState { + /** All */ + All = "All", + /** Live */ + Live = "Live", + /** Deleted */ + Deleted = "Deleted" } /** - * Defines values for OperationMode. \ - * {@link KnownOperationMode} can be used interchangeably with OperationMode, + * Defines values for DatabaseState. \ + * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PolybaseImport** + * **All** \ + * **Live** \ + * **Deleted** */ -export type OperationMode = string; +export type DatabaseState = string; -/** Known values of {@link StorageKeyType} that the service accepts. */ -export enum KnownStorageKeyType { - /** SharedAccessKey */ - SharedAccessKey = "SharedAccessKey", - /** StorageAccessKey */ - StorageAccessKey = "StorageAccessKey" +/** Known values of {@link BackupStorageAccessTier} that the service accepts. */ +export enum KnownBackupStorageAccessTier { + /** Hot */ + Hot = "Hot", + /** Archive */ + Archive = "Archive" } /** - * Defines values for StorageKeyType. \ - * {@link KnownStorageKeyType} can be used interchangeably with StorageKeyType, + * Defines values for BackupStorageAccessTier. \ + * {@link KnownBackupStorageAccessTier} can be used interchangeably with BackupStorageAccessTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SharedAccessKey** \ - * **StorageAccessKey** + * **Hot** \ + * **Archive** */ -export type StorageKeyType = string; +export type BackupStorageAccessTier = string; -/** Known values of {@link LedgerDigestUploadsName} that the service accepts. */ -export enum KnownLedgerDigestUploadsName { - /** Current */ - Current = "current" +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for LedgerDigestUploadsName. \ - * {@link KnownLedgerDigestUploadsName} can be used interchangeably with LedgerDigestUploadsName, + * 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 - * **current** + * **default** */ -export type LedgerDigestUploadsName = string; +export type LongTermRetentionPolicyName = 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 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 BackupStorageRedundancy. \ - * {@link KnownBackupStorageRedundancy} can be used interchangeably with BackupStorageRedundancy, + * 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 - * **Geo** \ - * **Local** \ - * **Zone** \ - * **GeoZone** + * **Sunday** \ + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** */ -export type BackupStorageRedundancy = string; +export type DayOfWeek = string; -/** Known values of {@link DatabaseState} that the service accepts. */ -export enum KnownDatabaseState { - /** All */ - All = "All", - /** Live */ - Live = "Live", - /** Deleted */ - Deleted = "Deleted" +/** Known values of {@link ManagedShortTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedShortTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for DatabaseState. \ - * {@link KnownDatabaseState} can be used interchangeably with DatabaseState, + * 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 - * **All** \ - * **Live** \ - * **Deleted** + * **default** */ -export type DatabaseState = string; +export type ManagedShortTermRetentionPolicyName = string; -/** Known values of {@link ConnectionPolicyName} that the service accepts. */ -export enum KnownConnectionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link MoveOperationMode} that the service accepts. */ +export enum KnownMoveOperationMode { + /** Move */ + Move = "Move", + /** Copy */ + Copy = "Copy" } /** - * Defines values for ConnectionPolicyName. \ - * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, + * 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 ConnectionPolicyName = string; +export type MoveOperationMode = 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 QueryTimeGrainType} that the service accepts. */ +export enum KnownQueryTimeGrainType { + /** PT1H */ + PT1H = "PT1H", + /** P1D */ + P1D = "P1D" } /** - * Defines values for ServerConnectionType. \ - * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType, + * 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 - * **Default** \ - * **Redirect** \ - * **Proxy** + * **PT1H** \ + * **P1D** */ -export type ServerConnectionType = string; +export type QueryTimeGrainType = string; -/** Known values of {@link ReplicationMode} that the service accepts. */ -export enum KnownReplicationMode { - /** Async */ - Async = "Async", - /** Sync */ - Sync = "Sync" +/** 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 ReplicationMode. \ - * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode, + * 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 - * **Async** \ - * **Sync** + * **percentage** \ + * **KB** \ + * **microseconds** \ + * **count** */ -export type ReplicationMode = string; +export type QueryMetricUnitType = string; -/** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */ -export enum KnownAdvancedThreatProtectionName { +/** Known values of {@link RestoreDetailsName} that the service accepts. */ +export enum KnownRestoreDetailsName { /** Default */ Default = "Default" } /** - * Defines values for AdvancedThreatProtectionName. \ - * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName, + * Defines values for RestoreDetailsName. \ + * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Default** */ -export type AdvancedThreatProtectionName = string; +export type RestoreDetailsName = 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 ClientClassificationSource} that the service accepts. */ +export enum KnownClientClassificationSource { + /** None */ + None = "None", + /** Native */ + Native = "Native", + /** Recommended */ + Recommended = "Recommended", + /** MIP */ + MIP = "MIP" } /** - * Defines values for ReplicationState. \ - * {@link KnownReplicationState} can be used interchangeably with ReplicationState, + * Defines values for ClientClassificationSource. \ + * {@link KnownClientClassificationSource} can be used interchangeably with ClientClassificationSource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PENDING** \ - * **SEEDING** \ - * **CATCH_UP** \ - * **SUSPENDED** + * **None** \ + * **Native** \ + * **Recommended** \ + * **MIP** */ -export type ReplicationState = string; +export type ClientClassificationSource = 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 TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { + /** Current */ + Current = "current" } /** - * Defines values for ReplicationLinkType. \ - * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType, + * 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 - * **GEO** \ - * **NAMED** \ - * **STANDBY** + * **current** */ -export type ReplicationLinkType = string; +export type TransparentDataEncryptionName = string; -/** Known values of {@link MoveOperationMode} that the service accepts. */ -export enum KnownMoveOperationMode { - /** Move */ - Move = "Move", - /** Copy */ - Copy = "Copy" +/** 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 MoveOperationMode. \ - * {@link KnownMoveOperationMode} can be used interchangeably with MoveOperationMode, + * 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 - * **Move** \ - * **Copy** + * **Online** \ + * **Offline** \ + * **Shutdown** \ + * **Creating** \ + * **Inaccessible** \ + * **Restoring** \ + * **Updating** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** \ + * **DbMoving** \ + * **DbCopying** */ -export type MoveOperationMode = string; +export type ManagedDatabaseStatus = string; -/** Known values of {@link DtcName} that the service accepts. */ -export enum KnownDtcName { - /** Current */ - Current = "current" +/** 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 DtcName. \ - * {@link KnownDtcName} can be used interchangeably with DtcName, + * 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 - * **current** + * **Default** \ + * **RestoreExternalBackup** \ + * **PointInTimeRestore** \ + * **Recovery** \ + * **RestoreLongTermRetentionBackup** */ -export type DtcName = string; +export type ManagedDatabaseCreateMode = string; -/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ -export enum KnownDNSRefreshOperationStatus { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" +/** Known values of {@link ManagedInstanceAdministratorType} that the service accepts. */ +export enum KnownManagedInstanceAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for DNSRefreshOperationStatus. \ - * {@link KnownDNSRefreshOperationStatus} can be used interchangeably with DNSRefreshOperationStatus, + * 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 - * **Succeeded** \ - * **Failed** \ - * **InProgress** + * **ActiveDirectory** */ -export type DNSRefreshOperationStatus = string; +export type ManagedInstanceAdministratorType = string; -/** Known values of {@link SecondaryInstanceType} that the service accepts. */ -export enum KnownSecondaryInstanceType { - /** Geo */ - Geo = "Geo", - /** Standby */ - Standby = "Standby" +/** Known values of {@link AdministratorName} that the service accepts. */ +export enum KnownAdministratorName { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for SecondaryInstanceType. \ - * {@link KnownSecondaryInstanceType} can be used interchangeably with SecondaryInstanceType, + * 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 - * **Geo** \ - * **Standby** + * **ActiveDirectory** */ -export type SecondaryInstanceType = string; +export type AdministratorName = string; -/** Known values of {@link ReadWriteEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadWriteEndpointFailoverPolicy { - /** Manual */ - Manual = "Manual", - /** Automatic */ - Automatic = "Automatic" +/** Known values of {@link AuthenticationName} that the service accepts. */ +export enum KnownAuthenticationName { + /** Default */ + Default = "Default" } /** - * Defines values for ReadWriteEndpointFailoverPolicy. \ - * {@link KnownReadWriteEndpointFailoverPolicy} can be used interchangeably with ReadWriteEndpointFailoverPolicy, + * 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 - * **Manual** \ - * **Automatic** + * **Default** */ -export type ReadWriteEndpointFailoverPolicy = string; +export type AuthenticationName = string; -/** Known values of {@link ReadOnlyEndpointFailoverPolicy} that the service accepts. */ -export enum KnownReadOnlyEndpointFailoverPolicy { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" +/** Known values of {@link DtcName} that the service accepts. */ +export enum KnownDtcName { + /** Current */ + Current = "current" } /** - * Defines values for ReadOnlyEndpointFailoverPolicy. \ - * {@link KnownReadOnlyEndpointFailoverPolicy} can be used interchangeably with ReadOnlyEndpointFailoverPolicy, + * 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 - * **Disabled** \ - * **Enabled** + * **current** */ -export type ReadOnlyEndpointFailoverPolicy = string; +export type DtcName = string; -/** Known values of {@link InstanceFailoverGroupReplicationRole} that the service accepts. */ -export enum KnownInstanceFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link ManagedInstanceLongTermRetentionPolicyName} that the service accepts. */ +export enum KnownManagedInstanceLongTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for InstanceFailoverGroupReplicationRole. \ - * {@link KnownInstanceFailoverGroupReplicationRole} can be used interchangeably with InstanceFailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **default** */ -export type InstanceFailoverGroupReplicationRole = string; +export type ManagedInstanceLongTermRetentionPolicyName = string; -/** Known values of {@link RestoreDetailsName} that the service accepts. */ -export enum KnownRestoreDetailsName { - /** Default */ - Default = "Default" +/** 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 RestoreDetailsName. \ - * {@link KnownRestoreDetailsName} can be used interchangeably with RestoreDetailsName, + * 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 - * **Default** + * **NotStarted** \ + * **InProgress** \ + * **SlowedDown** \ + * **Completed** \ + * **Failed** \ + * **Canceled** */ -export type RestoreDetailsName = string; +export type Status = string; -/** Known values of {@link DatabaseIdentityType} that the service accepts. */ -export enum KnownDatabaseIdentityType { +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { /** None */ None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", /** UserAssigned */ - UserAssigned = "UserAssigned" + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" } /** - * Defines values for DatabaseIdentityType. \ - * {@link KnownDatabaseIdentityType} can be used interchangeably with DatabaseIdentityType, + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ - * **UserAssigned** + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** */ -export type DatabaseIdentityType = string; +export type IdentityType = string; -/** Known values of {@link CreateMode} that the service accepts. */ -export enum KnownCreateMode { +/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ +export enum KnownManagedServerCreateMode { /** 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" + PointInTimeRestore = "PointInTimeRestore" } /** - * Defines values for CreateMode. \ - * {@link KnownCreateMode} can be used interchangeably with CreateMode, + * 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** \ - * **Copy** \ - * **Secondary** \ - * **PointInTimeRestore** \ - * **Restore** \ - * **Recovery** \ - * **RestoreExternalBackup** \ - * **RestoreExternalBackupSecondary** \ - * **RestoreLongTermRetentionBackup** \ - * **OnlineSecondary** + * **PointInTimeRestore** */ -export type CreateMode = string; +export type ManagedServerCreateMode = string; -/** Known values of {@link SampleName} that the service accepts. */ -export enum KnownSampleName { - /** AdventureWorksLT */ - AdventureWorksLT = "AdventureWorksLT", - /** WideWorldImportersStd */ - WideWorldImportersStd = "WideWorldImportersStd", - /** WideWorldImportersFull */ - WideWorldImportersFull = "WideWorldImportersFull" +/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ +export enum KnownManagedInstanceLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for SampleName. \ - * {@link KnownSampleName} can be used interchangeably with SampleName, + * 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 - * **AdventureWorksLT** \ - * **WideWorldImportersStd** \ - * **WideWorldImportersFull** + * **LicenseIncluded** \ + * **BasePrice** */ -export type SampleName = string; +export type ManagedInstanceLicenseType = 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 HybridSecondaryUsage} that the service accepts. */ +export enum KnownHybridSecondaryUsage { + /** Active */ + Active = "Active", + /** Passive */ + Passive = "Passive" +} + +/** + * 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 + * **Active** \ + * **Passive** + */ +export type HybridSecondaryUsage = string; + +/** Known values of {@link HybridSecondaryUsageDetected} that the service accepts. */ +export enum KnownHybridSecondaryUsageDetected { + /** Active */ + Active = "Active", + /** Passive */ + Passive = "Passive" +} + +/** + * 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 + * **Active** \ + * **Passive** + */ +export type HybridSecondaryUsageDetected = string; + +/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ +export enum KnownManagedInstanceProxyOverride { + /** Proxy */ + Proxy = "Proxy", + /** Redirect */ + Redirect = "Redirect", + /** Default */ + Default = "Default" } /** - * Defines values for DatabaseStatus. \ - * {@link KnownDatabaseStatus} can be used interchangeably with DatabaseStatus, + * 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 - * **Online** \ - * **Restoring** \ - * **RecoveryPending** \ - * **Recovering** \ - * **Suspect** \ - * **Offline** \ - * **Standby** \ - * **Shutdown** \ - * **EmergencyMode** \ - * **AutoClosed** \ - * **Copying** \ - * **Creating** \ - * **Inaccessible** \ - * **OfflineSecondary** \ - * **Pausing** \ - * **Paused** \ - * **Resuming** \ - * **Scaling** \ - * **OfflineChangingDwPerformanceTiers** \ - * **OnlineChangingDwPerformanceTiers** \ - * **Disabled** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** + * **Proxy** \ + * **Redirect** \ + * **Default** */ -export type DatabaseStatus = string; +export type ManagedInstanceProxyOverride = 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 AdministratorType} that the service accepts. */ +export enum KnownAdministratorType { + /** ActiveDirectory */ + ActiveDirectory = "ActiveDirectory" } /** - * Defines values for CatalogCollationType. \ - * {@link KnownCatalogCollationType} can be used interchangeably with CatalogCollationType, + * 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 - * **DATABASE_DEFAULT** \ - * **SQL_Latin1_General_CP1_CI_AS** + * **ActiveDirectory** */ -export type CatalogCollationType = string; +export type AdministratorType = string; -/** Known values of {@link DatabaseLicenseType} that the service accepts. */ -export enum KnownDatabaseLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + /** User */ + User = "User", + /** Group */ + Group = "Group", + /** Application */ + Application = "Application" } /** - * Defines values for DatabaseLicenseType. \ - * {@link KnownDatabaseLicenseType} can be used interchangeably with DatabaseLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **User** \ + * **Group** \ + * **Application** */ -export type DatabaseLicenseType = string; +export type PrincipalType = string; -/** Known values of {@link DatabaseReadScale} that the service accepts. */ -export enum KnownDatabaseReadScale { +/** Known values of {@link ServicePrincipalType} that the service accepts. */ +export enum KnownServicePrincipalType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned" +} + +/** + * Defines values for ServicePrincipalType. \ + * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** + */ +export type ServicePrincipalType = string; + +/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ +export enum KnownExternalGovernanceStatus { /** Enabled */ Enabled = "Enabled", /** Disabled */ @@ -10779,476 +11313,428 @@ export enum KnownDatabaseReadScale { } /** - * Defines values for DatabaseReadScale. \ - * {@link KnownDatabaseReadScale} can be used interchangeably with DatabaseReadScale, + * 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 * **Enabled** \ * **Disabled** */ -export type DatabaseReadScale = string; +export type ExternalGovernanceStatus = 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 FreemiumType} that the service accepts. */ +export enum KnownFreemiumType { + /** Regular */ + Regular = "Regular", + /** Freemium */ + Freemium = "Freemium" } /** - * Defines values for SecondaryType. \ - * {@link KnownSecondaryType} can be used interchangeably with SecondaryType, + * 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 - * **Geo** \ - * **Named** \ - * **Standby** + * **Regular** \ + * **Freemium** */ -export type SecondaryType = string; +export type FreemiumType = string; -/** Known values of {@link DatabaseKeyType} that the service accepts. */ -export enum KnownDatabaseKeyType { - /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" +/** Known values of {@link AuthMetadataLookupModes} that the service accepts. */ +export enum KnownAuthMetadataLookupModes { + /** AzureAD */ + AzureAD = "AzureAD", + /** Paired */ + Paired = "Paired", + /** Windows */ + Windows = "Windows" } /** - * Defines values for DatabaseKeyType. \ - * {@link KnownDatabaseKeyType} can be used interchangeably with DatabaseKeyType, + * Defines values for AuthMetadataLookupModes. \ + * {@link KnownAuthMetadataLookupModes} can be used interchangeably with AuthMetadataLookupModes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureKeyVault** + * **AzureAD** \ + * **Paired** \ + * **Windows** */ -export type DatabaseKeyType = string; +export type AuthMetadataLookupModes = string; -/** Known values of {@link AlwaysEncryptedEnclaveType} that the service accepts. */ -export enum KnownAlwaysEncryptedEnclaveType { - /** Default */ - Default = "Default", - /** VBS */ - VBS = "VBS" +/** Known values of {@link ManagedInstanceDatabaseFormat} that the service accepts. */ +export enum KnownManagedInstanceDatabaseFormat { + /** AlwaysUpToDate */ + AlwaysUpToDate = "AlwaysUpToDate", + /** SQLServer2022 */ + SQLServer2022 = "SQLServer2022" } /** - * Defines values for AlwaysEncryptedEnclaveType. \ - * {@link KnownAlwaysEncryptedEnclaveType} can be used interchangeably with AlwaysEncryptedEnclaveType, + * Defines values for ManagedInstanceDatabaseFormat. \ + * {@link KnownManagedInstanceDatabaseFormat} can be used interchangeably with ManagedInstanceDatabaseFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** \ - * **VBS** + * **AlwaysUpToDate** \ + * **SQLServer2022** */ -export type AlwaysEncryptedEnclaveType = string; +export type ManagedInstanceDatabaseFormat = string; -/** Known values of {@link FreeLimitExhaustionBehavior} that the service accepts. */ -export enum KnownFreeLimitExhaustionBehavior { - /** AutoPause */ - AutoPause = "AutoPause", - /** BillOverUsage */ - BillOverUsage = "BillOverUsage" +/** 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 FreeLimitExhaustionBehavior. \ - * {@link KnownFreeLimitExhaustionBehavior} can be used interchangeably with FreeLimitExhaustionBehavior, + * 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 - * **AutoPause** \ - * **BillOverUsage** + * **avg** \ + * **min** \ + * **max** \ + * **stdev** \ + * **sum** */ -export type FreeLimitExhaustionBehavior = string; +export type AggregationFunctionType = 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 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 AvailabilityZoneType. \ - * {@link KnownAvailabilityZoneType} can be used interchangeably with AvailabilityZoneType, + * 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 - * **NoPreference** \ - * **1** \ - * **2** \ - * **3** + * **cpu** \ + * **io** \ + * **logIo** \ + * **duration** \ + * **dtu** */ -export type AvailabilityZoneType = string; +export type MetricType = string; -/** Known values of {@link ReplicaType} that the service accepts. */ -export enum KnownReplicaType { - /** Primary */ - Primary = "Primary", - /** ReadableSecondary */ - ReadableSecondary = "ReadableSecondary" +/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * 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 + * **Enabled** \ + * **Disabled** + */ +export type ManagedLedgerDigestUploadsState = string; + +/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ +export enum KnownManagedLedgerDigestUploadsName { + /** Current */ + Current = "current" +} + +/** + * 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 + * **current** + */ +export type ManagedLedgerDigestUploadsName = string; + +/** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */ +export enum KnownSecurityAlertPolicyNameAutoGenerated { + /** Default */ + Default = "Default" } /** - * Defines values for ReplicaType. \ - * {@link KnownReplicaType} can be used interchangeably with ReplicaType, + * 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 - * **Primary** \ - * **ReadableSecondary** + * **Default** */ -export type ReplicaType = string; +export type SecurityAlertPolicyNameAutoGenerated = string; -/** Known values of {@link ElasticPoolState} that the service accepts. */ -export enum KnownElasticPoolState { - /** Creating */ - Creating = "Creating", - /** Ready */ - Ready = "Ready", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link OperationOrigin} that the service accepts. */ +export enum KnownOperationOrigin { + /** User */ + User = "user", + /** System */ + System = "system" } /** - * Defines values for ElasticPoolState. \ - * {@link KnownElasticPoolState} can be used interchangeably with ElasticPoolState, + * 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** \ - * **Ready** \ - * **Disabled** + * **user** \ + * **system** */ -export type ElasticPoolState = string; +export type OperationOrigin = string; -/** Known values of {@link ElasticPoolLicenseType} that the service accepts. */ -export enum KnownElasticPoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** 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 ElasticPoolLicenseType. \ - * {@link KnownElasticPoolLicenseType} can be used interchangeably with ElasticPoolLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** */ -export type ElasticPoolLicenseType = string; +export type PrivateLinkServiceConnectionStateStatus = 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 PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */ +export enum KnownPrivateLinkServiceConnectionStateActionsRequire { + /** None */ + None = "None" } /** - * Defines values for ManagedDatabaseStatus. \ - * {@link KnownManagedDatabaseStatus} can be used interchangeably with ManagedDatabaseStatus, + * 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 - * **Online** \ - * **Offline** \ - * **Shutdown** \ - * **Creating** \ - * **Inaccessible** \ - * **Restoring** \ - * **Updating** \ - * **Stopping** \ - * **Stopped** \ - * **Starting** \ - * **DbMoving** \ - * **DbCopying** + * **None** */ -export type ManagedDatabaseStatus = string; +export type PrivateLinkServiceConnectionStateActionsRequire = 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 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 ManagedDatabaseCreateMode. \ - * {@link KnownManagedDatabaseCreateMode} can be used interchangeably with ManagedDatabaseCreateMode, + * 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 - * **Default** \ - * **RestoreExternalBackup** \ - * **PointInTimeRestore** \ - * **Recovery** \ - * **RestoreLongTermRetentionBackup** + * **Approving** \ + * **Ready** \ + * **Dropping** \ + * **Failed** \ + * **Rejecting** */ -export type ManagedDatabaseCreateMode = string; +export type PrivateEndpointProvisioningState = 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 ReplicationState} that the service accepts. */ +export enum KnownReplicationState { + /** Pending */ + Pending = "PENDING", + /** Seeding */ + Seeding = "SEEDING", + /** CatchUP */ + CatchUP = "CATCH_UP", + /** Suspended */ + Suspended = "SUSPENDED" } /** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * 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 - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** */ -export type IdentityType = string; +export type ReplicationState = 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 ReplicationLinkType} that the service accepts. */ +export enum KnownReplicationLinkType { + /** GEO */ + GEO = "GEO", + /** Named */ + Named = "NAMED", + /** Standby */ + Standby = "STANDBY" } /** - * Defines values for ManagedInstancePropertiesProvisioningState. \ - * {@link KnownManagedInstancePropertiesProvisioningState} can be used interchangeably with ManagedInstancePropertiesProvisioningState, + * 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 - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Unknown** \ - * **Succeeded** \ - * **Failed** \ - * **Accepted** \ - * **Created** \ - * **Deleted** \ - * **Unrecognized** \ - * **Running** \ - * **Canceled** \ - * **NotSpecified** \ - * **Registering** \ - * **TimedOut** + * **GEO** \ + * **NAMED** \ + * **STANDBY** */ -export type ManagedInstancePropertiesProvisioningState = string; +export type ReplicationLinkType = string; -/** Known values of {@link ManagedServerCreateMode} that the service accepts. */ -export enum KnownManagedServerCreateMode { - /** Default */ - Default = "Default", - /** PointInTimeRestore */ - PointInTimeRestore = "PointInTimeRestore" +/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ +export enum KnownServerConfigurationOptionName { + /** AllowPolybaseExport */ + AllowPolybaseExport = "allowPolybaseExport" } /** - * Defines values for ManagedServerCreateMode. \ - * {@link KnownManagedServerCreateMode} can be used interchangeably with ManagedServerCreateMode, + * 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 - * **Default** \ - * **PointInTimeRestore** + * **allowPolybaseExport** */ -export type ManagedServerCreateMode = string; +export type ServerConfigurationOptionName = string; -/** Known values of {@link ManagedInstanceLicenseType} that the service accepts. */ -export enum KnownManagedInstanceLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ServerConnectionType} that the service accepts. */ +export enum KnownServerConnectionType { + /** Default */ + Default = "Default", + /** Redirect */ + Redirect = "Redirect", + /** Proxy */ + Proxy = "Proxy" } /** - * Defines values for ManagedInstanceLicenseType. \ - * {@link KnownManagedInstanceLicenseType} can be used interchangeably with ManagedInstanceLicenseType, + * 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 - * **LicenseIncluded** \ - * **BasePrice** + * **Default** \ + * **Redirect** \ + * **Proxy** */ -export type ManagedInstanceLicenseType = string; +export type ServerConnectionType = string; -/** Known values of {@link ManagedInstanceProxyOverride} that the service accepts. */ -export enum KnownManagedInstanceProxyOverride { - /** Proxy */ - Proxy = "Proxy", - /** Redirect */ - Redirect = "Redirect", +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { /** Default */ - Default = "Default" + Default = "default" } /** - * Defines values for ManagedInstanceProxyOverride. \ - * {@link KnownManagedInstanceProxyOverride} can be used interchangeably with ManagedInstanceProxyOverride, + * 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 - * **Proxy** \ - * **Redirect** \ - * **Default** + * **default** */ -export type ManagedInstanceProxyOverride = string; +export type ConnectionPolicyName = 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 DevOpsAuditingSettingsName} that the service accepts. */ +export enum KnownDevOpsAuditingSettingsName { + /** Default */ + Default = "Default" } /** - * Defines values for PrincipalType. \ - * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, + * 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 - * **User** \ - * **Group** \ - * **Application** + * **Default** */ -export type PrincipalType = string; +export type DevOpsAuditingSettingsName = string; -/** Known values of {@link ServicePrincipalType} that the service accepts. */ -export enum KnownServicePrincipalType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned" +/** Known values of {@link ServerTrustGroupPropertiesTrustScopesItem} that the service accepts. */ +export enum KnownServerTrustGroupPropertiesTrustScopesItem { + /** GlobalTransactions */ + GlobalTransactions = "GlobalTransactions", + /** ServiceBroker */ + ServiceBroker = "ServiceBroker" } /** - * Defines values for ServicePrincipalType. \ - * {@link KnownServicePrincipalType} can be used interchangeably with ServicePrincipalType, + * 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 - * **None** \ - * **SystemAssigned** + * **GlobalTransactions** \ + * **ServiceBroker** */ -export type ServicePrincipalType = string; +export type ServerTrustGroupPropertiesTrustScopesItem = 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 ServerPublicNetworkAccessFlag} that the service accepts. */ +export enum KnownServerPublicNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** SecuredByPerimeter */ + SecuredByPerimeter = "SecuredByPerimeter" } /** - * Defines values for AggregationFunctionType. \ - * {@link KnownAggregationFunctionType} can be used interchangeably with AggregationFunctionType, + * Defines values for ServerPublicNetworkAccessFlag. \ + * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **avg** \ - * **min** \ - * **max** \ - * **stdev** \ - * **sum** + * **Enabled** \ + * **Disabled** \ + * **SecuredByPerimeter** */ -export type AggregationFunctionType = string; +export type ServerPublicNetworkAccessFlag = 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 ServerWorkspaceFeature} that the service accepts. */ +export enum KnownServerWorkspaceFeature { + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for MetricType. \ - * {@link KnownMetricType} can be used interchangeably with MetricType, + * Defines values for ServerWorkspaceFeature. \ + * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **cpu** \ - * **io** \ - * **logIo** \ - * **duration** \ - * **dtu** + * **Connected** \ + * **Disconnected** */ -export type MetricType = string; +export type ServerWorkspaceFeature = string; -/** Known values of {@link ManagedLedgerDigestUploadsState} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsState { +/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ +export enum KnownServerNetworkAccessFlag { /** Enabled */ Enabled = "Enabled", /** Disabled */ @@ -11256,44 +11742,32 @@ export enum KnownManagedLedgerDigestUploadsState { } /** - * Defines values for ManagedLedgerDigestUploadsState. \ - * {@link KnownManagedLedgerDigestUploadsState} can be used interchangeably with ManagedLedgerDigestUploadsState, + * Defines values for ServerNetworkAccessFlag. \ + * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ * **Disabled** */ -export type ManagedLedgerDigestUploadsState = string; - -/** Known values of {@link ManagedLedgerDigestUploadsName} that the service accepts. */ -export enum KnownManagedLedgerDigestUploadsName { - /** Current */ - Current = "current" -} - -/** - * 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 - * **current** - */ -export type ManagedLedgerDigestUploadsName = string; +export type ServerNetworkAccessFlag = string; -/** Known values of {@link ServerConfigurationOptionName} that the service accepts. */ -export enum KnownServerConfigurationOptionName { - /** AllowPolybaseExport */ - AllowPolybaseExport = "allowPolybaseExport" +/** Known values of {@link SqlAgentConfigurationPropertiesState} that the service accepts. */ +export enum KnownSqlAgentConfigurationPropertiesState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for ServerConfigurationOptionName. \ - * {@link KnownServerConfigurationOptionName} can be used interchangeably with ServerConfigurationOptionName, + * 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 - * **allowPolybaseExport** + * **Enabled** \ + * **Disabled** */ -export type ServerConfigurationOptionName = string; +export type SqlAgentConfigurationPropertiesState = string; /** Known values of {@link StartStopScheduleName} that the service accepts. */ export enum KnownStartStopScheduleName { @@ -11310,426 +11784,281 @@ export enum KnownStartStopScheduleName { */ export type StartStopScheduleName = 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 SQLVulnerabilityAssessmentName. \ - * {@link KnownSQLVulnerabilityAssessmentName} can be used interchangeably with SQLVulnerabilityAssessmentName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default** - */ -export type SQLVulnerabilityAssessmentName = string; - -/** Known values of {@link RuleStatus} that the service accepts. */ -export enum KnownRuleStatus { - /** NonFinding */ - NonFinding = "NonFinding", - /** Finding */ - Finding = "Finding", - /** InternalError */ - InternalError = "InternalError" +/** Known values of {@link SyncAgentState} that the service accepts. */ +export enum KnownSyncAgentState { + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** NeverConnected */ + NeverConnected = "NeverConnected" } /** - * Defines values for RuleStatus. \ - * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * 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 - * **NonFinding** \ - * **Finding** \ - * **InternalError** + * **Online** \ + * **Offline** \ + * **NeverConnected** */ -export type RuleStatus = string; - -/** Known values of {@link RuleSeverity} that the service accepts. */ -export enum KnownRuleSeverity { - /** High */ - High = "High", - /** Medium */ - Medium = "Medium", - /** Low */ - Low = "Low", - /** Informational */ - Informational = "Informational", - /** Obsolete */ - Obsolete = "Obsolete" +export type SyncAgentState = string; + +/** Known values of {@link SyncMemberDbType} that the service accepts. */ +export enum KnownSyncMemberDbType { + /** AzureSqlDatabase */ + AzureSqlDatabase = "AzureSqlDatabase", + /** SqlServerDatabase */ + SqlServerDatabase = "SqlServerDatabase" } /** - * Defines values for RuleSeverity. \ - * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, + * 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 - * **High** \ - * **Medium** \ - * **Low** \ - * **Informational** \ - * **Obsolete** + * **AzureSqlDatabase** \ + * **SqlServerDatabase** */ -export type RuleSeverity = string; +export type SyncMemberDbType = 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 SyncConflictResolutionPolicy} that the service accepts. */ +export enum KnownSyncConflictResolutionPolicy { + /** HubWin */ + HubWin = "HubWin", + /** MemberWin */ + MemberWin = "MemberWin" } /** - * Defines values for RuleType. \ - * {@link KnownRuleType} can be used interchangeably with RuleType, + * 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 - * **Binary** \ - * **BaselineExpected** \ - * **PositiveList** \ - * **NegativeList** + * **HubWin** \ + * **MemberWin** */ -export type RuleType = string; +export type SyncConflictResolutionPolicy = string; -/** Known values of {@link SqlVulnerabilityAssessmentName} that the service accepts. */ -export enum KnownSqlVulnerabilityAssessmentName { - /** Default */ - Default = "default" +/** 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 SqlVulnerabilityAssessmentName. \ - * {@link KnownSqlVulnerabilityAssessmentName} can be used interchangeably with SqlVulnerabilityAssessmentName, + * 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 - * **default** + * **NotReady** \ + * **Error** \ + * **Warning** \ + * **Progressing** \ + * **Good** */ -export type SqlVulnerabilityAssessmentName = string; +export type SyncGroupState = string; -/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ -export enum KnownServerPublicNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** SecuredByPerimeter */ - SecuredByPerimeter = "SecuredByPerimeter" +/** 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 ServerPublicNetworkAccessFlag. \ - * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, + * 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 - * **Enabled** \ - * **Disabled** \ - * **SecuredByPerimeter** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type ServerPublicNetworkAccessFlag = string; +export type SyncGroupsType = string; -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected" +/** 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 ServerWorkspaceFeature. \ - * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, + * 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 - * **Connected** \ - * **Disconnected** + * **All** \ + * **Error** \ + * **Warning** \ + * **Success** */ -export type ServerWorkspaceFeature = string; +export type SyncGroupLogType = string; -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link SyncDirection} that the service accepts. */ +export enum KnownSyncDirection { + /** Bidirectional */ + Bidirectional = "Bidirectional", + /** OneWayMemberToHub */ + OneWayMemberToHub = "OneWayMemberToHub", + /** OneWayHubToMember */ + OneWayHubToMember = "OneWayHubToMember" } /** - * Defines values for ServerNetworkAccessFlag. \ - * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, + * 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 - * **Enabled** \ - * **Disabled** + * **Bidirectional** \ + * **OneWayMemberToHub** \ + * **OneWayHubToMember** */ -export type ServerNetworkAccessFlag = string; +export type SyncDirection = string; -/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ -export enum KnownExternalGovernanceStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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 ExternalGovernanceStatus. \ - * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, + * 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 - * **Enabled** \ - * **Disabled** + * **SyncInProgress** \ + * **SyncSucceeded** \ + * **SyncFailed** \ + * **DisabledTombstoneCleanup** \ + * **DisabledBackupRestore** \ + * **SyncSucceededWithWarnings** \ + * **SyncCancelling** \ + * **SyncCancelled** \ + * **UnProvisioned** \ + * **Provisioning** \ + * **Provisioned** \ + * **ProvisionFailed** \ + * **DeProvisioning** \ + * **DeProvisioned** \ + * **DeProvisionFailed** \ + * **Reprovisioning** \ + * **ReprovisionFailed** \ + * **UnReprovisioned** */ -export type ExternalGovernanceStatus = string; +export type SyncMemberState = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link DNSRefreshOperationStatus} that the service accepts. */ +export enum KnownDNSRefreshOperationStatus { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, + * 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 - * **Primary** \ - * **Secondary** + * **Succeeded** \ + * **Failed** \ + * **InProgress** */ -export type FailoverGroupReplicationRole = 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" @@ -11738,8 +12067,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" @@ -11778,12 +12107,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. */ @@ -11793,23 +12128,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" @@ -11821,8 +12139,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" @@ -11830,97 +12150,168 @@ export type ReplicationRole = | "NonReadableSecondary" | "Source" | "Copy"; -/** Defines values for SqlVulnerabilityAssessmentState. */ -export type SqlVulnerabilityAssessmentState = "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 CheckNameAvailabilityReason. */ export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists"; /** Optional parameters. */ -export interface DataMaskingPoliciesCreateOrUpdateOptionalParams +export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; +/** Contains response data for the listByDatabase operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DataMaskingPoliciesGetOptionalParams +export interface BackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface DataMaskingRulesCreateOrUpdateOptionalParams +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 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; + +/** Optional parameters. */ +export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; + +/** Optional parameters. */ +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; @@ -11929,181 +12320,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 DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; /** 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 DataMaskingRulesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the import operation. */ -export type DatabasesImportResponse = ImportExportOperationResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DataMaskingRulesListByDatabaseNextResponse = DataMaskingRuleListResult; /** Optional parameters. */ -export interface DatabasesRenameOptionalParams +export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; + /** 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 DataWarehouseUserActivitiesGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the pause operation. */ -export type DatabasesPauseResponse = Database; +/** Contains response data for the get operation. */ +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; /** 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 DataWarehouseUserActivitiesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the resume operation. */ -export type DatabasesResumeResponse = Database; +/** Contains response data for the listByDatabaseNext operation. */ +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; /** 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 DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolOptionalParams +export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPool operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerOptionalParams +export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServer operation. */ -export type DatabasesListInaccessibleByServerResponse = DatabaseListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface DatabasesListByServerNextOptionalParams +export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface DatabasesListByElasticPoolNextOptionalParams +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 DatabaseAdvisorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByElasticPoolNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult; +/** Contains response data for the get operation. */ +export type DatabaseAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface DatabasesListInaccessibleByServerNextOptionalParams +export interface DatabaseAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByServerNext operation. */ -export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult; +/** Contains response data for the update operation. */ +export type DatabaseAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface ElasticPoolsListMetricsOptionalParams +export interface DatabaseAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetrics operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult; +/** Contains response data for the get operation. */ +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface ElasticPoolsListMetricDefinitionsOptionalParams +export interface DatabaseAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listMetricDefinitions operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult; +/** Contains response data for the update operation. */ +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning; /** Optional parameters. */ -export interface ElasticPoolsListByServerOptionalParams +export interface DatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; + /** 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 listByServer operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult; +/** Contains response data for the listByDatabase operation. */ +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ElasticPoolsGetOptionalParams +export interface DatabaseColumnsListByTableOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByTable operation. */ +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult; + +/** Optional parameters. */ +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; @@ -12112,7 +12510,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; @@ -12120,11 +12518,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; @@ -12132,237 +12538,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 DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; + +/** Optional parameters. */ +export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabaseNext operation. */ +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult; /** Optional parameters. */ -export interface DatabaseAdvisorsUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseAdvisorsUpdateResponse = Advisor; +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface DatabaseAutomaticTuningGetOptionalParams +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 DatabaseColumnsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the listByBaseline operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface DatabaseColumnsListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabaseColumnsListByTableNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface DatabaseRecommendedActionsListByDatabaseAdvisorOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseAdvisor operation. */ -export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = RecommendedAction[]; - /** Optional parameters. */ -export interface DatabaseRecommendedActionsGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseRecommendedActionsGetResponse = RecommendedAction; +/** Contains response data for the listByBaselineNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface DatabaseRecommendedActionsUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction; +/** Contains response data for the listByScan operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ -export interface DatabaseSchemasGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByScanNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface DatabaseSchemasListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesGetOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy; +export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy; +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabase operation. */ -export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult; +export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; + +/** Optional parameters. */ +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 @@ -12389,64 +12796,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 {} @@ -12468,6 +12848,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 {} @@ -12476,49 +12865,81 @@ export interface DatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalP export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesGetOptionalParams +export interface DatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseOptionalParams +export interface DatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; /** Optional parameters. */ -export interface DataWarehouseUserActivitiesListByDatabaseNextOptionalParams +export interface DatabaseVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult; +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface DeletedServersListOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesListByServerOptionalParams + extends coreClient.OperationOptions { + skipToken?: string; +} -/** Contains response data for the list operation. */ -export type DeletedServersListResponse = DeletedServerListResult; +/** Contains response data for the listByServer operation. */ +export type DatabasesListByServerResponse = DatabaseListResult; /** Optional parameters. */ -export interface DeletedServersGetOptionalParams - extends coreClient.OperationOptions {} +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 DeletedServersGetResponse = DeletedServer; +export type DatabasesGetResponse = Database; /** Optional parameters. */ -export interface DeletedServersListByLocationOptionalParams - extends coreClient.OperationOptions {} +export interface DatabasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByLocation operation. */ -export type DeletedServersListByLocationResponse = DeletedServerListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatabasesCreateOrUpdateResponse = Database; + +/** Optional parameters. */ +export interface DatabasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DeletedServersRecoverOptionalParams +export interface DatabasesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12526,57 +12947,62 @@ export interface DeletedServersRecoverOptionalParams resumeFrom?: string; } -/** Contains response data for the recover operation. */ -export type DeletedServersRecoverResponse = DeletedServer; - -/** Optional parameters. */ -export interface DeletedServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DeletedServersListNextResponse = DeletedServerListResult; +/** Contains response data for the update operation. */ +export type DatabasesUpdateResponse = Database; /** Optional parameters. */ -export interface DeletedServersListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type DeletedServersListByLocationNextResponse = DeletedServerListResult; +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 ElasticPoolOperationsCancelOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the export operation. */ +export type DatabasesExportResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface ElasticPoolOperationsListByElasticPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByElasticPool operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult; +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; @@ -12584,11 +13010,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; @@ -12597,81 +13023,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; @@ -12679,53 +13087,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; @@ -12734,10 +13128,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; @@ -12746,7 +13140,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; @@ -12755,75 +13149,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; - -/** Optional parameters. */ -export interface JobExecutionsListByAgentOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; +/** Contains response data for the listByElasticPoolNext operation. */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult; + +/** Optional parameters. */ +export interface ElasticPoolsListByServerOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; } -/** 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; @@ -12831,40 +13214,32 @@ 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 {} +export interface ElasticPoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type JobExecutionsGetResponse = JobExecution; +/** Contains response data for the update operation. */ +export type ElasticPoolsUpdateResponse = ElasticPool; /** Optional parameters. */ -export interface JobExecutionsCreateOrUpdateOptionalParams +export interface ElasticPoolsFailoverOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -12872,279 +13247,281 @@ export interface JobExecutionsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution; - /** Optional parameters. */ -export interface JobExecutionsListByAgentNextOptionalParams +export interface ElasticPoolsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; +/** Contains response data for the listByServerNext operation. */ +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult; /** Optional parameters. */ -export interface JobExecutionsListByJobNextOptionalParams +export interface EncryptionProtectorsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult; +/** Contains response data for the listByServer operation. */ +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult; /** Optional parameters. */ -export interface JobsListByAgentOptionalParams +export interface EncryptionProtectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobsListByAgentResponse = JobListResult; - -/** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} - /** Contains response data for the get operation. */ -export type JobsGetResponse = Job; +export type EncryptionProtectorsGetResponse = EncryptionProtector; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface EncryptionProtectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type JobsCreateOrUpdateResponse = Job; +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector; /** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} +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 JobsListByAgentNextOptionalParams +export interface EncryptionProtectorsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobsListByAgentNextResponse = JobListResult; +/** Contains response data for the listByServerNext operation. */ +export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult; /** Optional parameters. */ -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; -} +export interface EndpointCertificatesListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecution operation. */ -export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the listByInstance operation. */ +export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface JobStepExecutionsGetOptionalParams +export interface EndpointCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStepExecutionsGetResponse = JobExecution; +export type EndpointCertificatesGetResponse = EndpointCertificate; /** Optional parameters. */ -export interface JobStepExecutionsListByJobExecutionNextOptionalParams +export interface EndpointCertificatesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; /** Optional parameters. */ -export interface JobStepsListByVersionOptionalParams +export interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByVersion operation. */ -export type JobStepsListByVersionResponse = JobStepListResult; +/** Contains response data for the listByServer operation. */ +export type FailoverGroupsListByServerResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface JobStepsGetByVersionOptionalParams +export interface FailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByVersion operation. */ -export type JobStepsGetByVersionResponse = JobStep; +/** Contains response data for the get operation. */ +export type FailoverGroupsGetResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsListByJobOptionalParams - 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 listByJob operation. */ -export type JobStepsListByJobResponse = JobStepListResult; +/** Contains response data for the createOrUpdate operation. */ +export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsGetOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the get operation. */ -export type JobStepsGetResponse = JobStep; +/** Optional parameters. */ +export interface FailoverGroupsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type FailoverGroupsUpdateResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type JobStepsCreateOrUpdateResponse = JobStep; +/** Contains response data for the failover operation. */ +export type FailoverGroupsFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsListByVersionNextOptionalParams - 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 listByVersionNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult; +/** Contains response data for the tryPlannedBeforeForcedFailover operation. */ +export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; /** Optional parameters. */ -export interface JobStepsListByJobNextOptionalParams +export interface FailoverGroupsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobStepsListByJobNextResponse = JobStepListResult; +/** Contains response data for the listByServerNext operation. */ +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface FirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecution operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; +/** Contains response data for the listByServer operation. */ +export type FirewallRulesListByServerResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepOptionalParams - extends coreClient.OperationOptions { - /** The number of elements in the collection to skip. */ - skip?: number; - /** If specified, only job executions created at or after the specified time are included. */ - createTimeMin?: Date; - /** If specified, only job executions created before the specified time are included. */ - createTimeMax?: Date; - /** If specified, only job executions completed at or after the specified time are included. */ - endTimeMin?: Date; - /** If specified, only job executions completed before the specified time are included. */ - endTimeMax?: Date; - /** If specified, only active or only completed job executions are included. */ - isActive?: boolean; - /** The number of elements to return from the collection. */ - top?: number; -} +export interface FirewallRulesReplaceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByStep operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; +/** Contains response data for the replace operation. */ +export type FirewallRulesReplaceResponse = FirewallRule; /** Optional parameters. */ -export interface JobTargetExecutionsGetOptionalParams +export interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution; +export type FirewallRulesGetResponse = FirewallRule; /** Optional parameters. */ -export interface JobTargetExecutionsListByJobExecutionNextOptionalParams +export interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobExecutionNext operation. */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; +/** Contains response data for the createOrUpdate operation. */ +export type FirewallRulesCreateOrUpdateResponse = FirewallRule; /** Optional parameters. */ -export interface JobTargetExecutionsListByStepNextOptionalParams +export interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByStepNext operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; +/** Optional parameters. */ +export interface FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult; /** Optional parameters. */ -export interface JobTargetGroupsListByAgentOptionalParams +export interface GeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgent operation. */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; +/** Contains response data for the list operation. */ +export type GeoBackupPoliciesListResponse = GeoBackupPolicyListResult; /** Optional parameters. */ -export interface JobTargetGroupsGetOptionalParams +export interface GeoBackupPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobTargetGroupsGetResponse = JobTargetGroup; +export type GeoBackupPoliciesGetResponse = GeoBackupPolicy; /** Optional parameters. */ -export interface JobTargetGroupsCreateOrUpdateOptionalParams +export interface GeoBackupPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; +export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; /** Optional parameters. */ -export interface JobTargetGroupsDeleteOptionalParams +export interface GeoBackupPoliciesListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type GeoBackupPoliciesListNextResponse = GeoBackupPolicyListResult; + /** Optional parameters. */ -export interface JobTargetGroupsListByAgentNextOptionalParams +export interface IPv6FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAgentNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; +/** Contains response data for the listByServer operation. */ +export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface JobVersionsListByJobOptionalParams +export interface IPv6FirewallRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult; +/** Contains response data for the get operation. */ +export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface JobVersionsGetOptionalParams +export interface IPv6FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JobVersionsGetResponse = JobVersion; +/** Contains response data for the createOrUpdate operation. */ +export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; /** Optional parameters. */ -export interface JobVersionsListByJobNextOptionalParams +export interface IPv6FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult; +/** Optional parameters. */ +export interface IPv6FirewallRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; /** Optional parameters. */ -export interface CapabilitiesListByLocationOptionalParams - extends coreClient.OperationOptions { - /** If specified, restricts the response to only include the selected item. */ - include?: CapabilityGroup; -} +export interface InstanceFailoverGroupsListByLocationOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities; +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface LongTermRetentionPoliciesGetOptionalParams +export interface InstanceFailoverGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13153,49 +13530,71 @@ export interface LongTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy; +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface InstanceFailoverGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult; +/** Optional parameters. */ +export interface InstanceFailoverGroupsFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the failover operation. */ +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; +/** Contains response data for the forceFailoverAllowDataLoss operation. */ +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; /** Optional parameters. */ -export interface MaintenanceWindowOptionsGetOptionalParams +export interface InstanceFailoverGroupsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; +/** Contains response data for the listByLocationNext operation. */ +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; /** Optional parameters. */ -export interface MaintenanceWindowsGetOptionalParams +export interface InstancePoolsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type MaintenanceWindowsGetResponse = MaintenanceWindows; +/** Contains response data for the list operation. */ +export type InstancePoolsListResponse = InstancePoolListResult; /** Optional parameters. */ -export interface MaintenanceWindowsCreateOrUpdateOptionalParams +export interface InstancePoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroup operation. */ +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult; + /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesGetOptionalParams +export interface InstancePoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; +export type InstancePoolsGetResponse = InstancePool; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface InstancePoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13204,10 +13603,10 @@ export interface ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; +export type InstancePoolsCreateOrUpdateResponse = InstancePool; /** Optional parameters. */ -export interface ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface InstancePoolsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13215,459 +13614,506 @@ 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 - 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 listByDatabase operation. */ -export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; - /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableOptionalParams +export interface InstancePoolsUpdateOptionalParams 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 update operation. */ +export type InstancePoolsUpdateResponse = InstancePool; /** Optional parameters. */ -export interface ManagedDatabaseColumnsGetOptionalParams +export interface InstancePoolsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; +/** Contains response data for the listNext operation. */ +export type InstancePoolsListNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams +export interface InstancePoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult; /** Optional parameters. */ -export interface ManagedDatabaseColumnsListByTableNextOptionalParams +export interface JobAgentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTableNext operation. */ -export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; +/** Contains response data for the listByServer operation. */ +export type JobAgentsListByServerResponse = JobAgentListResult; /** Optional parameters. */ -export interface ManagedDatabaseQueriesGetOptionalParams +export interface JobAgentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; +export type JobAgentsGetResponse = JobAgent; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryOptionalParams +export interface JobAgentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Start time for observed period. */ - startTime?: string; - /** End time for observed period. */ - endTime?: string; - /** The time step to be used to summarize the metric values. */ - interval?: QueryTimeGrainType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByQuery operation. */ -export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; +/** Contains response data for the createOrUpdate operation. */ +export type JobAgentsCreateOrUpdateResponse = JobAgent; /** Optional parameters. */ -export interface ManagedDatabaseQueriesListByQueryNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByQueryNext operation. */ -export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; +export interface JobAgentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseOptionalParams +export interface JobAgentsUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; +/** Contains response data for the update operation. */ +export type JobAgentsUpdateResponse = JobAgent; /** Optional parameters. */ -export interface ManagedDatabaseSchemasGetOptionalParams +export interface JobAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; +/** Contains response data for the listByServerNext operation. */ +export type JobAgentsListByServerNextResponse = JobAgentListResult; /** Optional parameters. */ -export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams +export interface JobCredentialsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; +/** Contains response data for the listByAgent operation. */ +export type JobCredentialsListByAgentResponse = JobCredentialListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams +export interface JobCredentialsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; +export type JobCredentialsGetResponse = JobCredential; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams +export interface JobCredentialsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; +export type JobCredentialsCreateOrUpdateResponse = JobCredential; /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams +export interface JobCredentialsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; - /** Optional parameters. */ -export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams +export interface JobCredentialsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobCredentialsListByAgentNextResponse = JobCredentialListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams +export interface JobExecutionsListByAgentOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; /** The number of elements in the collection to skip. */ skip?: number; - /** An opaque token that identifies a starting point in the collection. */ - skiptoken?: string; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; /** The number of elements to return from the collection. */ top?: number; } -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; +/** Contains response data for the listByAgent operation. */ +export type JobExecutionsListByAgentResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams +export interface JobExecutionsListByJobOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} + +/** Contains response data for the listByJob operation. */ +export type JobExecutionsListByJobResponse = JobExecutionListResult; + +/** Optional parameters. */ +export interface JobExecutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; +/** Contains response data for the get operation. */ +export type JobExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaOptionalParams +export interface JobExecutionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listBySchema operation. */ -export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult; +/** Contains response data for the createOrUpdate operation. */ +export type JobExecutionsCreateOrUpdateResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseTablesGetOptionalParams +export interface JobExecutionsCancelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTablesGetResponse = DatabaseTable; +/** Optional parameters. */ +export interface JobExecutionsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type JobExecutionsCreateResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseTablesListBySchemaNextOptionalParams +export interface JobExecutionsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySchemaNext operation. */ -export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionGetOptionalParams +export interface JobExecutionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByJobNext operation. */ +export type JobExecutionsListByJobNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionCreateOrUpdateOptionalParams +export interface JobPrivateEndpointsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption; +/** Contains response data for the listByAgent operation. */ +export type JobPrivateEndpointsListByAgentResponse = JobPrivateEndpointListResult; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseOptionalParams +export interface JobPrivateEndpointsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the get operation. */ +export type JobPrivateEndpointsGetResponse = JobPrivateEndpoint; /** Optional parameters. */ -export interface ManagedDatabaseTransparentDataEncryptionListByDatabaseNextOptionalParams +export interface JobPrivateEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait 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 JobPrivateEndpointsCreateOrUpdateResponse = JobPrivateEndpoint; + +/** Optional parameters. */ +export interface JobPrivateEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait 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 JobPrivateEndpointsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobPrivateEndpointsListByAgentNextResponse = JobPrivateEndpointListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetOptionalParams +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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +export type JobStepExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface JobStepExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface JobStepsListByJobOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByJob operation. */ +export type JobStepsListByJobResponse = JobStepListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsGetOptionalParams +export interface JobStepsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment; +export type JobStepsGetResponse = JobStep; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateOptionalParams +export interface JobStepsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment; +export type JobStepsCreateOrUpdateResponse = JobStep; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsDeleteOptionalParams +export interface JobStepsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseOptionalParams +export interface JobStepsListByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the listByVersion operation. */ +export type JobStepsListByVersionResponse = JobStepListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextOptionalParams +export interface JobStepsGetByVersionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult; +/** Contains response data for the getByVersion operation. */ +export type JobStepsGetByVersionResponse = JobStep; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams +export interface JobStepsListByJobNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByJobNext operation. */ +export type JobStepsListByJobNextResponse = JobStepListResult; + +/** Optional parameters. */ +export interface JobStepsListByVersionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByVersionNext operation. */ +export type JobStepsListByVersionNextResponse = JobStepListResult; + +/** Optional parameters. */ +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; } +/** Contains response data for the listByStep operation. */ +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult; + /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams +export interface JobTargetExecutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the export operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; +/** Contains response data for the get operation. */ +export type JobTargetExecutionsGetResponse = JobExecution; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface JobTargetExecutionsListByJobExecutionOptionalParams + extends coreClient.OperationOptions { + /** The number of elements in the collection to skip. */ + skip?: number; + /** If specified, only job executions created at or after the specified time are included. */ + createTimeMin?: Date; + /** If specified, only job executions created before the specified time are included. */ + createTimeMax?: Date; + /** If specified, only job executions completed at or after the specified time are included. */ + endTimeMin?: Date; + /** If specified, only job executions completed before the specified time are included. */ + endTimeMax?: Date; + /** If specified, only active or only completed job executions are included. */ + isActive?: boolean; + /** The number of elements to return from the collection. */ + top?: number; +} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByJobExecution operation. */ +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansGetOptionalParams +export interface JobTargetExecutionsListByStepNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; +/** Contains response data for the listByStepNext operation. */ +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams +export interface JobTargetExecutionsListByJobExecutionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByJobExecutionNext operation. */ +export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceOptionalParams +export interface JobTargetGroupsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; +/** Contains response data for the listByAgent operation. */ +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsGetOptionalParams +export interface JobTargetGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; +export type JobTargetGroupsGetResponse = JobTargetGroup; /** 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 JobTargetGroupsCreateOrUpdateOptionalParams + 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 JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup; /** Optional parameters. */ -export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams +export interface JobTargetGroupsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; - /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams +export interface JobTargetGroupsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; +/** Contains response data for the listByAgentNext operation. */ +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult; /** 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 JobVersionsListByJobOptionalParams + 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 listByJob operation. */ +export type JobVersionsListByJobResponse = JobVersionListResult; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams +export interface JobVersionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; +/** Contains response data for the get operation. */ +export type JobVersionsGetResponse = JobVersion; /** Optional parameters. */ -export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams +export interface JobVersionsListByJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; - -/** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsRevalidateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listByJobNext operation. */ +export type JobVersionsListByJobNextResponse = JobVersionListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceOptionalParams +export interface JobsListByAgentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByAgent operation. */ +export type JobsListByAgentResponse = JobListResult; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector; +export type JobsGetResponse = Job; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface JobsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector; +export type JobsCreateOrUpdateResponse = Job; /** Optional parameters. */ -export interface ManagedInstanceEncryptionProtectorsListByInstanceNextOptionalParams +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobsListByAgentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult; +/** Contains response data for the listByAgentNext operation. */ +export type JobsListByAgentNextResponse = JobListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams - extends coreClient.OperationOptions { - /** An OData filter expression that filters elements in the collection. */ - filter?: string; -} +export interface LedgerDigestUploadsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult; +/** Contains response data for the listByDatabase operation. */ +export type LedgerDigestUploadsListByDatabaseResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedInstanceKeysGetOptionalParams +export interface LedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey; +export type LedgerDigestUploadsGetResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstanceKeysCreateOrUpdateOptionalParams +export interface LedgerDigestUploadsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13676,10 +14122,10 @@ export interface ManagedInstanceKeysCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey; +export type LedgerDigestUploadsCreateOrUpdateResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstanceKeysDeleteOptionalParams +export interface LedgerDigestUploadsDisableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13687,80 +14133,71 @@ export interface ManagedInstanceKeysDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstanceKeysListByInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult; +/** Contains response data for the disable operation. */ +export type LedgerDigestUploadsDisableResponse = LedgerDigestUploads; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesGetOptionalParams +export interface LedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy; +/** Contains response data for the listByDatabaseNext operation. */ +export type LedgerDigestUploadsListByDatabaseNextResponse = LedgerDigestUploadsListResult; /** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface CapabilitiesListByLocationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** If specified, restricts the response to only include the selected item. */ + include?: CapabilityGroup; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult; - -/** Optional parameters. */ -export interface ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult; +/** Contains response data for the listByLocation operation. */ +export type CapabilitiesListByLocationResponse = LocationCapabilities; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceOptionalParams - 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 ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByLocation operation. */ +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation; +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; +} -/** Optional parameters. */ -export interface ManagedInstanceOperationsCancelOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Whether or not to only get the latest backup for each database. */ + onlyLatestPerDatabase?: boolean; + /** Whether to query against just live databases, just deleted databases, or all databases. */ + databaseState?: DatabaseState; +} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; +/** Contains response data for the listByDatabase operation. */ +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsGetOptionalParams +export interface LongTermRetentionBackupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface LongTermRetentionBackupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13768,11 +14205,8 @@ export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptional resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; - /** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams +export interface LongTermRetentionBackupsChangeAccessTierOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13780,43 +14214,23 @@ export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; - -/** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; +/** Contains response data for the changeAccessTier operation. */ +export type LongTermRetentionBackupsChangeAccessTierResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams - 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 listByManagedInstanceNext operation. */ -export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; +/** Contains response data for the copy operation. */ +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedInstanceTdeCertificatesCreateOptionalParams +export interface LongTermRetentionBackupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13824,47 +14238,54 @@ export interface ManagedInstanceTdeCertificatesCreateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; +/** Contains response data for the update operation. */ +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult; /** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; +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; +} -/** Optional parameters. */ -export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** 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; @@ -13872,11 +14293,8 @@ export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicie resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams +export interface LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13884,32 +14302,23 @@ 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; +/** Contains response data for the changeAccessTierByResourceGroup operation. */ +export type LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse = LongTermRetentionBackup; /** Optional parameters. */ -export interface ManagedServerSecurityAlertPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the 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; @@ -13917,130 +14326,148 @@ 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; + /** 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; + /** 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 { + /** 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; + /** 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; @@ -14048,74 +14475,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; @@ -14124,40 +14553,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; @@ -14166,10 +14604,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; @@ -14177,444 +14615,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; - -/** 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; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; +export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; /** Optional parameters. */ -export interface ServerDnsAliasesGetOptionalParams +export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias; - -/** Optional parameters. */ -export interface ServerDnsAliasesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ServerDnsAliasesDeleteOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Array of Get3ItemsItem */ + schema?: string[]; + /** Array of Get4ItemsItem */ + table?: string[]; + /** Array of Get5ItemsItem */ + column?: string[]; + /** Array of Get6ItemsItem */ + orderBy?: string[]; + /** An opaque token that identifies a starting point in the collection. */ + skiptoken?: string; } -/** Optional parameters. */ -export interface ServerDnsAliasesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ServerDnsAliasesAcquireOptionalParams +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 acquire operation. */ -export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; +/** Contains response data for the listByTable operation. */ +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ServerDnsAliasesListByServerNextOptionalParams +export interface ManagedDatabaseColumnsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn; /** Optional parameters. */ -export interface ServerKeysListByServerOptionalParams +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ServerKeysGetOptionalParams +export interface ManagedDatabaseColumnsListByTableNextOptionalParams 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; - /** 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 ServerKeysCreateOrUpdateResponse = ServerKey; +/** Contains response data for the listByTableNext operation. */ +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult; /** Optional parameters. */ -export interface ServerKeysDeleteOptionalParams +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; } -/** Optional parameters. */ -export interface ServerKeysListByServerNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServerNext operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult; +/** Contains response data for the listByLocation operation. */ +export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ServerOperationsListByServerOptionalParams +export interface ManagedDatabaseMoveOperationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerOperationsListByServerResponse = ServerOperationListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; /** Optional parameters. */ -export interface ServerOperationsListByServerNextOptionalParams +export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerOperationsListByServerNextResponse = ServerOperationListResult; +/** Contains response data for the listByLocationNext operation. */ +export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesGetOptionalParams +export interface ManagedDatabaseQueriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams +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 ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; - -/** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServer operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByQuery operation. */ +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface ServerSecurityAlertPoliciesListByServerNextOptionalParams +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; +/** Contains response data for the listByQueryNext operation. */ +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics; /** Optional parameters. */ -export interface ServerTrustGroupsGetOptionalParams +export interface ManagedDatabaseRestoreDetailsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustGroupsGetResponse = ServerTrustGroup; +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; /** Optional parameters. */ -export interface ServerTrustGroupsCreateOrUpdateOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ServerTrustGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseSchemasGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema; /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationOptionalParams +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerTrustGroupsListByLocationNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; +/** Contains response data for the get operation. */ +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerTrustGroupsListByInstanceNextOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsGetOptionalParams +export interface ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** 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 createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsDeleteOptionalParams +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection; + /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerOptionalParams - 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 listByServer operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; +/** Contains response data for the listCurrentByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; +/** Optional parameters. */ +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 listRecommendedByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SqlAgentGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlAgentGetResponse = SqlAgentConfiguration; +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface SqlAgentCreateOrUpdateOptionalParams +export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams +export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SubscriptionUsagesGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage; +/** Optional parameters. */ +export interface ManagedDatabaseSensitivityLabelsListByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} + +/** Contains response data for the listByDatabase operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsGetOptionalParams +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseSensitivityLabelsListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedDatabaseSensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface SyncAgentsDeleteOptionalParams +export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +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 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; +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface SyncGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentScansExportOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup; +/** Contains response data for the export operation. */ +export type ManagedDatabaseVulnerabilityAssessmentScansExportResponse = DatabaseVulnerabilityAssessmentScansExport; /** Optional parameters. */ -export interface SyncGroupsDeleteOptionalParams +export interface ManagedDatabaseVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14623,61 +15029,60 @@ export interface SyncGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface SyncGroupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup; +/** 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; @@ -14686,10 +15091,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; @@ -14698,7 +15103,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; @@ -14707,24 +15112,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; @@ -14733,21 +15124,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; @@ -14756,35 +15133,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; @@ -14792,11 +15141,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; @@ -14805,28 +15151,42 @@ export interface VirtualNetworkRulesDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listInaccessibleByInstance operation. */ +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface VirtualNetworkRulesListByServerNextOptionalParams +export interface ManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; /** Optional parameters. */ -export interface WorkloadClassifiersGetOptionalParams +export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listInaccessibleByInstanceNext operation. */ +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdministratorsListByInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult; + +/** Optional parameters. */ +export interface ManagedInstanceAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadClassifiersGetResponse = WorkloadClassifier; +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface WorkloadClassifiersCreateOrUpdateOptionalParams +export interface ManagedInstanceAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14835,10 +15195,10 @@ export interface WorkloadClassifiersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator; /** Optional parameters. */ -export interface WorkloadClassifiersDeleteOptionalParams +export interface ManagedInstanceAdministratorsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14847,28 +15207,28 @@ export interface WorkloadClassifiersDeleteOptionalParams } /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupOptionalParams +export interface ManagedInstanceAdministratorsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroup operation. */ -export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult; /** Optional parameters. */ -export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkloadGroupNext operation. */ -export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface WorkloadGroupsGetOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkloadGroupsGetResponse = WorkloadGroup; +export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface WorkloadGroupsCreateOrUpdateOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14877,40 +15237,31 @@ export interface WorkloadGroupsCreateOrUpdateOptionalParams } /** 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; -} +export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseOptionalParams +export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface WorkloadGroupsListByDatabaseNextOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesGetOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy; +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14919,10 +15270,10 @@ export interface BackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy; +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesUpdateOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14930,29 +15281,29 @@ export interface BackupShortTermRetentionPoliciesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy; - /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseOptionalParams +export interface ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult; /** Optional parameters. */ -export interface BackupShortTermRetentionPoliciesListByDatabaseNextOptionalParams +export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; /** Optional parameters. */ -export interface DatabaseExtensionsGetOptionalParams +export interface ManagedInstanceDtcsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; + /** Optional parameters. */ -export interface DatabaseExtensionsCreateOrUpdateOptionalParams +export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14961,63 +15312,31 @@ export interface DatabaseExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult; - -/** Optional parameters. */ -export interface DatabaseExtensionsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult; - -/** Optional parameters. */ -export interface DatabaseOperationsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabase operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult; - -/** Optional parameters. */ -export interface DatabaseOperationsListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult; +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; @@ -15026,17 +15345,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; @@ -15044,25 +15356,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; @@ -15071,10 +15390,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; @@ -15083,38 +15402,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; @@ -15122,11 +15431,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; @@ -15134,63 +15443,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 {} + +/** Optional parameters. */ +export interface ManagedInstanceOperationsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult; -/** Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult; +/** Optional parameters. */ +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult; /** 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 ManagedInstancePrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15198,11 +15501,11 @@ export interface LongTermRetentionBackupsCopyByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the copyByResourceGroup operation. */ -export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection; /** Optional parameters. */ -export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams +export interface ManagedInstancePrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15210,18 +15513,36 @@ export interface LongTermRetentionBackupsUpdateByResourceGroupOptionalParams resumeFrom?: string; } -/** Contains response data for the updateByResourceGroup operation. */ -export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult; +/** Optional parameters. */ +export interface ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsGetByResourceGroupOptionalParams +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsDeleteByResourceGroupOptionalParams +export interface ManagedInstancePrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink; + +/** Optional parameters. */ +export interface ManagedInstancePrivateLinkResourcesListByManagedInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult; + +/** Optional parameters. */ +export interface ManagedInstanceTdeCertificatesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15230,92 +15551,79 @@ 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 ManagedInstanceVulnerabilityAssessmentsListByInstanceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocation operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstance operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** 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 ManagedInstanceVulnerabilityAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult; +/** Contains response data for the get operation. */ +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByLocationNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionBackupsListByServerNextOptionalParams +export interface ManagedInstanceVulnerabilityAssessmentsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the list operation. */ +export type ManagedInstancesListResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByInstancePool operation. */ +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} -/** Contains response data for the listByResourceGroupServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedInstancesGetOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup; +export type ManagedInstancesGetResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams +export interface ManagedInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15323,51 +15631,50 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; + /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams +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 listByDatabase operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams +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 listByInstance operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the update operation. */ +export type ManagedInstancesUpdateResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams +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 listByLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; - /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsGetByResourceGroupOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByResourceGroup operation. */ -export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOptionalParams +export interface ManagedInstancesRefreshStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15375,114 +15682,151 @@ export interface LongTermRetentionManagedInstanceBackupsDeleteByResourceGroupOpt resumeFrom?: string; } +/** Contains response data for the refreshStatus operation. */ +export type ManagedInstancesRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResultMI; + /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams +export interface ManagedInstancesStartOptionalParams 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; +/** Contains response data for the start operation. */ +export type ManagedInstancesStartResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams +export interface ManagedInstancesStopOptionalParams 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 stop operation. */ +export type ManagedInstancesStopResponse = ManagedInstance; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams +export interface ManagedInstancesListByManagedInstanceOptionalParams 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; + /** 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 listByResourceGroupLocation operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams +export interface ManagedInstancesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listNext operation. */ +export type ManagedInstancesListNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams +export interface ManagedInstancesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByInstancePoolNext operation. */ +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams +export interface ManagedInstancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams +export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ +export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams +export interface ManagedInstancesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupInstanceNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; /** Optional parameters. */ -export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams +export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupLocationNext operation. */ -export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult; +/** Contains response data for the listByDatabase operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams +export interface ManagedLedgerDigestUploadsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the get operation. */ +export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesGetOptionalParams +export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; + +/** Optional parameters. */ +export interface ManagedLedgerDigestUploadsDisableOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait 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 disable operation. */ +export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; + +/** Optional parameters. */ +export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; +/** Contains response data for the listByDatabaseNext operation. */ +export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; /** Optional parameters. */ -export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; +/** Contains response data for the listByRestorableDroppedDatabase operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface ServerConnectionPoliciesGetOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15491,38 +15835,43 @@ export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByServer operation. */ -export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; +/** Contains response data for the update operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy; /** Optional parameters. */ -export interface ServerConnectionPoliciesListByServerNextOptionalParams +export interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; +/** Contains response data for the listByRestorableDroppedDatabaseNext operation. */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type DistributedAvailabilityGroupsListByInstanceResponse = DistributedAvailabilityGroupsListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsGetOptionalParams +export interface ManagedServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DistributedAvailabilityGroupsGetResponse = DistributedAvailabilityGroup; +export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams +export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15531,10 +15880,10 @@ export interface DistributedAvailabilityGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DistributedAvailabilityGroupsCreateOrUpdateResponse = DistributedAvailabilityGroup; +export type ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsDeleteOptionalParams +export interface ManagedServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15543,7 +15892,7 @@ export interface DistributedAvailabilityGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface DistributedAvailabilityGroupsUpdateOptionalParams +export interface ManagedServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15551,32 +15900,32 @@ export interface DistributedAvailabilityGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup; +/** Contains response data for the acquire operation. */ +export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; /** Optional parameters. */ -export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams +export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type DistributedAvailabilityGroupsListByInstanceNextResponse = DistributedAvailabilityGroupsListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; /** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByInstance operation. */ -export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ServerTrustCertificatesGetOptionalParams +export interface ManagedServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerTrustCertificatesCreateOrUpdateOptionalParams +export interface ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15585,10 +15934,31 @@ export interface ServerTrustCertificatesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy; /** Optional parameters. */ -export interface ServerTrustCertificatesDeleteOptionalParams +export interface ManagedServerSecurityAlertPoliciesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByInstanceNext operation. */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServerResponse = NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15596,329 +15966,423 @@ export interface ServerTrustCertificatesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; + /** Optional parameters. */ -export interface ServerTrustCertificatesListByInstanceNextOptionalParams +export interface NetworkSecurityPerimeterConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; +/** Contains response data for the listByServerNext operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServerNextResponse = NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type EndpointCertificatesListByInstanceResponse = EndpointCertificateListResult; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface EndpointCertificatesGetOptionalParams +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface OutboundFirewallRulesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult; + +/** Optional parameters. */ +export interface OutboundFirewallRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EndpointCertificatesGetResponse = EndpointCertificate; +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule; /** Optional parameters. */ -export interface EndpointCertificatesListByInstanceNextOptionalParams +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 OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule; + +/** Optional parameters. */ +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 listByInstanceNext operation. */ -export type EndpointCertificatesListByInstanceNextResponse = EndpointCertificateListResult; +/** Contains response data for the listByServerNext operation. */ +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsGetOptionalParams +export interface PrivateEndpointConnectionsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsCreateOrUpdateOptionalParams +export interface PrivateEndpointConnectionsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +/** Contains response data for the listByServerNext operation. */ +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDeleteOptionalParams +export interface PrivateLinkResourcesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsDisableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsEnableRecommendationOptionalParams +export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; + /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} +export interface PrivateLinkResourcesListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the listByServerNext operation. */ +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsUpdateOptionalParams +export interface RecoverableDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServer operation. */ +export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; + /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams +export interface RecoverableDatabasesGetOptionalParams extends coreClient.OperationOptions { - skipToken?: string; + /** The child resources to include in the response. */ + expand?: string; /** An OData filter expression that filters elements in the collection. */ filter?: string; - /** Specifies whether to include disabled recommendations or not. */ - includeDisabledRecommendations?: boolean; } -/** Contains response data for the listRecommendedByDatabase operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type RecoverableDatabasesGetResponse = RecoverableDatabase; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams +export interface RecoverableDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByServerNext operation. */ +export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface RecoverableManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByInstance operation. */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface ManagedDatabaseRecommendedSensitivityLabelsUpdateOptionalParams +export interface RecoverableManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams - extends coreClient.OperationOptions { - skipToken?: string; - /** An OData filter expression that filters elements in the collection. */ - filter?: string; - count?: boolean; -} - -/** Contains response data for the listCurrentByDatabase operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; +/** Contains response data for the get operation. */ +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase; /** Optional parameters. */ -export interface SensitivityLabelsUpdateOptionalParams +export interface RecoverableManagedDatabasesListByInstanceNextOptionalParams 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 listByInstanceNext operation. */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult; /** Optional parameters. */ -export interface SensitivityLabelsEnableRecommendationOptionalParams +export interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SensitivityLabelsDisableRecommendationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabase operation. */ +export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface SensitivityLabelsGetOptionalParams +export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel; +export type ReplicationLinksGetResponse = ReplicationLink; /** Optional parameters. */ -export interface SensitivityLabelsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; +export interface ReplicationLinksDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait 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 SensitivityLabelsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ReplicationLinksFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the failover operation. */ +export type ReplicationLinksFailoverResponse = ReplicationLink; /** Optional parameters. */ -export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +export interface ReplicationLinksFailoverAllowDataLossOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listCurrentByDatabaseNext operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the failoverAllowDataLoss operation. */ +export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; /** Optional parameters. */ -export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams +export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listRecommendedByDatabaseNext operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; +/** Contains response data for the listByServer operation. */ +export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface RecommendedSensitivityLabelsUpdateOptionalParams +export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByDatabaseNext operation. */ +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; + /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerOptionalParams +export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult; +/** Contains response data for the listByServerNext operation. */ +export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesGetOptionalParams +export interface RestorableDroppedDatabasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; +/** Contains response data for the listByServer operation. */ +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface RestorableDroppedDatabasesGetOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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; + /** An OData filter expression that filters elements in the collection. */ + filter?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; +/** Contains response data for the get operation. */ +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; /** Optional parameters. */ -export interface ServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface RestorableDroppedDatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult; +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByInstance operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesGetOptionalParams +export interface RestorableDroppedManagedDatabasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy; +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface RestorableDroppedManagedDatabasesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy; +/** Contains response data for the listByInstanceNext operation. */ +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult; /** Optional parameters. */ -export interface DatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface RestorePointsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult; +/** Contains response data for the listByDatabase operation. */ +export type RestorePointsListByDatabaseResponse = RestorePointListResult; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOptionalParams - extends coreClient.OperationOptions {} +export interface RestorePointsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByDatabase operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +/** Contains response data for the create operation. */ +export type RestorePointsCreateResponse = RestorePoint; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesGetOptionalParams +export interface RestorePointsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy; +export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateOptionalParams +export interface RestorePointsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy; - /** Optional parameters. */ -export interface ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextOptionalParams +export interface RestorePointsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult; +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + skipToken?: string; + count?: boolean; +} + +/** Contains response data for the listCurrentByDatabase operation. */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult; + +/** Optional parameters. */ +export interface SensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult; +/** Optional parameters. */ +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams + 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 listRecommendedByDatabase operation. */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesGetOptionalParams +export interface SensitivityLabelsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; +export type SensitivityLabelsGetResponse = SensitivityLabel; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; /** Optional parameters. */ -export interface ExtendedServerBlobAuditingPoliciesListByServerNextOptionalParams +export interface SensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult; +/** Optional parameters. */ +export interface SensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams +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; +} + /** Contains response data for the listByDatabase operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = DatabaseAdvancedThreatProtectionListResult; +export type SensitivityLabelsListByDatabaseResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseAdvancedThreatProtectionSettingsGetResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listCurrentByDatabaseNext operation. */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = DatabaseAdvancedThreatProtection; +/** Contains response data for the listRecommendedByDatabaseNext operation. */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult; /** Optional parameters. */ -export interface DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams +export interface SensitivityLabelsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = DatabaseAdvancedThreatProtectionListResult; +export type SensitivityLabelsListByDatabaseNextResponse = SensitivityLabelListResult; + +/** Optional parameters. */ +export interface RecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface ServerAdvancedThreatProtectionSettingsListByServerOptionalParams @@ -15954,103 +16418,59 @@ export interface ServerAdvancedThreatProtectionSettingsListByServerNextOptionalP export type ServerAdvancedThreatProtectionSettingsListByServerNextResponse = LogicalServerAdvancedThreatProtectionListResult; /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceResponse = ManagedServerDnsAliasListResult; - -/** Optional parameters. */ -export interface ManagedServerDnsAliasesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedServerDnsAliasesGetResponse = ManagedServerDnsAlias; - -/** Optional parameters. */ -export interface ManagedServerDnsAliasesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait 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 ManagedServerDnsAliasesCreateOrUpdateResponse = ManagedServerDnsAlias; - -/** Optional parameters. */ -export interface ManagedServerDnsAliasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait 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 ManagedServerDnsAliasesAcquireOptionalParams +export interface ServerAdvisorsListByServerOptionalParams extends coreClient.OperationOptions { - /** Delay to wait 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 acquire operation. */ -export type ManagedServerDnsAliasesAcquireResponse = ManagedServerDnsAlias; +/** Contains response data for the listByServer operation. */ +export type ServerAdvisorsListByServerResponse = Advisor[]; /** Optional parameters. */ -export interface ManagedServerDnsAliasesListByManagedInstanceNextOptionalParams +export interface ServerAdvisorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedServerDnsAliasesListByManagedInstanceNextResponse = ManagedServerDnsAliasListResult; +/** Contains response data for the get operation. */ +export type ServerAdvisorsGetResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseOptionalParams +export interface ServerAdvisorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseResponse = ManagedDatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the update operation. */ +export type ServerAdvisorsUpdateResponse = Advisor; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerAutomaticTuningGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsGetResponse = ManagedDatabaseAdvancedThreatProtection; - -/** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedDatabaseAdvancedThreatProtection; +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextOptionalParams +export interface ServerAutomaticTuningUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseAdvancedThreatProtectionSettingsListByDatabaseNextResponse = ManagedDatabaseAdvancedThreatProtectionListResult; +/** Contains response data for the update operation. */ +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceOptionalParams +export interface ServerAzureADAdministratorsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceResponse = ManagedInstanceAdvancedThreatProtectionListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsGetOptionalParams +export interface ServerAzureADAdministratorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsGetResponse = ManagedInstanceAdvancedThreatProtection; +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOptionalParams +export interface ServerAzureADAdministratorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16059,40 +16479,40 @@ export interface ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateOp } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsCreateOrUpdateResponse = ManagedInstanceAdvancedThreatProtection; +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator; /** Optional parameters. */ -export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextOptionalParams +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; +} + +/** Optional parameters. */ +export interface ServerAzureADAdministratorsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult; +/** Contains response data for the listByServer operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ReplicationLinksGetOptionalParams +export interface ServerAzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ReplicationLinksGetResponse = ReplicationLink; - -/** Optional parameters. */ -export interface ReplicationLinksDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ReplicationLinksFailoverOptionalParams +export interface ServerAzureADOnlyAuthenticationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16100,11 +16520,11 @@ export interface ReplicationLinksFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the failover operation. */ -export type ReplicationLinksFailoverResponse = ReplicationLink; +/** Contains response data for the createOrUpdate operation. */ +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication; /** Optional parameters. */ -export interface ReplicationLinksFailoverAllowDataLossOptionalParams +export interface ServerAzureADOnlyAuthenticationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16112,72 +16532,62 @@ export interface ReplicationLinksFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the failoverAllowDataLoss operation. */ -export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink; - /** Optional parameters. */ -export interface ReplicationLinksListByServerOptionalParams +export interface ServerAzureADOnlyAuthenticationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type ReplicationLinksListByServerResponse = ReplicationLinkListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult; /** Optional parameters. */ -export interface ReplicationLinksListByDatabaseNextOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult; +/** Contains response data for the listByManagedInstance operation. */ +export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ -export interface ReplicationLinksListByServerNextOptionalParams +export interface ServerConfigurationOptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult; +/** Contains response data for the get operation. */ +export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams +export interface ServerConfigurationOptionsCreateOrUpdateOptionalParams 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; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByLocation operation. */ -export type ManagedDatabaseMoveOperationsListByLocationResponse = ManagedDatabaseMoveOperationListResult; - -/** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ManagedDatabaseMoveOperationsGetResponse = ManagedDatabaseMoveOperationResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; /** Optional parameters. */ -export interface ManagedDatabaseMoveOperationsListByLocationNextOptionalParams +export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type ManagedDatabaseMoveOperationsListByLocationNextResponse = ManagedDatabaseMoveOperationListResult; +/** Contains response data for the listByManagedInstanceNext operation. */ +export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; /** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceOptionalParams +export interface ServerConnectionPoliciesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ManagedInstanceDtcsListByManagedInstanceResponse = ManagedInstanceDtcListResult; +/** Contains response data for the listByServer operation. */ +export type ServerConnectionPoliciesListByServerResponse = ServerConnectionPolicyListResult; /** Optional parameters. */ -export interface ManagedInstanceDtcsGetOptionalParams +export interface ServerConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedInstanceDtcsGetResponse = ManagedInstanceDtc; +export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams +export interface ServerConnectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16186,52 +16596,64 @@ export interface ManagedInstanceDtcsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceDtcsCreateOrUpdateResponse = ManagedInstanceDtc; +export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy; /** Optional parameters. */ -export interface ManagedInstanceDtcsListByManagedInstanceNextOptionalParams +export interface ServerConnectionPoliciesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceDtcsListByManagedInstanceNextResponse = ManagedInstanceDtcListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerConnectionPoliciesListByServerNextResponse = ServerConnectionPolicyListResult; + +/** Optional parameters. */ +export interface ServerDevOpsAuditSettingsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseOptionalParams +export interface ServerDevOpsAuditSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; +/** Contains response data for the get operation. */ +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByDatabaseNext operation. */ -export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings; /** Optional parameters. */ -export interface VirtualClustersListOptionalParams +export interface ServerDevOpsAuditSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupOptionalParams +export interface ServerDnsAliasesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; +/** Contains response data for the listByServer operation. */ +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface VirtualClustersGetOptionalParams +export interface ServerDnsAliasesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster; +export type ServerDnsAliasesGetResponse = ServerDnsAlias; /** Optional parameters. */ -export interface VirtualClustersDeleteOptionalParams +export interface ServerDnsAliasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16239,8 +16661,11 @@ export interface VirtualClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias; + /** Optional parameters. */ -export interface VirtualClustersUpdateOptionalParams +export interface ServerDnsAliasesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16248,11 +16673,8 @@ export interface VirtualClustersUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster; - /** Optional parameters. */ -export interface VirtualClustersUpdateDnsServersOptionalParams +export interface ServerDnsAliasesAcquireOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16260,39 +16682,32 @@ 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; +/** Contains response data for the acquire operation. */ +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias; /** Optional parameters. */ -export interface VirtualClustersListByResourceGroupNextOptionalParams +export interface ServerDnsAliasesListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationOptionalParams +export interface ServerKeysListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByServer operation. */ +export type ServerKeysListByServerResponse = ServerKeyListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsGetOptionalParams +export interface ServerKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup; +export type ServerKeysGetResponse = ServerKey; /** Optional parameters. */ -export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams +export interface ServerKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16301,10 +16716,10 @@ export interface InstanceFailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup; +export type ServerKeysCreateOrUpdateResponse = ServerKey; /** Optional parameters. */ -export interface InstanceFailoverGroupsDeleteOptionalParams +export interface ServerKeysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16313,45 +16728,42 @@ export interface InstanceFailoverGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface InstanceFailoverGroupsFailoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ServerKeysListByServerNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the failover operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup; +/** Contains response data for the listByServerNext operation. */ +export type ServerKeysListByServerNextResponse = ServerKeyListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ServerOperationsListByServerOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup; +/** Contains response data for the listByServer operation. */ +export type ServerOperationsListByServerResponse = ServerOperationListResult; /** Optional parameters. */ -export interface InstanceFailoverGroupsListByLocationNextOptionalParams +export interface ServerOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocationNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult; +/** Contains response data for the listByServerNext operation. */ +export type ServerOperationsListByServerNextResponse = ServerOperationListResult; /** Optional parameters. */ -export interface ManagedDatabaseRestoreDetailsGetOptionalParams +export interface ServerSecurityAlertPoliciesListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult; + +/** Optional parameters. */ +export interface ServerSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult; +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy; /** Optional parameters. */ -export interface DatabaseEncryptionProtectorsRevalidateOptionalParams +export interface ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16359,31 +16771,32 @@ export interface DatabaseEncryptionProtectorsRevalidateOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy; + /** 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 ServerSecurityAlertPoliciesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceOptionalParams +export interface ServerTrustCertificatesListByInstanceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByInstance operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult; +export type ServerTrustCertificatesListByInstanceResponse = ServerTrustCertificatesListResult; /** Optional parameters. */ -export interface ManagedDatabasesGetOptionalParams +export interface ServerTrustCertificatesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase; +export type ServerTrustCertificatesGetResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedDatabasesCreateOrUpdateOptionalParams +export interface ServerTrustCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16392,10 +16805,10 @@ export interface ManagedDatabasesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase; +export type ServerTrustCertificatesCreateOrUpdateResponse = ServerTrustCertificate; /** Optional parameters. */ -export interface ManagedDatabasesDeleteOptionalParams +export interface ServerTrustCertificatesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16404,37 +16817,28 @@ export interface ManagedDatabasesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ServerTrustCertificatesListByInstanceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase; +/** Contains response data for the listByInstanceNext operation. */ +export type ServerTrustCertificatesListByInstanceNextResponse = ServerTrustCertificatesListResult; /** 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 ServerTrustGroupsListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult; /** 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 ServerTrustGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerTrustGroupsGetResponse = ServerTrustGroup; /** Optional parameters. */ -export interface ManagedDatabasesCompleteRestoreOptionalParams +export interface ServerTrustGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16442,8 +16846,11 @@ export interface ManagedDatabasesCompleteRestoreOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup; + /** Optional parameters. */ -export interface ManagedDatabasesStartMoveOptionalParams +export interface ServerTrustGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16452,68 +16859,109 @@ export interface ManagedDatabasesStartMoveOptionalParams } /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceOptionalParams +export interface ServerTrustGroupsListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstance operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult; +/** Contains response data for the listByInstance operation. */ +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedDatabasesListByInstanceNextOptionalParams +export interface ServerTrustGroupsListByLocationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocationNext operation. */ +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult; + +/** Optional parameters. */ +export interface ServerTrustGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult; +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult; /** Optional parameters. */ -export interface ManagedDatabasesListInaccessibleByInstanceNextOptionalParams +export interface ServerUsagesListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult; +/** Contains response data for the listByServer operation. */ +export type ServerUsagesListByServerResponse = ServerUsageListResult; + +/** Optional parameters. */ +export interface ServerUsagesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerUsagesListByServerNextResponse = ServerUsageListResult; + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsListByServerOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServer operation. */ +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult; + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ServerVulnerabilityAssessmentsListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface ManagedInstancesListOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface ServersCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult; +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolOptionalParams - extends coreClient.OperationOptions { +export interface ServersListOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } -/** Contains response data for the listByInstancePool operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult; +/** Contains response data for the list operation. */ +export type ServersListResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupOptionalParams +export interface ServersListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult; +export type ServersListByResourceGroupResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstancesGetOptionalParams - extends coreClient.OperationOptions { +export interface ServersGetOptionalParams extends coreClient.OperationOptions { /** The child resources to include in the response. */ expand?: string; } /** Contains response data for the get operation. */ -export type ManagedInstancesGetResponse = ManagedInstance; +export type ServersGetResponse = Server; /** Optional parameters. */ -export interface ManagedInstancesCreateOrUpdateOptionalParams +export interface ServersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16522,10 +16970,10 @@ export interface ManagedInstancesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance; +export type ServersCreateOrUpdateResponse = Server; /** Optional parameters. */ -export interface ManagedInstancesDeleteOptionalParams +export interface ServersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16534,7 +16982,7 @@ export interface ManagedInstancesDeleteOptionalParams } /** Optional parameters. */ -export interface ManagedInstancesUpdateOptionalParams +export interface ServersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16543,37 +16991,22 @@ export interface ManagedInstancesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance; +export type ServersUpdateResponse = Server; /** Optional parameters. */ -export interface ManagedInstancesFailoverOptionalParams +export interface ServersImportDatabaseOptionalParams extends coreClient.OperationOptions { - /** The type of replica to be failed over. */ - replicaType?: ReplicaType; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstance operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceResponse = OutboundEnvironmentEndpointCollection; - -/** Optional parameters. */ -export interface ManagedInstancesStartOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; /** Optional parameters. */ -export interface ManagedInstancesStopOptionalParams +export interface ServersRefreshStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16581,91 +17014,67 @@ export interface ManagedInstancesStopOptionalParams 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; +/** Contains response data for the refreshStatus operation. */ +export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; /** Optional parameters. */ -export interface ManagedInstancesListNextOptionalParams +export interface ServersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult; +export type ServersListNextResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstancesListByInstancePoolNextOptionalParams +export interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; /** Optional parameters. */ -export interface ManagedInstancesListByResourceGroupNextOptionalParams +export interface SqlAgentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult; +/** Contains response data for the get operation. */ +export type SqlAgentGetResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextOptionalParams +export interface SqlAgentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesByManagedInstanceNext operation. */ -export type ManagedInstancesListOutboundNetworkDependenciesByManagedInstanceNextResponse = OutboundEnvironmentEndpointCollection; +/** Contains response data for the createOrUpdate operation. */ +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration; /** Optional parameters. */ -export interface ManagedInstancesListByManagedInstanceNextOptionalParams +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult; +/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseOptionalParams +export interface SqlVulnerabilityAssessmentBaselineGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsGetOptionalParams +export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedLedgerDigestUploadsGetResponse = ManagedLedgerDigestUploads; +/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ +export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ManagedLedgerDigestUploadsCreateOrUpdateResponse = ManagedLedgerDigestUploads; +export type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsDisableOptionalParams +export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16673,228 +17082,207 @@ export interface ManagedLedgerDigestUploadsDisableOptionalParams resumeFrom?: string; } -/** Contains response data for the disable operation. */ -export type ManagedLedgerDigestUploadsDisableResponse = ManagedLedgerDigestUploads; - /** Optional parameters. */ -export interface ManagedLedgerDigestUploadsListByDatabaseNextOptionalParams +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type ManagedLedgerDigestUploadsListByDatabaseNextResponse = ManagedLedgerDigestUploadsListResult; +/** Contains response data for the listByBaseline operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerOptionalParams +export interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** 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; -} +export interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; /** Optional parameters. */ -export interface RecoverableDatabasesListByServerNextOptionalParams +export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RecoverableDatabasesListByServerNextResponse = RecoverableDatabaseListResult; +/** Contains response data for the listByBaselineNext operation. */ +export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerOptionalParams +export interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams 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; -} +export interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase; +/** Contains response data for the listByScan operation. */ +export type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface RestorableDroppedDatabasesListByServerNextOptionalParams +export interface SqlVulnerabilityAssessmentScanResultGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceOptionalParams +export interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstance operation. */ -export type ServerConfigurationOptionsListByManagedInstanceResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listByScanNext operation. */ +export type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; /** Optional parameters. */ -export interface ServerConfigurationOptionsGetOptionalParams +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerConfigurationOptionsGetResponse = ServerConfigurationOption; +/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** 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 SqlVulnerabilityAssessmentScansGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerConfigurationOptionsCreateOrUpdateResponse = ServerConfigurationOption; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; /** Optional parameters. */ -export interface ServerConfigurationOptionsListByManagedInstanceNextOptionalParams +export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedInstanceNext operation. */ -export type ServerConfigurationOptionsListByManagedInstanceNextResponse = ServerConfigurationOptionListResult; +/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ +export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstance operation. */ -export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; +/** Contains response data for the listByServer operation. */ +export type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesGetOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; +export type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; +export type SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesDeleteOptionalParams +export interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServerNext operation. */ +export type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; + /** Optional parameters. */ -export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams +export interface SqlVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByInstanceNext operation. */ -export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; - /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; - +/** Contains response data for the listByInstance operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceResponse = StartStopManagedInstanceScheduleListResult; + /** Optional parameters. */ -export interface TransparentDataEncryptionsGetOptionalParams +export interface StartStopManagedInstanceSchedulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; +export type StartStopManagedInstanceSchedulesGetResponse = StartStopManagedInstanceSchedule; /** 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 StartStopManagedInstanceSchedulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; +export type StartStopManagedInstanceSchedulesCreateOrUpdateResponse = StartStopManagedInstanceSchedule; /** Optional parameters. */ -export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams +export interface StartStopManagedInstanceSchedulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; - /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerOptionalParams +export interface StartStopManagedInstanceSchedulesListByInstanceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServer operation. */ -export type IPv6FirewallRulesListByServerResponse = IPv6FirewallRuleListResult; +/** Contains response data for the listByInstanceNext operation. */ +export type StartStopManagedInstanceSchedulesListByInstanceNextResponse = StartStopManagedInstanceScheduleListResult; /** Optional parameters. */ -export interface IPv6FirewallRulesGetOptionalParams +export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IPv6FirewallRulesGetResponse = IPv6FirewallRule; +/** Contains response data for the listByLocation operation. */ +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult; /** Optional parameters. */ -export interface IPv6FirewallRulesCreateOrUpdateOptionalParams +export interface SubscriptionUsagesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type IPv6FirewallRulesCreateOrUpdateResponse = IPv6FirewallRule; +/** Contains response data for the get operation. */ +export type SubscriptionUsagesGetResponse = SubscriptionUsage; /** Optional parameters. */ -export interface IPv6FirewallRulesDeleteOptionalParams +export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByLocationNext operation. */ +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult; + /** Optional parameters. */ -export interface IPv6FirewallRulesListByServerNextOptionalParams +export interface SynapseLinkWorkspacesListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type IPv6FirewallRulesListByServerNextResponse = IPv6FirewallRuleListResult; +/** Contains response data for the listByDatabase operation. */ +export type SynapseLinkWorkspacesListByDatabaseResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentOptionalParams +export interface SynapseLinkWorkspacesListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ -export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type SynapseLinkWorkspacesListByDatabaseNextResponse = SynapseLinkWorkspaceListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineGetOptionalParams +export interface SyncAgentsListByServerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +/** Contains response data for the listByServer operation. */ +export type SyncAgentsListByServerResponse = SyncAgentListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextOptionalParams +export interface SyncAgentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ -export type SqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the get operation. */ +export type SyncAgentsGetResponse = SyncAgent; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SyncAgentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +export type SyncAgentsCreateOrUpdateResponse = SyncAgent; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +export interface SyncAgentsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -16903,141 +17291,198 @@ export interface SqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams } /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineOptionalParams +export interface SyncAgentsGenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByBaseline operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +/** Contains response data for the generateKey operation. */ +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineGetOptionalParams +export interface SyncAgentsListLinkedDatabasesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listLinkedDatabases operation. */ +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateOptionalParams +export interface SyncAgentsListByServerNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listByServerNext operation. */ +export type SyncAgentsListByServerNextResponse = SyncAgentListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextOptionalParams +export interface SyncAgentsListLinkedDatabasesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByBaselineNext operation. */ -export type SqlVulnerabilityAssessmentRuleBaselineListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +/** Contains response data for the listLinkedDatabasesNext operation. */ +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams +export interface SyncGroupsListSyncDatabaseIdsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listSyncDatabaseIds operation. */ +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult; + /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultListByScanOptionalParams +export interface SyncGroupsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScan operation. */ -export type SqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listByDatabase operation. */ +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultGetOptionalParams +export interface SyncGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; +export type SyncGroupsGetResponse = SyncGroup; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams - extends coreClient.OperationOptions {} +export interface SyncGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByScanNext operation. */ -export type SqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SyncGroupsCreateOrUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ -export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Optional parameters. */ +export interface SyncGroupsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type SyncGroupsUpdateResponse = SyncGroup; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansGetOptionalParams +export interface SyncGroupsCancelSyncOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; - /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams +export interface SyncGroupsListHubSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessmentsNext operation. */ -export type SqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listHubSchemas operation. */ +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsListByServerOptionalParams - extends coreClient.OperationOptions {} +export interface SyncGroupsListLogsOptionalParams + extends coreClient.OperationOptions { + /** The continuation token for this operation. */ + continuationToken?: string; +} -/** Contains response data for the listByServer operation. */ -export type SqlVulnerabilityAssessmentsSettingsListByServerResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listLogs operation. */ +export type SyncGroupsListLogsResponse = SyncGroupLogListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsGetOptionalParams +export interface SyncGroupsRefreshHubSchemaOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; +/** Optional parameters. */ +export interface SyncGroupsListSyncDatabaseIdsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSyncDatabaseIdsNext operation. */ +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams +export interface SyncGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = SqlVulnerabilityAssessment; +/** Contains response data for the listByDatabaseNext operation. */ +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsSettingsListByServerNextOptionalParams +export interface SyncGroupsListHubSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type SqlVulnerabilityAssessmentsSettingsListByServerNextResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listHubSchemasNext operation. */ +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentsDeleteOptionalParams +export interface SyncGroupsListLogsNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listLogsNext operation. */ +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult; + /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentOptionalParams +export interface SyncMembersListBySyncGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessment operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Contains response data for the listBySyncGroup operation. */ +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesGetOptionalParams +export interface SyncMembersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +export type SyncMembersGetResponse = SyncMember; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SyncMembersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait 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 DatabaseSqlVulnerabilityAssessmentBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentBaselineSet; +export type SyncMembersCreateOrUpdateResponse = SyncMember; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listBySqlVulnerabilityAssessmentNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentBaselinesListBySqlVulnerabilityAssessmentNextResponse = DatabaseSqlVulnerabilityAssessmentBaselineSetListResult; +/** Optional parameters. */ +export interface SyncMembersUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type SyncMembersUpdateResponse = SyncMember; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalParams +export interface SyncMembersRefreshMemberSchemaOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17046,149 +17491,129 @@ export interface DatabaseSqlVulnerabilityAssessmentExecuteScanExecuteOptionalPar } /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineOptionalParams +export interface SyncMembersListMemberSchemasOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByBaseline operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +/** Contains response data for the listMemberSchemas operation. */ +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetOptionalParams +export interface SyncMembersListBySyncGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; +/** Contains response data for the listBySyncGroupNext operation. */ +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams +export interface SyncMembersListMemberSchemasNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseSqlVulnerabilityAssessmentRuleBaseline; - -/** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listMemberSchemasNext operation. */ +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByBaselineNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentRuleBaselinesListByBaselineNextResponse = DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult; +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 DatabaseSqlVulnerabilityAssessmentScanResultListByScanOptionalParams +export interface TimeZonesListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScan operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listByLocation operation. */ +export type TimeZonesListByLocationResponse = TimeZoneListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultGetOptionalParams +export interface TimeZonesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultGetResponse = SqlVulnerabilityAssessmentScanResults; +export type TimeZonesGetResponse = TimeZone; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextOptionalParams +export interface TimeZonesListByLocationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByScanNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScanResultListByScanNextResponse = SQLVulnerabilityAssessmentScanListResult; +/** Contains response data for the listByLocationNext operation. */ +export type TimeZonesListByLocationNextResponse = TimeZoneListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsOptionalParams +export interface TransparentDataEncryptionsListByDatabaseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySqlVulnerabilityAssessments operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the listByDatabase operation. */ +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansGetOptionalParams +export interface TransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansGetResponse = SqlVulnerabilityAssessmentScanRecord; +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextOptionalParams - 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 listBySqlVulnerabilityAssessmentsNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentScansListBySqlVulnerabilityAssessmentsNextResponse = SqlVulnerabilityAssessmentScanRecordListResult; +/** Contains response data for the createOrUpdate operation. */ +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseOptionalParams +export interface TransparentDataEncryptionsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabase operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listByDatabaseNext operation. */ +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface UsagesListByInstancePoolOptionalParams + extends coreClient.OperationOptions { + /** Optional request parameter to include managed instance usages within the instance pool. */ + expandChildren?: boolean; +} -/** Contains response data for the get operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsGetResponse = SqlVulnerabilityAssessment; +/** Contains response data for the listByInstancePool operation. */ +export type UsagesListByInstancePoolResponse = UsageListResult; /** Optional parameters. */ -export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOptionalParams +export interface UsagesListByInstancePoolNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByDatabaseNext operation. */ -export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; +/** Contains response data for the listByInstancePoolNext operation. */ +export type UsagesListByInstancePoolNextResponse = UsageListResult; /** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams +export interface VirtualClustersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; - -/** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - /** Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult; +export type VirtualClustersListResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ServersListByResourceGroupResponse = ServerListResult; +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} +export interface VirtualClustersGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServersGetResponse = Server; - -/** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait 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 ServersCreateOrUpdateResponse = Server; +export type VirtualClustersGetResponse = VirtualCluster; /** Optional parameters. */ -export interface ServersDeleteOptionalParams +export interface VirtualClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17197,7 +17622,7 @@ export interface ServersDeleteOptionalParams } /** Optional parameters. */ -export interface ServersUpdateOptionalParams +export interface VirtualClustersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17206,22 +17631,10 @@ export interface ServersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; - -/** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; +export type VirtualClustersUpdateResponse = VirtualCluster; /** Optional parameters. */ -export interface ServersRefreshStatusOptionalParams +export interface VirtualClustersUpdateDnsServersOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17229,39 +17642,39 @@ export interface ServersRefreshStatusOptionalParams resumeFrom?: string; } -/** Contains response data for the refreshStatus operation. */ -export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; +/** Contains response data for the updateDnsServers operation. */ +export type VirtualClustersUpdateDnsServersResponse = UpdateVirtualClusterDnsServersOperation; /** Optional parameters. */ -export interface ServersListNextOptionalParams +export interface VirtualClustersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; +export type VirtualClustersListNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams +export interface VirtualClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult; /** Optional parameters. */ -export interface FailoverGroupsListByServerOptionalParams +export interface VirtualNetworkRulesListByServerOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServer operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult; +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult; /** Optional parameters. */ -export interface FailoverGroupsGetOptionalParams +export interface VirtualNetworkRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FailoverGroupsGetResponse = FailoverGroup; +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface FailoverGroupsCreateOrUpdateOptionalParams +export interface VirtualNetworkRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17270,10 +17683,10 @@ export interface FailoverGroupsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup; +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule; /** Optional parameters. */ -export interface FailoverGroupsDeleteOptionalParams +export interface VirtualNetworkRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17282,7 +17695,28 @@ export interface FailoverGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface FailoverGroupsUpdateOptionalParams +export interface VirtualNetworkRulesListByServerNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServerNext operation. */ +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult; + +/** Optional parameters. */ +export interface WorkloadClassifiersListByWorkloadGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkloadGroup operation. */ +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult; + +/** Optional parameters. */ +export interface WorkloadClassifiersGetOptionalParams + 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; @@ -17290,11 +17724,11 @@ export interface FailoverGroupsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type FailoverGroupsUpdateResponse = FailoverGroup; +/** Contains response data for the createOrUpdate operation. */ +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier; /** Optional parameters. */ -export interface FailoverGroupsFailoverOptionalParams +export interface WorkloadClassifiersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17302,11 +17736,29 @@ export interface FailoverGroupsFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the failover operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup; +/** Optional parameters. */ +export interface WorkloadClassifiersListByWorkloadGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkloadGroupNext operation. */ +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult; /** Optional parameters. */ -export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams +export interface WorkloadGroupsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDatabase operation. */ +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult; + +/** Optional parameters. */ +export interface WorkloadGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkloadGroupsGetResponse = WorkloadGroup; + +/** Optional parameters. */ +export interface WorkloadGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17314,11 +17766,11 @@ export interface FailoverGroupsForceFailoverAllowDataLossOptionalParams resumeFrom?: string; } -/** Contains response data for the forceFailoverAllowDataLoss operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup; +/** Contains response data for the createOrUpdate operation. */ +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup; /** Optional parameters. */ -export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams +export interface WorkloadGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -17326,21 +17778,20 @@ export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams resumeFrom?: string; } -/** Contains response data for the tryPlannedBeforeForcedFailover operation. */ -export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup; - /** Optional parameters. */ -export interface FailoverGroupsListByServerNextOptionalParams +export interface WorkloadGroupsListByDatabaseNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServerNext operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult; +/** Contains response data for the listByDatabaseNext operation. */ +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 cbe8c62196a8..252a96b283a5 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,146 +2057,192 @@ 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", - readOnly: true, + databaseName: { + serializedName: "databaseName", 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", + expiryDate: { + serializedName: "expiryDate", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "DateTime" + } + } + } + } +}; + +export const DistributedAvailabilityGroupSetRole: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributedAvailabilityGroupSetRole", + modelProperties: { + instanceRole: { + serializedName: "instanceRole", + required: true, + type: { + name: "String" } }, - reason: { - serializedName: "reason", + roleChangeType: { + serializedName: "roleChangeType", + required: true, type: { name: "String" } @@ -2379,28 +2251,27 @@ export const ReadScaleCapability: coreClient.CompositeMapper = { } }; -export const StorageCapability: coreClient.CompositeMapper = { +export const ElasticPoolOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageCapability", + className: "ElasticPoolOperationListResult", modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolOperation" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2409,68 +2280,67 @@ export const StorageCapability: coreClient.CompositeMapper = { } }; -export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { +export const ElasticPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolEditionCapability", + className: "ElasticPoolListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedElasticPoolPerformanceLevels: { - serializedName: "supportedElasticPoolPerformanceLevels", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability" + className: "ElasticPool" } } } }, - zoneRedundant: { - serializedName: "zoneRedundant", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings", + modelProperties: { + minCapacity: { + serializedName: "minCapacity", + type: { + name: "Number" } }, - status: { - serializedName: "status", - readOnly: true, + maxCapacity: { + serializedName: "maxCapacity", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "Number" } }, - reason: { - serializedName: "reason", + autoPauseDelay: { + serializedName: "autoPauseDelay", type: { - name: "String" + name: "Number" } } } } }; -export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { +export const ElasticPoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability", + className: "ElasticPoolUpdate", modelProperties: { - performanceLevel: { - serializedName: "performanceLevel", - type: { - name: "Composite", - className: "PerformanceLevelCapability" - } - }, sku: { serializedName: "sku", type: { @@ -2478,102 +2348,70 @@ 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: "Number" + } + }, + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", type: { name: "Composite", - className: "MaxSizeCapability" + className: "ElasticPoolPerDatabaseSettings" } }, - supportedMaxSizes: { - serializedName: "supportedMaxSizes", - readOnly: true, + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "Boolean" } }, - supportedPerDatabaseMaxSizes: { - serializedName: "supportedPerDatabaseMaxSizes", - readOnly: true, + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "String" } }, - supportedPerDatabaseMaxPerformanceLevels: { - serializedName: "supportedPerDatabaseMaxPerformanceLevels", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" - } - } + name: "String" } }, - zoneRedundant: { - serializedName: "zoneRedundant", - readOnly: true, + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "Boolean" + name: "Number" } }, - supportedMaintenanceConfigurations: { - serializedName: "supportedMaintenanceConfigurations", - readOnly: true, + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceConfigurationCapability" - } - } + name: "Number" } }, - status: { - serializedName: "status", - readOnly: true, + preferredEnclaveType: { + serializedName: "properties.preferredEnclaveType", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + availabilityZone: { + serializedName: "properties.availabilityZone", type: { name: "String" } @@ -2582,48 +2420,56 @@ export const ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = } }; -export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", + className: "EncryptionProtectorListResult", modelProperties: { - limit: { - serializedName: "limit", + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EncryptionProtector" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - supportedPerDatabaseMinPerformanceLevels: { - serializedName: "supportedPerDatabaseMinPerformanceLevels", + } + } + } +}; + +export const EndpointCertificateListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointCertificateListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" + className: "EndpointCertificate" } } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2632,91 +2478,100 @@ export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.Com } }; -export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { +export const FailoverGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", + className: "FailoverGroupListResult", modelProperties: { - limit: { - serializedName: "limit", + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverGroup" + } + } } }, - unit: { - serializedName: "unit", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverGroupReadWriteEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", + required: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "String" + name: "Number" } } } } }; -export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceVersionCapability", + className: "FailoverGroupReadOnlyEndpoint", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } }, - supportedEditions: { - serializedName: "supportedEditions", - readOnly: true, + targetServer: { + serializedName: "targetServer", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceEditionCapability" - } - } + name: "String" } - }, - supportedInstancePoolEditions: { - serializedName: "supportedInstancePoolEditions", - readOnly: true, + } + } + } +}; + +export const PartnerInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartnerInfo", + modelProperties: { + id: { + serializedName: "id", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePoolEditionCapability" - } - } + 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" } @@ -2725,61 +2580,80 @@ export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { } }; -export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEditionCapability", + className: "FailoverGroupUpdate", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - supportedFamilies: { - serializedName: "supportedFamilies", - 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: "ManagedInstanceFamilyCapability" + name: "String" } } } }, - supportedStorageCapabilities: { - serializedName: "supportedStorageCapabilities", - readOnly: true, + partnerServers: { + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageCapability" + className: "PartnerInfo" } } } - }, - zoneRedundant: { - serializedName: "zoneRedundant", + } + } + } +}; + +export const FirewallRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallRuleListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallRule" + } + } } }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", readOnly: true, - type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] - } - }, - reason: { - serializedName: "reason", type: { name: "String" } @@ -2788,61 +2662,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 +2741,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 +2799,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 +2836,41 @@ 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", + replicationRole: { + serializedName: "replicationRole", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePoolFamilyCapability" - } - } + name: "String" } - }, - status: { - serializedName: "status", - readOnly: true, + } + } + } +}; + +export const ManagedInstancePairInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePairInfo", + modelProperties: { + primaryManagedInstanceId: { + serializedName: "primaryManagedInstanceId", type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + partnerManagedInstanceId: { + serializedName: "partnerManagedInstanceId", type: { name: "String" } @@ -3008,54 +2879,27 @@ export const InstancePoolEditionCapability: coreClient.CompositeMapper = { } }; -export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { +export const InstancePoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolFamilyCapability", + className: "InstancePoolListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - supportedLicenseTypes: { - serializedName: "supportedLicenseTypes", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } - } - }, - supportedVcoresValues: { - serializedName: "supportedVcoresValues", + 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,42 +2908,52 @@ 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, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + vCores: { + serializedName: "properties.vCores", type: { name: "Number" } }, - storageLimit: { - serializedName: "storageLimit", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - status: { - serializedName: "status", + dnsZone: { + serializedName: "properties.dnsZone", readOnly: true, type: { - name: "Enum", - allowedValues: ["Visible", "Available", "Default", "Disabled"] + name: "String" } }, - reason: { - serializedName: "reason", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } @@ -3108,10 +2962,10 @@ export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { } }; -export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const JobAgentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicyListResult", + className: "JobAgentListResult", modelProperties: { value: { serializedName: "value", @@ -3121,7 +2975,7 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionPolicy" + className: "JobAgent" } } } @@ -3137,37 +2991,90 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { } }; -export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { +export const JobAgentIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowTimeRange", + className: "JobAgentIdentity", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", + tenantId: { + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } }, - startTime: { - serializedName: "startTime", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - duration: { - serializedName: "duration", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "JobAgentUserAssignedIdentity" + } + } } } } } }; -export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const JobAgentUserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicyListResult", + className: "JobAgentUserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const JobAgentUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobAgentUpdate", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "JobAgentIdentity" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const JobCredentialListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobCredentialListResult", modelProperties: { value: { serializedName: "value", @@ -3177,7 +3084,7 @@ export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.Composi element: { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy" + className: "JobCredential" } } } @@ -3193,10 +3100,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 +3113,7 @@ export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryStatistics" + className: "JobExecution" } } } @@ -3222,202 +3129,234 @@ 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 JobPrivateEndpointListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobPrivateEndpointListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - type: { - name: "String" - } - }, - intervals: { - serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricInterval" + className: "JobPrivateEndpoint" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QueryMetricInterval: coreClient.CompositeMapper = { +export const JobStepListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetricInterval", + className: "JobStepListResult", modelProperties: { - intervalStartTime: { - serializedName: "intervalStartTime", - readOnly: true, - type: { - name: "String" - } - }, - intervalType: { - serializedName: "intervalType", - readOnly: true, - type: { - name: "String" - } - }, - executionCount: { - serializedName: "executionCount", + value: { + serializedName: "value", readOnly: true, - type: { - name: "Number" - } - }, - metrics: { - serializedName: "metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryMetricProperties" + className: "JobStep" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const QueryMetricProperties: coreClient.CompositeMapper = { +export const JobStepAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetricProperties", + className: "JobStepAction", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + type: { + defaultValue: "TSql", + serializedName: "type", type: { name: "String" } }, - displayName: { - serializedName: "displayName", - readOnly: true, + source: { + defaultValue: "Inline", + serializedName: "source", type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + value: { + serializedName: "value", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobStepOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStepOutput", + modelProperties: { + type: { + defaultValue: "SqlDatabase", + serializedName: "type", type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Number" + name: "Uuid" } }, - min: { - serializedName: "min", - readOnly: true, + resourceGroupName: { + serializedName: "resourceGroupName", type: { - name: "Number" + name: "String" } }, - max: { - serializedName: "max", - readOnly: true, + serverName: { + serializedName: "serverName", + required: true, type: { - name: "Number" + name: "String" } }, - avg: { - serializedName: "avg", - readOnly: true, + databaseName: { + serializedName: "databaseName", + required: true, type: { - name: "Number" + name: "String" } }, - sum: { - serializedName: "sum", - readOnly: true, + schemaName: { + defaultValue: "dbo", + serializedName: "schemaName", type: { - name: "Number" + name: "String" } }, - stdev: { - serializedName: "stdev", - readOnly: true, + tableName: { + serializedName: "tableName", + required: true, type: { - name: "Number" + name: "String" + } + }, + credential: { + serializedName: "credential", + type: { + 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 +3366,7 @@ export const SecurityEventCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityEvent" + className: "JobTargetGroup" } } } @@ -3443,56 +3382,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 +3436,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 +3449,7 @@ export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ManagedTransparentDataEncryption" + className: "JobVersion" } } } @@ -3530,10 +3465,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 +3478,7 @@ export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "ManagedInstanceAdministrator" + className: "Job" } } } @@ -3559,27 +3494,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 +3537,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 +3550,7 @@ export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "LedgerDigestUploads" } } } @@ -3617,56 +3566,67 @@ 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", + supportedManagedInstanceVersions: { + serializedName: "supportedManagedInstanceVersions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceVersionCapability" + } + } } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedJobAgentVersions: { + serializedName: "supportedJobAgentVersions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy" + className: "JobAgentVersionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3675,176 +3635,131 @@ 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" } } } - } - } - } -}; - -export const UpsertManagedServerOperationStep: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpsertManagedServerOperationStep", - modelProperties: { - order: { - serializedName: "order", - type: { - name: "Number" - } }, - name: { - serializedName: "name", + zonePinning: { + serializedName: "zonePinning", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, status: { serializedName: "status", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3853,216 +3768,149 @@ export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.Comp } }; -export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { +export const ServiceObjectiveCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointProperty", + className: "ServiceObjectiveCapability", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String" + name: "Uuid" } }, - actionsRequired: { - serializedName: "actionsRequired", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaxSizes: { + serializedName: "supportedMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + performanceLevel: { + serializedName: "performanceLevel", type: { - name: "String" + name: "Composite", + className: "PerformanceLevelCapability" } - } - } - } -}; - -export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkListResult", - modelProperties: { - value: { - serializedName: "value", + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePrivateLink" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } - } - } - } -}; - -export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties", - modelProperties: { - groupId: { - serializedName: "groupId", + }, + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - requiredMembers: { - serializedName: "requiredMembers", - readOnly: true, + supportedAutoPauseDelay: { + serializedName: "supportedAutoPauseDelay", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AutoPauseDelayTimeRange" } - } - } - } -}; - -export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessmentListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMinCapacities: { + serializedName: "supportedMinCapacities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment" + className: "MinCapacityCapability" } } } }, - nextLink: { - serializedName: "nextLink", + computeModel: { + serializedName: "computeModel", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy" + className: "MaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zonePinning: { + serializedName: "zonePinning", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedFreeLimitExhaustionBehaviors: { + serializedName: "supportedFreeLimitExhaustionBehaviors", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "FreeLimitExhaustionBehaviorCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4071,74 +3919,94 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const MaxSizeRangeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "MaxSizeRangeCapability", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + minValue: { + serializedName: "minValue", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - display: { - serializedName: "display", + maxValue: { + serializedName: "maxValue", type: { name: "Composite", - className: "OperationDisplay" + className: "MaxSizeCapability" } }, - origin: { - serializedName: "origin", - readOnly: true, + scaleSize: { + serializedName: "scaleSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - properties: { - serializedName: "properties", + logSize: { + serializedName: "logSize", + type: { + name: "Composite", + className: "LogSizeCapability" + } + }, + status: { + serializedName: "status", readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const MaxSizeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "MaxSizeCapability", modelProperties: { - provider: { - serializedName: "provider", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - resource: { - serializedName: "resource", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } - }, - operation: { - serializedName: "operation", + } + } + } +}; + +export const LogSizeCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSizeCapability", + modelProperties: { + limit: { + serializedName: "limit", readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4148,26 +4016,20 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const PerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "PerformanceLevelCapability", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" @@ -4177,40 +4039,28 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { +export const LicenseTypeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionProperties", + className: "LicenseTypeCapability", modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "String" } }, - groupIds: { - serializedName: "groupIds", + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4219,72 +4069,79 @@ export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { } }; -export const PrivateEndpointProperty: coreClient.CompositeMapper = { +export const AutoPauseDelayTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointProperty", + className: "AutoPauseDelayTimeRange", modelProperties: { - id: { - serializedName: "id", + minValue: { + serializedName: "minValue", + readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, + }, + maxValue: { + serializedName: "maxValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", - required: true, + stepSize: { + serializedName: "stepSize", + readOnly: true, type: { - name: "String" + name: "Number" } }, - actionsRequired: { - serializedName: "actionsRequired", + 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 PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const MinCapacityCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "MinCapacityCapability", modelProperties: { value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4293,96 +4150,89 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const MaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceProperties", + className: "MaintenanceConfigurationCapability", modelProperties: { - groupId: { - serializedName: "groupId", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - requiredMembers: { - serializedName: "requiredMembers", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - requiredZoneNames: { - serializedName: "requiredZoneNames", + 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 RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { +export const FreeLimitExhaustionBehaviorCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabaseListResult", + className: "FreeLimitExhaustionBehaviorCapability", modelProperties: { - value: { - serializedName: "value", + exhaustionBehaviorType: { + serializedName: "exhaustionBehaviorType", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoverableManagedDatabase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } } } } }; -export const RestorePointListResult: coreClient.CompositeMapper = { +export const ReadScaleCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointListResult", + className: "ReadScaleCapability", modelProperties: { - value: { - serializedName: "value", + maxNumberOfReplicas: { + serializedName: "maxNumberOfReplicas", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePoint" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4391,14 +4241,28 @@ export const RestorePointListResult: coreClient.CompositeMapper = { } }; -export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { +export const StorageCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreateDatabaseRestorePointDefinition", + className: "StorageCapability", modelProperties: { - restorePointLabel: { - serializedName: "restorePointLabel", - required: true, + storageAccountType: { + serializedName: "storageAccountType", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4407,198 +4271,205 @@ export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = } }; -export const AutomaticTuningServerOptions: coreClient.CompositeMapper = { +export const ElasticPoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomaticTuningServerOptions", + className: "ElasticPoolEditionCapability", modelProperties: { - desiredState: { - serializedName: "desiredState", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Off", "On", "Default"] + name: "String" } }, - actualState: { - serializedName: "actualState", + supportedElasticPoolPerformanceLevels: { + serializedName: "supportedElasticPoolPerformanceLevels", readOnly: true, type: { - name: "Enum", - allowedValues: ["Off", "On"] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolPerformanceLevelCapability" + } + } } }, - reasonCode: { - serializedName: "reasonCode", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - reasonDesc: { - serializedName: "reasonDesc", + zonePinning: { + serializedName: "zonePinning", + readOnly: true, + type: { + name: "Boolean" + } + }, + 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 ElasticPoolPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdministratorListResult", + className: "ElasticPoolPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + performanceLevel: { + serializedName: "performanceLevel", + type: { + name: "Composite", + className: "PerformanceLevelCapability" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerAzureADAdministrator" + className: "LicenseTypeCapability" } } } }, - nextLink: { - serializedName: "nextLink", + maxDatabaseCount: { + serializedName: "maxDatabaseCount", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureADOnlyAuthListResult", - modelProperties: { - value: { - serializedName: "value", + }, + includedMaxSize: { + serializedName: "includedMaxSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + supportedMaxSizes: { + serializedName: "supportedMaxSizes", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerAzureADOnlyAuthentication" + className: "MaxSizeRangeCapability" } } } }, - nextLink: { - serializedName: "nextLink", + supportedPerDatabaseMaxSizes: { + serializedName: "supportedPerDatabaseMaxSizes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } - } - } - } -}; - -export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDevOpsAuditSettingsListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedPerDatabaseMaxPerformanceLevels: { + serializedName: "supportedPerDatabaseMaxPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings" + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + zoneRedundant: { + serializedName: "zoneRedundant", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const ServerDnsAliasListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerDnsAliasListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerDnsAlias" + className: "MaintenanceConfigurationCapability" } } } }, - 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", + supportedMinCapacities: { + serializedName: "supportedMinCapacities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerKey" + className: "MinCapacityCapability" } } } }, - nextLink: { - serializedName: "nextLink", + supportedAutoPauseDelay: { + serializedName: "supportedAutoPauseDelay", + type: { + name: "Composite", + className: "AutoPauseDelayTimeRange" + } + }, + supportedPerDatabaseAutoPauseDelay: { + serializedName: "supportedPerDatabaseAutoPauseDelay", + type: { + name: "Composite", + className: "PerDatabaseAutoPauseDelayTimeRange" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4607,72 +4478,48 @@ export const ServerKeyListResult: coreClient.CompositeMapper = { } }; -export const ServerOperationListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperationListResult", + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerOperation" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedPerDatabaseMinPerformanceLevels: { + serializedName: "supportedPerDatabaseMinPerformanceLevels", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerSecurityAlertPolicy" + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } - } - } - } -}; - -export const ServerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerInfo", - modelProperties: { - serverId: { - serializedName: "serverId", - required: true, + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4681,114 +4528,142 @@ export const ServerInfo: coreClient.CompositeMapper = { } }; -export const ServerTrustGroupListResult: coreClient.CompositeMapper = { +export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroupListResult", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", modelProperties: { - value: { - serializedName: "value", + limit: { + serializedName: "limit", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerTrustGroup" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + unit: { + serializedName: "unit", readOnly: true, type: { name: "String" } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } } } } }; -export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const PerDatabaseAutoPauseDelayTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", + className: "PerDatabaseAutoPauseDelayTimeRange", modelProperties: { - value: { - serializedName: "value", + minValue: { + serializedName: "minValue", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + maxValue: { + serializedName: "maxValue", + readOnly: true, + type: { + name: "Number" + } + }, + stepSize: { + serializedName: "stepSize", + readOnly: true, + type: { + name: "Number" + } + }, + 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 SubscriptionUsageListResult: coreClient.CompositeMapper = { +export const ManagedInstanceVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsageListResult", + 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: "SubscriptionUsage" + className: "ManagedInstanceEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SyncAgentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentListResult", - modelProperties: { - value: { - serializedName: "value", + supportedInstancePoolEditions: { + serializedName: "supportedInstancePoolEditions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncAgent" + className: "InstancePoolEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4797,72 +4672,61 @@ export const SyncAgentListResult: coreClient.CompositeMapper = { } }; -export const SyncAgentKeyProperties: coreClient.CompositeMapper = { +export const ManagedInstanceEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentKeyProperties", + className: "ManagedInstanceEditionCapability", modelProperties: { - syncAgentKey: { - serializedName: "syncAgentKey", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgentLinkedDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabaseListResult", - 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: "SyncAgentLinkedDatabase" + className: "ManagedInstanceFamilyCapability" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncDatabaseIdListResult", - modelProperties: { - value: { - serializedName: "value", + supportedStorageCapabilities: { + serializedName: "supportedStorageCapabilities", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncDatabaseIdProperties" + className: "StorageCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4871,209 +4735,210 @@ export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { } }; -export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { +export const ManagedInstanceFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncDatabaseIdProperties", + className: "ManagedInstanceFamilyCapability", 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", + }, + sku: { + serializedName: "sku", + readOnly: true, + type: { + name: "String" + } + }, + zoneRedundant: { + serializedName: "zoneRedundant", + readOnly: true, + type: { + name: "Boolean" + } + }, + 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: "ManagedInstanceVcoresCapability" } } } }, - lastUpdateTime: { - serializedName: "lastUpdateTime", + status: { + serializedName: "status", readOnly: true, type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const SyncFullSchemaTable: coreClient.CompositeMapper = { +export const ManagedInstanceVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncFullSchemaTable", + className: "ManagedInstanceVcoresCapability", modelProperties: { - columns: { - serializedName: "columns", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn" - } - } + name: "String" } }, - errorId: { - serializedName: "errorId", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Number" } }, - hasError: { - serializedName: "hasError", - readOnly: true, + includedMaxSize: { + serializedName: "includedMaxSize", type: { - name: "Boolean" + name: "Composite", + className: "MaxSizeCapability" } }, - name: { - serializedName: "name", + supportedStorageSizes: { + serializedName: "supportedStorageSizes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } }, - quotedName: { - serializedName: "quotedName", + includedStorageIOps: { + serializedName: "includedStorageIOps", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn", - modelProperties: { - dataSize: { - serializedName: "dataSize", + }, + supportedStorageIOps: { + serializedName: "supportedStorageIOps", + type: { + name: "Composite", + className: "MaxLimitRangeCapability" + } + }, + iopsMinValueOverrideFactorPerSelectedStorageGB: { + serializedName: "iopsMinValueOverrideFactorPerSelectedStorageGB", readOnly: true, type: { - name: "String" + name: "Number" } }, - dataType: { - serializedName: "dataType", + iopsIncludedValueOverrideFactorPerSelectedStorageGB: { + serializedName: "iopsIncludedValueOverrideFactorPerSelectedStorageGB", readOnly: true, type: { - name: "String" + name: "Number" } }, - errorId: { - serializedName: "errorId", + includedStorageThroughputMBps: { + serializedName: "includedStorageThroughputMBps", readOnly: true, type: { - name: "String" + name: "Number" } }, - hasError: { - serializedName: "hasError", + supportedStorageThroughputMBps: { + serializedName: "supportedStorageThroughputMBps", + type: { + name: "Composite", + className: "MaxLimitRangeCapability" + } + }, + throughputMBpsMinValueOverrideFactorPerSelectedStorageGB: { + serializedName: + "throughputMBpsMinValueOverrideFactorPerSelectedStorageGB", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - isPrimaryKey: { - serializedName: "isPrimaryKey", + throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB: { + serializedName: + "throughputMBpsIncludedValueOverrideFactorPerSelectedStorageGB", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - name: { - serializedName: "name", + instancePoolSupported: { + serializedName: "instancePoolSupported", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - quotedName: { - serializedName: "quotedName", + standaloneSupported: { + serializedName: "standaloneSupported", readOnly: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SyncGroupLogListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncGroupLogListResult", - modelProperties: { - value: { - serializedName: "value", + }, + supportedMaintenanceConfigurations: { + serializedName: "supportedMaintenanceConfigurations", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupLogProperties" + className: "ManagedInstanceMaintenanceConfigurationCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5082,49 +4947,42 @@ export const SyncGroupLogListResult: coreClient.CompositeMapper = { } }; -export const SyncGroupLogProperties: coreClient.CompositeMapper = { +export const MaxLimitRangeCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupLogProperties", + className: "MaxLimitRangeCapability", modelProperties: { - timestamp: { - serializedName: "timestamp", - readOnly: true, - type: { - name: "DateTime" - } - }, - type: { - serializedName: "type", + minValue: { + serializedName: "minValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - source: { - serializedName: "source", + maxValue: { + serializedName: "maxValue", readOnly: true, type: { - name: "String" + name: "Number" } }, - details: { - serializedName: "details", + scaleSize: { + serializedName: "scaleSize", readOnly: true, type: { - name: "String" + name: "Number" } }, - tracingId: { - serializedName: "tracingId", + status: { + serializedName: "status", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] } }, - operationStatus: { - serializedName: "operationStatus", - readOnly: true, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5133,25 +4991,28 @@ export const SyncGroupLogProperties: coreClient.CompositeMapper = { } }; -export const SyncGroupSchema: coreClient.CompositeMapper = { +export const ManagedInstanceMaintenanceConfigurationCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchema", + className: "ManagedInstanceMaintenanceConfigurationCapability", modelProperties: { - tables: { - serializedName: "tables", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTable" - } - } + name: "String" } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5160,25 +5021,41 @@ export const SyncGroupSchema: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTable: coreClient.CompositeMapper = { +export const InstancePoolEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTable", + className: "InstancePoolEditionCapability", modelProperties: { - columns: { - serializedName: "columns", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedFamilies: { + serializedName: "supportedFamilies", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn" + className: "InstancePoolFamilyCapability" } } } }, - quotedName: { - serializedName: "quotedName", + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5187,54 +5064,54 @@ export const SyncGroupSchemaTable: coreClient.CompositeMapper = { } }; -export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { +export const InstancePoolFamilyCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn", + className: "InstancePoolFamilyCapability", modelProperties: { - quotedName: { - serializedName: "quotedName", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - dataSize: { - serializedName: "dataSize", + supportedLicenseTypes: { + serializedName: "supportedLicenseTypes", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } }, - dataType: { - serializedName: "dataType", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncGroupListResult", - modelProperties: { - value: { - serializedName: "value", + supportedVcoresValues: { + serializedName: "supportedVcoresValues", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroup" + className: "InstancePoolVcoresCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5243,27 +5120,42 @@ export const SyncGroupListResult: coreClient.CompositeMapper = { } }; -export const SyncMemberListResult: coreClient.CompositeMapper = { +export const InstancePoolVcoresCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMemberListResult", + className: "InstancePoolVcoresCapability", modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncMember" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + storageLimit: { + serializedName: "storageLimit", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5272,27 +5164,41 @@ export const SyncMemberListResult: coreClient.CompositeMapper = { } }; -export const TimeZoneListResult: coreClient.CompositeMapper = { +export const JobAgentVersionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZoneListResult", + className: "JobAgentVersionCapability", 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: "TimeZone" + className: "JobAgentEditionCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5301,27 +5207,41 @@ export const TimeZoneListResult: coreClient.CompositeMapper = { } }; -export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { +export const JobAgentEditionCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRuleListResult", + className: "JobAgentEditionCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + supportedServiceLevelObjectives: { + serializedName: "supportedServiceLevelObjectives", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "JobAgentServiceLevelObjectiveCapability" } } } }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5330,27 +5250,35 @@ export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { } }; -export const WorkloadClassifierListResult: coreClient.CompositeMapper = { +export const JobAgentServiceLevelObjectiveCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifierListResult", + className: "JobAgentServiceLevelObjectiveCapability", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkloadClassifier" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + status: { + serializedName: "status", readOnly: true, + type: { + name: "Enum", + allowedValues: ["Visible", "Available", "Default", "Disabled"] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -5359,10 +5287,10 @@ export const WorkloadClassifierListResult: coreClient.CompositeMapper = { } }; -export const WorkloadGroupListResult: coreClient.CompositeMapper = { +export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroupListResult", + className: "LongTermRetentionBackupListResult", modelProperties: { value: { serializedName: "value", @@ -5372,7 +5300,7 @@ export const WorkloadGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkloadGroup" + className: "LongTermRetentionBackup" } } } @@ -5388,27 +5316,21 @@ export const WorkloadGroupListResult: coreClient.CompositeMapper = { } }; -export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const ChangeLongTermRetentionBackupAccessTierParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicyListResult", + className: "ChangeLongTermRetentionBackupAccessTierParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + backupStorageAccessTier: { + serializedName: "backupStorageAccessTier", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupShortTermRetentionPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + operationMode: { + serializedName: "operationMode", + required: true, type: { name: "String" } @@ -5417,266 +5339,109 @@ export const BackupShortTermRetentionPolicyListResult: coreClient.CompositeMappe } }; -export const ImportExportExtensionsOperationListResult: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationListResult", + className: "ErrorResponse", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImportExportExtensionsOperationResult" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const DatabaseOperationListResult: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseOperationListResult", + className: "ErrorDetail", modelProperties: { - value: { - serializedName: "value", + code: { + serializedName: "code", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseOperation" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + message: { + serializedName: "message", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DatabaseUsageListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseUsageListResult", - modelProperties: { - value: { - serializedName: "value", + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DatabaseUsage" + className: "ErrorDetail" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const LedgerDigestUploadsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LedgerDigestUploadsListResult", - modelProperties: { - value: { - serializedName: "value", + additionalInfo: { + serializedName: "additionalInfo", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LedgerDigestUploads" + className: "ErrorAdditionalInfo" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRuleListResult", + className: "ErrorAdditionalInfo", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundFirewallRule" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + info: { + serializedName: "info", readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const UsageListResult: coreClient.CompositeMapper = { +export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageListResult", + className: "CopyLongTermRetentionBackupParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Usage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Usage", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "Name" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - readOnly: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - readOnly: true, - type: { - name: "Number" - } - }, - requestedLimit: { - serializedName: "requestedLimit", - 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", + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { name: "String" } @@ -5730,10 +5495,10 @@ export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper } }; -export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackupListResult", + className: "ManagedInstanceLongTermRetentionBackupListResult", modelProperties: { value: { serializedName: "value", @@ -5743,7 +5508,7 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionBackup" + className: "ManagedInstanceLongTermRetentionBackup" } } } @@ -5759,10 +5524,10 @@ export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { } }; -export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.CompositeMapper = { +export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackupListResult", + className: "LongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5772,7 +5537,7 @@ export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.Compos element: { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup" + className: "LongTermRetentionPolicy" } } } @@ -5788,27 +5553,25 @@ export const ManagedInstanceLongTermRetentionBackupListResult: coreClient.Compos } }; -export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { +export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", + className: "MaintenanceWindowTimeRange", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + dayOfWeek: { + serializedName: "dayOfWeek", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + duration: { + serializedName: "duration", type: { name: "String" } @@ -5817,10 +5580,10 @@ export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMap } }; -export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { +export const ManagedBackupShortTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicyListResult", + className: "ManagedBackupShortTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -5830,7 +5593,7 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerConnectionPolicy" + className: "ManagedBackupShortTermRetentionPolicy" } } } @@ -5846,10 +5609,10 @@ export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { } }; -export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributedAvailabilityGroupsListResult", + className: "ManagedDatabaseAdvancedThreatProtectionListResult", modelProperties: { value: { serializedName: "value", @@ -5859,7 +5622,7 @@ export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "DistributedAvailabilityGroup" + className: "ManagedDatabaseAdvancedThreatProtection" } } } @@ -5875,10 +5638,10 @@ export const DistributedAvailabilityGroupsListResult: coreClient.CompositeMapper } }; -export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustCertificatesListResult", + className: "ManagedDatabaseMoveOperationListResult", modelProperties: { value: { serializedName: "value", @@ -5888,7 +5651,7 @@ export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerTrustCertificate" + className: "ManagedDatabaseMoveOperationResult" } } } @@ -5904,10 +5667,10 @@ export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { } }; -export const EndpointCertificateListResult: coreClient.CompositeMapper = { +export const ManagedInstanceQueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointCertificateListResult", + className: "ManagedInstanceQueryStatistics", modelProperties: { value: { serializedName: "value", @@ -5917,7 +5680,7 @@ export const EndpointCertificateListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointCertificate" + className: "QueryStatistics" } } } @@ -5933,69 +5696,40 @@ export const EndpointCertificateListResult: coreClient.CompositeMapper = { } }; -export const SensitivityLabelListResult: coreClient.CompositeMapper = { +export const QueryMetricInterval: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelListResult", + className: "QueryMetricInterval", modelProperties: { - value: { - serializedName: "value", + intervalStartTime: { + serializedName: "intervalStartTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + intervalType: { + serializedName: "intervalType", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", + }, + executionCount: { + serializedName: "executionCount", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabelUpdate" - } - } + name: "Number" } - } - } - } -}; - -export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", + }, + metrics: { + serializedName: "metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate" + className: "QueryMetricProperties" } } } @@ -6004,84 +5738,136 @@ export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = } }; -export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const QueryMetricProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicyListResult", + className: "QueryMetricProperties", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + displayName: { + serializedName: "displayName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const DatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", - modelProperties: { + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, value: { serializedName: "value", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicy" - } - } + 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 ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicyListResult", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties", modelProperties: { - value: { - serializedName: "value", + status: { + serializedName: "status", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy" - } - } + 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 ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "String" @@ -6091,10 +5877,10 @@ export const ExtendedDatabaseBlobAuditingPolicyListResult: coreClient.CompositeM } }; -export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", + className: "ManagedDatabaseSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -6104,7 +5890,7 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" + className: "ManagedDatabaseSecurityAlertPolicy" } } } @@ -6120,10 +5906,10 @@ export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMap } }; -export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const SecurityEventCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtectionListResult", + className: "SecurityEventCollection", modelProperties: { value: { serializedName: "value", @@ -6133,7 +5919,7 @@ export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "DatabaseAdvancedThreatProtection" + className: "SecurityEvent" } } } @@ -6149,26 +5935,55 @@ export const DatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMap } }; -export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const SecurityEventSqlInjectionAdditionalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalServerAdvancedThreatProtectionListResult", + className: "SecurityEventSqlInjectionAdditionalProperties", modelProperties: { - value: { - serializedName: "value", + threatId: { + serializedName: "threatId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAdvancedThreatProtection" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + statement: { + serializedName: "statement", + readOnly: true, + type: { + name: "String" + } + }, + statementHighlightOffset: { + serializedName: "statementHighlightOffset", + readOnly: true, + type: { + name: "Number" + } + }, + statementHighlightLength: { + serializedName: "statementHighlightLength", + readOnly: true, + type: { + name: "Number" + } + }, + errorCode: { + serializedName: "errorCode", + readOnly: true, + type: { + name: "Number" + } + }, + errorSeverity: { + serializedName: "errorSeverity", + readOnly: true, + type: { + name: "Number" + } + }, + errorMessage: { + serializedName: "errorMessage", readOnly: true, type: { name: "String" @@ -6178,10 +5993,10 @@ export const LogicalServerAdvancedThreatProtectionListResult: coreClient.Composi } }; -export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { +export const SensitivityLabelListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasListResult", + className: "SensitivityLabelListResult", modelProperties: { value: { serializedName: "value", @@ -6191,7 +6006,7 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedServerDnsAlias" + className: "SensitivityLabel" } } } @@ -6207,71 +6022,52 @@ export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { } }; -export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServerDnsAliasCreation", - modelProperties: { - createDnsRecord: { - defaultValue: true, - serializedName: "createDnsRecord", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { +export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAliasAcquisition", + className: "SensitivityLabelUpdateList", modelProperties: { - oldManagedServerDnsAliasResourceId: { - serializedName: "oldManagedServerDnsAliasResourceId", - required: true, + operations: { + serializedName: "operations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabelUpdate" + } + } } } } } }; -export const ManagedDatabaseAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtectionListResult", + className: "RecommendedSensitivityLabelUpdateList", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection" + className: "RecommendedSensitivityLabelUpdate" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { +export const ManagedTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtectionListResult", + className: "ManagedTransparentDataEncryptionListResult", modelProperties: { value: { serializedName: "value", @@ -6281,7 +6077,7 @@ export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.Compo element: { type: { name: "Composite", - className: "ManagedInstanceAdvancedThreatProtection" + className: "ManagedTransparentDataEncryption" } } } @@ -6297,10 +6093,10 @@ export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.Compo } }; -export const ReplicationLinkListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLinkListResult", + className: "ManagedDatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -6310,7 +6106,7 @@ export const ReplicationLinkListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ReplicationLink" + className: "ManagedDatabase" } } } @@ -6326,152 +6122,184 @@ export const ReplicationLinkListResult: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseMoveOperationListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveOperationListResult", + className: "ManagedDatabaseUpdate", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseMoveOperationResult" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceDtcListResult", - modelProperties: { - value: { - serializedName: "value", + }, + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceDtc" - } - } + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", + earliestRestorePoint: { + serializedName: "properties.earliestRestorePoint", + readOnly: true, + type: { + name: "DateTime" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + defaultSecondaryLocation: { + serializedName: "properties.defaultSecondaryLocation", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceDtcSecuritySettings", - modelProperties: { - transactionManagerCommunicationSettings: { - serializedName: "transactionManagerCommunicationSettings", + }, + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" + name: "String" } }, - xaTransactionsEnabled: { - serializedName: "xaTransactionsEnabled", + createMode: { + serializedName: "properties.createMode", type: { - name: "Boolean" + name: "String" } }, - snaLu6Point2TransactionsEnabled: { - serializedName: "snaLu6point2TransactionsEnabled", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { - name: "Boolean" + name: "String" } }, - xaTransactionsDefaultTimeout: { - serializedName: "xaTransactionsDefaultTimeout", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { - name: "Number" + name: "String" } }, - xaTransactionsMaximumTimeout: { - serializedName: "xaTransactionsMaximumTimeout", + crossSubscriptionSourceDatabaseId: { + serializedName: "properties.crossSubscriptionSourceDatabaseId", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", - modelProperties: { - allowInboundEnabled: { - serializedName: "allowInboundEnabled", + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { - name: "Boolean" + name: "String" } }, - allowOutboundEnabled: { - serializedName: "allowOutboundEnabled", + 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" } }, - authentication: { - serializedName: "authentication", + lastBackupName: { + serializedName: "properties.lastBackupName", + type: { + name: "String" + } + }, + crossSubscriptionTargetManagedInstanceId: { + serializedName: "properties.crossSubscriptionTargetManagedInstanceId", type: { name: "String" } + }, + isLedgerOn: { + serializedName: "properties.isLedgerOn", + type: { + name: "Boolean" + } } } } }; -export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspaceListResult", + className: "ManagedDatabaseMoveDefinition", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SynapseLinkWorkspace" - } - } + name: "String" } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + } + } + } +}; + +export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CompleteDatabaseRestoreDefinition", + modelProperties: { + lastBackupName: { + serializedName: "lastBackupName", + required: true, type: { name: "String" } @@ -6480,19 +6308,20 @@ export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { } }; -export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { +export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseLinkWorkspaceInfoProperties", + className: "ManagedDatabaseStartMoveDefinition", modelProperties: { - workspaceId: { - serializedName: "workspaceId", + destinationManagedDatabaseId: { + serializedName: "destinationManagedDatabaseId", + required: true, type: { name: "String" } }, - linkConnectionName: { - serializedName: "linkConnectionName", + operationMode: { + serializedName: "operationMode", type: { name: "String" } @@ -6501,10 +6330,10 @@ export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { } }; -export const VirtualClusterListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterListResult", + className: "ManagedInstanceAdministratorListResult", modelProperties: { value: { serializedName: "value", @@ -6514,7 +6343,7 @@ export const VirtualClusterListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualCluster" + className: "ManagedInstanceAdministrator" } } } @@ -6530,51 +6359,39 @@ export const VirtualClusterListResult: coreClient.CompositeMapper = { } }; -export const VirtualClusterUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualClusterUpdate", + className: "ManagedInstanceAdvancedThreatProtectionListResult", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - subnetId: { - serializedName: "properties.subnetId", - readOnly: true, - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - childResources: { - serializedName: "properties.childResources", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstanceAdvancedThreatProtection" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupListResult", + className: "ManagedInstanceAzureADOnlyAuthListResult", modelProperties: { value: { serializedName: "value", @@ -6584,7 +6401,7 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceFailoverGroup" + className: "ManagedInstanceAzureADOnlyAuthentication" } } } @@ -6600,78 +6417,94 @@ export const InstanceFailoverGroupListResult: coreClient.CompositeMapper = { } }; -export const InstanceFailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const ManagedInstanceDtcListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint", + className: "ManagedInstanceDtcListResult", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceDtc" + } + } } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const InstanceFailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { +export const ManagedInstanceDtcSecuritySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint", + className: "ManagedInstanceDtcSecuritySettings", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + transactionManagerCommunicationSettings: { + serializedName: "transactionManagerCommunicationSettings", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings" } - } - } - } -}; - -export const PartnerRegionInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerRegionInfo", - modelProperties: { - location: { - serializedName: "location", + }, + xaTransactionsEnabled: { + serializedName: "xaTransactionsEnabled", type: { - name: "String" + name: "Boolean" } }, - replicationRole: { - serializedName: "replicationRole", - readOnly: true, + snaLu6Point2TransactionsEnabled: { + serializedName: "snaLu6point2TransactionsEnabled", type: { - name: "String" + name: "Boolean" + } + }, + xaTransactionsDefaultTimeout: { + serializedName: "xaTransactionsDefaultTimeout", + type: { + name: "Number" + } + }, + xaTransactionsMaximumTimeout: { + serializedName: "xaTransactionsMaximumTimeout", + type: { + name: "Number" } } } } }; -export const ManagedInstancePairInfo: coreClient.CompositeMapper = { +export const ManagedInstanceDtcTransactionManagerCommunicationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePairInfo", + className: "ManagedInstanceDtcTransactionManagerCommunicationSettings", modelProperties: { - primaryManagedInstanceId: { - serializedName: "primaryManagedInstanceId", + allowInboundEnabled: { + serializedName: "allowInboundEnabled", type: { - name: "String" + name: "Boolean" } }, - partnerManagedInstanceId: { - serializedName: "partnerManagedInstanceId", + allowOutboundEnabled: { + serializedName: "allowOutboundEnabled", + type: { + name: "Boolean" + } + }, + authentication: { + serializedName: "authentication", type: { name: "String" } @@ -6680,64 +6513,55 @@ export const ManagedInstancePairInfo: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseRestoreDetailsBackupSetProperties: coreClient.CompositeMapper = { +export const ManagedInstanceEncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties", + className: "ManagedInstanceEncryptionProtectorListResult", modelProperties: { - status: { - serializedName: "status", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtector" + } + } } }, - firstStripeName: { - serializedName: "firstStripeName", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - numberOfStripes: { - serializedName: "numberOfStripes", - readOnly: true, - type: { - name: "Number" - } - }, - backupSizeMB: { - serializedName: "backupSizeMB", - readOnly: true, - type: { - name: "Number" - } - }, - restoreStartedTimestampUtc: { - serializedName: "restoreStartedTimestampUtc", - readOnly: true, - type: { - name: "DateTime" - } - }, - restoreFinishedTimestampUtc: { - serializedName: "restoreFinishedTimestampUtc", - readOnly: true, - type: { - name: "DateTime" - } } } } }; -export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient.CompositeMapper = { +export const ManagedInstanceKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsUnrestorableFileProperties", + className: "ManagedInstanceKeyListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceKey" + } + } + } + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -6747,10 +6571,10 @@ export const ManagedDatabaseRestoreDetailsUnrestorableFileProperties: coreClient } }; -export const DatabaseListResult: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -6760,7 +6584,7 @@ export const DatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Database" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -6776,488 +6600,979 @@ export const DatabaseListResult: coreClient.CompositeMapper = { } }; -export const DatabaseIdentity: coreClient.CompositeMapper = { +export const ManagedInstanceOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseIdentity", + className: "ManagedInstanceOperationListResult", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", + value: { + serializedName: "value", readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceOperation" + } + } } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DatabaseUserIdentity" } - } + name: "String" } } } } }; -export const DatabaseUserIdentity: coreClient.CompositeMapper = { +export const ManagedInstanceOperationParametersPair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUserIdentity", + className: "ManagedInstanceOperationParametersPair", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + currentParameters: { + serializedName: "currentParameters", type: { - name: "Uuid" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - clientId: { - serializedName: "clientId", - readOnly: true, + requestedParameters: { + serializedName: "requestedParameters", type: { - name: "Uuid" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } } } } }; -export const DatabaseKey: coreClient.CompositeMapper = { +export const UpsertManagedServerOperationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseKey", + className: "UpsertManagedServerOperationParameters", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + family: { + serializedName: "family", type: { name: "String" } }, - thumbprint: { - serializedName: "thumbprint", - readOnly: true, + tier: { + serializedName: "tier", type: { name: "String" } }, - creationDate: { - serializedName: "creationDate", - readOnly: true, + vCores: { + serializedName: "vCores", type: { - name: "DateTime" + name: "Number" } }, - subregion: { - serializedName: "subregion", - readOnly: true, + storageSizeInGB: { + serializedName: "storageSizeInGB", type: { - name: "String" + name: "Number" } } } } }; -export const DatabaseUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceOperationSteps: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUpdate", + className: "ManagedInstanceOperationSteps", modelProperties: { - sku: { - serializedName: "sku", + totalSteps: { + serializedName: "totalSteps", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - identity: { - serializedName: "identity", + currentStep: { + serializedName: "currentStep", + readOnly: true, type: { - name: "Composite", - className: "DatabaseIdentity" + name: "Number" } }, - tags: { - serializedName: "tags", + stepsList: { + serializedName: "stepsList", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "UpsertManagedServerOperationStepWithEstimatesAndDuration" + } + } + } + } + } + } +}; + +export const UpsertManagedServerOperationStepWithEstimatesAndDuration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpsertManagedServerOperationStepWithEstimatesAndDuration", + modelProperties: { + stepStartTime: { + serializedName: "stepStartTime", + type: { + name: "DateTime" } }, - createMode: { - serializedName: "properties.createMode", + stepEndTime: { + serializedName: "stepEndTime", type: { - name: "String" + name: "DateTime" } }, - collation: { - serializedName: "properties.collation", + timeElapsed: { + serializedName: "timeElapsed", type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + order: { + serializedName: "order", type: { name: "Number" } }, - sampleName: { - serializedName: "properties.sampleName", + name: { + serializedName: "name", type: { name: "String" } }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + status: { + serializedName: "status", type: { name: "String" } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const ManagedInstancePrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnection" + } + } } }, - status: { - serializedName: "properties.status", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - databaseId: { - serializedName: "properties.databaseId", - readOnly: true, + } + } + } +}; + +export const ManagedInstancePrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "Uuid" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "DateTime" + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - currentServiceObjectiveName: { - serializedName: "properties.currentServiceObjectiveName", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } - }, - requestedServiceObjectiveName: { - serializedName: "properties.requestedServiceObjectiveName", - readOnly: true, + } + } + } +}; + +export const ManagedInstancePrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } - }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + } + } + } +}; + +export const ManagedInstancePrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + description: { + serializedName: "description", + required: true, type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + } + } + } +}; + +export const ManagedInstancePrivateLinkListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePrivateLink" + } + } } }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + } + } + } +}; + +export const ManagedInstancePrivateLinkProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkProperties", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", + } + } + } +}; + +export const ManagedInstanceVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceVulnerabilityAssessmentListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceVulnerabilityAssessment" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } + } + } + } +}; + +export const ManagedInstanceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstance" + } + } + } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const ResourceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceIdentity", + modelProperties: { + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "UserIdentity" } } } }, - licenseType: { - serializedName: "properties.licenseType", + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", type: { name: "String" } }, - maxLogSizeBytes: { - serializedName: "properties.maxLogSizeBytes", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { - name: "Number" + name: "Uuid" + } + } + } + } +}; + +export const UserIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + clientId: { + serializedName: "clientId", readOnly: true, type: { - name: "DateTime" + name: "Uuid" + } + } + } + } +}; + +export const ManagedInstancePecProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePecProperty", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" } }, - readScale: { - serializedName: "properties.readScale", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties" + } + } + } + } +}; + +export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceExternalAdministrator", + modelProperties: { + administratorType: { + serializedName: "administratorType", type: { name: "String" } }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", + principalType: { + serializedName: "principalType", type: { - name: "Number" + name: "String" } }, - secondaryType: { - serializedName: "properties.secondaryType", + login: { + serializedName: "login", type: { name: "String" } }, - currentSku: { - serializedName: "properties.currentSku", + sid: { + serializedName: "sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServicePrincipal: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicePrincipal", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceUpdate", + modelProperties: { + sku: { + serializedName: "sku", type: { name: "Composite", className: "Sku" } }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + identity: { + serializedName: "identity", type: { - name: "Number" + name: "Composite", + className: "ResourceIdentity" } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { name: "String" } }, - minCapacity: { - serializedName: "properties.minCapacity", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - pausedDate: { - serializedName: "properties.pausedDate", + isGeneralPurposeV2: { + serializedName: "properties.isGeneralPurposeV2", + type: { + name: "Boolean" + } + }, + administratorLogin: { + serializedName: "properties.administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - resumedDate: { - serializedName: "properties.resumedDate", + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + hybridSecondaryUsage: { + serializedName: "properties.hybridSecondaryUsage", + type: { + name: "String" + } + }, + hybridSecondaryUsageDetected: { + serializedName: "properties.hybridSecondaryUsageDetected", readOnly: true, + type: { + name: "String" + } + }, + vCores: { + serializedName: "properties.vCores", + type: { + name: "Number" + } + }, + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", + type: { + name: "Number" + } + }, + storageIOps: { + serializedName: "properties.storageIOps", + type: { + name: "Number" + } + }, + storageThroughputMBps: { + serializedName: "properties.storageThroughputMBps", + type: { + name: "Number" + } + }, + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + dnsZone: { + serializedName: "properties.dnsZone", + readOnly: true, + type: { + name: "String" + } + }, + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", + type: { + name: "String" + } + }, + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", + type: { + name: "Boolean" + } + }, + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", + type: { + name: "String" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { name: "DateTime" } }, + proxyOverride: { + serializedName: "properties.proxyOverride", + type: { + name: "String" + } + }, + timezoneId: { + serializedName: "properties.timezoneId", + type: { + name: "String" + } + }, + instancePoolId: { + serializedName: "properties.instancePoolId", + type: { + name: "String" + } + }, maintenanceConfigurationId: { serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePecProperty" + } + } } }, - isInfraEncryptionEnabled: { - serializedName: "properties.isInfraEncryptionEnabled", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", + type: { + name: "String" + } + }, + currentBackupStorageRedundancy: { + serializedName: "properties.currentBackupStorageRedundancy", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - federatedClientId: { - serializedName: "properties.federatedClientId", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Uuid" + name: "String" } }, - keys: { - serializedName: "properties.keys", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "Boolean" } }, - encryptionProtector: { - serializedName: "properties.encryptionProtector", + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - useFreeLimit: { - serializedName: "properties.useFreeLimit", + administrators: { + serializedName: "properties.administrators", + type: { + name: "Composite", + className: "ManagedInstanceExternalAdministrator" + } + }, + servicePrincipal: { + serializedName: "properties.servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipal" + } + }, + virtualClusterId: { + serializedName: "properties.virtualClusterId", + readOnly: true, + type: { + name: "String" + } + }, + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - freeLimitExhaustionBehavior: { - serializedName: "properties.freeLimitExhaustionBehavior", + pricingModel: { + serializedName: "properties.pricingModel", type: { name: "String" } }, - manualCutover: { - serializedName: "properties.manualCutover", + createTime: { + serializedName: "properties.createTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - performCutover: { - serializedName: "properties.performCutover", + authenticationMetadata: { + serializedName: "properties.authenticationMetadata", type: { - name: "Boolean" + name: "String" } }, - encryptionProtectorAutoRotation: { - serializedName: "properties.encryptionProtectorAutoRotation", + databaseFormat: { + serializedName: "properties.databaseFormat", type: { - name: "Boolean" + name: "String" } } } } }; -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" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint" + } + } } }, - storageKey: { - serializedName: "storageKey", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - storageUri: { - serializedName: "storageUri", - required: true, + } + } + } +}; + +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + modelProperties: { + category: { + serializedName: "category", + readOnly: true, type: { name: "String" } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + endpoints: { + serializedName: "endpoints", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDependency" + } + } } - }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + } + } + } +}; + +export const EndpointDependency: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDependency", + modelProperties: { + domainName: { + serializedName: "domainName", + readOnly: true, type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", + endpointDetails: { + serializedName: "endpointDetails", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDetail" + } + } } - }, - networkIsolation: { - serializedName: "networkIsolation", + } + } + } +}; + +export const EndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDetail", + modelProperties: { + port: { + serializedName: "port", + readOnly: true, type: { - name: "Composite", - className: "NetworkIsolationSettings" + name: "Number" } } } } }; -export const NetworkIsolationSettings: coreClient.CompositeMapper = { +export const TopQueriesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkIsolationSettings", + className: "TopQueriesListResult", modelProperties: { - storageAccountResourceId: { - serializedName: "storageAccountResourceId", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopQueries" + } + } } }, - sqlServerResourceId: { - serializedName: "sqlServerResourceId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -7266,101 +7581,181 @@ export const NetworkIsolationSettings: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionRequestStatus: coreClient.CompositeMapper = { +export const TopQueries: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionRequestStatus", + className: "TopQueries", modelProperties: { - privateLinkServiceId: { - serializedName: "privateLinkServiceId", + numberOfQueries: { + serializedName: "numberOfQueries", + readOnly: true, + type: { + name: "Number" + } + }, + aggregationFunction: { + serializedName: "aggregationFunction", readOnly: true, type: { name: "String" } }, - privateEndpointConnectionName: { - serializedName: "privateEndpointConnectionName", + observationMetric: { + serializedName: "observationMetric", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + intervalType: { + serializedName: "intervalType", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", readOnly: true, type: { name: "String" } + }, + endTime: { + serializedName: "endTime", + readOnly: true, + type: { + name: "String" + } + }, + queries: { + serializedName: "queries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatisticsProperties" + } + } + } } } } }; -export const ImportExistingDatabaseDefinition: coreClient.CompositeMapper = { +export const QueryStatisticsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExistingDatabaseDefinition", + className: "QueryStatisticsProperties", modelProperties: { - storageKeyType: { - serializedName: "storageKeyType", - required: true, + databaseName: { + serializedName: "databaseName", + readOnly: true, type: { name: "String" } }, - storageKey: { - serializedName: "storageKey", - required: true, + queryId: { + serializedName: "queryId", + readOnly: true, type: { name: "String" } }, - storageUri: { - serializedName: "storageUri", - required: true, + startTime: { + serializedName: "startTime", + readOnly: true, type: { name: "String" } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + endTime: { + serializedName: "endTime", + readOnly: true, type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + intervals: { + serializedName: "intervals", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricIntervalAutoGenerated" + } + } + } + } + } + } +}; + +export const QueryMetricIntervalAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryMetricIntervalAutoGenerated", + modelProperties: { + intervalStartTime: { + serializedName: "intervalStartTime", + readOnly: true, type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", + intervalType: { + serializedName: "intervalType", + readOnly: true, + type: { + name: "String" + } + }, + executionCount: { + serializedName: "executionCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - networkIsolation: { - serializedName: "networkIsolation", + metrics: { + serializedName: "metrics", type: { - name: "Composite", - className: "NetworkIsolationSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricProperties" + } + } } } } } }; -export const ResourceMoveDefinition: coreClient.CompositeMapper = { +export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceMoveDefinition", + className: "ManagedLedgerDigestUploadsListResult", modelProperties: { - id: { - serializedName: "id", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedLedgerDigestUploads" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -7369,10 +7764,10 @@ export const ResourceMoveDefinition: coreClient.CompositeMapper = { } }; -export const ElasticPoolListResult: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolListResult", + className: "ManagedServerDnsAliasListResult", modelProperties: { value: { serializedName: "value", @@ -7382,7 +7777,7 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "ManagedServerDnsAlias" } } } @@ -7398,97 +7793,30 @@ export const ElasticPoolListResult: coreClient.CompositeMapper = { } }; -export const ElasticPoolPerDatabaseSettings: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasCreation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "ManagedServerDnsAliasCreation", modelProperties: { - minCapacity: { - serializedName: "minCapacity", - type: { - name: "Number" - } - }, - maxCapacity: { - serializedName: "maxCapacity", + createDnsRecord: { + defaultValue: true, + serializedName: "createDnsRecord", type: { - name: "Number" + name: "Boolean" } } } } }; -export const ElasticPoolUpdate: coreClient.CompositeMapper = { +export const ManagedServerDnsAliasAcquisition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolUpdate", + className: "ManagedServerDnsAliasAcquisition", modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - minCapacity: { - serializedName: "properties.minCapacity", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - }, - highAvailabilityReplicaCount: { - serializedName: "properties.highAvailabilityReplicaCount", - type: { - name: "Number" - } - }, - preferredEnclaveType: { - serializedName: "properties.preferredEnclaveType", - type: { - name: "String" - } - }, - availabilityZone: { - serializedName: "properties.availabilityZone", + oldManagedServerDnsAliasResourceId: { + serializedName: "oldManagedServerDnsAliasResourceId", + required: true, type: { name: "String" } @@ -7497,10 +7825,10 @@ export const ElasticPoolUpdate: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseListResult: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseListResult", + className: "ManagedServerSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -7510,7 +7838,7 @@ export const ManagedDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedDatabase" + className: "ManagedServerSecurityAlertPolicy" } } } @@ -7526,218 +7854,300 @@ export const ManagedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const ManagedDatabaseUpdate: coreClient.CompositeMapper = { +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseUpdate", + className: "NetworkSecurityPerimeterConfigurationListResult", 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", + value: { + serializedName: "value", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration" + } + } } }, - earliestRestorePoint: { - serializedName: "properties.earliestRestorePoint", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "DateTime" + name: "String" } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + } + } + } +}; + +export const NSPConfigPerimeter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigPerimeter", + modelProperties: { + id: { + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - defaultSecondaryLocation: { - serializedName: "properties.defaultSecondaryLocation", - readOnly: true, + perimeterGuid: { + serializedName: "perimeterGuid", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + location: { + serializedName: "location", type: { name: "String" } - }, - createMode: { - serializedName: "properties.createMode", + } + } + } +}; + +export const NSPConfigAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAssociation", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + accessMode: { + serializedName: "accessMode", type: { name: "String" } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const NSPConfigProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigProfile", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - crossSubscriptionSourceDatabaseId: { - serializedName: "properties.crossSubscriptionSourceDatabaseId", + accessRulesVersion: { + serializedName: "accessRulesVersion", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + accessRules: { + serializedName: "accessRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigAccessRule" + } + } } - }, - crossSubscriptionRestorableDroppedDatabaseId: { - serializedName: - "properties.crossSubscriptionRestorableDroppedDatabaseId", + } + } + } +}; + +export const NSPConfigAccessRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRule", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - storageContainerIdentity: { - serializedName: "properties.storageContainerIdentity", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "NSPConfigAccessRuleProperties" } - }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + } + } + } +}; + +export const NSPConfigAccessRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAccessRuleProperties", + modelProperties: { + direction: { + serializedName: "direction", type: { name: "String" } }, - failoverGroupId: { - serializedName: "properties.failoverGroupId", - readOnly: true, + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + subscriptions: { + serializedName: "subscriptions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - autoCompleteRestore: { - serializedName: "properties.autoCompleteRestore", + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule" + } + } } - }, - lastBackupName: { - serializedName: "properties.lastBackupName", + } + } + } +}; + +export const NSPConfigNetworkSecurityPerimeterRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - crossSubscriptionTargetManagedInstanceId: { - serializedName: "properties.crossSubscriptionTargetManagedInstanceId", + perimeterGuid: { + serializedName: "perimeterGuid", type: { name: "String" } }, - isLedgerOn: { - serializedName: "properties.isLedgerOn", + location: { + serializedName: "location", type: { - name: "Boolean" + name: "String" } } } } }; -export const ManagedDatabaseMoveDefinition: coreClient.CompositeMapper = { +export const NSPProvisioningIssue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseMoveDefinition", + className: "NSPProvisioningIssue", modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + name: { + serializedName: "name", type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NSPProvisioningIssueProperties" + } } } } }; -export const CompleteDatabaseRestoreDefinition: coreClient.CompositeMapper = { +export const NSPProvisioningIssueProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CompleteDatabaseRestoreDefinition", + className: "NSPProvisioningIssueProperties", modelProperties: { - lastBackupName: { - serializedName: "lastBackupName", - required: true, + issueType: { + serializedName: "issueType", type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseStartMoveDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseStartMoveDefinition", - modelProperties: { - destinationManagedDatabaseId: { - serializedName: "destinationManagedDatabaseId", - required: true, + }, + severity: { + serializedName: "severity", type: { name: "String" } }, - operationMode: { - serializedName: "operationMode", + description: { + serializedName: "description", type: { name: "String" } + }, + suggestedResourceIds: { + serializedName: "suggestedResourceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + suggestedAccessRules: { + serializedName: "suggestedAccessRules", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const ManagedInstanceListResult: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", @@ -7747,7 +8157,7 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstance" + className: "Operation" } } } @@ -7763,391 +8173,559 @@ export const ManagedInstanceListResult: coreClient.CompositeMapper = { } }; -export const ResourceIdentity: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentity", + className: "Operation", modelProperties: { - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "UserIdentity" } } + name: "String" } }, - principalId: { - serializedName: "principalId", - readOnly: true, + display: { + serializedName: "display", type: { - name: "Uuid" + name: "Composite", + className: "OperationDisplay" } }, - type: { - serializedName: "type", + origin: { + serializedName: "origin", + readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + properties: { + serializedName: "properties", readOnly: true, type: { - name: "Uuid" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const UserIdentity: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentity", + className: "OperationDisplay", modelProperties: { - principalId: { - serializedName: "principalId", + provider: { + serializedName: "provider", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - clientId: { - serializedName: "clientId", + resource: { + serializedName: "resource", readOnly: true, type: { - name: "Uuid" + name: "String" } - } - } - } -}; - -export const ManagedInstancePecProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePecProperty", - modelProperties: { - id: { - serializedName: "id", + }, + operation: { + serializedName: "operation", readOnly: true, type: { name: "String" } }, - properties: { - serializedName: "properties", + description: { + serializedName: "description", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointConnectionProperties" + name: "String" } } } } }; -export const ManagedInstanceExternalAdministrator: coreClient.CompositeMapper = { +export const OutboundFirewallRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceExternalAdministrator", + className: "OutboundFirewallRuleListResult", modelProperties: { - administratorType: { - serializedName: "administratorType", - type: { - name: "String" - } - }, - principalType: { - serializedName: "principalType", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundFirewallRule" + } + } } }, - login: { - serializedName: "login", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - sid: { - serializedName: "sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "Uuid" - } - }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", - type: { - name: "Boolean" - } } } } }; -export const ServicePrincipal: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipal", + className: "PrivateEndpointConnectionListResult", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, - tenantId: { - serializedName: "tenantId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - type: { - serializedName: "type", - type: { - name: "String" - } } } } }; -export const ManagedInstanceUpdate: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceUpdate", + className: "PrivateEndpointConnectionProperties", modelProperties: { - sku: { - serializedName: "sku", + privateEndpoint: { + serializedName: "privateEndpoint", type: { name: "Composite", - className: "Sku" + className: "PrivateEndpointProperty" } }, - identity: { - serializedName: "identity", + groupIds: { + serializedName: "groupIds", + readOnly: true, type: { - name: "Composite", - className: "ResourceIdentity" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - tags: { - serializedName: "tags", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, provisioningState: { - serializedName: "properties.provisioningState", + serializedName: "provisioningState", readOnly: true, type: { name: "String" } - }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", + } + } + } +}; + +export const PrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } - }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + description: { + serializedName: "description", + required: true, type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, type: { name: "String" } - }, - subnetId: { - serializedName: "properties.subnetId", + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } }, - state: { - serializedName: "properties.state", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - licenseType: { - serializedName: "properties.licenseType", + } + } + } +}; + +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - collation: { - serializedName: "properties.collation", + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - dnsZone: { - serializedName: "properties.dnsZone", + } + } + } +}; + +export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableDatabase" + } + } } }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - publicDataEndpointEnabled: { - serializedName: "properties.publicDataEndpointEnabled", + } + } + } +}; + +export const RecoverableManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableManagedDatabase" + } + } } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - proxyOverride: { - serializedName: "properties.proxyOverride", + } + } + } +}; + +export const ReplicationLinkListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplicationLinkListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationLink" + } + } } }, - timezoneId: { - serializedName: "properties.timezoneId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - instancePoolId: { - serializedName: "properties.instancePoolId", + } + } + } +}; + +export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedDatabase" + } + } } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + } + } + } +}; + +export const RestorableDroppedManagedDatabaseListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedInstancePecProperty" + className: "RestorableDroppedManagedDatabase" } } } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", + 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" + } + } + } }, - currentBackupStorageRedundancy: { - serializedName: "properties.currentBackupStorageRedundancy", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + serializedName: "restorePointLabel", + required: true, type: { name: "String" } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + } + } + } +}; + +export const LogicalServerAdvancedThreatProtectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalServerAdvancedThreatProtectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection" + } + } } }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + 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"] + } }, - keyId: { - serializedName: "properties.keyId", + actualState: { + serializedName: "actualState", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Off", "On"] } }, - administrators: { - serializedName: "properties.administrators", + reasonCode: { + serializedName: "reasonCode", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceExternalAdministrator" + name: "Number" } }, - servicePrincipal: { - serializedName: "properties.servicePrincipal", + reasonDesc: { + serializedName: "reasonDesc", + readOnly: true, type: { - name: "Composite", - className: "ServicePrincipal" + name: "Enum", + allowedValues: ["Default", "Disabled", "AutoConfigured"] } } } } }; -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { +export const AdministratorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpointCollection", + className: "AdministratorListResult", modelProperties: { value: { serializedName: "value", @@ -8157,7 +8735,7 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" + className: "ServerAzureADAdministrator" } } } @@ -8173,84 +8751,97 @@ export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = } }; -export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { +export const AzureADOnlyAuthListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint", + className: "AzureADOnlyAuthListResult", modelProperties: { - category: { - serializedName: "category", - readOnly: true, - type: { - name: "String" - } - }, - endpoints: { - serializedName: "endpoints", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "EndpointDependency" + className: "ServerAzureADOnlyAuthentication" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const EndpointDependency: coreClient.CompositeMapper = { +export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDependency", + className: "ServerConfigurationOptionListResult", 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: "ServerConfigurationOption" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const EndpointDetail: coreClient.CompositeMapper = { +export const ServerConnectionPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDetail", + className: "ServerConnectionPolicyListResult", modelProperties: { - port: { - serializedName: "port", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerConnectionPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const TopQueriesListResult: coreClient.CompositeMapper = { +export const ServerDevOpsAuditSettingsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueriesListResult", + className: "ServerDevOpsAuditSettingsListResult", modelProperties: { value: { serializedName: "value", @@ -8260,7 +8851,7 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TopQueries" + className: "ServerDevOpsAuditingSettings" } } } @@ -8276,73 +8867,55 @@ export const TopQueriesListResult: coreClient.CompositeMapper = { } }; -export const TopQueries: coreClient.CompositeMapper = { +export const ServerDnsAliasListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueries", + className: "ServerDnsAliasListResult", modelProperties: { - numberOfQueries: { - serializedName: "numberOfQueries", - readOnly: true, - type: { - name: "Number" - } - }, - aggregationFunction: { - serializedName: "aggregationFunction", - readOnly: true, - type: { - name: "String" - } - }, - observationMetric: { - serializedName: "observationMetric", - readOnly: true, - type: { - name: "String" - } - }, - intervalType: { - serializedName: "intervalType", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerDnsAlias" + } + } } }, - startTime: { - serializedName: "startTime", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - endTime: { - serializedName: "endTime", - readOnly: true, + } + } + } +}; + +export const ServerDnsAliasAcquisition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerDnsAliasAcquisition", + modelProperties: { + oldServerDnsAliasId: { + serializedName: "oldServerDnsAliasId", + required: true, type: { name: "String" } - }, - queries: { - serializedName: "queries", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryStatisticsProperties" - } - } - } } } } }; -export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = { +export const ServerKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedLedgerDigestUploadsListResult", + className: "ServerKeyListResult", modelProperties: { value: { serializedName: "value", @@ -8352,7 +8925,7 @@ export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "ManagedLedgerDigestUploads" + className: "ServerKey" } } } @@ -8368,10 +8941,10 @@ export const ManagedLedgerDigestUploadsListResult: coreClient.CompositeMapper = } }; -export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { +export const ServerOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabaseListResult", + className: "ServerOperationListResult", modelProperties: { value: { serializedName: "value", @@ -8381,7 +8954,7 @@ export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoverableDatabase" + className: "ServerOperation" } } } @@ -8397,10 +8970,10 @@ export const RecoverableDatabaseListResult: coreClient.CompositeMapper = { } }; -export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { +export const LogicalServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabaseListResult", + className: "LogicalServerSecurityAlertPolicyListResult", modelProperties: { value: { serializedName: "value", @@ -8410,7 +8983,7 @@ export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorableDroppedDatabase" + className: "ServerSecurityAlertPolicy" } } } @@ -8426,10 +8999,10 @@ export const RestorableDroppedDatabaseListResult: coreClient.CompositeMapper = { } }; -export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { +export const ServerTrustCertificatesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOptionListResult", + className: "ServerTrustCertificatesListResult", modelProperties: { value: { serializedName: "value", @@ -8439,7 +9012,7 @@ export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerConfigurationOption" + className: "ServerTrustCertificate" } } } @@ -8455,10 +9028,10 @@ export const ServerConfigurationOptionListResult: coreClient.CompositeMapper = { } }; -export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { +export const ServerTrustGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartStopManagedInstanceScheduleListResult", + className: "ServerTrustGroupListResult", modelProperties: { value: { serializedName: "value", @@ -8468,7 +9041,7 @@ export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "StartStopManagedInstanceSchedule" + className: "ServerTrustGroup" } } } @@ -8484,34 +9057,13 @@ export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMap } }; -export const ScheduleItem: coreClient.CompositeMapper = { +export const ServerInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleItem", + className: "ServerInfo", modelProperties: { - startDay: { - serializedName: "startDay", - required: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - required: true, - type: { - name: "String" - } - }, - stopDay: { - serializedName: "stopDay", - required: true, - type: { - name: "String" - } - }, - stopTime: { - serializedName: "stopTime", + serverId: { + serializedName: "serverId", required: true, type: { name: "String" @@ -8521,10 +9073,10 @@ export const ScheduleItem: coreClient.CompositeMapper = { } }; -export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { +export const ServerUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryptionListResult", + className: "ServerUsageListResult", modelProperties: { value: { serializedName: "value", @@ -8534,7 +9086,7 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp element: { type: { name: "Composite", - className: "LogicalDatabaseTransparentDataEncryption" + className: "ServerUsage" } } } @@ -8550,10 +9102,10 @@ export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.Comp } }; -export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IPv6FirewallRuleListResult", + className: "ServerVulnerabilityAssessmentListResult", modelProperties: { value: { serializedName: "value", @@ -8563,7 +9115,7 @@ export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPv6FirewallRule" + className: "ServerVulnerabilityAssessment" } } } @@ -8579,26 +9131,59 @@ export const IPv6FirewallRuleListResult: coreClient.CompositeMapper = { } }; -export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient.CompositeMapper = { +export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSetListResult", + className: "CheckNameAvailabilityRequest", modelProperties: { - value: { - serializedName: "value", + 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: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + 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" @@ -8608,10 +9193,10 @@ export const DatabaseSqlVulnerabilityAssessmentBaselineSetListResult: coreClient } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClient.CompositeMapper = { +export const ServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult", + className: "ServerListResult", modelProperties: { value: { serializedName: "value", @@ -8621,7 +9206,7 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien element: { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline" + className: "Server" } } } @@ -8637,317 +9222,290 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListResult: coreClien } }; -export const SQLVulnerabilityAssessmentScanListResult: coreClient.CompositeMapper = { +export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SQLVulnerabilityAssessmentScanListResult", + className: "ServerPrivateEndpointConnection", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + 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" } - } - } - } -}; - -export const Remediation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Remediation", - modelProperties: { - description: { - serializedName: "description", - readOnly: true, + }, + login: { + serializedName: "login", type: { name: "String" } }, - scripts: { - serializedName: "scripts", - readOnly: true, + sid: { + serializedName: "sid", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Uuid" } }, - automated: { - serializedName: "automated", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { - name: "Boolean" + name: "Uuid" } }, - portalLink: { - serializedName: "portalLink", - readOnly: true, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", type: { - name: "String" + name: "Boolean" } } } } }; -export const BaselineAdjustedResult: coreClient.CompositeMapper = { +export const ServerUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaselineAdjustedResult", + className: "ServerUpdate", modelProperties: { - baseline: { - serializedName: "baseline", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "Baseline" + className: "ResourceIdentity" } }, - status: { - serializedName: "status", - readOnly: true, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - resultsNotInBaseline: { - serializedName: "resultsNotInBaseline", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - resultsOnlyInBaseline: { - serializedName: "resultsOnlyInBaseline", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } - } - } - } -}; - -export const Baseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Baseline", - modelProperties: { - expectedResults: { - serializedName: "expectedResults", + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ServerPrivateEndpointConnection" } } } }, - updatedTime: { - serializedName: "updatedTime", - readOnly: true, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const VaRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VaRule", - modelProperties: { - ruleId: { - serializedName: "ruleId", - readOnly: true, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - severity: { - serializedName: "severity", + workspaceFeature: { + serializedName: "properties.workspaceFeature", readOnly: true, type: { name: "String" } }, - category: { - serializedName: "category", - readOnly: true, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - ruleType: { - serializedName: "ruleType", - readOnly: true, + federatedClientId: { + serializedName: "properties.federatedClientId", type: { - name: "String" + name: "Uuid" } }, - title: { - serializedName: "title", - readOnly: true, + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + administrators: { + serializedName: "properties.administrators", type: { - name: "String" + name: "Composite", + className: "ServerExternalAdministrator" } }, - rationale: { - serializedName: "rationale", - readOnly: true, + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", type: { name: "String" } }, - queryCheck: { - serializedName: "queryCheck", + isIPv6Enabled: { + serializedName: "properties.isIPv6Enabled", type: { - name: "Composite", - className: "QueryCheck" + name: "String" } }, - benchmarkReferences: { - serializedName: "benchmarkReferences", + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BenchmarkReference" - } - } + name: "String" } } } } }; -export const QueryCheck: coreClient.CompositeMapper = { +export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryCheck", + className: "ImportNewDatabaseDefinition", modelProperties: { - query: { - serializedName: "query", - readOnly: true, + 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" } }, - expectedResult: { - serializedName: "expectedResult", - readOnly: true, + administratorLogin: { + serializedName: "administratorLogin", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - columnNames: { - serializedName: "columnNames", - readOnly: true, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const BenchmarkReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BenchmarkReference", - modelProperties: { - benchmark: { - serializedName: "benchmark", - readOnly: true, + }, + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } }, - reference: { - serializedName: "reference", - readOnly: true, + networkIsolation: { + serializedName: "networkIsolation", type: { - name: "String" + name: "Composite", + className: "NetworkIsolationSettings" } } } } }; -export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { +export const StartStopManagedInstanceScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecordListResult", + className: "StartStopManagedInstanceScheduleListResult", modelProperties: { value: { serializedName: "value", @@ -8957,7 +9515,7 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord" + className: "StartStopManagedInstanceSchedule" } } } @@ -8973,21 +9531,35 @@ export const SqlVulnerabilityAssessmentScanRecordListResult: coreClient.Composit } }; -export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { +export const ScheduleItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanError", + className: "ScheduleItem", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + startDay: { + serializedName: "startDay", + required: true, type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + startTime: { + serializedName: "startTime", + required: true, + type: { + name: "String" + } + }, + stopDay: { + serializedName: "stopDay", + required: true, + type: { + name: "String" + } + }, + stopTime: { + serializedName: "stopTime", + required: true, type: { name: "String" } @@ -8996,10 +9568,10 @@ export const SqlVulnerabilityAssessmentScanError: coreClient.CompositeMapper = { } }; -export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { +export const SubscriptionUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentListResult", + className: "SubscriptionUsageListResult", modelProperties: { value: { serializedName: "value", @@ -9009,7 +9581,7 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "SqlVulnerabilityAssessment" + className: "SubscriptionUsage" } } } @@ -9025,22 +9597,27 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = } }; -export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityRequest", + className: "SynapseLinkWorkspaceListResult", modelProperties: { - name: { - serializedName: "name", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynapseLinkWorkspace" + } + } } }, - type: { - defaultValue: "Microsoft.Sql/servers", - isConstant: true, - serializedName: "type", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -9049,36 +9626,19 @@ export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { +export const SynapseLinkWorkspaceInfoProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityResponse", + className: "SynapseLinkWorkspaceInfoProperties", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + workspaceId: { + serializedName: "workspaceId", 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, + linkConnectionName: { + serializedName: "linkConnectionName", type: { name: "String" } @@ -9087,10 +9647,10 @@ export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { } }; -export const ServerListResult: coreClient.CompositeMapper = { +export const SyncAgentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerListResult", + className: "SyncAgentListResult", modelProperties: { value: { serializedName: "value", @@ -9100,7 +9660,7 @@ export const ServerListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Server" + className: "SyncAgent" } } } @@ -9116,196 +9676,116 @@ export const ServerListResult: coreClient.CompositeMapper = { } }; -export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { +export const SyncAgentKeyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerPrivateEndpointConnection", + className: "SyncAgentKeyProperties", modelProperties: { - id: { - serializedName: "id", + syncAgentKey: { + serializedName: "syncAgentKey", 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 = { +export const SyncAgentLinkedDatabaseListResult: 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", + className: "SyncAgentLinkedDatabaseListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabase" + } + } } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + } + } + } +}; + +export const SyncDatabaseIdListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncDatabaseIdListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerPrivateEndpointConnection" + className: "SyncDatabaseIdProperties" } } } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", - type: { - name: "String" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - workspaceFeature: { - serializedName: "properties.workspaceFeature", + nextLink: { + serializedName: "nextLink", 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", + } + } + } +}; + +export const SyncDatabaseIdProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncDatabaseIdProperties", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } - }, - isIPv6Enabled: { - serializedName: "properties.isIPv6Enabled", + } + } + } +}; + +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" + } + } } }, - externalGovernanceStatus: { - serializedName: "properties.externalGovernanceStatus", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -9315,180 +9795,244 @@ export const ServerUpdate: coreClient.CompositeMapper = { } }; -export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { +export const SyncGroupSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportNewDatabaseDefinition", + className: "SyncGroupSchema", modelProperties: { - databaseName: { - serializedName: "databaseName", + tables: { + serializedName: "tables", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTable" + } + } } }, - edition: { - serializedName: "edition", + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { name: "String" } - }, - serviceObjectiveName: { - serializedName: "serviceObjectiveName", + } + } + } +}; + +export const SyncGroupSchemaTable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupSchemaTable", + modelProperties: { + columns: { + serializedName: "columns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn" + } + } } }, - maxSizeBytes: { - serializedName: "maxSizeBytes", + quotedName: { + serializedName: "quotedName", type: { name: "String" } - }, - storageKeyType: { - serializedName: "storageKeyType", - required: true, + } + } + } +}; + +export const SyncGroupSchemaTableColumn: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn", + modelProperties: { + quotedName: { + serializedName: "quotedName", type: { name: "String" } }, - storageKey: { - serializedName: "storageKey", - required: true, + dataSize: { + serializedName: "dataSize", type: { name: "String" } }, - storageUri: { - serializedName: "storageUri", - required: true, + dataType: { + serializedName: "dataType", type: { name: "String" } - }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + } + } + } +}; + +export const SyncFullSchemaPropertiesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncFullSchemaPropertiesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaProperties" + } + } } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - authenticationType: { - serializedName: "authenticationType", + } + } + } +}; + +export const SyncFullSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncFullSchemaProperties", + modelProperties: { + tables: { + serializedName: "tables", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTable" + } + } } }, - networkIsolation: { - serializedName: "networkIsolation", + lastUpdateTime: { + serializedName: "lastUpdateTime", + readOnly: true, type: { - name: "Composite", - className: "NetworkIsolationSettings" + name: "DateTime" } } } } }; -export const FailoverGroupListResult: coreClient.CompositeMapper = { +export const SyncFullSchemaTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupListResult", + className: "SyncFullSchemaTable", modelProperties: { - value: { - serializedName: "value", + columns: { + serializedName: "columns", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "FailoverGroup" + className: "SyncFullSchemaTableColumn" } } } }, - nextLink: { - serializedName: "nextLink", + errorId: { + serializedName: "errorId", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + }, + hasError: { + serializedName: "hasError", + readOnly: true, + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + quotedName: { + serializedName: "quotedName", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { +export const SyncFullSchemaTableColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", + className: "SyncFullSchemaTableColumn", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + dataSize: { + serializedName: "dataSize", + readOnly: true, type: { name: "String" } }, - targetServer: { - serializedName: "targetServer", + dataType: { + serializedName: "dataType", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PartnerInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - serializedName: "id", - required: true, + }, + errorId: { + serializedName: "errorId", + readOnly: true, type: { name: "String" } }, - location: { - serializedName: "location", + hasError: { + serializedName: "hasError", + readOnly: true, + type: { + name: "Boolean" + } + }, + isPrimaryKey: { + serializedName: "isPrimaryKey", + readOnly: true, + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - replicationRole: { - serializedName: "replicationRole", + quotedName: { + serializedName: "quotedName", readOnly: true, type: { name: "String" @@ -9498,233 +10042,193 @@ export const PartnerInfo: coreClient.CompositeMapper = { } }; -export const FailoverGroupUpdate: coreClient.CompositeMapper = { +export const SyncGroupLogListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupUpdate", + className: "SyncGroupLogListResult", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - databases: { - serializedName: "properties.databases", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SyncGroupLogProperties" } } } }, - partnerServers: { - serializedName: "properties.partnerServers", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } + name: "String" } } } } }; -export const SloUsageMetric: coreClient.CompositeMapper = { +export const SyncGroupLogProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SloUsageMetric", + className: "SyncGroupLogProperties", modelProperties: { - serviceLevelObjective: { - serializedName: "serviceLevelObjective", + timestamp: { + serializedName: "timestamp", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - serviceLevelObjectiveId: { - serializedName: "serviceLevelObjectiveId", + type: { + serializedName: "type", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - inRangeTimeRatio: { - serializedName: "inRangeTimeRatio", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const OperationImpact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationImpact", - modelProperties: { - name: { - serializedName: "name", + source: { + serializedName: "source", readOnly: true, type: { name: "String" } }, - unit: { - serializedName: "unit", + details: { + serializedName: "details", readOnly: true, type: { name: "String" } }, - changeValueAbsolute: { - serializedName: "changeValueAbsolute", + tracingId: { + serializedName: "tracingId", readOnly: true, type: { - name: "Number" + name: "Uuid" } }, - changeValueRelative: { - serializedName: "changeValueRelative", + operationStatus: { + serializedName: "operationStatus", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { +export const SyncMemberListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityEventsFilterParameters", + className: "SyncMemberListResult", modelProperties: { - eventTime: { - serializedName: "eventTime", + value: { + serializedName: "value", + readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncMember" + } + } } }, - showServerRecords: { - serializedName: "showServerRecords", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { +export const TimeZoneListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "TimeZoneListResult", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeZone" + } + } } }, - tags: { - serializedName: "tags", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } - } - } - } -}; - -export const ProxyResourceWithWritableName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResourceWithWritableName", - modelProperties: { - ...ResourceWithWritableName.type.modelProperties + } } } }; -export const DataMaskingPolicy: coreClient.CompositeMapper = { +export const LogicalDatabaseTransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingPolicy", + className: "LogicalDatabaseTransparentDataEncryptionListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogicalDatabaseTransparentDataEncryption" + } + } } }, - kind: { - serializedName: "kind", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - dataMaskingState: { - serializedName: "properties.dataMaskingState", - type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } - }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", - type: { - name: "String" - } - }, - applicationPrincipals: { - serializedName: "properties.applicationPrincipals", + } + } + } +}; + +export const UsageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UsageListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } } }, - maskingLevel: { - serializedName: "properties.maskingLevel", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -9734,97 +10238,106 @@ export const DataMaskingPolicy: coreClient.CompositeMapper = { } }; -export const DataMaskingRule: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRule", + className: "Usage", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - kind: { - serializedName: "kind", - readOnly: true, + name: { + serializedName: "name", type: { - name: "String" + name: "Composite", + className: "Name" } }, - idPropertiesId: { - serializedName: "properties.id", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - aliasName: { - serializedName: "properties.aliasName", - type: { - name: "String" - } - }, - ruleState: { - serializedName: "properties.ruleState", - type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] - } - }, - schemaName: { - serializedName: "properties.schemaName", - type: { - name: "String" - } - }, - tableName: { - serializedName: "properties.tableName", + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - columnName: { - serializedName: "properties.columnName", + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - maskingFunction: { - serializedName: "properties.maskingFunction", + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] + name: "Number" } }, - numberFrom: { - serializedName: "properties.numberFrom", + requestedLimit: { + serializedName: "requestedLimit", + readOnly: true, type: { - name: "String" + name: "Number" } - }, - numberTo: { - serializedName: "properties.numberTo", + } + } + } +}; + +export const Name: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Name", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } }, - prefixSize: { - serializedName: "properties.prefixSize", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } - }, - suffixSize: { - serializedName: "properties.suffixSize", + } + } + } +}; + +export const VirtualClusterListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualClusterListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualCluster" + } + } } }, - replacementString: { - serializedName: "properties.replacementString", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -9833,74 +10346,97 @@ export const DataMaskingRule: coreClient.CompositeMapper = { } }; -export const GeoBackupPolicy: coreClient.CompositeMapper = { +export const VirtualClusterUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicy", + className: "VirtualClusterUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - location: { - serializedName: "location", + subnetId: { + serializedName: "properties.subnetId", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", - required: true, + version: { + serializedName: "properties.version", type: { - name: "Enum", - allowedValues: ["Disabled", "Enabled"] + name: "String" } }, - storageType: { - serializedName: "properties.storageType", + childResources: { + serializedName: "properties.childResources", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ServerCommunicationLink: coreClient.CompositeMapper = { +export const VirtualNetworkRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerCommunicationLink", + className: "VirtualNetworkRuleListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } } }, - kind: { - serializedName: "kind", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const WorkloadClassifierListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadClassifierListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadClassifier" + } + } } }, - partnerServer: { - serializedName: "properties.partnerServer", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -9909,43 +10445,48 @@ export const ServerCommunicationLink: coreClient.CompositeMapper = { } }; -export const ServiceObjective: coreClient.CompositeMapper = { +export const WorkloadGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceObjective", + className: "WorkloadGroupListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - serializedName: "properties.serviceObjectiveName", - readOnly: true, - type: { - name: "String" - } - }, - isDefault: { - serializedName: "properties.isDefault", + value: { + serializedName: "value", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadGroup" + } + } } }, - isSystem: { - serializedName: "properties.isSystem", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - description: { - serializedName: "properties.description", - readOnly: true, + } + } + } +}; + +export const SecurityEventsFilterParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityEventsFilterParameters", + modelProperties: { + eventTime: { + serializedName: "eventTime", type: { - name: "String" + name: "DateTime" } }, - enabled: { - serializedName: "properties.enabled", - readOnly: true, + showServerRecords: { + serializedName: "showServerRecords", type: { name: "Boolean" } @@ -9954,502 +10495,471 @@ export const ServiceObjective: coreClient.CompositeMapper = { } }; -export const ElasticPoolActivity: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolActivity", + className: "TrackedResource", modelProperties: { - ...ProxyResource.type.modelProperties, + ...Resource.type.modelProperties, location: { serializedName: "location", + required: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + } + } + } +}; + +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" } }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, - type: { - name: "String" - } - }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, + diffBackupIntervalInHours: { + serializedName: "properties.diffBackupIntervalInHours", type: { name: "Number" } - }, - operation: { - serializedName: "properties.operation", - readOnly: true, - type: { - name: "String" - } - }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, - type: { - name: "Uuid" - } - }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + } + } + } +}; + +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "Number" + name: "Boolean" } }, - requestedDatabaseDtuMax: { - serializedName: "properties.requestedDatabaseDtuMax", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - requestedDatabaseDtuMin: { - serializedName: "properties.requestedDatabaseDtuMin", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - requestedDtu: { - serializedName: "properties.requestedDtu", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Number" + name: "Boolean" } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - requestedStorageLimitInGB: { - serializedName: "properties.requestedStorageLimitInGB", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { name: "Number" } }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "DateTime" + name: "Boolean" } }, state: { serializedName: "properties.state", - readOnly: true, - type: { - name: "String" - } - }, - requestedStorageLimitInMB: { - serializedName: "properties.requestedStorageLimitInMB", - readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - requestedDatabaseDtuGuarantee: { - serializedName: "properties.requestedDatabaseDtuGuarantee", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuCap: { - serializedName: "properties.requestedDatabaseDtuCap", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Number" + name: "String" } }, - requestedDtuGuarantee: { - serializedName: "properties.requestedDtuGuarantee", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Number" + name: "Uuid" } } } } }; -export const ElasticPoolDatabaseActivity: coreClient.CompositeMapper = { +export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, - type: { - name: "Number" - } - }, - errorMessage: { - serializedName: "properties.errorMessage", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, - type: { - name: "Number" - } - }, - operation: { - serializedName: "properties.operation", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - operationId: { - serializedName: "properties.operationId", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Number" + name: "Boolean" } }, - requestedElasticPoolName: { - serializedName: "properties.requestedElasticPoolName", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - currentElasticPoolName: { - serializedName: "properties.currentElasticPoolName", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - currentServiceObjective: { - serializedName: "properties.currentServiceObjective", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "String" + name: "Boolean" } }, - requestedServiceObjective: { - serializedName: "properties.requestedServiceObjective", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const RecommendedAction: coreClient.CompositeMapper = { +export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedAction", + 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" } }, - recommendationReason: { - serializedName: "properties.recommendationReason", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - validSince: { - serializedName: "properties.validSince", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "DateTime" + name: "Boolean" } }, - lastRefresh: { - serializedName: "properties.lastRefresh", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "DateTime" + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + }, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", + type: { + name: "Boolean" } }, state: { serializedName: "properties.state", type: { - name: "Composite", - className: "RecommendedActionStateInfo" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - isExecutableAction: { - serializedName: "properties.isExecutableAction", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Boolean" + name: "String" } }, - isRevertableAction: { - serializedName: "properties.isRevertableAction", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Boolean" + name: "String" } }, - isArchivedAction: { - serializedName: "properties.isArchivedAction", - readOnly: true, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { name: "Boolean" } }, - executeActionStartTime: { - serializedName: "properties.executeActionStartTime", - readOnly: true, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { - name: "DateTime" + name: "String" } }, - executeActionDuration: { - serializedName: "properties.executeActionDuration", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - revertActionStartTime: { - serializedName: "properties.revertActionStartTime", - readOnly: true, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - revertActionDuration: { - serializedName: "properties.revertActionDuration", - readOnly: true, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - executeActionInitiatedBy: { - serializedName: "properties.executeActionInitiatedBy", - readOnly: true, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "Boolean" } }, - executeActionInitiatedTime: { - serializedName: "properties.executeActionInitiatedTime", - readOnly: true, + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "DateTime" + name: "Number" } }, - revertActionInitiatedBy: { - serializedName: "properties.revertActionInitiatedBy", - readOnly: true, + isManagedIdentityInUse: { + serializedName: "properties.isManagedIdentityInUse", type: { - name: "Enum", - allowedValues: ["User", "System"] + name: "Boolean" } }, - revertActionInitiatedTime: { - serializedName: "properties.revertActionInitiatedTime", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - score: { - serializedName: "properties.score", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Number" + name: "String" } }, - implementationDetails: { - serializedName: "properties.implementationDetails", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { - name: "Composite", - className: "RecommendedActionImplementationInfo" + name: "String" } }, - errorDetails: { - serializedName: "properties.errorDetails", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Composite", - className: "RecommendedActionErrorInfo" + name: "Uuid" + } + } + } + } +}; + +export const DataMaskingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" } }, - estimatedImpact: { - serializedName: "properties.estimatedImpact", + kind: { + serializedName: "kind", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionImpactRecord" - } - } + name: "String" } }, - observedImpact: { - serializedName: "properties.observedImpact", - readOnly: true, + dataMaskingState: { + serializedName: "properties.dataMaskingState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionImpactRecord" - } - } + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - timeSeries: { - serializedName: "properties.timeSeries", - readOnly: true, + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedActionMetricInfo" - } - } + name: "String" } }, - linkedObjects: { - serializedName: "properties.linkedObjects", + applicationPrincipals: { + serializedName: "properties.applicationPrincipals", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - details: { - serializedName: "properties.details", + maskingLevel: { + serializedName: "properties.maskingLevel", readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const Advisor: coreClient.CompositeMapper = { +export const DataMaskingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Advisor", + className: "DataMaskingRule", modelProperties: { ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, kind: { serializedName: "kind", readOnly: true, @@ -10457,490 +10967,526 @@ export const Advisor: coreClient.CompositeMapper = { name: "String" } }, - location: { - serializedName: "location", + idPropertiesId: { + serializedName: "properties.id", readOnly: true, type: { name: "String" } }, - advisorStatus: { - serializedName: "properties.advisorStatus", - readOnly: true, + ruleState: { + serializedName: "properties.ruleState", type: { name: "Enum", - allowedValues: [ - "GA", - "PublicPreview", - "LimitedPublicPreview", - "PrivatePreview" - ] + allowedValues: ["Enabled", "Disabled"] } }, - autoExecuteStatus: { - serializedName: "properties.autoExecuteStatus", + schemaName: { + serializedName: "properties.schemaName", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled", "Default"] + name: "String" } }, - autoExecuteStatusInheritedFrom: { - serializedName: "properties.autoExecuteStatusInheritedFrom", - readOnly: true, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + columnName: { + serializedName: "properties.columnName", + type: { + name: "String" + } + }, + aliasName: { + serializedName: "properties.aliasName", + type: { + name: "String" + } + }, + maskingFunction: { + serializedName: "properties.maskingFunction", type: { name: "Enum", - allowedValues: [ - "Default", - "Subscription", - "Server", - "ElasticPool", - "Database" - ] + allowedValues: ["Default", "CCN", "Email", "Number", "SSN", "Text"] } }, - recommendationsStatus: { - serializedName: "properties.recommendationsStatus", - readOnly: true, + numberFrom: { + serializedName: "properties.numberFrom", type: { name: "String" } }, - lastChecked: { - serializedName: "properties.lastChecked", - readOnly: true, + numberTo: { + serializedName: "properties.numberTo", type: { - name: "DateTime" + name: "String" } }, - recommendedActions: { - serializedName: "properties.recommendedActions", + prefixSize: { + serializedName: "properties.prefixSize", + type: { + name: "String" + } + }, + suffixSize: { + serializedName: "properties.suffixSize", + type: { + name: "String" + } + }, + replacementString: { + serializedName: "properties.replacementString", + type: { + name: "String" + } + } + } + } +}; + +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedAction" - } - } + name: "Number" } } } } }; -export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { +export const DatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseAutomaticTuning", + className: "DatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + systemData: { + serializedName: "systemData", type: { - name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + name: "Composite", + className: "SystemData" } }, - actualState: { - serializedName: "properties.actualState", - readOnly: true, + state: { + serializedName: "properties.state", type: { name: "Enum", - allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + allowedValues: ["New", "Enabled", "Disabled"] } }, - options: { - serializedName: "properties.options", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "AutomaticTuningOptions" } - } + name: "DateTime" } } } } }; -export const DatabaseColumn: coreClient.CompositeMapper = { +export const RecommendedAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseColumn", + className: "RecommendedAction", modelProperties: { ...ProxyResource.type.modelProperties, - columnType: { - serializedName: "properties.columnType", + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - temporalType: { - serializedName: "properties.temporalType", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + recommendationReason: { + serializedName: "properties.recommendationReason", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isComputed: { - serializedName: "properties.isComputed", + validSince: { + serializedName: "properties.validSince", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } - } - } - } -}; - -export const DatabaseSchema: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSchema", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + }, + lastRefresh: { + serializedName: "properties.lastRefresh", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "DateTime" } }, state: { serializedName: "properties.state", type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "Composite", + className: "RecommendedActionStateInfo" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + isExecutableAction: { + serializedName: "properties.isExecutableAction", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + isRevertableAction: { + serializedName: "properties.isRevertableAction", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + isArchivedAction: { + serializedName: "properties.isArchivedAction", + readOnly: true, type: { name: "Boolean" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + executeActionStartTime: { + serializedName: "properties.executeActionStartTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + executeActionDuration: { + serializedName: "properties.executeActionDuration", + readOnly: true, type: { - name: "String" + name: "TimeSpan" } }, - retentionDays: { - serializedName: "properties.retentionDays", + revertActionStartTime: { + serializedName: "properties.revertActionStartTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - creationTime: { - serializedName: "properties.creationTime", + revertActionDuration: { + serializedName: "properties.revertActionDuration", + readOnly: true, + type: { + name: "TimeSpan" + } + }, + executeActionInitiatedBy: { + serializedName: "properties.executeActionInitiatedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["User", "System"] + } + }, + executeActionInitiatedTime: { + serializedName: "properties.executeActionInitiatedTime", readOnly: true, type: { name: "DateTime" } - } - } - } -}; - -export const DatabaseTable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseTable", - modelProperties: { - ...ProxyResource.type.modelProperties, - temporalType: { - serializedName: "properties.temporalType", + }, + revertActionInitiatedBy: { + serializedName: "properties.revertActionInitiatedBy", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["User", "System"] } }, - memoryOptimized: { - serializedName: "properties.memoryOptimized", + revertActionInitiatedTime: { + serializedName: "properties.revertActionInitiatedTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - serializedName: "properties.baselineResults", + }, + score: { + serializedName: "properties.score", + readOnly: true, + type: { + name: "Number" + } + }, + implementationDetails: { + serializedName: "properties.implementationDetails", + type: { + name: "Composite", + className: "RecommendedActionImplementationInfo" + } + }, + errorDetails: { + serializedName: "properties.errorDetails", + type: { + name: "Composite", + className: "RecommendedActionErrorInfo" + } + }, + estimatedImpact: { + serializedName: "properties.estimatedImpact", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + className: "RecommendedActionImpactRecord" } } } - } - } - } -}; - -export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + }, + observedImpact: { + serializedName: "properties.observedImpact", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + timeSeries: { + serializedName: "properties.timeSeries", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionMetricInfo" + } + } } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + linkedObjects: { + serializedName: "properties.linkedObjects", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - recurringScans: { - serializedName: "properties.recurringScans", + details: { + serializedName: "properties.details", + readOnly: true, type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const Advisor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "Advisor", modelProperties: { ...ProxyResource.type.modelProperties, - scanId: { - serializedName: "properties.scanId", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - triggerType: { - serializedName: "properties.triggerType", + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + advisorStatus: { + serializedName: "properties.advisorStatus", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: [ + "GA", + "PublicPreview", + "LimitedPublicPreview", + "PrivatePreview" + ] } }, - startTime: { - serializedName: "properties.startTime", + autoExecuteStatus: { + serializedName: "properties.autoExecuteStatus", + type: { + name: "Enum", + allowedValues: ["Enabled", "Disabled", "Default"] + } + }, + autoExecuteStatusInheritedFrom: { + serializedName: "properties.autoExecuteStatusInheritedFrom", readOnly: true, type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "Default", + "Subscription", + "Server", + "ElasticPool", + "Database" + ] } }, - endTime: { - serializedName: "properties.endTime", + recommendationsStatus: { + serializedName: "properties.recommendationsStatus", + readOnly: true, + type: { + name: "String" + } + }, + lastChecked: { + serializedName: "properties.lastChecked", readOnly: true, type: { name: "DateTime" } }, - errors: { - serializedName: "properties.errors", + recommendedActions: { + serializedName: "properties.recommendedActions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError" + className: "RecommendedAction" } } } - }, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - readOnly: true, - type: { - name: "String" - } - }, - numberOfFailedSecurityChecks: { - serializedName: "properties.numberOfFailedSecurityChecks", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { +export const DatabaseAutomaticTuning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", + className: "DatabaseAutomaticTuning", modelProperties: { ...ProxyResource.type.modelProperties, - exportedReportLocation: { - serializedName: "properties.exportedReportLocation", - readOnly: true, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] } - } - } - } -}; - -export const DataWarehouseUserActivities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataWarehouseUserActivities", - modelProperties: { - ...ProxyResource.type.modelProperties, - activeQueriesCount: { - serializedName: "properties.activeQueriesCount", + }, + actualState: { + serializedName: "properties.actualState", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Inherit", "Custom", "Auto", "Unspecified"] + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "AutomaticTuningOptions" } + } } } } } }; -export const DeletedServer: coreClient.CompositeMapper = { +export const DatabaseColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedServer", + className: "DatabaseColumn", modelProperties: { ...ProxyResource.type.modelProperties, - version: { - serializedName: "properties.version", - readOnly: true, + columnType: { + serializedName: "properties.columnType", type: { name: "String" } }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, + temporalType: { + serializedName: "properties.temporalType", type: { - name: "DateTime" + name: "String" } }, - originalId: { - serializedName: "properties.originalId", - readOnly: true, + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "String" + name: "Boolean" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + isComputed: { + serializedName: "properties.isComputed", type: { - name: "String" + name: "Boolean" } } } } }; -export const ElasticPoolOperation: coreClient.CompositeMapper = { +export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ElasticPoolOperation", + className: "ImportExportExtensionsOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - elasticPoolName: { - serializedName: "properties.elasticPoolName", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - operation: { - serializedName: "properties.operation", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, serverName: { serializedName: "properties.serverName", readOnly: true, @@ -10948,476 +11494,403 @@ export const ElasticPoolOperation: coreClient.CompositeMapper = { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, - type: { - name: "Number" - } - }, - errorDescription: { - serializedName: "properties.errorDescription", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", - readOnly: true, - type: { - name: "Number" - } - }, - isUserError: { - serializedName: "properties.isUserError", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - description: { - serializedName: "properties.description", + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } } } } }; -export const EncryptionProtector: coreClient.CompositeMapper = { +export const DatabaseExtensions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProtector", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + operationMode: { + serializedName: "properties.operationMode", type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + storageKeyType: { + serializedName: "properties.storageKeyType", type: { name: "String" } }, - subregion: { - serializedName: "properties.subregion", - readOnly: true, + storageKey: { + serializedName: "properties.storageKey", type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + storageUri: { + serializedName: "properties.storageUri", type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", - readOnly: true, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + authenticationType: { + serializedName: "properties.authenticationType", type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + databaseEdition: { + serializedName: "properties.databaseEdition", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const JobCredential: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobCredential", - modelProperties: { - ...ProxyResource.type.modelProperties, - username: { - serializedName: "properties.username", + }, + serviceObjectiveName: { + serializedName: "properties.serviceObjectiveName", type: { name: "String" } }, - password: { - serializedName: "properties.password", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { name: "String" } + }, + networkIsolation: { + serializedName: "properties.networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const JobExecution: coreClient.CompositeMapper = { +export const DatabaseOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobExecution", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - serializedName: "properties.jobVersion", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + operation: { + serializedName: "properties.operation", readOnly: true, type: { - name: "Number" + name: "String" } }, - stepName: { - serializedName: "properties.stepName", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { name: "String" } }, - stepId: { - serializedName: "properties.stepId", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { name: "Number" } }, - jobExecutionId: { - serializedName: "properties.jobExecutionId", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - lifecycle: { - serializedName: "properties.lifecycle", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - currentAttempts: { - serializedName: "properties.currentAttempts", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - currentAttemptStartTime: { - serializedName: "properties.currentAttemptStartTime", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { name: "DateTime" } }, - lastMessage: { - serializedName: "properties.lastMessage", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - target: { - serializedName: "properties.target", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } + }, + operationPhaseDetails: { + serializedName: "properties.operationPhaseDetails", type: { name: "Composite", - className: "JobExecutionTarget" + className: "PhaseDetails" } } } } }; -export const Job: coreClient.CompositeMapper = { +export const DatabaseSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Job", + className: "DatabaseSchema", modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - defaultValue: "", - serializedName: "properties.description", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - readOnly: true, - type: { - name: "Number" - } - }, - schedule: { - serializedName: "properties.schedule", - type: { - name: "Composite", - className: "JobSchedule" - } - } + ...ProxyResource.type.modelProperties } } }; -export const JobStep: coreClient.CompositeMapper = { +export const DatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStep", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", - type: { - name: "Number" - } - }, - targetGroup: { - serializedName: "properties.targetGroup", - type: { - name: "String" - } - }, - credential: { - serializedName: "properties.credential", - type: { - name: "String" - } - }, - action: { - serializedName: "properties.action", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "JobStepAction" + className: "SystemData" } }, - output: { - serializedName: "properties.output", + state: { + serializedName: "properties.state", type: { - name: "Composite", - className: "JobStepOutput" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - executionOptions: { - serializedName: "properties.executionOptions", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Composite", - className: "JobStepExecutionOptions" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const JobTargetGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobTargetGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - members: { - serializedName: "properties.members", + }, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JobTarget" + name: "String" } } } - } - } - } -}; - -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", + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" + } } } } }; -export const MaintenanceWindowOptions: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowOptions", + className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", modelProperties: { ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" - } - } - } - }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", - type: { - name: "Number" - } - }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", - type: { - name: "Number" - } - }, - minCycles: { - serializedName: "properties.minCycles", - type: { - name: "Number" - } - }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + results: { + serializedName: "properties.results", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } + } + } } } } } }; -export const MaintenanceWindows: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindows", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", modelProperties: { ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { + name: "Composite", + className: "SystemData" + } + }, + latestScan: { + serializedName: "properties.latestScan", + type: { + name: "Boolean" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } } + } + } } } } @@ -11426,243 +11899,316 @@ export const MaintenanceWindows: coreClient.CompositeMapper = { } }; -export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + systemData: { + serializedName: "systemData", type: { - name: "Number" + name: "Composite", + className: "SystemData" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const ManagedInstanceQuery: coreClient.CompositeMapper = { +export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceQuery", + className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", modelProperties: { ...ProxyResource.type.modelProperties, - queryText: { - serializedName: "properties.queryText", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" + } + }, + latestScan: { + serializedName: "properties.latestScan", + type: { + name: "Boolean" + } + }, + results: { + serializedName: "properties.results", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const QueryStatistics: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistics", + className: "SqlVulnerabilityAssessmentScanResults", modelProperties: { ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + ruleId: { + serializedName: "properties.ruleId", readOnly: true, type: { name: "String" } }, - queryId: { - serializedName: "properties.queryId", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + isTrimmed: { + serializedName: "properties.isTrimmed", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - intervals: { - serializedName: "properties.intervals", + queryResults: { + serializedName: "properties.queryResults", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "QueryMetricInterval" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } + }, + remediation: { + serializedName: "properties.remediation", + type: { + name: "Composite", + className: "Remediation" + } + }, + baselineAdjustedResult: { + serializedName: "properties.baselineAdjustedResult", + type: { + name: "Composite", + className: "BaselineAdjustedResult" + } + }, + ruleMetadata: { + serializedName: "properties.ruleMetadata", + type: { + name: "Composite", + className: "VaRule" + } } } } }; -export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", + className: "SqlVulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - serializedName: "properties.state", + systemData: { + serializedName: "systemData", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Composite", + className: "SystemData" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + scanId: { + serializedName: "properties.scanId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - retentionDays: { - serializedName: "properties.retentionDays", + errors: { + serializedName: "properties.errors", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlVulnerabilityAssessmentScanError" + } + } } }, - creationTime: { - serializedName: "properties.creationTime", + server: { + serializedName: "properties.server", + readOnly: true, + type: { + name: "String" + } + }, + database: { + serializedName: "properties.database", readOnly: true, type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const SecurityEvent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityEvent", - modelProperties: { - ...ProxyResource.type.modelProperties, - eventTime: { - serializedName: "properties.eventTime", + }, + sqlVersion: { + serializedName: "properties.sqlVersion", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - securityEventType: { - serializedName: "properties.securityEventType", + highSeverityFailedRulesCount: { + serializedName: "properties.highSeverityFailedRulesCount", readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Undefined", - "SqlInjectionVulnerability", - "SqlInjectionExploit" - ] + name: "Number" } }, - subscription: { - serializedName: "properties.subscription", + mediumSeverityFailedRulesCount: { + serializedName: "properties.mediumSeverityFailedRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - server: { - serializedName: "properties.server", + lowSeverityFailedRulesCount: { + serializedName: "properties.lowSeverityFailedRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - database: { - serializedName: "properties.database", + totalPassedRulesCount: { + serializedName: "properties.totalPassedRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - clientIp: { - serializedName: "properties.clientIp", + totalFailedRulesCount: { + serializedName: "properties.totalFailedRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - applicationName: { - serializedName: "properties.applicationName", + totalRulesCount: { + serializedName: "properties.totalRulesCount", readOnly: true, type: { - name: "String" + name: "Number" } }, - principalName: { - serializedName: "properties.principalName", + isBaselineApplied: { + serializedName: "properties.isBaselineApplied", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - securityEventSqlInjectionAdditionalProperties: { - serializedName: - "properties.securityEventSqlInjectionAdditionalProperties", + lastScanTime: { + serializedName: "properties.lastScanTime", + readOnly: true, type: { - name: "Composite", - className: "SecurityEventSqlInjectionAdditionalProperties" + name: "DateTime" } } } } }; -export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { +export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedTransparentDataEncryption", + className: "SqlVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, state: { serializedName: "properties.state", type: { @@ -11674,569 +12220,542 @@ export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { } }; -export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { +export const DatabaseTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAdministrator", + className: "DatabaseTable", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } }, - login: { - serializedName: "properties.login", + memoryOptimized: { + serializedName: "properties.memoryOptimized", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DatabaseUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + readOnly: true, type: { name: "String" } }, - sid: { - serializedName: "properties.sid", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, type: { - name: "Uuid" + name: "Number" } }, - tenantId: { - serializedName: "properties.tenantId", + limit: { + serializedName: "properties.limit", + readOnly: true, type: { - name: "Uuid" + name: "Number" + } + }, + unit: { + serializedName: "properties.unit", + readOnly: true, + type: { + name: "String" } } } } }; -export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceAzureADOnlyAuthentication", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", modelProperties: { ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + baselineResults: { + serializedName: "properties.baselineResults", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + } + } } } } } }; -export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector", + className: "VulnerabilityAssessmentScanRecord", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + scanId: { + serializedName: "properties.scanId", readOnly: true, type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - thumbprint: { - serializedName: "properties.thumbprint", + 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, type: { name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, type: { - name: "Boolean" + name: "Number" } } } } }; -export const ManagedInstanceKey: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceKey", + className: "DatabaseVulnerabilityAssessmentScansExport", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - serverKeyType: { - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "properties.thumbprint", + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", readOnly: true, type: { name: "String" } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", - readOnly: true, - type: { - name: "Boolean" - } } } } }; -export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { +export const DatabaseVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceLongTermRetentionPolicy", + className: "DatabaseVulnerabilityAssessment", modelProperties: { - ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - weekOfYear: { - serializedName: "properties.weekOfYear", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Number" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ManagedInstanceOperation: coreClient.CompositeMapper = { +export const ImportExportOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceOperation", + className: "ImportExportOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - operation: { - serializedName: "properties.operation", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - startTime: { - serializedName: "properties.startTime", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + blobUri: { + serializedName: "properties.blobUri", readOnly: true, type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "Number" + name: "String" } }, - errorDescription: { - serializedName: "properties.errorDescription", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Number" + name: "String" } }, - isUserError: { - serializedName: "properties.isUserError", + errorMessage: { + serializedName: "properties.errorMessage", readOnly: true, type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" + } + } } - }, - description: { - serializedName: "properties.description", + } + } + } +}; + +export const DeletedServer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedServer", + modelProperties: { + ...ProxyResource.type.modelProperties, + version: { + serializedName: "properties.version", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", + deletionTime: { + serializedName: "properties.deletionTime", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - operationParameters: { - serializedName: "properties.operationParameters", + originalId: { + serializedName: "properties.originalId", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" + name: "String" } }, - operationSteps: { - serializedName: "properties.operationSteps", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "String" } } } } }; -export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { +export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstancePrivateEndpointConnection", + className: "DistributedAvailabilityGroup", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + distributedAvailabilityGroupName: { + serializedName: "properties.distributedAvailabilityGroupName", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateEndpointProperty" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + distributedAvailabilityGroupId: { + serializedName: "properties.distributedAvailabilityGroupId", + readOnly: true, type: { - name: "Composite", - className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + name: "Uuid" } }, - provisioningState: { - serializedName: "properties.provisioningState", + replicationMode: { + serializedName: "properties.replicationMode", + type: { + name: "String" + } + }, + partnerLinkRole: { + serializedName: "properties.partnerLinkRole", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstancePrivateLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + partnerAvailabilityGroupName: { + serializedName: "properties.partnerAvailabilityGroupName", type: { - name: "Composite", - className: "ManagedInstancePrivateLinkProperties" + name: "String" } - } - } - } -}; - -export const TdeCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TdeCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateBlob: { - serializedName: "properties.privateBlob", + }, + partnerEndpoint: { + serializedName: "properties.partnerEndpoint", type: { name: "String" } }, - certPassword: { - serializedName: "properties.certPassword", + instanceLinkRole: { + serializedName: "properties.instanceLinkRole", type: { name: "String" } - } - } - } -}; - -export const ManagedInstanceVulnerabilityAssessment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + }, + instanceAvailabilityGroupName: { + serializedName: "properties.instanceAvailabilityGroupName", type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + failoverMode: { + serializedName: "properties.failoverMode", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + seedingMode: { + serializedName: "properties.seedingMode", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + databases: { + serializedName: "properties.databases", type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DistributedAvailabilityGroupDatabase" + } + } } } } } }; -export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const ElasticPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "ElasticPoolOperation", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - state: { - serializedName: "properties.state", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, + type: { + name: "Number" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + serverName: { + serializedName: "properties.serverName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - creationTime: { - serializedName: "properties.creationTime", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + }, + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpointProperty" + name: "Number" } }, - groupIds: { - serializedName: "properties.groupIds", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkResourceProperties" + name: "Boolean" } } } } }; -export const RecoverableManagedDatabase: coreClient.CompositeMapper = { +export const EncryptionProtector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "EncryptionProtector", modelProperties: { ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const RestorePoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePoint", - modelProperties: { - ...ProxyResource.type.modelProperties, + }, location: { serializedName: "location", readOnly: true, @@ -12244,156 +12763,158 @@ export const RestorePoint: coreClient.CompositeMapper = { name: "String" } }, - restorePointType: { - serializedName: "properties.restorePointType", + subregion: { + serializedName: "properties.subregion", readOnly: true, type: { - name: "Enum", - allowedValues: ["CONTINUOUS", "DISCRETE"] + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + serverKeyName: { + serializedName: "properties.serverKeyName", type: { - name: "DateTime" + name: "String" } }, - restorePointCreationDate: { - serializedName: "properties.restorePointCreationDate", + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - restorePointLabel: { - serializedName: "properties.restorePointLabel", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } } } } }; -export const ServerAutomaticTuning: coreClient.CompositeMapper = { +export const EndpointCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAutomaticTuning", + className: "EndpointCertificate", modelProperties: { ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - actualState: { - serializedName: "properties.actualState", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Custom", "Auto", "Unspecified"] - } - }, - options: { - serializedName: "properties.options", + publicBlob: { + serializedName: "properties.publicBlob", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } + name: "String" } } } } }; -export const ServerAzureADAdministrator: coreClient.CompositeMapper = { +export const FailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAzureADAdministrator", + className: "FailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - administratorType: { - serializedName: "properties.administratorType", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - login: { - serializedName: "properties.login", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - sid: { - serializedName: "properties.sid", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "Uuid" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - tenantId: { - serializedName: "properties.tenantId", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "Uuid" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + replicationRole: { + serializedName: "properties.replicationRole", readOnly: true, type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ServerAzureADOnlyAuthentication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerAzureADOnlyAuthentication", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + }, + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, type: { - name: "Boolean" + 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 ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { +export const GeoBackupPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDevOpsAuditingSettings", + className: "GeoBackupPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + kind: { + serializedName: "kind", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, state: { @@ -12403,312 +12924,293 @@ export const ServerDevOpsAuditingSettings: coreClient.CompositeMapper = { allowedValues: ["Enabled", "Disabled"] } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + storageType: { + serializedName: "properties.storageType", + readOnly: true, type: { name: "String" } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } } } } }; -export const ServerDnsAlias: coreClient.CompositeMapper = { +export const InstanceFailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerDnsAlias", + className: "InstanceFailoverGroup", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", - readOnly: true, + secondaryType: { + serializedName: "properties.secondaryType", type: { name: "String" } - } - } - } -}; - -export const ServerKey: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerKey", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, + }, + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "String" + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint" } }, - location: { - serializedName: "location", - readOnly: true, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "String" + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint" } }, - subregion: { - serializedName: "properties.subregion", + replicationRole: { + serializedName: "properties.replicationRole", readOnly: true, type: { name: "String" } }, - serverKeyType: { - serializedName: "properties.serverKeyType", + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + partnerRegions: { + serializedName: "properties.partnerRegions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerRegionInfo" + } + } } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + managedInstancePairs: { + serializedName: "properties.managedInstancePairs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePairInfo" + } + } } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, + } + } + } +}; + +export const JobCredential: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobCredential", + modelProperties: { + ...ProxyResource.type.modelProperties, + username: { + serializedName: "properties.username", type: { - name: "DateTime" + name: "String" } }, - autoRotationEnabled: { - serializedName: "properties.autoRotationEnabled", - readOnly: true, + password: { + serializedName: "properties.password", type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerOperation: coreClient.CompositeMapper = { +export const JobExecution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerOperation", + className: "JobExecution", modelProperties: { ...ProxyResource.type.modelProperties, - operation: { - serializedName: "properties.operation", + jobVersion: { + serializedName: "properties.jobVersion", readOnly: true, type: { - name: "String" + name: "Number" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + stepName: { + serializedName: "properties.stepName", readOnly: true, type: { name: "String" } }, - percentComplete: { - serializedName: "properties.percentComplete", + stepId: { + serializedName: "properties.stepId", readOnly: true, type: { name: "Number" } }, - serverName: { - serializedName: "properties.serverName", + jobExecutionId: { + serializedName: "properties.jobExecutionId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - startTime: { - serializedName: "properties.startTime", + lifecycle: { + serializedName: "properties.lifecycle", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - errorCode: { - serializedName: "properties.errorCode", + createTime: { + serializedName: "properties.createTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - errorDescription: { - serializedName: "properties.errorDescription", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + endTime: { + serializedName: "properties.endTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + currentAttempts: { + serializedName: "properties.currentAttempts", type: { - name: "Boolean" + name: "Number" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + currentAttemptStartTime: { + serializedName: "properties.currentAttemptStartTime", readOnly: true, type: { name: "DateTime" } }, - description: { - serializedName: "properties.description", + lastMessage: { + serializedName: "properties.lastMessage", readOnly: true, type: { name: "String" } }, - isCancellable: { - serializedName: "properties.isCancellable", - readOnly: true, + target: { + serializedName: "properties.target", type: { - name: "Boolean" + name: "Composite", + className: "JobExecutionTarget" } } } } }; -export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { +export const JobPrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "JobPrivateEndpoint", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + targetServerAzureResourceId: { + serializedName: "properties.targetServerAzureResourceId", type: { - name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + privateEndpointId: { + serializedName: "properties.privateEndpointId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", + } + } + } +}; + +export const JobStep: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobStep", + modelProperties: { + ...ProxyResource.type.modelProperties, + stepId: { + serializedName: "properties.stepId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + targetGroup: { + serializedName: "properties.targetGroup", type: { - name: "Boolean" + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + credential: { + serializedName: "properties.credential", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + action: { + serializedName: "properties.action", type: { - name: "String" + name: "Composite", + className: "JobStepAction" } }, - retentionDays: { - serializedName: "properties.retentionDays", + output: { + serializedName: "properties.output", type: { - name: "Number" + name: "Composite", + className: "JobStepOutput" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + executionOptions: { + serializedName: "properties.executionOptions", type: { - name: "DateTime" + name: "Composite", + className: "JobStepExecutionOptions" } } } } }; -export const ServerTrustGroup: coreClient.CompositeMapper = { +export const JobTargetGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustGroup", + className: "JobTargetGroup", modelProperties: { ...ProxyResource.type.modelProperties, - groupMembers: { - serializedName: "properties.groupMembers", + members: { + serializedName: "properties.members", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerInfo" - } - } - } - }, - trustScopes: { - serializedName: "properties.trustScopes", - type: { - name: "Sequence", - element: { - type: { - name: "String" + className: "JobTarget" } } } @@ -12717,144 +13219,140 @@ export const ServerTrustGroup: coreClient.CompositeMapper = { } }; -export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { +export const JobVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "JobVersion", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const Job: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Job", modelProperties: { ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + description: { + defaultValue: "", + serializedName: "properties.description", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + version: { + serializedName: "properties.version", + readOnly: true, type: { - name: "String" + name: "Number" } }, - recurringScans: { - serializedName: "properties.recurringScans", + schedule: { + serializedName: "properties.schedule", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "JobSchedule" } } } } }; -export const SqlAgentConfiguration: coreClient.CompositeMapper = { +export const LedgerDigestUploads: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlAgentConfiguration", + className: "LedgerDigestUploads", modelProperties: { ...ProxyResource.type.modelProperties, + digestStorageEndpoint: { + serializedName: "properties.digestStorageEndpoint", + type: { + name: "String" + } + }, state: { serializedName: "properties.state", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const SubscriptionUsage: coreClient.CompositeMapper = { +export const LongTermRetentionBackup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionUsage", + className: "LongTermRetentionBackup", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { name: "String" } }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, - type: { - name: "Number" - } - }, - limit: { - serializedName: "properties.limit", + serverCreateTime: { + serializedName: "properties.serverCreateTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - unit: { - serializedName: "properties.unit", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SyncAgent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SyncAgent", - modelProperties: { - ...ProxyResource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + }, + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - lastAliveTime: { - serializedName: "properties.lastAliveTime", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", readOnly: true, type: { name: "DateTime" } }, - state: { - serializedName: "properties.state", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" } }, - isUpToDate: { - serializedName: "properties.isUpToDate", - readOnly: true, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Boolean" + name: "String" } }, - expiryTime: { - serializedName: "properties.expiryTime", - readOnly: true, + isBackupImmutable: { + serializedName: "properties.isBackupImmutable", type: { - name: "DateTime" + name: "Boolean" } }, - version: { - serializedName: "properties.version", + backupStorageAccessTier: { + serializedName: "properties.backupStorageAccessTier", readOnly: true, type: { name: "String" @@ -12864,142 +13362,122 @@ export const SyncAgent: coreClient.CompositeMapper = { } }; -export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { +export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "LongTermRetentionBackupOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", - readOnly: true, - type: { - name: "String" - } - }, - databaseId: { - serializedName: "properties.databaseId", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - description: { - serializedName: "properties.description", + operationType: { + serializedName: "properties.operationType", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + fromBackupResourceId: { + serializedName: "properties.fromBackupResourceId", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + toBackupResourceId: { + serializedName: "properties.toBackupResourceId", readOnly: true, type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", 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" - } - }, - interval: { - serializedName: "properties.interval", - type: { - name: "Number" - } }, - lastSyncTime: { - serializedName: "properties.lastSyncTime", + status: { + serializedName: "properties.status", readOnly: true, - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + message: { + serializedName: "properties.message", + readOnly: true, type: { name: "String" } - }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + } + } + } +}; + +export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceLongTermRetentionBackup", + modelProperties: { + ...ProxyResource.type.modelProperties, + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + managedInstanceCreateTime: { + serializedName: "properties.managedInstanceCreateTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - syncState: { - serializedName: "properties.syncState", + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - schema: { - serializedName: "properties.schema", + databaseDeletionTime: { + serializedName: "properties.databaseDeletionTime", + readOnly: true, type: { - name: "Composite", - className: "SyncGroupSchema" + name: "DateTime" } }, - enableConflictLogging: { - serializedName: "properties.enableConflictLogging", + backupTime: { + serializedName: "properties.backupTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - conflictLoggingRetentionInDays: { - serializedName: "properties.conflictLoggingRetentionInDays", + backupExpirationTime: { + serializedName: "properties.backupExpirationTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", + backupStorageAccessTier: { + serializedName: "properties.backupStorageAccessTier", readOnly: true, type: { name: "String" @@ -13009,712 +13487,767 @@ export const SyncGroup: coreClient.CompositeMapper = { } }; -export const SyncMember: coreClient.CompositeMapper = { +export const LongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SyncMember", + className: "LongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - syncAgentId: { - serializedName: "properties.syncAgentId", + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", - type: { - name: "Uuid" - } - }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Boolean" + name: "Number" } - }, - privateEndpointName: { - serializedName: "properties.privateEndpointName", - readOnly: true, + } + } + } +}; + +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaintenanceWindowOptions", + modelProperties: { + ...ProxyResource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" + name: "Boolean" } }, - serverName: { - serializedName: "properties.serverName", + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } }, - databaseName: { - serializedName: "properties.databaseName", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "String" + name: "Number" } }, - userName: { - serializedName: "properties.userName", + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "String" + name: "Number" } }, - password: { - serializedName: "properties.password", + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" } }, - syncDirection: { - serializedName: "properties.syncDirection", + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", type: { - name: "String" + name: "Number" } }, - syncState: { - serializedName: "properties.syncState", - readOnly: true, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", type: { - name: "String" + name: "Boolean" } } } } }; -export const TimeZone: coreClient.CompositeMapper = { +export const MaintenanceWindows: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeZone", + className: "MaintenanceWindows", modelProperties: { ...ProxyResource.type.modelProperties, - timeZoneId: { - serializedName: "properties.timeZoneId", - readOnly: true, + timeRanges: { + serializedName: "properties.timeRanges", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } } - }, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + } + } + } +}; + +export const ManagedBackupShortTermRetentionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedBackupShortTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } } } } }; -export const VirtualNetworkRule: coreClient.CompositeMapper = { +export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkRule", + className: "ManagedDatabaseAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - serializedName: "properties.virtualNetworkSubnetId", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + state: { + serializedName: "properties.state", type: { - name: "Boolean" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - state: { - serializedName: "properties.state", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const WorkloadClassifier: coreClient.CompositeMapper = { +export const ManagedDatabaseMoveOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifier", + className: "ManagedDatabaseMoveOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - memberName: { - serializedName: "properties.memberName", + operation: { + serializedName: "properties.operation", + readOnly: true, + type: { + name: "String" + } + }, + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + operationMode: { + serializedName: "properties.operationMode", + readOnly: true, + type: { + name: "String" + } + }, + sourceManagedInstanceName: { + serializedName: "properties.sourceManagedInstanceName", + readOnly: true, type: { name: "String" } }, - label: { - serializedName: "properties.label", + targetManagedInstanceName: { + serializedName: "properties.targetManagedInstanceName", + readOnly: true, type: { name: "String" } }, - context: { - serializedName: "properties.context", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", + readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + targetManagedInstanceId: { + serializedName: "properties.targetManagedInstanceId", + readOnly: true, type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + sourceDatabaseName: { + serializedName: "properties.sourceDatabaseName", + readOnly: true, type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const WorkloadGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkloadGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - minResourcePercent: { - serializedName: "properties.minResourcePercent", - type: { - name: "Number" - } }, - maxResourcePercent: { - serializedName: "properties.maxResourcePercent", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - minResourcePercentPerRequest: { - serializedName: "properties.minResourcePercentPerRequest", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { name: "Number" } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { - name: "Number" + name: "String" } }, - importance: { - serializedName: "properties.importance", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { - name: "String" + name: "Number" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { - name: "Number" + name: "Boolean" } } } } }; -export const BackupShortTermRetentionPolicy: coreClient.CompositeMapper = { +export const ManagedInstanceQuery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "ManagedInstanceQuery", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - diffBackupIntervalInHours: { - serializedName: "properties.diffBackupIntervalInHours", + queryText: { + serializedName: "properties.queryText", type: { - name: "Number" + name: "String" } } } } }; -export const DatabaseExtensions: coreClient.CompositeMapper = { +export const QueryStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseExtensions", + className: "QueryStatistics", modelProperties: { ...ProxyResource.type.modelProperties, - operationMode: { - serializedName: "properties.operationMode", + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, type: { name: "String" } }, - storageKeyType: { - serializedName: "properties.storageKeyType", + queryId: { + serializedName: "properties.queryId", + readOnly: true, type: { name: "String" } }, - storageKey: { - serializedName: "properties.storageKey", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { name: "String" } }, - storageUri: { - serializedName: "properties.storageUri", + endTime: { + serializedName: "properties.endTime", + readOnly: true, type: { name: "String" } + }, + intervals: { + serializedName: "properties.intervals", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricInterval" + } + } + } } } } }; -export const ImportExportExtensionsOperationResult: coreClient.CompositeMapper = { +export const ManagedDatabaseRestoreDetailsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportExportExtensionsOperationResult", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + typePropertiesType: { + serializedName: "properties.type", readOnly: true, type: { - name: "Uuid" + name: "String" } }, - requestType: { - serializedName: "properties.requestType", + status: { + serializedName: "properties.status", readOnly: true, type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + blockReason: { + serializedName: "properties.blockReason", readOnly: true, type: { name: "String" } }, - serverName: { - serializedName: "properties.serverName", + lastUploadedFileName: { + serializedName: "properties.lastUploadedFileName", readOnly: true, type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + lastUploadedFileTime: { + serializedName: "properties.lastUploadedFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - status: { - serializedName: "properties.status", + lastRestoredFileName: { + serializedName: "properties.lastRestoredFileName", readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "properties.errorMessage", + lastRestoredFileTime: { + serializedName: "properties.lastRestoredFileTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const DatabaseOperation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { - serializedName: "properties.databaseName", + }, + percentCompleted: { + serializedName: "properties.percentCompleted", readOnly: true, type: { - name: "String" + name: "Number" } }, - operation: { - serializedName: "properties.operation", + currentRestoredSizeMB: { + serializedName: "properties.currentRestoredSizeMB", readOnly: true, type: { - name: "String" + name: "Number" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + currentRestorePlanSizeMB: { + serializedName: "properties.currentRestorePlanSizeMB", readOnly: true, type: { - name: "String" + name: "Number" } }, - percentComplete: { - serializedName: "properties.percentComplete", + currentBackupType: { + serializedName: "properties.currentBackupType", readOnly: true, type: { - name: "Number" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + currentRestoringFileName: { + serializedName: "properties.currentRestoringFileName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + numberOfFilesDetected: { + serializedName: "properties.numberOfFilesDetected", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - state: { - serializedName: "properties.state", + numberOfFilesQueued: { + serializedName: "properties.numberOfFilesQueued", readOnly: true, type: { - name: "String" + name: "Number" } }, - errorCode: { - serializedName: "properties.errorCode", + numberOfFilesSkipped: { + serializedName: "properties.numberOfFilesSkipped", readOnly: true, type: { name: "Number" } }, - errorDescription: { - serializedName: "properties.errorDescription", + numberOfFilesRestoring: { + serializedName: "properties.numberOfFilesRestoring", readOnly: true, type: { - name: "String" + name: "Number" } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + numberOfFilesRestored: { + serializedName: "properties.numberOfFilesRestored", readOnly: true, type: { name: "Number" } }, - isUserError: { - serializedName: "properties.isUserError", + numberOfFilesUnrestorable: { + serializedName: "properties.numberOfFilesUnrestorable", readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - estimatedCompletionTime: { - serializedName: "properties.estimatedCompletionTime", + fullBackupSets: { + serializedName: "properties.fullBackupSets", readOnly: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } + } + }, + diffBackupSets: { + serializedName: "properties.diffBackupSets", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - description: { - serializedName: "properties.description", + logBackupSets: { + serializedName: "properties.logBackupSets", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + } + } } }, - isCancellable: { - serializedName: "properties.isCancellable", + unrestorableFiles: { + serializedName: "properties.unrestorableFiles", readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" + } + } } } } } }; -export const DatabaseUsage: coreClient.CompositeMapper = { +export const ManagedDatabaseSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseUsage", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - currentValue: { - serializedName: "properties.currentValue", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - limit: { - serializedName: "properties.limit", - readOnly: true, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - unit: { - serializedName: "properties.unit", - readOnly: true, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } - } - } - } -}; - -export const LedgerDigestUploads: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LedgerDigestUploads", - 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: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "DateTime" } } } } }; -export const OutboundFirewallRule: coreClient.CompositeMapper = { +export const SecurityEvent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundFirewallRule", + className: "SecurityEvent", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", + eventTime: { + serializedName: "properties.eventTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const LongTermRetentionBackupOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionBackupOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", + }, + securityEventType: { + serializedName: "properties.securityEventType", readOnly: true, type: { - name: "Uuid" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - operationType: { - serializedName: "properties.operationType", + subscription: { + serializedName: "properties.subscription", readOnly: true, type: { name: "String" } }, - fromBackupResourceId: { - serializedName: "properties.fromBackupResourceId", + server: { + serializedName: "properties.server", readOnly: true, type: { name: "String" } }, - toBackupResourceId: { - serializedName: "properties.toBackupResourceId", + database: { + serializedName: "properties.database", readOnly: true, type: { name: "String" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", + clientIp: { + serializedName: "properties.clientIp", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + applicationName: { + serializedName: "properties.applicationName", readOnly: true, type: { name: "String" } }, - message: { - serializedName: "properties.message", + principalName: { + serializedName: "properties.principalName", readOnly: true, type: { name: "String" } + }, + securityEventSqlInjectionAdditionalProperties: { + serializedName: + "properties.securityEventSqlInjectionAdditionalProperties", + type: { + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" + } } } } }; -export const LongTermRetentionBackup: coreClient.CompositeMapper = { +export const SensitivityLabel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionBackup", + className: "SensitivityLabel", modelProperties: { ...ProxyResource.type.modelProperties, - serverName: { - serializedName: "properties.serverName", + managedBy: { + serializedName: "managedBy", readOnly: true, type: { name: "String" } }, - serverCreateTime: { - serializedName: "properties.serverCreateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - databaseName: { - serializedName: "properties.databaseName", + schemaName: { + serializedName: "properties.schemaName", readOnly: true, type: { name: "String" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - backupTime: { - serializedName: "properties.backupTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", + tableName: { + serializedName: "properties.tableName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + columnName: { + serializedName: "properties.columnName", readOnly: true, type: { name: "String" } }, - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedInstanceLongTermRetentionBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - managedInstanceName: { - serializedName: "properties.managedInstanceName", - readOnly: true, + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - managedInstanceCreateTime: { - serializedName: "properties.managedInstanceCreateTime", - readOnly: true, + labelId: { + serializedName: "properties.labelId", type: { - name: "DateTime" + name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", - readOnly: true, + informationType: { + serializedName: "properties.informationType", type: { name: "String" } }, - databaseDeletionTime: { - serializedName: "properties.databaseDeletionTime", - readOnly: true, + informationTypeId: { + serializedName: "properties.informationTypeId", type: { - name: "DateTime" + name: "String" } }, - backupTime: { - serializedName: "properties.backupTime", + isDisabled: { + serializedName: "properties.isDisabled", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - backupExpirationTime: { - serializedName: "properties.backupExpirationTime", - readOnly: true, + rank: { + serializedName: "properties.rank", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", - readOnly: true, + clientClassificationSource: { + serializedName: "properties.clientClassificationSource", type: { name: "String" } @@ -13723,455 +14256,567 @@ export const ManagedInstanceLongTermRetentionBackup: coreClient.CompositeMapper } }; -export const ServerConnectionPolicy: coreClient.CompositeMapper = { +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "SensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + op: { + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: ["set", "remove"] + } + }, + schema: { + serializedName: "properties.schema", type: { name: "String" } }, - kind: { - serializedName: "kind", - readOnly: true, + table: { + serializedName: "properties.table", type: { name: "String" } }, - connectionType: { - serializedName: "properties.connectionType", + column: { + serializedName: "properties.column", type: { name: "String" } + }, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel" + } } } } }; -export const DistributedAvailabilityGroup: coreClient.CompositeMapper = { +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DistributedAvailabilityGroup", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { ...ProxyResource.type.modelProperties, - targetDatabase: { - serializedName: "properties.targetDatabase", + op: { + serializedName: "properties.op", type: { - name: "String" + name: "Enum", + allowedValues: ["enable", "disable"] } }, - sourceEndpoint: { - serializedName: "properties.sourceEndpoint", + schema: { + serializedName: "properties.schema", type: { name: "String" } }, - primaryAvailabilityGroupName: { - serializedName: "properties.primaryAvailabilityGroupName", + table: { + serializedName: "properties.table", type: { name: "String" } }, - secondaryAvailabilityGroupName: { - serializedName: "properties.secondaryAvailabilityGroupName", + column: { + serializedName: "properties.column", type: { name: "String" } - }, - replicationMode: { - serializedName: "properties.replicationMode", + } + } + } +}; + +export const ManagedTransparentDataEncryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedTransparentDataEncryption", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - }, - distributedAvailabilityGroupId: { - serializedName: "properties.distributedAvailabilityGroupId", - readOnly: true, + } + } + } +}; + +export const ManagedInstanceAdministrator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Uuid" + name: "String" } }, - sourceReplicaId: { - serializedName: "properties.sourceReplicaId", - readOnly: true, + login: { + serializedName: "properties.login", type: { - name: "Uuid" + name: "String" } }, - targetReplicaId: { - serializedName: "properties.targetReplicaId", - readOnly: true, + sid: { + serializedName: "properties.sid", type: { name: "Uuid" } }, - linkState: { - serializedName: "properties.linkState", - readOnly: true, - type: { - name: "String" - } - }, - lastHardenedLsn: { - serializedName: "properties.lastHardenedLsn", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } } } } }; -export const ServerTrustCertificate: coreClient.CompositeMapper = { +export const ManagedInstanceAdvancedThreatProtection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerTrustCertificate", + className: "ManagedInstanceAdvancedThreatProtection", modelProperties: { ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - thumbprint: { - serializedName: "properties.thumbprint", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - certificateName: { - serializedName: "properties.certificateName", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const EndpointCertificate: coreClient.CompositeMapper = { +export const ManagedInstanceAzureADOnlyAuthentication: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointCertificate", + className: "ManagedInstanceAzureADOnlyAuthentication", modelProperties: { ...ProxyResource.type.modelProperties, - publicBlob: { - serializedName: "properties.publicBlob", + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "String" + name: "Boolean" } } } } }; -export const SensitivityLabel: coreClient.CompositeMapper = { +export const ManagedInstanceDtc: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "ManagedInstanceDtc", modelProperties: { ...ProxyResource.type.modelProperties, - managedBy: { - serializedName: "managedBy", + dtcEnabled: { + serializedName: "properties.dtcEnabled", + type: { + name: "Boolean" + } + }, + securitySettings: { + serializedName: "properties.securitySettings", + type: { + name: "Composite", + className: "ManagedInstanceDtcSecuritySettings" + } + }, + externalDnsSuffixSearchList: { + serializedName: "properties.externalDnsSuffixSearchList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dtcHostNameDnsSuffix: { + serializedName: "properties.dtcHostNameDnsSuffix", readOnly: true, type: { name: "String" } }, - schemaName: { - serializedName: "properties.schemaName", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceEncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - tableName: { - serializedName: "properties.tableName", + serverKeyName: { + serializedName: "properties.serverKeyName", + type: { + name: "String" + } + }, + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", readOnly: true, type: { name: "String" } }, - columnName: { - serializedName: "properties.columnName", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - labelName: { - serializedName: "properties.labelName", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedInstanceKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstanceKey", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, type: { name: "String" } }, - labelId: { - serializedName: "properties.labelId", + serverKeyType: { + serializedName: "properties.serverKeyType", type: { name: "String" } }, - informationType: { - serializedName: "properties.informationType", + uri: { + serializedName: "properties.uri", type: { name: "String" } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, type: { name: "String" } }, - isDisabled: { - serializedName: "properties.isDisabled", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - rank: { - serializedName: "properties.rank", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, type: { - name: "Enum", - allowedValues: ["None", "Low", "Medium", "High", "Critical"] + name: "Boolean" } } } } }; -export const SensitivityLabelUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceLongTermRetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelUpdate", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", + backupStorageAccessTier: { + serializedName: "properties.backupStorageAccessTier", type: { - name: "Enum", - allowedValues: ["set", "remove"] + name: "String" } }, - schema: { - serializedName: "properties.schema", + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - table: { - serializedName: "properties.table", + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { name: "String" } }, - column: { - serializedName: "properties.column", + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "Composite", - className: "SensitivityLabel" + name: "Number" } } } } }; -export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { +export const ManagedInstanceOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate", + className: "ManagedInstanceOperation", modelProperties: { ...ProxyResource.type.modelProperties, - op: { - serializedName: "properties.op", - type: { - name: "Enum", - allowedValues: ["enable", "disable"] - } - }, - schema: { - serializedName: "properties.schema", + managedInstanceName: { + serializedName: "properties.managedInstanceName", + readOnly: true, type: { name: "String" } }, - table: { - serializedName: "properties.table", + operation: { + serializedName: "properties.operation", + readOnly: true, type: { name: "String" } }, - column: { - serializedName: "properties.column", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + }, + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + errorCode: { + serializedName: "properties.errorCode", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + errorDescription: { + serializedName: "properties.errorDescription", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + errorSeverity: { + serializedName: "properties.errorSeverity", + readOnly: true, type: { name: "Number" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, type: { name: "Boolean" } }, - state: { - serializedName: "properties.state", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Enabled", "Disabled"] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + description: { + serializedName: "properties.description", + readOnly: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + operationParameters: { + serializedName: "properties.operationParameters", type: { - name: "Uuid" + name: "Composite", + className: "ManagedInstanceOperationParametersPair" + } + }, + operationSteps: { + serializedName: "properties.operationSteps", + type: { + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedInstancePrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - readOnly: true, - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Number" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + } + } + } +}; + +export const ManagedInstancePrivateLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedInstancePrivateLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + 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" } @@ -14182,124 +14827,149 @@ export const DatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Uuid" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ExtendedDatabaseBlobAuditingPolicy: coreClient.CompositeMapper = { +export const RefreshExternalGovernanceStatusOperationResultMI: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "RefreshExternalGovernanceStatusOperationResultMI", modelProperties: { ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + 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 ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { +export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - isDevopsAuditEnabled: { - serializedName: "properties.isDevopsAuditEnabled", + systemData: { + serializedName: "systemData", type: { - name: "Boolean" + name: "Composite", + className: "SystemData" } }, - predicateExpression: { - serializedName: "properties.predicateExpression", + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - retentionDays: { - serializedName: "properties.retentionDays", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { name: "Sequence", element: { @@ -14309,201 +14979,223 @@ export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { } } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { name: "Boolean" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - isManagedIdentityInUse: { - serializedName: "properties.isManagedIdentityInUse", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" + } + } + } + } +}; + +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" } }, - 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", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "SystemData" + className: "PrivateEndpointProperty" + } + }, + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - state: { - serializedName: "properties.state", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - creationTime: { - serializedName: "properties.creationTime", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerAdvancedThreatProtection", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SystemData" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] - } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, - type: { - name: "DateTime" + className: "PrivateLinkResourceProperties" } } } } }; -export const ManagedServerDnsAlias: coreClient.CompositeMapper = { +export const RecoverableDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServerDnsAlias", + className: "RecoverableDatabase", modelProperties: { ...ProxyResource.type.modelProperties, - azureDnsRecord: { - serializedName: "properties.azureDnsRecord", + edition: { + serializedName: "properties.edition", readOnly: true, type: { name: "String" } }, - publicAzureDnsRecord: { - serializedName: "properties.publicAzureDnsRecord", + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseAdvancedThreatProtection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedDatabaseAdvancedThreatProtection", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } }, - state: { - serializedName: "properties.state", + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["New", "Enabled", "Disabled"] + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", + 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" } } } @@ -14530,6 +15222,13 @@ export const ReplicationLink: coreClient.CompositeMapper = { name: "String" } }, + partnerDatabaseId: { + serializedName: "properties.partnerDatabaseId", + readOnly: true, + type: { + name: "String" + } + }, partnerLocation: { serializedName: "properties.partnerLocation", readOnly: true, @@ -14611,206 +15310,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: "Composite", + className: "Sku" + } + }, + location: { + serializedName: "location", type: { name: "String" } }, - operationFriendlyName: { - serializedName: "properties.operationFriendlyName", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + databaseName: { + serializedName: "properties.databaseName", readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - state: { - serializedName: "properties.state", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - operationMode: { - serializedName: "properties.operationMode", + deletionDate: { + serializedName: "properties.deletionDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - sourceManagedInstanceName: { - serializedName: "properties.sourceManagedInstanceName", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetManagedInstanceName: { - serializedName: "properties.targetManagedInstanceName", + backupStorageRedundancy: { + serializedName: "properties.backupStorageRedundancy", readOnly: true, type: { name: "String" } }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + 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" } }, - targetManagedInstanceId: { - serializedName: "properties.targetManagedInstanceId", + restorePointType: { + serializedName: "properties.restorePointType", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] } }, - sourceDatabaseName: { - serializedName: "properties.sourceDatabaseName", + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - isCancellable: { - serializedName: "properties.isCancellable", + restorePointLabel: { + serializedName: "properties.restorePointLabel", readOnly: true, type: { - name: "Boolean" + name: "String" + } + } + } + } +}; + +export const ServerAdvancedThreatProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerAdvancedThreatProtection", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } }, - errorCode: { - serializedName: "properties.errorCode", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Number" + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] } }, - errorDescription: { - serializedName: "properties.errorDescription", + creationTime: { + serializedName: "properties.creationTime", 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", + type: { + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - errorSeverity: { - serializedName: "properties.errorSeverity", + actualState: { + serializedName: "properties.actualState", readOnly: true, type: { - name: "Number" + name: "Enum", + allowedValues: ["Custom", "Auto", "Unspecified"] } }, - isUserError: { - serializedName: "properties.isUserError", - readOnly: true, + options: { + serializedName: "properties.options", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions" + } + } } } } } }; -export const ManagedInstanceDtc: coreClient.CompositeMapper = { +export const ServerAzureADAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedInstanceDtc", + className: "ServerAzureADAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, - dtcEnabled: { - serializedName: "properties.dtcEnabled", + administratorType: { + serializedName: "properties.administratorType", type: { - name: "Boolean" + name: "String" } }, - securitySettings: { - serializedName: "properties.securitySettings", + login: { + serializedName: "properties.login", type: { - name: "Composite", - className: "ManagedInstanceDtcSecuritySettings" + name: "String" } }, - externalDnsSuffixSearchList: { - serializedName: "properties.externalDnsSuffixSearchList", + sid: { + serializedName: "properties.sid", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Uuid" } }, - dtcHostNameDnsSuffix: { - serializedName: "properties.dtcHostNameDnsSuffix", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { - name: "String" + name: "Uuid" } }, - provisioningState: { - serializedName: "properties.provisioningState", + 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" @@ -14820,341 +15583,404 @@ 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", + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - lastUploadedFileTime: { - serializedName: "properties.lastUploadedFileTime", + creationDate: { + serializedName: "properties.creationDate", readOnly: true, type: { name: "DateTime" } }, - lastRestoredFileName: { - serializedName: "properties.lastRestoredFileName", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + operation: { + serializedName: "properties.operation", readOnly: true, type: { name: "String" } }, - lastRestoredFileTime: { - serializedName: "properties.lastRestoredFileTime", + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - percentCompleted: { - serializedName: "properties.percentCompleted", + percentComplete: { + serializedName: "properties.percentComplete", readOnly: true, type: { name: "Number" } }, - currentRestoredSizeMB: { - serializedName: "properties.currentRestoredSizeMB", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "Number" + name: "String" } }, - currentRestorePlanSizeMB: { - serializedName: "properties.currentRestorePlanSizeMB", + startTime: { + serializedName: "properties.startTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - currentBackupType: { - serializedName: "properties.currentBackupType", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - currentRestoringFileName: { - serializedName: "properties.currentRestoringFileName", + errorCode: { + serializedName: "properties.errorCode", readOnly: true, type: { - name: "String" + name: "Number" } }, - numberOfFilesDetected: { - serializedName: "properties.numberOfFilesDetected", + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesQueued: { - serializedName: "properties.numberOfFilesQueued", + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, type: { name: "Number" } }, - numberOfFilesSkipped: { - serializedName: "properties.numberOfFilesSkipped", + isUserError: { + serializedName: "properties.isUserError", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - numberOfFilesRestoring: { - serializedName: "properties.numberOfFilesRestoring", + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - numberOfFilesRestored: { - serializedName: "properties.numberOfFilesRestored", + description: { + serializedName: "properties.description", readOnly: true, type: { - name: "Number" + name: "String" } }, - numberOfFilesUnrestorable: { - serializedName: "properties.numberOfFilesUnrestorable", + isCancellable: { + serializedName: "properties.isCancellable", readOnly: true, type: { - name: "Number" + name: "Boolean" } - }, - fullBackupSets: { - serializedName: "properties.fullBackupSets", - readOnly: true, + } + } + } +}; + +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "Composite", + className: "SystemData" } }, - diffBackupSets: { - serializedName: "properties.diffBackupSets", - readOnly: true, + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" - } - } + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } }, - logBackupSets: { - serializedName: "properties.logBackupSets", - readOnly: true, + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsBackupSetProperties" + name: "String" } } } }, - unrestorableFiles: { - serializedName: "properties.unrestorableFiles", - readOnly: true, + emailAddresses: { + serializedName: "properties.emailAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: - "ManagedDatabaseRestoreDetailsUnrestorableFileProperties" + name: "String" } } } - } - } - } -}; - -export const ImportExportOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImportExportOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Uuid" + name: "Boolean" } }, - requestType: { - serializedName: "properties.requestType", - readOnly: true, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - queuedTime: { - serializedName: "properties.queuedTime", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - blobUri: { - serializedName: "properties.blobUri", + creationTime: { + serializedName: "properties.creationTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, + } + } + } +}; + +export const ServerTrustCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustCertificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + publicBlob: { + serializedName: "properties.publicBlob", type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + thumbprint: { + serializedName: "properties.thumbprint", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + certificateName: { + serializedName: "properties.certificateName", readOnly: true, type: { name: "String" } - }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, + } + } + } +}; + +export const ServerTrustGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerTrustGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupMembers: { + serializedName: "properties.groupMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerInfo" + } + } } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + trustScopes: { + serializedName: "properties.trustScopes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestStatus" + name: "String" } } } @@ -15163,20 +15989,35 @@ export const ImportExportOperationResult: coreClient.CompositeMapper = { } }; -export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { +export const ServerUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedLedgerDigestUploads", + className: "ServerUsage", modelProperties: { ...ProxyResource.type.modelProperties, - digestStorageEndpoint: { - serializedName: "properties.digestStorageEndpoint", + displayName: { + serializedName: "properties.displayName", + readOnly: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, + type: { + name: "Number" + } + }, + limit: { + serializedName: "properties.limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "properties.unit", readOnly: true, type: { name: "String" @@ -15186,145 +16027,101 @@ export const ManagedLedgerDigestUploads: coreClient.CompositeMapper = { } }; -export const RecoverableDatabase: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableDatabase", + className: "ServerVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - edition: { - serializedName: "properties.edition", - readOnly: true, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - serviceLevelObjective: { - serializedName: "properties.serviceLevelObjective", - readOnly: true, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - elasticPoolName: { - serializedName: "properties.elasticPoolName", - readOnly: true, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - lastAvailableBackupDate: { - serializedName: "properties.lastAvailableBackupDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - keys: { - serializedName: "properties.keys", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "DatabaseKey" } } + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const RestorableDroppedDatabase: coreClient.CompositeMapper = { +export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "RefreshExternalGovernanceStatusOperationResult", modelProperties: { ...ProxyResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - databaseName: { - serializedName: "properties.databaseName", + requestId: { + serializedName: "properties.requestId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + requestType: { + serializedName: "properties.requestType", readOnly: true, type: { - name: "Number" + name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + queuedTime: { + serializedName: "properties.queuedTime", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", + serverName: { + serializedName: "properties.serverName", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - backupStorageRedundancy: { - serializedName: "properties.backupStorageRedundancy", + errorMessage: { + serializedName: "properties.errorMessage", 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 SqlAgentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerConfigurationOption", + className: "SqlAgentConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - serverConfigurationOptionValue: { - serializedName: "properties.serverConfigurationOptionValue", - type: { - name: "Number" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + state: { + serializedName: "properties.state", type: { name: "String" } @@ -15390,161 +16187,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 DatabaseSqlVulnerabilityAssessmentBaselineSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentBaselineSet", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - results: { - serializedName: "properties.results", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } - } - } - } - } -}; - -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput: coreClient.CompositeMapper = { +export const SubscriptionUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput", + className: "SubscriptionUsage", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + displayName: { + serializedName: "properties.displayName", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - latestScan: { - serializedName: "properties.latestScan", + currentValue: { + serializedName: "properties.currentValue", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - results: { - serializedName: "properties.results", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } - } - } - } - } -}; - -export const DatabaseSqlVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + limit: { + serializedName: "properties.limit", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "Number" } }, - results: { - serializedName: "properties.results", + unit: { + serializedName: "properties.unit", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } } } } }; -export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.CompositeMapper = { +export const SynapseLinkWorkspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseSqlVulnerabilityAssessmentRuleBaselineInput", + className: "SynapseLinkWorkspace", modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - latestScan: { - serializedName: "properties.latestScan", - type: { - name: "Boolean" - } - }, - results: { - serializedName: "properties.results", + ...ProxyResource.type.modelProperties, + workspaces: { + serializedName: "properties.workspaces", type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SynapseLinkWorkspaceInfoProperties" } } } @@ -15553,244 +16247,323 @@ export const DatabaseSqlVulnerabilityAssessmentRuleBaselineInput: coreClient.Com } }; -export const SqlVulnerabilityAssessmentScanResults: coreClient.CompositeMapper = { +export const SyncAgent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanResults", + className: "SyncAgent", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + namePropertiesName: { + serializedName: "properties.name", + readOnly: true, type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - ruleId: { - serializedName: "properties.ruleId", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - status: { - serializedName: "properties.status", + lastAliveTime: { + serializedName: "properties.lastAliveTime", readOnly: true, type: { - name: "String" + name: "DateTime" } }, - errorMessage: { - serializedName: "properties.errorMessage", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - isTrimmed: { - serializedName: "properties.isTrimmed", + isUpToDate: { + serializedName: "properties.isUpToDate", readOnly: true, type: { name: "Boolean" } }, - queryResults: { - serializedName: "properties.queryResults", + expiryTime: { + serializedName: "properties.expiryTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "DateTime" } }, - remediation: { - serializedName: "properties.remediation", + version: { + serializedName: "properties.version", + readOnly: true, type: { - name: "Composite", - className: "Remediation" + name: "String" + } + } + } + } +}; + +export const SyncAgentLinkedDatabase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncAgentLinkedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", + readOnly: true, + type: { + name: "String" } }, - baselineAdjustedResult: { - serializedName: "properties.baselineAdjustedResult", + databaseId: { + serializedName: "properties.databaseId", + readOnly: true, type: { - name: "Composite", - className: "BaselineAdjustedResult" + name: "String" } }, - ruleMetadata: { - serializedName: "properties.ruleMetadata", + description: { + serializedName: "properties.description", + readOnly: true, type: { - name: "Composite", - className: "VaRule" + name: "String" + } + }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + userName: { + serializedName: "properties.userName", + readOnly: true, + type: { + name: "String" } } } } }; -export const SqlVulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { +export const SyncGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlVulnerabilityAssessmentScanRecord", + className: "SyncGroup", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "SystemData" + className: "Sku" } }, - scanId: { - serializedName: "properties.scanId", + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + lastSyncTime: { + serializedName: "properties.lastSyncTime", readOnly: true, + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { name: "String" } }, - triggerType: { - serializedName: "properties.triggerType", - readOnly: true, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", + syncState: { + serializedName: "properties.syncState", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - errors: { - serializedName: "properties.errors", - readOnly: true, + schema: { + serializedName: "properties.schema", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlVulnerabilityAssessmentScanError" - } - } + name: "Composite", + className: "SyncGroupSchema" } }, - server: { - serializedName: "properties.server", + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", + type: { + name: "Boolean" + } + }, + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", + type: { + name: "Number" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { name: "String" } + } + } + } +}; + +export const SyncMember: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SyncMember", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", + type: { + name: "String" + } }, - database: { - serializedName: "properties.database", - readOnly: true, + syncAgentId: { + serializedName: "properties.syncAgentId", type: { name: "String" } }, - sqlVersion: { - serializedName: "properties.sqlVersion", - readOnly: true, + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", + type: { + name: "Uuid" + } + }, + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", type: { name: "String" } }, - highSeverityFailedRulesCount: { - serializedName: "properties.highSeverityFailedRulesCount", - readOnly: true, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { - name: "Number" + name: "Boolean" } }, - mediumSeverityFailedRulesCount: { - serializedName: "properties.mediumSeverityFailedRulesCount", + privateEndpointName: { + serializedName: "properties.privateEndpointName", readOnly: true, type: { - name: "Number" + name: "String" + } + }, + serverName: { + serializedName: "properties.serverName", + type: { + name: "String" + } + }, + databaseName: { + serializedName: "properties.databaseName", + type: { + name: "String" } }, - 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: { @@ -15802,190 +16575,90 @@ export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { } }; -export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { +export const UpdateVirtualClusterDnsServersOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RefreshExternalGovernanceStatusOperationResult", + className: "UpdateVirtualClusterDnsServersOperation", 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" - } - }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, - type: { - name: "String" - } - }, status: { serializedName: "properties.status", readOnly: true, type: { name: "String" } - }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, - type: { - name: "String" - } } } } }; -export const FailoverGroup: coreClient.CompositeMapper = { +export const VirtualNetworkRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroup", + className: "VirtualNetworkRule", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", 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", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - serializedName: "properties.replicationRole", - readOnly: true, + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", type: { - name: "String" + name: "Boolean" } }, - replicationState: { - serializedName: "properties.replicationState", + state: { + serializedName: "properties.state", 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 InstancePool: coreClient.CompositeMapper = { +export const WorkloadClassifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePool", + className: "WorkloadClassifier", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + memberName: { + serializedName: "properties.memberName", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - subnetId: { - serializedName: "properties.subnetId", + label: { + serializedName: "properties.label", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + context: { + serializedName: "properties.context", type: { - name: "Number" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + startTime: { + serializedName: "properties.startTime", 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", + endTime: { + serializedName: "properties.endTime", type: { name: "String" } }, - state: { - serializedName: "properties.state", - readOnly: true, + importance: { + serializedName: "properties.importance", type: { name: "String" } @@ -15994,73 +16667,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" - } - }, - earliestRestoreDate: { - serializedName: "properties.earliestRestoreDate", - readOnly: true, + name: "Number" + } + }, + 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" } } } @@ -16485,6 +17131,12 @@ export const ElasticPool: coreClient.CompositeMapper = { name: "Number" } }, + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", + type: { + name: "Number" + } + }, preferredEnclaveType: { serializedName: "properties.preferredEnclaveType", type: { @@ -16501,6 +17153,91 @@ 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" + } + }, + dnsZone: { + serializedName: "properties.dnsZone", + readOnly: true, + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + 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" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "JobAgentIdentity" + } + }, + databaseId: { + serializedName: "properties.databaseId", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const ManagedDatabase: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16689,6 +17426,12 @@ export const ManagedInstance: coreClient.CompositeMapper = { name: "String" } }, + isGeneralPurposeV2: { + serializedName: "properties.isGeneralPurposeV2", + type: { + name: "Boolean" + } + }, administratorLogin: { serializedName: "properties.administratorLogin", type: { @@ -16720,6 +17463,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: { @@ -16732,6 +17488,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: { @@ -16856,6 +17624,83 @@ 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" + } + }, + authenticationMetadata: { + serializedName: "properties.authenticationMetadata", + type: { + name: "String" + } + }, + databaseFormat: { + serializedName: "properties.databaseFormat", + type: { + name: "String" + } + } + } + } +}; + +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" + } } } } @@ -16993,6 +17838,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", diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 4b8fb7addb0b..6e7440371acc 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -12,131 +12,115 @@ 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, + 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, + JobPrivateEndpoint as JobPrivateEndpointMapper, JobStep as JobStepMapper, JobTargetGroup as JobTargetGroupMapper, + Job as JobMapper, + LedgerDigestUploads as LedgerDigestUploadsMapper, + ChangeLongTermRetentionBackupAccessTierParameters as ChangeLongTermRetentionBackupAccessTierParametersMapper, + 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, + 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, + VirtualClusterUpdate as VirtualClusterUpdateMapper, 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, - StartStopManagedInstanceSchedule as StartStopManagedInstanceScheduleMapper, - LogicalDatabaseTransparentDataEncryption as LogicalDatabaseTransparentDataEncryptionMapper, - IPv6FirewallRule as IPv6FirewallRuleMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, - DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, - SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, - CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, - Server as ServerMapper, - ServerUpdate as ServerUpdateMapper, - ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, - FailoverGroup as FailoverGroupMapper, - FailoverGroupUpdate as FailoverGroupUpdateMapper + 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 +145,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 +167,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 +178,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 +189,22 @@ export const serverName: OperationURLParameter = { } }; -export const databaseName: OperationURLParameter = { - parameterPath: "databaseName", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "databaseName", + defaultValue: "2023-05-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 +212,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 +284,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 +305,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: "2023-02-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,147 +342,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 apiVersion2: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-08-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -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 apiVersion3: 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, @@ -454,12 +353,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 }; @@ -560,6 +459,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: { @@ -571,6 +480,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: { @@ -582,7 +529,7 @@ export const recommendedActionName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: RecommendedActionMapper }; @@ -598,7 +545,7 @@ export const securityAlertPolicyName: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DatabaseSecurityAlertPolicyMapper }; @@ -614,43 +561,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" @@ -658,10 +588,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" @@ -669,10 +604,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" @@ -680,10 +615,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" @@ -691,31 +626,209 @@ export const deletedServerName: OperationURLParameter = { } }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", +export const vulnerabilityAssessmentName2: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { - serializedName: "operationId", + serializedName: "vulnerabilityAssessmentName", required: true, type: { - name: "Uuid" + name: "String" } } }; -export const encryptionProtectorName: OperationURLParameter = { - parameterPath: "encryptionProtectorName", +export const baselineName1: OperationURLParameter = { + parameterPath: "baselineName", mapper: { - serializedName: "encryptionProtectorName", + serializedName: "baselineName", required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["master", "default"] } } }; -export const parameters17: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: EncryptionProtectorMapper + mapper: DatabaseVulnerabilityAssessmentRuleBaselineMapper +}; + +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseVulnerabilityAssessmentMapper +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; + +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseMapper +}; + +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: DistributedAvailabilityGroupMapper +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: DistributedAvailabilityGroupSetRoleMapper +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + serializedName: "$skip", + type: { + name: "Number" + } + } +}; + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolMapper +}; + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: ElasticPoolUpdateMapper +}; + +export const parameters26: 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 parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupMapper +}; + +export const parameters28: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupUpdateMapper +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: FirewallRuleListMapper }; export const firewallRuleName: OperationURLParameter = { @@ -729,14 +842,35 @@ export const firewallRuleName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters30: 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 parameters31: OperationParameter = { parameterPath: "parameters", - mapper: FirewallRuleListMapper + mapper: GeoBackupPolicyMapper +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: IPv6FirewallRuleMapper +}; + +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: InstanceFailoverGroupMapper }; export const instancePoolName: OperationURLParameter = { @@ -750,12 +884,12 @@ export const instancePoolName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolMapper }; -export const parameters21: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolUpdateMapper }; @@ -771,12 +905,12 @@ export const jobAgentName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: JobAgentMapper }; -export const parameters23: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: JobAgentUpdateMapper }; @@ -792,7 +926,7 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: JobCredentialMapper }; @@ -879,9 +1013,20 @@ export const jobExecutionId: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const privateEndpointName: OperationURLParameter = { + parameterPath: "privateEndpointName", + mapper: { + serializedName: "privateEndpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters39: OperationParameter = { parameterPath: "parameters", - mapper: JobMapper + mapper: JobPrivateEndpointMapper }; export const stepName: OperationURLParameter = { @@ -895,6 +1040,11 @@ export const stepName: OperationURLParameter = { } }; +export const parameters40: OperationParameter = { + parameterPath: "parameters", + mapper: JobStepMapper +}; + export const jobVersion: OperationURLParameter = { parameterPath: "jobVersion", mapper: { @@ -906,11 +1056,6 @@ export const jobVersion: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { - parameterPath: "parameters", - mapper: JobStepMapper -}; - export const targetId: OperationURLParameter = { parameterPath: "targetId", mapper: { @@ -933,25 +1078,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" @@ -959,53 +1099,45 @@ 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 managedInstanceName: OperationURLParameter = { - parameterPath: "managedInstanceName", +export const databaseState: OperationQueryParameter = { + parameterPath: ["options", "databaseState"], mapper: { - serializedName: "managedInstanceName", - required: true, + serializedName: "databaseState", type: { name: "String" } } }; -export const policyName1: OperationURLParameter = { - parameterPath: "policyName", +export const longTermRetentionServerName: OperationURLParameter = { + parameterPath: "longTermRetentionServerName", mapper: { - serializedName: "policyName", + serializedName: "longTermRetentionServerName", required: true, type: { name: "String" @@ -1013,15 +1145,10 @@ export const policyName1: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedBackupShortTermRetentionPolicyMapper -}; - -export const queryId: OperationURLParameter = { - parameterPath: "queryId", +export const longTermRetentionDatabaseName: OperationURLParameter = { + parameterPath: "longTermRetentionDatabaseName", mapper: { - serializedName: "queryId", + serializedName: "longTermRetentionDatabaseName", required: true, type: { name: "String" @@ -1029,45 +1156,52 @@ export const queryId: OperationURLParameter = { } }; -export const startTime: OperationQueryParameter = { - parameterPath: ["options", "startTime"], +export const backupName: OperationURLParameter = { + parameterPath: "backupName", mapper: { - serializedName: "startTime", + serializedName: "backupName", + required: true, type: { name: "String" } } }; -export const endTime: OperationQueryParameter = { - parameterPath: ["options", "endTime"], - mapper: { - serializedName: "endTime", - type: { - name: "String" - } - } +export const parameters44: OperationParameter = { + parameterPath: "parameters", + mapper: ChangeLongTermRetentionBackupAccessTierParametersMapper }; -export const interval: OperationQueryParameter = { - parameterPath: ["options", "interval"], +export const parameters45: OperationParameter = { + parameterPath: "parameters", + mapper: CopyLongTermRetentionBackupParametersMapper +}; + +export const parameters46: OperationParameter = { + parameterPath: "parameters", + mapper: UpdateLongTermRetentionBackupParametersMapper +}; + +export const policyName1: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "interval", + serializedName: "policyName", + required: true, type: { name: "String" } } }; -export const parameters31: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseSecurityAlertPolicyMapper + mapper: LongTermRetentionPolicyMapper }; -export const tdeName: OperationURLParameter = { - parameterPath: "tdeName", +export const maintenanceWindowOptionsName: OperationQueryParameter = { + parameterPath: "maintenanceWindowOptionsName", mapper: { - serializedName: "tdeName", + serializedName: "maintenanceWindowOptionsName", required: true, type: { name: "String" @@ -1075,15 +1209,10 @@ export const tdeName: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedTransparentDataEncryptionMapper -}; - -export const administratorName: OperationURLParameter = { - parameterPath: "administratorName", +export const maintenanceWindowName: OperationQueryParameter = { + parameterPath: "maintenanceWindowName", mapper: { - serializedName: "administratorName", + serializedName: "maintenanceWindowName", required: true, type: { name: "String" @@ -1091,15 +1220,15 @@ export const administratorName: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceAdministratorMapper + mapper: MaintenanceWindowsMapper }; -export const authenticationName: OperationURLParameter = { - parameterPath: "authenticationName", +export const policyName2: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "authenticationName", + serializedName: "policyName", required: true, type: { name: "String" @@ -1107,20 +1236,20 @@ export const authenticationName: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceAzureADOnlyAuthenticationMapper + mapper: ManagedBackupShortTermRetentionPolicyMapper }; -export const parameters35: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceEncryptionProtectorMapper + mapper: ManagedDatabaseAdvancedThreatProtectionMapper }; -export const keyName: OperationURLParameter = { - parameterPath: "keyName", +export const queryId: OperationURLParameter = { + parameterPath: "queryId", mapper: { - serializedName: "keyName", + serializedName: "queryId", required: true, type: { name: "String" @@ -1128,68 +1257,40 @@ export const keyName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceKeyMapper -}; - -export const policyName2: OperationURLParameter = { - parameterPath: "policyName", +export const startTime: OperationQueryParameter = { + parameterPath: ["options", "startTime"], mapper: { - serializedName: "policyName", - required: true, + serializedName: "startTime", type: { name: "String" } } }; -export const parameters37: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceLongTermRetentionPolicyMapper -}; - -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const endTime: OperationQueryParameter = { + parameterPath: ["options", "endTime"], mapper: { - serializedName: "privateEndpointConnectionName", - required: true, + serializedName: "endTime", type: { name: "String" } } }; -export const parameters38: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstancePrivateEndpointConnectionMapper -}; - -export const groupName: OperationURLParameter = { - parameterPath: "groupName", +export const interval: OperationQueryParameter = { + parameterPath: ["options", "interval"], mapper: { - serializedName: "groupName", - required: true, + serializedName: "interval", type: { name: "String" } } }; -export const parameters39: OperationParameter = { - parameterPath: "parameters", - mapper: TdeCertificateMapper -}; - -export const parameters40: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedInstanceVulnerabilityAssessmentMapper -}; - -export const restorableDroppedDatabaseId: OperationURLParameter = { - parameterPath: "restorableDroppedDatabaseId", +export const restoreDetailsName: OperationURLParameter = { + parameterPath: "restoreDetailsName", mapper: { - serializedName: "restorableDroppedDatabaseId", + serializedName: "restoreDetailsName", required: true, type: { name: "String" @@ -1197,90 +1298,86 @@ export const restorableDroppedDatabaseId: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedServerSecurityAlertPolicyMapper -}; - -export const parameters42: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: ManagedDatabaseSecurityAlertPolicyMapper }; -export const recoverableDatabaseName: OperationURLParameter = { - parameterPath: "recoverableDatabaseName", +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], mapper: { - serializedName: "recoverableDatabaseName", - required: true, + serializedName: "$count", type: { - name: "String" + name: "Boolean" } } }; -export const parameters43: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", - mapper: CreateDatabaseRestorePointDefinitionMapper + mapper: SensitivityLabelUpdateListMapper }; -export const restorePointName: OperationURLParameter = { - parameterPath: "restorePointName", +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], mapper: { - serializedName: "restorePointName", - required: true, + serializedName: "includeDisabledRecommendations", type: { - name: "String" + name: "Boolean" } } }; -export const parameters44: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAutomaticTuningMapper -}; - -export const parameters45: OperationParameter = { - parameterPath: "parameters", - mapper: ServerAzureADAdministratorMapper +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + serializedName: "sensitivityLabelSource", + required: true, + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } }; -export const parameters46: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", - mapper: ServerAzureADOnlyAuthenticationMapper + mapper: SensitivityLabelMapper }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const sensitivityLabelSource1: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { - defaultValue: "2022-02-01-preview", + defaultValue: "current", isConstant: true, - serializedName: "api-version", + serializedName: "sensitivityLabelSource", type: { name: "String" } } }; -export const devOpsAuditingSettingsName: OperationURLParameter = { - parameterPath: "devOpsAuditingSettingsName", +export const sensitivityLabelSource2: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { - serializedName: "devOpsAuditingSettingsName", - required: true, + defaultValue: "recommended", + isConstant: true, + serializedName: "sensitivityLabelSource", type: { name: "String" } } }; -export const parameters47: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", - mapper: ServerDevOpsAuditingSettingsMapper + mapper: RecommendedSensitivityLabelUpdateListMapper }; -export const dnsAliasName: OperationURLParameter = { - parameterPath: "dnsAliasName", +export const tdeName: OperationURLParameter = { + parameterPath: "tdeName", mapper: { - serializedName: "dnsAliasName", + serializedName: "tdeName", required: true, type: { name: "String" @@ -1288,51 +1385,40 @@ export const dnsAliasName: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", - mapper: ServerDnsAliasAcquisitionMapper + mapper: ManagedTransparentDataEncryptionMapper }; -export const parameters49: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", - mapper: ServerKeyMapper + mapper: ManagedDatabaseMapper }; -export const parameters50: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", - mapper: ServerSecurityAlertPolicyMapper -}; - -export const serverTrustGroupName: OperationURLParameter = { - parameterPath: "serverTrustGroupName", - mapper: { - serializedName: "serverTrustGroupName", - required: true, - type: { - name: "String" - } - } + mapper: ManagedDatabaseUpdateMapper }; -export const parameters51: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", - mapper: ServerTrustGroupMapper + mapper: ManagedDatabaseMoveDefinitionMapper }; -export const parameters52: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", - mapper: ServerVulnerabilityAssessmentMapper + mapper: CompleteDatabaseRestoreDefinitionMapper }; -export const parameters53: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", - mapper: SqlAgentConfigurationMapper + mapper: ManagedDatabaseStartMoveDefinitionMapper }; -export const usageName: OperationURLParameter = { - parameterPath: "usageName", +export const administratorName: OperationURLParameter = { + parameterPath: "administratorName", mapper: { - serializedName: "usageName", + serializedName: "administratorName", required: true, type: { name: "String" @@ -1340,26 +1426,20 @@ export const usageName: OperationURLParameter = { } }; -export const syncAgentName: OperationURLParameter = { - parameterPath: "syncAgentName", - mapper: { - serializedName: "syncAgentName", - required: true, - type: { - name: "String" - } - } +export const parameters61: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAdministratorMapper }; -export const parameters54: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", - mapper: SyncAgentMapper + mapper: ManagedInstanceAdvancedThreatProtectionMapper }; -export const syncGroupName: OperationURLParameter = { - parameterPath: "syncGroupName", +export const authenticationName: OperationURLParameter = { + parameterPath: "authenticationName", mapper: { - serializedName: "syncGroupName", + serializedName: "authenticationName", required: true, type: { name: "String" @@ -1367,10 +1447,15 @@ export const syncGroupName: OperationURLParameter = { } }; -export const startTime1: OperationQueryParameter = { - parameterPath: "startTime", +export const parameters63: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceAzureADOnlyAuthenticationMapper +}; + +export const dtcName: OperationURLParameter = { + parameterPath: "dtcName", mapper: { - serializedName: "startTime", + serializedName: "dtcName", required: true, type: { name: "String" @@ -1378,10 +1463,20 @@ export const startTime1: OperationQueryParameter = { } }; -export const endTime1: OperationQueryParameter = { - parameterPath: "endTime", +export const parameters64: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceDtcMapper +}; + +export const parameters65: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceEncryptionProtectorMapper +}; + +export const keyName: OperationURLParameter = { + parameterPath: "keyName", mapper: { - serializedName: "endTime", + serializedName: "keyName", required: true, type: { name: "String" @@ -1389,10 +1484,15 @@ export const endTime1: OperationQueryParameter = { } }; -export const typeParam: OperationQueryParameter = { - parameterPath: "typeParam", +export const parameters66: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceKeyMapper +}; + +export const policyName3: OperationURLParameter = { + parameterPath: "policyName", mapper: { - serializedName: "type", + serializedName: "policyName", required: true, type: { name: "String" @@ -1400,25 +1500,31 @@ export const typeParam: OperationQueryParameter = { } }; -export const continuationToken: OperationQueryParameter = { - parameterPath: ["options", "continuationToken"], +export const parameters67: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceLongTermRetentionPolicyMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "continuationToken", + serializedName: "privateEndpointConnectionName", + required: true, type: { name: "String" } } }; -export const parameters55: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", - mapper: SyncGroupMapper + mapper: ManagedInstancePrivateEndpointConnectionMapper }; -export const syncMemberName: OperationURLParameter = { - parameterPath: "syncMemberName", +export const groupName: OperationURLParameter = { + parameterPath: "groupName", mapper: { - serializedName: "syncMemberName", + serializedName: "groupName", required: true, type: { name: "String" @@ -1426,53 +1532,70 @@ export const syncMemberName: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", - mapper: SyncMemberMapper + mapper: TdeCertificateMapper }; -export const timeZoneId: OperationURLParameter = { - parameterPath: "timeZoneId", +export const parameters70: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceVulnerabilityAssessmentMapper +}; + +export const parameters71: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceMapper +}; + +export const parameters72: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedInstanceUpdateMapper +}; + +export const numberOfQueries: OperationQueryParameter = { + parameterPath: ["options", "numberOfQueries"], mapper: { - serializedName: "timeZoneId", - required: true, + serializedName: "numberOfQueries", type: { - name: "String" + name: "Number" } } }; -export const virtualNetworkRuleName: OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", +export const databases: OperationQueryParameter = { + parameterPath: ["options", "databases"], mapper: { - serializedName: "virtualNetworkRuleName", - required: true, + serializedName: "databases", type: { name: "String" } } }; -export const parameters57: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualNetworkRuleMapper +export const aggregationFunction: OperationQueryParameter = { + parameterPath: ["options", "aggregationFunction"], + mapper: { + serializedName: "aggregationFunction", + type: { + name: "String" + } + } }; -export const workloadGroupName: OperationURLParameter = { - parameterPath: "workloadGroupName", +export const observationMetric: OperationQueryParameter = { + parameterPath: ["options", "observationMetric"], mapper: { - serializedName: "workloadGroupName", - required: true, + serializedName: "observationMetric", type: { name: "String" } } }; -export const workloadClassifierName: OperationURLParameter = { - parameterPath: "workloadClassifierName", +export const ledgerDigestUploads1: OperationURLParameter = { + parameterPath: "ledgerDigestUploads", mapper: { - serializedName: "workloadClassifierName", + serializedName: "ledgerDigestUploads", required: true, type: { name: "String" @@ -1480,20 +1603,15 @@ export const workloadClassifierName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { - parameterPath: "parameters", - mapper: WorkloadClassifierMapper -}; - -export const parameters59: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", - mapper: WorkloadGroupMapper + mapper: ManagedLedgerDigestUploadsMapper }; -export const policyName3: OperationURLParameter = { - parameterPath: "policyName", +export const restorableDroppedDatabaseId: OperationURLParameter = { + parameterPath: "restorableDroppedDatabaseId", mapper: { - serializedName: "policyName", + serializedName: "restorableDroppedDatabaseId", required: true, type: { name: "String" @@ -1501,27 +1619,31 @@ export const policyName3: OperationURLParameter = { } }; -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", +export const dnsAliasName: OperationURLParameter = { + parameterPath: "dnsAliasName", mapper: { - defaultValue: "2021-02-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "dnsAliasName", + required: true, type: { name: "String" } } }; -export const parameters60: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", - mapper: BackupShortTermRetentionPolicyMapper + mapper: ManagedServerDnsAliasCreationMapper }; -export const extensionName: OperationURLParameter = { - parameterPath: "extensionName", +export const parameters75: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedServerDnsAliasAcquisitionMapper +}; + +export const securityAlertPolicyName1: OperationURLParameter = { + parameterPath: "securityAlertPolicyName", mapper: { - serializedName: "extensionName", + serializedName: "securityAlertPolicyName", required: true, type: { name: "String" @@ -1529,15 +1651,15 @@ export const extensionName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseExtensionsMapper + mapper: ManagedServerSecurityAlertPolicyMapper }; -export const ledgerDigestUploads: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", +export const nspConfigName: OperationURLParameter = { + parameterPath: "nspConfigName", mapper: { - serializedName: "ledgerDigestUploads", + serializedName: "nspConfigName", required: true, type: { name: "String" @@ -1545,11 +1667,6 @@ export const ledgerDigestUploads: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { - parameterPath: "parameters", - mapper: LedgerDigestUploadsMapper -}; - export const outboundRuleFqdn: OperationURLParameter = { parameterPath: "outboundRuleFqdn", mapper: { @@ -1561,30 +1678,26 @@ export const outboundRuleFqdn: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", - mapper: OutboundFirewallRuleMapper + mapper: PrivateEndpointConnectionMapper }; -export const expandChildren: OperationQueryParameter = { - parameterPath: ["options", "expandChildren"], +export const recoverableDatabaseName: OperationURLParameter = { + parameterPath: "recoverableDatabaseName", mapper: { - serializedName: "expandChildren", + serializedName: "recoverableDatabaseName", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const parameters64: OperationParameter = { - parameterPath: "parameters", - mapper: CopyLongTermRetentionBackupParametersMapper -}; - -export const longTermRetentionServerName: OperationURLParameter = { - parameterPath: "longTermRetentionServerName", +export const linkId: OperationURLParameter = { + parameterPath: "linkId", mapper: { - serializedName: "longTermRetentionServerName", + serializedName: "linkId", required: true, type: { name: "String" @@ -1592,21 +1705,15 @@ export const longTermRetentionServerName: OperationURLParameter = { } }; -export const longTermRetentionDatabaseName: OperationURLParameter = { - parameterPath: "longTermRetentionDatabaseName", - mapper: { - serializedName: "longTermRetentionDatabaseName", - required: true, - type: { - name: "String" - } - } +export const parameters78: OperationParameter = { + parameterPath: "parameters", + mapper: CreateDatabaseRestorePointDefinitionMapper }; -export const backupName: OperationURLParameter = { - parameterPath: "backupName", +export const restorePointName: OperationURLParameter = { + parameterPath: "restorePointName", mapper: { - serializedName: "backupName", + serializedName: "restorePointName", required: true, type: { name: "String" @@ -1614,75 +1721,30 @@ export const backupName: OperationURLParameter = { } }; -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-05-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const parameters65: OperationParameter = { +export const parameters79: 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" - } - } + mapper: ServerAdvancedThreatProtectionMapper }; -export const connectionPolicyName: OperationURLParameter = { - parameterPath: "connectionPolicyName", - mapper: { - serializedName: "connectionPolicyName", - required: true, - type: { - name: "String" - } - } +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAutomaticTuningMapper }; -export const parameters66: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", - mapper: ServerConnectionPolicyMapper + mapper: ServerAzureADAdministratorMapper }; -export const apiVersion7: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-11-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } +export const parameters82: OperationParameter = { + parameterPath: "parameters", + mapper: ServerAzureADOnlyAuthenticationMapper }; -export const distributedAvailabilityGroupName: OperationURLParameter = { - parameterPath: "distributedAvailabilityGroupName", +export const serverConfigurationOptionName: OperationURLParameter = { + parameterPath: "serverConfigurationOptionName", mapper: { - serializedName: "distributedAvailabilityGroupName", + serializedName: "serverConfigurationOptionName", required: true, type: { name: "String" @@ -1690,15 +1752,15 @@ export const distributedAvailabilityGroupName: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: "parameters", - mapper: DistributedAvailabilityGroupMapper + mapper: ServerConfigurationOptionMapper }; -export const certificateName: OperationURLParameter = { - parameterPath: "certificateName", +export const connectionPolicyName: OperationURLParameter = { + parameterPath: "connectionPolicyName", mapper: { - serializedName: "certificateName", + serializedName: "connectionPolicyName", required: true, type: { name: "String" @@ -1706,15 +1768,15 @@ export const certificateName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", - mapper: ServerTrustCertificateMapper + mapper: ServerConnectionPolicyMapper }; -export const endpointType: OperationURLParameter = { - parameterPath: "endpointType", +export const devOpsAuditingSettingsName: OperationURLParameter = { + parameterPath: "devOpsAuditingSettingsName", mapper: { - serializedName: "endpointType", + serializedName: "devOpsAuditingSettingsName", required: true, type: { name: "String" @@ -1722,113 +1784,46 @@ export const endpointType: OperationURLParameter = { } }; -export const sensitivityLabelSource: OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - serializedName: "sensitivityLabelSource", - required: true, - type: { - name: "Enum", - allowedValues: ["current", "recommended"] - } - } -}; - -export const parameters69: OperationParameter = { +export const parameters85: 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" - } - } + mapper: ServerDevOpsAuditingSettingsMapper }; -export const parameters70: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: SensitivityLabelUpdateListMapper + mapper: ServerDnsAliasAcquisitionMapper }; -export const includeDisabledRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includeDisabledRecommendations"], - mapper: { - serializedName: "includeDisabledRecommendations", - type: { - name: "Boolean" - } - } +export const parameters87: OperationParameter = { + parameterPath: "parameters", + mapper: ServerKeyMapper }; -export const parameters71: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", - mapper: RecommendedSensitivityLabelUpdateListMapper + mapper: ServerSecurityAlertPolicyMapper }; -export const blobAuditingPolicyName: OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", +export const certificateName: OperationURLParameter = { + parameterPath: "certificateName", mapper: { - defaultValue: "default", - isConstant: true, - serializedName: "blobAuditingPolicyName", + serializedName: "certificateName", + required: true, 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 = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: ExtendedServerBlobAuditingPolicyMapper + mapper: ServerTrustCertificateMapper }; -export const advancedThreatProtectionName: OperationURLParameter = { - parameterPath: "advancedThreatProtectionName", +export const serverTrustGroupName: OperationURLParameter = { + parameterPath: "serverTrustGroupName", mapper: { - serializedName: "advancedThreatProtectionName", + serializedName: "serverTrustGroupName", required: true, type: { name: "String" @@ -1836,63 +1831,62 @@ export const advancedThreatProtectionName: OperationURLParameter = { } }; -export const parameters76: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseAdvancedThreatProtectionMapper + mapper: ServerTrustGroupMapper }; -export const parameters77: OperationParameter = { +export const parameters91: OperationParameter = { parameterPath: "parameters", - mapper: ServerAdvancedThreatProtectionMapper + mapper: ServerVulnerabilityAssessmentMapper }; -export const parameters78: OperationParameter = { +export const parameters92: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerDnsAliasCreationMapper + mapper: CheckNameAvailabilityRequestMapper }; -export const parameters79: OperationParameter = { +export const parameters93: OperationParameter = { parameterPath: "parameters", - mapper: ManagedServerDnsAliasAcquisitionMapper + mapper: ServerMapper }; -export const parameters80: OperationParameter = { +export const parameters94: OperationParameter = { parameterPath: "parameters", - mapper: ManagedDatabaseAdvancedThreatProtectionMapper + mapper: ServerUpdateMapper }; -export const parameters81: OperationParameter = { +export const parameters95: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceAdvancedThreatProtectionMapper + mapper: ImportNewDatabaseDefinitionMapper }; -export const linkId: OperationURLParameter = { - parameterPath: "linkId", - mapper: { - serializedName: "linkId", - required: true, - type: { - name: "String" - } - } +export const parameters96: OperationParameter = { + parameterPath: "parameters", + mapper: SqlAgentConfigurationMapper }; -export const apiVersion8: OperationQueryParameter = { - parameterPath: "apiVersion", +export const systemDatabaseName: OperationQueryParameter = { + parameterPath: "systemDatabaseName", mapper: { - defaultValue: "2022-05-01-preview", + defaultValue: "master", isConstant: true, - serializedName: "api-version", + serializedName: "systemDatabaseName", type: { name: "String" } } }; -export const dtcName: OperationURLParameter = { - parameterPath: "dtcName", +export const parameters97: OperationParameter = { + parameterPath: "parameters", + mapper: SqlVulnerabilityAssessmentMapper +}; + +export const startStopScheduleName: OperationURLParameter = { + parameterPath: "startStopScheduleName", mapper: { - serializedName: "dtcName", + serializedName: "startStopScheduleName", required: true, type: { name: "String" @@ -1900,15 +1894,15 @@ export const dtcName: OperationURLParameter = { } }; -export const parameters82: OperationParameter = { +export const parameters98: 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" @@ -1916,15 +1910,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" @@ -1932,15 +1921,15 @@ export const failoverGroupName: OperationURLParameter = { } }; -export const parameters84: OperationParameter = { +export const parameters99: 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" @@ -1948,101 +1937,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 parameters100: OperationParameter = { parameterPath: "parameters", - mapper: ManagedInstanceUpdateMapper -}; - -export const numberOfQueries: OperationQueryParameter = { - parameterPath: ["options", "numberOfQueries"], - mapper: { - serializedName: "numberOfQueries", - type: { - name: "Number" - } - } + mapper: SyncGroupMapper }; -export const databases: OperationQueryParameter = { - parameterPath: ["options", "databases"], +export const startTime1: OperationQueryParameter = { + parameterPath: "startTime", mapper: { - serializedName: "databases", + serializedName: "startTime", + required: true, type: { name: "String" } } }; -export const aggregationFunction: OperationQueryParameter = { - parameterPath: ["options", "aggregationFunction"], +export const endTime1: OperationQueryParameter = { + parameterPath: "endTime", mapper: { - serializedName: "aggregationFunction", + serializedName: "endTime", + required: true, type: { name: "String" } } }; -export const observationMetric: OperationQueryParameter = { - parameterPath: ["options", "observationMetric"], +export const typeParam: OperationQueryParameter = { + parameterPath: "typeParam", mapper: { - serializedName: "observationMetric", + serializedName: "type", + required: true, type: { name: "String" } } }; -export const ledgerDigestUploads1: OperationURLParameter = { - parameterPath: "ledgerDigestUploads", +export const continuationToken: OperationQueryParameter = { + parameterPath: ["options", "continuationToken"], mapper: { - serializedName: "ledgerDigestUploads", - required: true, + serializedName: "continuationToken", type: { name: "String" } } }; -export const parameters92: OperationParameter = { - parameterPath: "parameters", - mapper: ManagedLedgerDigestUploadsMapper -}; - -export const serverConfigurationOptionName: OperationURLParameter = { - parameterPath: "serverConfigurationOptionName", +export const syncMemberName: OperationURLParameter = { + parameterPath: "syncMemberName", mapper: { - serializedName: "serverConfigurationOptionName", + serializedName: "syncMemberName", required: true, type: { name: "String" @@ -2050,15 +1996,15 @@ export const serverConfigurationOptionName: OperationURLParameter = { } }; -export const parameters93: OperationParameter = { +export const parameters101: OperationParameter = { parameterPath: "parameters", - mapper: ServerConfigurationOptionMapper + mapper: SyncMemberMapper }; -export const startStopScheduleName: OperationURLParameter = { - parameterPath: "startStopScheduleName", +export const timeZoneId: OperationURLParameter = { + parameterPath: "timeZoneId", mapper: { - serializedName: "startStopScheduleName", + serializedName: "timeZoneId", required: true, type: { name: "String" @@ -2066,49 +2012,25 @@ export const startStopScheduleName: OperationURLParameter = { } }; -export const parameters94: OperationParameter = { - parameterPath: "parameters", - mapper: StartStopManagedInstanceScheduleMapper -}; - -export const parameters95: OperationParameter = { +export const parameters102: OperationParameter = { parameterPath: "parameters", mapper: LogicalDatabaseTransparentDataEncryptionMapper }; -export const apiVersion9: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-11-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const parameters96: OperationParameter = { - parameterPath: "parameters", - mapper: IPv6FirewallRuleMapper -}; - -export const systemDatabaseName: OperationQueryParameter = { - parameterPath: "systemDatabaseName", +export const expandChildren: OperationQueryParameter = { + parameterPath: ["options", "expandChildren"], mapper: { - defaultValue: "master", - isConstant: true, - serializedName: "systemDatabaseName", + serializedName: "expandChildren", type: { - name: "String" + name: "Boolean" } } }; -export const baselineName1: OperationURLParameter = { - parameterPath: "baselineName", +export const virtualClusterName: OperationURLParameter = { + parameterPath: "virtualClusterName", mapper: { - serializedName: "baselineName", + serializedName: "virtualClusterName", required: true, type: { name: "String" @@ -2116,20 +2038,15 @@ export const baselineName1: OperationURLParameter = { } }; -export const parameters97: OperationParameter = { - parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper -}; - -export const parameters98: OperationParameter = { +export const parameters103: OperationParameter = { parameterPath: "parameters", - mapper: DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper + mapper: VirtualClusterUpdateMapper }; -export const vulnerabilityAssessmentName1: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", +export const virtualNetworkRuleName: OperationURLParameter = { + parameterPath: "virtualNetworkRuleName", mapper: { - serializedName: "vulnerabilityAssessmentName", + serializedName: "virtualNetworkRuleName", required: true, type: { name: "String" @@ -2137,10 +2054,15 @@ export const vulnerabilityAssessmentName1: OperationURLParameter = { } }; -export const scanResultId: OperationURLParameter = { - parameterPath: "scanResultId", +export const parameters104: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualNetworkRuleMapper +}; + +export const workloadGroupName: OperationURLParameter = { + parameterPath: "workloadGroupName", mapper: { - serializedName: "scanResultId", + serializedName: "workloadGroupName", required: true, type: { name: "String" @@ -2148,10 +2070,10 @@ export const scanResultId: OperationURLParameter = { } }; -export const vulnerabilityAssessmentName2: OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", +export const workloadClassifierName: OperationURLParameter = { + parameterPath: "workloadClassifierName", mapper: { - serializedName: "vulnerabilityAssessmentName", + serializedName: "workloadClassifierName", required: true, type: { name: "String" @@ -2159,37 +2081,12 @@ export const vulnerabilityAssessmentName2: OperationURLParameter = { } }; -export const parameters99: OperationParameter = { - parameterPath: "parameters", - mapper: SqlVulnerabilityAssessmentMapper -}; - -export const parameters100: OperationParameter = { - parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestMapper -}; - -export const parameters101: OperationParameter = { - parameterPath: "parameters", - mapper: ServerMapper -}; - -export const parameters102: OperationParameter = { - parameterPath: "parameters", - mapper: ServerUpdateMapper -}; - -export const parameters103: OperationParameter = { - parameterPath: "parameters", - mapper: ImportNewDatabaseDefinitionMapper -}; - -export const parameters104: OperationParameter = { +export const parameters105: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupMapper + mapper: WorkloadClassifierMapper }; -export const parameters105: OperationParameter = { +export const parameters106: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupUpdateMapper + mapper: WorkloadGroupMapper }; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index d9a756c22506..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.apiVersion5], + 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.apiVersion5], + 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.apiVersion5], + 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.apiVersion5], - 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 fd1dde5eea32..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.apiVersion3, 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 868f7f14e0da..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.apiVersion3], + 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.apiVersion3], + 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 7e362eeb7d85..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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + 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 97f58aea242b..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 e0aec387a5be..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.apiVersion3], + 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.apiVersion3], + 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 aed32c5bb827..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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + 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 65fc1842d8a5..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.apiVersion3, + 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.apiVersion3], + 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.apiVersion3], + 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 d52e6ebda622..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.apiVersion2], + 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.apiVersion2], + 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 7b1936f84419..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.apiVersion5], + 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.apiVersion5], + 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.apiVersion5], - 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 29911abba47c..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.apiVersion5], - 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.apiVersion5], + 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 ee1a5562868f..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 8089e0aeec4c..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.apiVersion3], + 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.apiVersion3], + 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 cda02b5ed2cb..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 66cd0b614d23..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.apiVersion9], + 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.apiVersion9], + 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.parameters97, - queryParameters: [Parameters.apiVersion9], + 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 bcd2090a960b..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.apiVersion9], + 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 5362cab3c98e..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.apiVersion9], + 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.apiVersion9], + 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.parameters98, - queryParameters: [Parameters.apiVersion9], + 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.apiVersion9], + 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 4c3d40d40f75..d770a631ea1e 100644 --- a/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts @@ -264,15 +264,15 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion9], + 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.apiVersion9], + 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 ab273b993a6f..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.apiVersion9], + 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.apiVersion9], + 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 6f1bb6609eab..91b462932dd6 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.apiVersion9], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -240,13 +240,13 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName2 ], headerParameters: [Parameters.accept], @@ -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 cafc9cb32cd6..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.apiVersion3], + 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.apiVersion3], + 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 f08ec262d533..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.apiVersion5], + 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 e2c61f999170..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 aa6a38eecfd7..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.apiVersion3], - 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 7e3d25662531..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], - 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 94fad79d6c71..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 4fcf7a29b3c5..bd7c7ee4ff47 100644 --- a/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operations/distributedAvailabilityGroups.ts @@ -31,6 +31,9 @@ import { DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse, DistributedAvailabilityGroupsListByInstanceNextResponse } from "../models"; @@ -486,6 +489,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 +631,11 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName ], headerParameters: [Parameters.accept], @@ -539,11 +651,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -569,16 +681,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion7], + 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 +699,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.apiVersion7], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.managedInstanceName, Parameters.distributedAvailabilityGroupName ], @@ -616,16 +728,48 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters67, - queryParameters: [Parameters.apiVersion7], + requestBody: Parameters.parameters22, + 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.parameters23, + 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 +784,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 4f6b0d8c0369..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.apiVersion3], - 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.apiVersion3], + 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 1ebbda36f282..f53f4b5a0892 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.skip, Parameters.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + requestBody: Parameters.parameters24, + 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.apiVersion2], + 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.apiVersion2], + 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 }; @@ -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.apiVersion2], + 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 922035eec174..8464dde90d10 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters26, + 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.apiVersion3], + 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 73ab43fbaccc..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.apiVersion7], + 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.apiVersion7], + 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 79720727a6ed..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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + 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 386b6753b6e7..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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + 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 647865ef06a8..b3f551924490 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.apiVersion1], + 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.apiVersion1], + 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.parameters104, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters27, + 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.apiVersion1], + 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.parameters105, - queryParameters: [Parameters.apiVersion1], + 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 }; @@ -934,12 +934,12 @@ const failoverOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion1], + 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.apiVersion1], + 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.apiVersion1], + 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 ec2a434f71ce..5855fecd3064 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters29, + 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.apiVersion3], - 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters30, + 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..847db3b6528f 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.parameters31, 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 56f3ea5b97b8..b648c5f9ddc6 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.apiVersion9], + 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.apiVersion9], + 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.parameters96, - queryParameters: [Parameters.apiVersion9], + requestBody: Parameters.parameters32, + 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.apiVersion9], + 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 ef0485fce42a..b7dc04415fe0 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -6,58 +6,86 @@ * 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 "./jobPrivateEndpoints"; 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,78 +94,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 "./servers"; 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 "./startStopManagedInstanceSchedules"; -export * from "./transparentDataEncryptions"; -export * from "./iPv6FirewallRules"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -147,11 +139,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 "./servers"; -export * from "./failoverGroups"; +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 043d8faa65a5..cbfff46c6823 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.apiVersion8], + 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.apiVersion8], + 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.apiVersion8], + requestBody: Parameters.parameters33, + 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.apiVersion8], + 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.apiVersion8], + 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.apiVersion8], + 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 1b8464a43f71..e5b3e2b00bff 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters34, + 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.apiVersion3], + 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.apiVersion3], + 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 }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InstancePoolListResult - }, - default: {} - }, - queryParameters: [Parameters.apiVersion3], - 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.apiVersion3], - 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 9d9b8100ec68..c8b53f1dcda7 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters36, + 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.apiVersion3], + 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.apiVersion3], + 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 }; @@ -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 a7925498873c..1ba5b9c71066 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters38, + 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.apiVersion3], + 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 d141427f5115..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.apiVersion3, 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.apiVersion3], - 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.apiVersion3], - 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.apiVersion3, 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.apiVersion3], + 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.apiVersion3], + 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/jobPrivateEndpoints.ts b/sdk/sql/arm-sql/src/operations/jobPrivateEndpoints.ts new file mode 100644 index 000000000000..04d0fb2d2795 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/jobPrivateEndpoints.ts @@ -0,0 +1,542 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { JobPrivateEndpoints } 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 { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + JobPrivateEndpoint, + JobPrivateEndpointsListByAgentNextOptionalParams, + JobPrivateEndpointsListByAgentOptionalParams, + JobPrivateEndpointsListByAgentResponse, + JobPrivateEndpointsGetOptionalParams, + JobPrivateEndpointsGetResponse, + JobPrivateEndpointsCreateOrUpdateOptionalParams, + JobPrivateEndpointsCreateOrUpdateResponse, + JobPrivateEndpointsDeleteOptionalParams, + JobPrivateEndpointsListByAgentNextResponse +} from "../models"; + +/// +/** Class containing JobPrivateEndpoints operations. */ +export class JobPrivateEndpointsImpl implements JobPrivateEndpoints { + private readonly client: SqlManagementClient; + + /** + * Initialize a new instance of the class JobPrivateEndpoints class. + * @param client Reference to the service client + */ + constructor(client: SqlManagementClient) { + this.client = client; + } + + /** + * Gets a list of job agent private endpoints. + * @param resourceGroupName The name of the resource group that contains 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 options The options parameters. + */ + public listByAgent( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + options?: JobPrivateEndpointsListByAgentOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAgentPagingAll( + resourceGroupName, + serverName, + jobAgentName, + 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.listByAgentPagingPage( + resourceGroupName, + serverName, + jobAgentName, + options, + settings + ); + } + }; + } + + private async *listByAgentPagingPage( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + options?: JobPrivateEndpointsListByAgentOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: JobPrivateEndpointsListByAgentResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAgent( + resourceGroupName, + serverName, + jobAgentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAgentNext( + resourceGroupName, + serverName, + jobAgentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAgentPagingAll( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + options?: JobPrivateEndpointsListByAgentOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAgentPagingPage( + resourceGroupName, + serverName, + jobAgentName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of job agent private endpoints. + * @param resourceGroupName The name of the resource group that contains 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 options The options parameters. + */ + private _listByAgent( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + options?: JobPrivateEndpointsListByAgentOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, jobAgentName, options }, + listByAgentOperationSpec + ); + } + + /** + * Gets a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint to get. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + options?: JobPrivateEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + jobAgentName, + privateEndpointName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint. + * @param parameters The requested private endpoint state. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + parameters: JobPrivateEndpoint, + options?: JobPrivateEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + JobPrivateEndpointsCreateOrUpdateResponse + > + > { + 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, + serverName, + jobAgentName, + privateEndpointName, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + JobPrivateEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint. + * @param parameters The requested private endpoint state. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + parameters: JobPrivateEndpoint, + options?: JobPrivateEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serverName, + jobAgentName, + privateEndpointName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint to delete. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + options?: JobPrivateEndpointsDeleteOptionalParams + ): 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: { + resourceGroupName, + serverName, + jobAgentName, + privateEndpointName, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint to delete. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + options?: JobPrivateEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serverName, + jobAgentName, + privateEndpointName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByAgentNext + * @param resourceGroupName The name of the resource group that contains 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 nextLink The nextLink from the previous successful call to the ListByAgent method. + * @param options The options parameters. + */ + private _listByAgentNext( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + nextLink: string, + options?: JobPrivateEndpointsListByAgentNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serverName, jobAgentName, nextLink, options }, + listByAgentNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByAgentOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/privateEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobPrivateEndpointListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/privateEndpoints/{privateEndpointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobPrivateEndpoint + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.privateEndpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/privateEndpoints/{privateEndpointName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.JobPrivateEndpoint + }, + 201: { + bodyMapper: Mappers.JobPrivateEndpoint + }, + 202: { + bodyMapper: Mappers.JobPrivateEndpoint + }, + 204: { + bodyMapper: Mappers.JobPrivateEndpoint + }, + default: {} + }, + requestBody: Parameters.parameters39, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.privateEndpointName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/privateEndpoints/{privateEndpointName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.jobAgentName, + Parameters.privateEndpointName + ], + serializer +}; +const listByAgentNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobPrivateEndpointListResult + }, + default: {} + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.jobAgentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index 3203761d8b0b..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.apiVersion3, 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.apiVersion3], + 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 209c77e001eb..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + "/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 6f87154e46ed..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.apiVersion3, 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.apiVersion3, - 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.apiVersion3], + 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 3059b7b491b9..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 7d04aea01fed..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.apiVersion3], + 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.apiVersion3], + 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 badd945605de..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 375614875d88..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.apiVersion5], + 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.apiVersion5], + 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.apiVersion5], - 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.apiVersion5], + 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 7fbc576a4307..84702e33c6f8 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -21,46 +21,51 @@ 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, + ChangeLongTermRetentionBackupAccessTierParameters, + LongTermRetentionBackupsChangeAccessTierOptionalParams, + LongTermRetentionBackupsChangeAccessTierResponse, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, + LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams, + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse, LongTermRetentionBackupsCopyByResourceGroupOptionalParams, LongTermRetentionBackupsCopyByResourceGroupResponse, LongTermRetentionBackupsUpdateByResourceGroupOptionalParams, LongTermRetentionBackupsUpdateByResourceGroupResponse, - LongTermRetentionBackupsGetByResourceGroupOptionalParams, - LongTermRetentionBackupsGetByResourceGroupResponse, - LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, - LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByLocationNextResponse, LongTermRetentionBackupsListByServerNextResponse, - LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse, + LongTermRetentionBackupsListByDatabaseNextResponse, LongTermRetentionBackupsListByResourceGroupLocationNextResponse, - LongTermRetentionBackupsListByResourceGroupServerNextResponse + LongTermRetentionBackupsListByResourceGroupServerNextResponse, + LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse } from "../models"; /// @@ -76,99 +81,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 +232,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 +260,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 +271,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 +293,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { yield page; } while (continuationToken) { - result = await this._listByResourceGroupDatabaseNext( - resourceGroupName, + result = await this._listByDatabaseNext( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -403,15 +307,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, @@ -422,7 +324,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Lists the long term retention backups for a given location. + * Lists the long term retention backups for a given location based on 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 locationName The location of the database @@ -507,7 +409,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Lists the long term retention backups for a given server. + * Lists the long term retention backups for a given server based on resource 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 locationName The location of the database @@ -601,143 +503,210 @@ 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 based on a particular 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 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 - }); - const poller = await createHttpPoller< - LongTermRetentionBackupsCopyResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; + listByDatabaseOperationSpec + ); } /** - * Copy an existing long term retention backup. + * 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 parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyAndWait( + get( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyOptionalParams - ): Promise { - const poller = await this.beginCopy( - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - parameters, - options + options?: LongTermRetentionBackupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + getOperationSpec ); - return poller.pollUntilDone(); } /** - * Updates 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 requested backup resource state * @param options The options parameters. */ - async beginUpdate( + async beginDelete( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateResponse - > - > { + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -780,15 +749,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options }, - spec: updateOperationSpec + spec: deleteOperationSpec }); - const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -797,79 +762,57 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Updates 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 requested backup resource state * @param options The options parameters. */ - async beginUpdateAndWait( + async beginDeleteAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + options?: LongTermRetentionBackupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, - parameters, options ); return poller.pollUntilDone(); } /** - * 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. + * Change a long term retention backup access tier. + * @param locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. * @param options The options parameters. */ - async beginDelete( + async beginChangeAccessTier( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise, void>> { + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsChangeAccessTierResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -912,11 +855,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - spec: deleteOperationSpec + spec: changeAccessTierOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + LongTermRetentionBackupsChangeAccessTierResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); @@ -925,115 +872,60 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * 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. + * Change a long term retention backup access tier. + * @param locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginChangeAccessTierAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, - options?: LongTermRetentionBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierOptionalParams + ): Promise { + const poller = await this.beginChangeAccessTier( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options ); return poller.pollUntilDone(); } /** - * Lists all long term retention backups for a database. - * @param locationName The location of the database + * 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 parameters needed for long term retention copy request * @param options The options parameters. */ - private _listByDatabase( - locationName: string, - longTermRetentionServerName: string, - longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByDatabaseOperationSpec - ); - } - - /** - * 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 - ); - } - - /** - * 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. - */ - async beginCopyByResourceGroup( - resourceGroupName: string, + async beginCopy( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams + options?: LongTermRetentionBackupsCopyOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsCopyByResourceGroupResponse + OperationState, + LongTermRetentionBackupsCopyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1072,7 +964,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { const lro = createLroSpec({ sendOperationFn, args: { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -1080,11 +971,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: copyByResourceGroupOperationSpec + spec: copyOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsCopyByResourceGroupResponse, - OperationState + LongTermRetentionBackupsCopyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -1094,9 +985,7 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * 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. + * 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 @@ -1104,17 +993,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { * @param parameters The parameters needed for long term retention copy request * @param options The options parameters. */ - async beginCopyByResourceGroupAndWait( - resourceGroupName: string, + async beginCopyAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: CopyLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginCopyByResourceGroup( - resourceGroupName, + options?: LongTermRetentionBackupsCopyOptionalParams + ): Promise { + const poller = await this.beginCopy( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -1127,8 +1014,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { /** * 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 @@ -1136,24 +1021,23 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginUpdateByResourceGroup( - resourceGroupName: string, + async beginUpdate( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + options?: LongTermRetentionBackupsUpdateOptionalParams ): Promise< SimplePollerLike< - OperationState, - LongTermRetentionBackupsUpdateByResourceGroupResponse + OperationState, + LongTermRetentionBackupsUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1192,7 +1076,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { const lro = createLroSpec({ sendOperationFn, args: { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -1200,11 +1083,11 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { parameters, options }, - spec: updateByResourceGroupOperationSpec + spec: updateOperationSpec }); const poller = await createHttpPoller< - LongTermRetentionBackupsUpdateByResourceGroupResponse, - OperationState + LongTermRetentionBackupsUpdateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs @@ -1215,8 +1098,6 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { /** * 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 @@ -1224,17 +1105,15 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { * @param parameters The requested backup resource state * @param options The options parameters. */ - async beginUpdateByResourceGroupAndWait( - resourceGroupName: string, + async beginUpdateAndWait( locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: UpdateLongTermRetentionBackupParameters, - options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams - ): Promise { - const poller = await this.beginUpdateByResourceGroup( - resourceGroupName, + options?: LongTermRetentionBackupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( locationName, longTermRetentionServerName, longTermRetentionDatabaseName, @@ -1245,6 +1124,72 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { return poller.pollUntilDone(); } + /** + * Lists the long term retention backups for a given location based on 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 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 based on resource 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 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 + ); + } + + /** + * Lists all long term retention backups for a database based on a particular 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 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 + ); + } + /** * Gets a long term retention backup. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain @@ -1383,96 +1328,369 @@ export class LongTermRetentionBackupsImpl implements LongTermRetentionBackups { } /** - * Lists all long term retention backups for a database. + * Change a long term retention backup access tier. * @param resourceGroupName The 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 locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. * @param options The options parameters. */ - private _listByResourceGroupDatabase( + async beginChangeAccessTierByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - options?: LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { + backupName: string, + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse + >, + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse + > + > { + 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, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, + backupName, + parameters, options }, - listByResourceGroupDatabaseOperationSpec - ); + spec: changeAccessTierByResourceGroupOperationSpec + }); + const poller = await createHttpPoller< + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse, + OperationState< + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; } /** - * Lists the long term retention backups for a given location. + * Change a long term retention backup access tier. * @param resourceGroupName The 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 + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. * @param options The options parameters. */ - private _listByResourceGroupLocation( + async beginChangeAccessTierByResourceGroupAndWait( resourceGroupName: string, locationName: string, - options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginChangeAccessTierByResourceGroup( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options ); + return poller.pollUntilDone(); } /** - * Lists the long term retention backups for a given server. + * 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 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. */ - private _listByResourceGroupServer( + async beginCopyByResourceGroup( resourceGroupName: string, locationName: string, longTermRetentionServerName: string, - options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, locationName, longTermRetentionServerName, options }, - listByResourceGroupServerOperationSpec + longTermRetentionDatabaseName: string, + backupName: string, + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsCopyByResourceGroupResponse + > + > { + 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, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options + }, + spec: copyByResourceGroupOperationSpec + }); + const poller = await createHttpPoller< + LongTermRetentionBackupsCopyByResourceGroupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * 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. + */ + async beginCopyByResourceGroupAndWait( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + parameters: CopyLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsCopyByResourceGroupOptionalParams + ): Promise { + const poller = await this.beginCopyByResourceGroup( + resourceGroupName, + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options ); + return poller.pollUntilDone(); } /** - * ListByDatabaseNext - * @param locationName The location of the database + * 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 nextLink The nextLink from the previous successful call to the ListByDatabase method. + * @param backupName The backup name. + * @param parameters The requested backup resource state * @param options The options parameters. */ - private _listByDatabaseNext( + async beginUpdateByResourceGroup( + resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, - nextLink: string, - options?: LongTermRetentionBackupsListByDatabaseNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { + backupName: string, + parameters: UpdateLongTermRetentionBackupParameters, + options?: LongTermRetentionBackupsUpdateByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsUpdateByResourceGroupResponse + > + > { + 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, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, - nextLink, + backupName, + parameters, options }, - listByDatabaseNextOperationSpec + spec: updateByResourceGroupOperationSpec + }); + 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(); } /** @@ -1512,34 +1730,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,31 +1805,175 @@ 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 = { +const listByLocationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServerOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/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.locationName, + Parameters.longTermRetentionServerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupListResult + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.onlyLatestPerDatabase, + Parameters.databaseState + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackup + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName + ], + 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.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName + ], + serializer +}; +const changeAccessTierOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/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}/changeAccessTier", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, - default: {} + default: { + bodyMapper: Mappers.ErrorResponse + } }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1625,13 +1982,13 @@ const copyOperationSpec: coreClient.OperationSpec = { Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const updateOperationSpec: coreClient.OperationSpec = { +const copyOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/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}/copy", httpMethod: "POST", responses: { 200: { @@ -1648,8 +2005,8 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1658,38 +2015,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName - ], - 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.apiVersion6], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1698,11 +2048,13 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.longTermRetentionDatabaseName, Parameters.backupName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listByDatabaseOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { @@ -1711,23 +2063,22 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName + Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByLocationOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { @@ -1736,21 +2087,23 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + Parameters.longTermRetentionServerName ], headerParameters: [Parameters.accept], serializer }; -const listByServerOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", httpMethod: "GET", responses: { 200: { @@ -1759,156 +2112,167 @@ const listByServerOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, Parameters.onlyLatestPerDatabase, Parameters.databaseState ], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.locationName, - Parameters.longTermRetentionServerName + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName ], headerParameters: [Parameters.accept], serializer }; -const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { +const getByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult - }, - 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, default: {} }, - requestBody: Parameters.parameters64, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteByResourceGroupOperationSpec: 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.apiVersion], + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", serializer }; -const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { +const changeAccessTierByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/changeAccessTier", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, 201: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, 202: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, 204: { - bodyMapper: Mappers.LongTermRetentionBackupOperationResult + bodyMapper: Mappers.LongTermRetentionBackup }, - default: {} + default: { + bodyMapper: Mappers.ErrorResponse + } }, - requestBody: Parameters.parameters65, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters44, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, 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 copyByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LongTermRetentionBackup + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 201: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 204: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, default: {} }, - queryParameters: [Parameters.apiVersion6], + requestBody: Parameters.parameters45, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteByResourceGroupOperationSpec: 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.apiVersion6], - urlParameters: [ - Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, Parameters.backupName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { +const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", - httpMethod: "GET", + "/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: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.locationName, Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName + Parameters.longTermRetentionDatabaseName, + Parameters.backupName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", +const listByLocationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -1916,23 +2280,17 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.nextLink, Parameters.locationName ], headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", +const listByServerNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -1940,15 +2298,10 @@ const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName ], @@ -1975,7 +2328,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1986,6 +2339,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName @@ -1993,7 +2347,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByServerNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -2004,6 +2358,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, @@ -2023,8 +2378,8 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.longTermRetentionServerName, @@ -2033,42 +2388,3 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: {} - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: {} - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.locationName, - Parameters.longTermRetentionServerName - ], - 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 9e65cc54a56e..c04b7719c702 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,61 @@ 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.filter, + Parameters.skip, + Parameters.top, + 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 +1187,11 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1153,20 +1204,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.apiVersion6], + 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 +1226,22 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + 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 +1250,25 @@ const listByInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion, + Parameters.filter, + Parameters.skip, + Parameters.top, 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 +1277,17 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + 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 +1302,12 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.locationName, Parameters.managedInstanceName, Parameters.backupName @@ -1264,44 +1320,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.apiVersion6], + 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.apiVersion6, - 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 +1343,22 @@ const listByResourceGroupInstanceOperationSpec: coreClient.OperationSpec = { default: {} }, queryParameters: [ - Parameters.apiVersion6, + 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 +1366,10 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [ - Parameters.apiVersion6, - Parameters.onlyLatestPerDatabase, - Parameters.databaseState - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.nextLink, Parameters.locationName ], headerParameters: [Parameters.accept], @@ -1362,8 +1386,8 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1390,7 +1414,7 @@ const listByInstanceNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1401,6 +1425,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName @@ -1419,9 +1444,9 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.databaseName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1440,8 +1465,8 @@ const listByResourceGroupInstanceNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.locationName, Parameters.managedInstanceName @@ -1449,22 +1474,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 9d8c447c767d..c238ebec3298 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 @@ -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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters47, + 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.apiVersion3], - 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 7d37a81d521e..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.apiVersion3, + 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 c2570f1431b6..9b86ee1240d9 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.apiVersion3, 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.apiVersion3, Parameters.maintenanceWindowName], + requestBody: Parameters.parameters48, + 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 91162d645beb..d9014269c590 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters49, + 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.apiVersion3], + requestBody: Parameters.parameters49, + 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.apiVersion3], - 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 483d70bfd48d..ca0904e3a3f1 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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + requestBody: Parameters.parameters50, + 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 8305947586e6..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.apiVersion3, + 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.apiVersion3], + 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.apiVersion3], + 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 1e6d12515c03..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.apiVersion8 + 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.apiVersion8], + 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 8fa799c006f5..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.apiVersion3], + 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.apiVersion3, + 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 1f05e9af0d0e..196ef705e923 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.apiVersion3], + requestBody: Parameters.parameters54, + 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 93e16abc5e05..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.apiVersion8], + 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 4cd53b391edf..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.apiVersion3], + 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.apiVersion3], + 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 55146eae0f42..81fae5e6d5e2 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters51, + 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 6d0c1c76d83e..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.apiVersion3, + 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 0e134f5c1bd0..d235dde2157c 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.parameters52, + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters53, + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3, - 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.apiVersion3], - 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.apiVersion3, - 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 502c6909d5fc..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.apiVersion3], + 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.apiVersion3], + 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 acf6da2c15f0..e8a56de6e93e 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters55, + 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 7ba333464cdb..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 469dbc414f2d..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.apiVersion3], + "/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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + "/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 6a319ea249ad..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], - 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 ab809dfb9f38..8956d67b9a5c 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.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + 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 }; @@ -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.apiVersion2], + 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.apiVersion2], + requestBody: Parameters.parameters57, + 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.apiVersion2], + requestBody: Parameters.parameters58, + 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.apiVersion2], + requestBody: Parameters.parameters58, + 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.apiVersion2], + requestBody: Parameters.parameters59, + 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.apiVersion2], + requestBody: Parameters.parameters60, + 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.apiVersion2], + 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 0f8423c3d4df..6a5eddc427fc 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters61, + 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.apiVersion3], + 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 b9e78591ea60..a9886cac4ae5 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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + requestBody: Parameters.parameters62, + 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 c7464f97ace8..d755f1698fa5 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters63, + 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.apiVersion3], + 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.apiVersion3], - 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 084fbdc12eab..13724d2afb00 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.apiVersion8], + 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.apiVersion8], + 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.apiVersion8], + requestBody: Parameters.parameters64, + 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 1b9198a039f5..947625081632 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.apiVersion3], - 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters65, + 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 0ce8a19e23e2..07b100dd0585 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters66, + 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.apiVersion3], + 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 bc4812a29970..ea2cdcff8848 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters67, + 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.apiVersion3], + 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 83f954fa3669..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 cd1c474bbac2..b05b0abf44b2 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters68, + 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.apiVersion3], + 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.apiVersion3], - 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 d4272d26ac39..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.apiVersion3], + 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.apiVersion3], + 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 bcb2072acfc1..64b6a206df5d 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.apiVersion3], + requestBody: Parameters.parameters69, + 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 d5218fc05e16..de28bfaad8ef 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters70, + 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.apiVersion3], + 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.apiVersion3], - 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 e2d42e0492f7..8758045f344b 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.expand, Parameters.apiVersion2], + 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.expand, Parameters.apiVersion2], + 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.expand, Parameters.apiVersion2], + 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.expand, Parameters.apiVersion2], + 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.apiVersion2], + 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 }; @@ -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.apiVersion2], + 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.apiVersion2], + requestBody: Parameters.parameters72, + 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.replicaType, Parameters.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + 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.apiVersion2, + 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 757d3f8a9554..97804509397b 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.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + requestBody: Parameters.parameters73, + 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.apiVersion2], + 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 2d4187b5ef2b..c893d57538da 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters49, + 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.apiVersion3], + requestBody: Parameters.parameters49, + 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.apiVersion3], - 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 de8c853749fb..2e4050d9e641 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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + 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 }; @@ -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.apiVersion7], + 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.apiVersion7], + requestBody: Parameters.parameters75, + 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 afadf960400e..5c3afe7b7478 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters76, + 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.apiVersion3], - 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 11395fed5450..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.apiVersion3], + 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 0027a450023d..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.apiVersion5], + 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.apiVersion5], + 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.apiVersion5], + 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.apiVersion5], - 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 9f2c91898b90..6288063b637e 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.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + requestBody: Parameters.parameters77, + 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.apiVersion2], + 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 de58d0c36ac9..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.apiVersion3], + 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.apiVersion3], + 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 b9fa9ca014f6..bf3e7cce603c 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.apiVersion3], + requestBody: Parameters.parameters54, + 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 5eaeb36c1a15..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.apiVersion2], + 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.apiVersion, Parameters.expand, - Parameters.filter1, - Parameters.apiVersion2 + 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 139fa424961a..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.apiVersion3], + 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.apiVersion3], + 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 1bfe5461f089..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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + 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 e82e0c33eb7c..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.apiVersion2], + 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.apiVersion, Parameters.expand, - Parameters.filter1, - Parameters.apiVersion2 + 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 222e8175a786..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.apiVersion6], + 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.apiVersion6], + 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 3cec0f7d2ee1..bdf729a72309 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters78, + 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.apiVersion3], + 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.apiVersion3], + 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 643b1904448c..c54631353539 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.apiVersion3, 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.apiVersion3], + requestBody: Parameters.parameters52, + 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.apiVersion3, 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.apiVersion3], - 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.apiVersion3], - 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters53, + 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.apiVersion3], + 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 a190df4e9f5f..3d8f3a44ef29 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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + requestBody: Parameters.parameters79, + 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 1e83f27a66d5..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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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 374ae8dc6f3f..7d7ac72a1ff8 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters80, + 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 6308406c6058..69fad2dca779 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters81, + 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.apiVersion3], + 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.apiVersion3], - 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 64556aba0505..158f92ea89fa 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters82, + 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.apiVersion3], + 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.apiVersion3], - 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 5b7935d7ccaa..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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + 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 b6adceb071e1..685553fa8198 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.apiVersion2], + 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.apiVersion2], + 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.apiVersion2], + requestBody: Parameters.parameters83, + 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 6c97ed5d77a4..3c6ae885cc00 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.apiVersion6], + 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.apiVersion6], + requestBody: Parameters.parameters84, + 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.apiVersion6], - 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 e6813ca31148..42e809282e15 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.apiVersion4], + 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.apiVersion4], + 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.apiVersion4], + requestBody: Parameters.parameters85, + 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 c5f89c05acd6..39bcfb84f274 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], - 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.apiVersion3], + requestBody: Parameters.parameters86, + 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 52534702eaba..3f7ab22e00dd 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.apiVersion3], + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters87, + 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.apiVersion3], + 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 77096439d5c9..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.apiVersion3], + 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 8f78b0a313ed..88d2ed8e919f 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters88, + 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.apiVersion3], - 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 9567fc4e5732..5d72d795e949 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.apiVersion7], + 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.apiVersion7], + 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.apiVersion7], + requestBody: Parameters.parameters89, + 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.apiVersion7], + 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 7c2f7e0f858d..33e1042ca26b 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters90, + 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.apiVersion3], + 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.apiVersion3], - 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.apiVersion3], + 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 7687ea003c52..9a43b0f03097 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters91, + 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.apiVersion3], + 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.apiVersion3], - 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 7feef8467dbe..0a34e72c6fa4 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.parameters100, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters92, + 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.parameters101, - 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 }; @@ -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.parameters102, - 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 }; @@ -912,15 +912,15 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters103, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters95, + 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 7d3c2144ef5a..60fd06817876 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters96, + 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 8a47534e440c..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.apiVersion9, 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.apiVersion9, 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 9d4996bd1b65..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.parameters97, - queryParameters: [Parameters.apiVersion9, 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 0c11f7109a40..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.apiVersion9, 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 61e6c5f693e5..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.apiVersion9, 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.apiVersion9, 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.parameters98, - queryParameters: [Parameters.apiVersion9, 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 1b86725beef7..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.apiVersion9, 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 0ff345ec3985..d68a0c20574a 100644 --- a/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts +++ b/sdk/sql/arm-sql/src/operations/sqlVulnerabilityAssessmentScanResult.ts @@ -244,14 +244,14 @@ const listByScanOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion9, 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.apiVersion9, 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 212b82df2073..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.apiVersion9, 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.apiVersion9, 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 21f8fc2c81eb..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.apiVersion9], + 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 66741bfb9a75..b00c885c66ad 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.apiVersion9], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer @@ -241,12 +241,12 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, + Parameters.subscriptionId, Parameters.vulnerabilityAssessmentName2 ], headerParameters: [Parameters.accept], @@ -265,16 +265,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters99, - queryParameters: [Parameters.apiVersion9], + requestBody: Parameters.parameters97, + 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 f3658ffc2816..5cb034c27f94 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.apiVersion2], + 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.apiVersion2], + 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.parameters94, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters98, + 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.apiVersion2], + 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 21f0c1222413..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.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + 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 cd7dc31dc4be..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.apiVersion8], + 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 e04bac122a1f..d2c839ebef18 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters99, + 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.apiVersion3], + 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.apiVersion3], - 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.apiVersion3], + 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.apiVersion3], + 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 5986a58fd4b7..3b0095d52e0d 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.apiVersion3], + 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.apiVersion3], - 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.apiVersion3], - 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.apiVersion3, - 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.apiVersion3], - 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.apiVersion3], - 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters100, + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters100, + 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.apiVersion3], + 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 cd65ab3507ac..698546bf1328 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters101, + 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters101, + 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.apiVersion3], + "/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.apiVersion3], + 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.apiVersion3], - 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 c79976dfddd2..fa5e3a9fc21b 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.apiVersion3], + requestBody: Parameters.parameters69, + 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 b4188003f731..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.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -182,7 +182,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + 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 ee6a8b66bc72..0d4e4fe9dfbb 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.apiVersion2], + 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.apiVersion2], + 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.parameters95, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters102, + 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 ae84548ce8ff..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.apiVersion5, 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 9a30109a3826..0ec3b2497930 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.apiVersion8], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -554,11 +554,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion8], + 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.apiVersion8], + 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.apiVersion8], + 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.apiVersion8], + requestBody: Parameters.parameters103, + 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.apiVersion8], + 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 7676256c7e1b..d289b60a9c6a 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters104, + 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.apiVersion3], + 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.apiVersion3], - 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 cb520c96a00c..db95990169fd 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters105, + 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.apiVersion3], + 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.apiVersion3], - 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 e75ed9052a92..ebc5e55e85d4 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.apiVersion3], + 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.apiVersion3], + requestBody: Parameters.parameters106, + 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.apiVersion3], + 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.apiVersion3], - 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/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..7d2cb31d2a80 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/distributedAvailabilityGroups.ts @@ -17,7 +17,10 @@ import { DistributedAvailabilityGroupsCreateOrUpdateResponse, DistributedAvailabilityGroupsDeleteOptionalParams, DistributedAvailabilityGroupsUpdateOptionalParams, - DistributedAvailabilityGroupsUpdateResponse + DistributedAvailabilityGroupsUpdateResponse, + DistributedAvailabilityGroupSetRole, + DistributedAvailabilityGroupsSetRoleOptionalParams, + DistributedAvailabilityGroupsSetRoleResponse } from "../models"; /// @@ -151,4 +154,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 ef0485fce42a..b7dc04415fe0 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -6,58 +6,86 @@ * 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 "./jobPrivateEndpoints"; 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,78 +94,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 "./servers"; 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 "./startStopManagedInstanceSchedules"; -export * from "./transparentDataEncryptions"; -export * from "./iPv6FirewallRules"; export * from "./sqlVulnerabilityAssessmentBaseline"; export * from "./sqlVulnerabilityAssessmentBaselines"; export * from "./sqlVulnerabilityAssessmentExecuteScan"; @@ -147,11 +139,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 "./servers"; -export * from "./failoverGroups"; +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/jobPrivateEndpoints.ts b/sdk/sql/arm-sql/src/operationsInterfaces/jobPrivateEndpoints.ts new file mode 100644 index 000000000000..8429d284a163 --- /dev/null +++ b/sdk/sql/arm-sql/src/operationsInterfaces/jobPrivateEndpoints.ts @@ -0,0 +1,127 @@ +/* + * 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 { + JobPrivateEndpoint, + JobPrivateEndpointsListByAgentOptionalParams, + JobPrivateEndpointsGetOptionalParams, + JobPrivateEndpointsGetResponse, + JobPrivateEndpointsCreateOrUpdateOptionalParams, + JobPrivateEndpointsCreateOrUpdateResponse, + JobPrivateEndpointsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a JobPrivateEndpoints. */ +export interface JobPrivateEndpoints { + /** + * Gets a list of job agent private endpoints. + * @param resourceGroupName The name of the resource group that contains 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 options The options parameters. + */ + listByAgent( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + options?: JobPrivateEndpointsListByAgentOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint to get. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + options?: JobPrivateEndpointsGetOptionalParams + ): Promise; + /** + * Creates or updates a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint. + * @param parameters The requested private endpoint state. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + parameters: JobPrivateEndpoint, + options?: JobPrivateEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + JobPrivateEndpointsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint. + * @param parameters The requested private endpoint state. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + parameters: JobPrivateEndpoint, + options?: JobPrivateEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint to delete. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + options?: JobPrivateEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a private endpoint. + * @param resourceGroupName The name of the resource group that contains 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 privateEndpointName The name of the private endpoint to delete. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serverName: string, + jobAgentName: string, + privateEndpointName: string, + options?: JobPrivateEndpointsDeleteOptionalParams + ): 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..b49f1a6fe6d0 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionBackups.ts @@ -10,46 +10,38 @@ 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, + ChangeLongTermRetentionBackupAccessTierParameters, + LongTermRetentionBackupsChangeAccessTierOptionalParams, + LongTermRetentionBackupsChangeAccessTierResponse, CopyLongTermRetentionBackupParameters, LongTermRetentionBackupsCopyOptionalParams, LongTermRetentionBackupsCopyResponse, UpdateLongTermRetentionBackupParameters, LongTermRetentionBackupsUpdateOptionalParams, LongTermRetentionBackupsUpdateResponse, - LongTermRetentionBackupsGetOptionalParams, - LongTermRetentionBackupsGetResponse, - LongTermRetentionBackupsDeleteOptionalParams, + LongTermRetentionBackupsGetByResourceGroupOptionalParams, + LongTermRetentionBackupsGetByResourceGroupResponse, + LongTermRetentionBackupsDeleteByResourceGroupOptionalParams, + LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams, + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse, 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,22 +64,19 @@ 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. + * Lists the long term retention backups for a given location based on 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 locationName The location of the database @@ -99,7 +88,7 @@ export interface LongTermRetentionBackups { options?: LongTermRetentionBackupsListByResourceGroupLocationOptionalParams ): PagedAsyncIterableIterator; /** - * Lists the long term retention backups for a given server. + * Lists the long term retention backups for a given server based on resource 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 locationName The location of the database @@ -112,6 +101,108 @@ export interface LongTermRetentionBackups { longTermRetentionServerName: string, options?: LongTermRetentionBackupsListByResourceGroupServerOptionalParams ): PagedAsyncIterableIterator; + /** + * Lists all long term retention backups for a database based on a particular 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 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; + /** + * Change a long term retention backup access tier. + * @param locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. + * @param options The options parameters. + */ + beginChangeAccessTier( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LongTermRetentionBackupsChangeAccessTierResponse + > + >; + /** + * Change a long term retention backup access tier. + * @param locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. + * @param options The options parameters. + */ + beginChangeAccessTierAndWait( + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierOptionalParams + ): Promise; /** * Copy an existing long term retention backup. * @param locationName The location of the database. @@ -192,49 +283,107 @@ 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; + /** + * Change a long term retention backup access tier. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. + * @param options The options parameters. + */ + beginChangeAccessTierByResourceGroup( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse + >, + LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse + > + >; + /** + * Change a long term retention backup access tier. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain + * this value from the Azure Resource Manager API or the portal. + * @param locationName + * @param longTermRetentionServerName + * @param longTermRetentionDatabaseName + * @param backupName + * @param parameters Contains the information necessary to change long term retention backup access + * tier and related operation mode. + * @param options The options parameters. + */ + beginChangeAccessTierByResourceGroupAndWait( + resourceGroupName: string, + locationName: string, + longTermRetentionServerName: string, + longTermRetentionDatabaseName: string, + backupName: string, + parameters: ChangeLongTermRetentionBackupAccessTierParameters, + options?: LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams + ): Promise; /** * 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 @@ -325,58 +474,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/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/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 ba5986b0c8f7..2e59dd27c4d8 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -8,60 +8,93 @@ 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, + JobPrivateEndpointsImpl, 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,78 +103,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, + ServersImpl, 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, - StartStopManagedInstanceSchedulesImpl, - TransparentDataEncryptionsImpl, - IPv6FirewallRulesImpl, SqlVulnerabilityAssessmentBaselineImpl, SqlVulnerabilityAssessmentBaselinesImpl, SqlVulnerabilityAssessmentExecuteScanImpl, @@ -151,68 +148,102 @@ import { SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentsSettingsImpl, SqlVulnerabilityAssessmentsImpl, - DatabaseSqlVulnerabilityAssessmentBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentExecuteScanImpl, - DatabaseSqlVulnerabilityAssessmentRuleBaselinesImpl, - DatabaseSqlVulnerabilityAssessmentScanResultImpl, - DatabaseSqlVulnerabilityAssessmentScansImpl, - DatabaseSqlVulnerabilityAssessmentsSettingsImpl, - ServersImpl, - FailoverGroupsImpl + 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, + JobPrivateEndpoints, 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,78 +252,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, + Servers, 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, - StartStopManagedInstanceSchedules, - TransparentDataEncryptions, - IPv6FirewallRules, SqlVulnerabilityAssessmentBaseline, SqlVulnerabilityAssessmentBaselines, SqlVulnerabilityAssessmentExecuteScan, @@ -302,20 +297,27 @@ import { SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentsSettings, SqlVulnerabilityAssessments, - DatabaseSqlVulnerabilityAssessmentBaselines, - DatabaseSqlVulnerabilityAssessmentExecuteScan, - DatabaseSqlVulnerabilityAssessmentRuleBaselines, - DatabaseSqlVulnerabilityAssessmentScanResult, - DatabaseSqlVulnerabilityAssessmentScans, - DatabaseSqlVulnerabilityAssessmentsSettings, - Servers, - FailoverGroups + 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 +346,7 @@ export class SqlManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-sql/10.1.0-beta.3`; + const packageDetails = `azsdk-js-arm-sql/11.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -397,56 +399,107 @@ export class SqlManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2023-05-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.jobPrivateEndpoints = new JobPrivateEndpointsImpl(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 +510,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 +528,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 +541,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 +578,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 +623,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,106 +632,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.servers = new ServersImpl(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.startStopManagedInstanceSchedules = new StartStopManagedInstanceSchedulesImpl( - this - ); - this.transparentDataEncryptions = new TransparentDataEncryptionsImpl(this); - this.iPv6FirewallRules = new IPv6FirewallRulesImpl(this); this.sqlVulnerabilityAssessmentBaseline = new SqlVulnerabilityAssessmentBaselineImpl( this ); @@ -662,80 +667,133 @@ 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.servers = new ServersImpl(this); - this.failoverGroups = new FailoverGroupsImpl(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; + jobPrivateEndpoints: JobPrivateEndpoints; 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,78 +802,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; + servers: Servers; 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; - startStopManagedInstanceSchedules: StartStopManagedInstanceSchedules; - transparentDataEncryptions: TransparentDataEncryptions; - iPv6FirewallRules: IPv6FirewallRules; sqlVulnerabilityAssessmentBaseline: SqlVulnerabilityAssessmentBaseline; sqlVulnerabilityAssessmentBaselines: SqlVulnerabilityAssessmentBaselines; sqlVulnerabilityAssessmentExecuteScan: SqlVulnerabilityAssessmentExecuteScan; @@ -825,12 +847,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; - servers: Servers; - failoverGroups: FailoverGroups; + 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"