From c2a24a092d402dde36e2eeba2509cf8b82b29f50 Mon Sep 17 00:00:00 2001 From: Phoenix He Date: Tue, 15 Dec 2020 11:00:45 +0800 Subject: [PATCH 1/2] Update swagger_to_sdk_config.json --- swagger_to_sdk_config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index dc2ee78f926d..3a902eeb4343 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -6,7 +6,8 @@ "typescript": "", "license-header": "MICROSOFT_MIT_NO_VERSION", "sdkrel:typescript-sdks-folder": ".", - "use": "@microsoft.azure/autorest.typescript@4.4.4" + "use": "@microsoft.azure/autorest.typescript@4.4.4", + "clear-output-folder": "" }, "advanced_options": { "clone_dir": "./azure-sdk-for-js", From e92e12e45ba7fe7aa8be61076e64f662b4ebae50 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 8 Feb 2021 03:22:09 +0000 Subject: [PATCH 2/2] CodeGen from PR 1474 in openapi-env-test/azure-rest-api-specs Merge 5275d3022f8d5b50cb9473ee172e99ddf8408661 into e597a1cad6c0d0871210c304e40c455bed4fd5c1 --- sdk/sql/arm-sql/LICENSE.txt | 2 +- sdk/sql/arm-sql/README.md | 15 +- sdk/sql/arm-sql/rollup.config.js | 4 +- .../backupLongTermRetentionPoliciesMappers.ts | 122 - ...backupShortTermRetentionPoliciesMappers.ts | 123 - .../arm-sql/src/models/capabilitiesMappers.ts | 29 - .../src/models/dataMaskingPoliciesMappers.ts | 122 - .../src/models/dataMaskingRulesMappers.ts | 123 - ...atabaseAutomaticTuningOperationsMappers.ts | 122 - .../databaseBlobAuditingPoliciesMappers.ts | 123 - .../src/models/databaseOperationsMappers.ts | 123 - .../databaseSecurityAlertPoliciesMappers.ts | 38 + .../databaseThreatDetectionPoliciesMappers.ts | 122 - .../src/models/databaseUsagesMappers.ts | 13 - ...erabilityAssessmentRuleBaselinesMappers.ts | 122 - ...baseVulnerabilityAssessmentScansMappers.ts | 123 - ...databaseVulnerabilityAssessmentsMappers.ts | 123 - .../arm-sql/src/models/databasesMappers.ts | 130 +- .../models/elasticPoolActivitiesMappers.ts | 123 - .../elasticPoolDatabaseActivitiesMappers.ts | 123 - .../models/elasticPoolOperationsMappers.ts | 123 - .../arm-sql/src/models/elasticPoolsMappers.ts | 126 +- .../src/models/encryptionProtectorsMappers.ts | 123 - ...ndedDatabaseBlobAuditingPoliciesMappers.ts | 122 - ...tendedServerBlobAuditingPoliciesMappers.ts | 122 - .../src/models/failoverGroupsMappers.ts | 124 - .../src/models/firewallRulesMappers.ts | 123 - .../src/models/geoBackupPoliciesMappers.ts | 123 - sdk/sql/arm-sql/src/models/index.ts | 14539 ++-------------- .../models/instanceFailoverGroupsMappers.ts | 123 - .../src/models/instancePoolsMappers.ts | 105 +- .../arm-sql/src/models/jobAgentsMappers.ts | 124 - .../src/models/jobCredentialsMappers.ts | 123 - .../src/models/jobExecutionsMappers.ts | 123 - .../src/models/jobStepExecutionsMappers.ts | 123 - sdk/sql/arm-sql/src/models/jobStepsMappers.ts | 123 - .../src/models/jobTargetExecutionsMappers.ts | 123 - .../src/models/jobTargetGroupsMappers.ts | 123 - .../arm-sql/src/models/jobVersionsMappers.ts | 123 - sdk/sql/arm-sql/src/models/jobsMappers.ts | 123 - .../models/longTermRetentionBackupsMappers.ts | 123 - ...mRetentionManagedInstanceBackupsMappers.ts | 38 + ...BackupShortTermRetentionPoliciesMappers.ts | 123 - .../managedDatabaseRestoreDetailsMappers.ts | 105 +- ...gedDatabaseSecurityAlertPoliciesMappers.ts | 123 - ...managedDatabaseSensitivityLabelsMappers.ts | 105 +- ...erabilityAssessmentRuleBaselinesMappers.ts | 122 - ...baseVulnerabilityAssessmentScansMappers.ts | 123 - ...DatabaseVulnerabilityAssessmentsMappers.ts | 123 - .../src/models/managedDatabasesMappers.ts | 105 +- .../managedInstanceAdministratorsMappers.ts | 123 - ...agedInstanceEncryptionProtectorsMappers.ts | 123 - .../src/models/managedInstanceKeysMappers.ts | 123 - ...nstanceLongTermRetentionPoliciesMappers.ts | 38 + .../managedInstanceOperationsMappers.ts | 38 + .../managedInstanceTdeCertificatesMappers.ts | 122 - ...InstanceVulnerabilityAssessmentsMappers.ts | 105 +- .../src/models/managedInstancesMappers.ts | 105 +- ...BackupShortTermRetentionPoliciesMappers.ts | 123 - ...nagedServerSecurityAlertPoliciesMappers.ts | 123 - sdk/sql/arm-sql/src/models/mappers.ts | 9969 +---------- .../arm-sql/src/models/operationsMappers.ts | 14 - sdk/sql/arm-sql/src/models/parameters.ts | 681 +- .../privateEndpointConnectionsMappers.ts | 105 +- .../src/models/privateLinkResourcesMappers.ts | 123 - .../models/recommendedElasticPoolsMappers.ts | 124 - .../src/models/recoverableDatabasesMappers.ts | 123 - .../recoverableManagedDatabasesMappers.ts | 123 - .../src/models/replicationLinksMappers.ts | 123 - .../restorableDroppedDatabasesMappers.ts | 123 - ...estorableDroppedManagedDatabasesMappers.ts | 123 - .../src/models/restorePointsMappers.ts | 124 - .../src/models/sensitivityLabelsMappers.ts | 123 - .../serverAutomaticTuningOperationsMappers.ts | 122 - .../serverAzureADAdministratorsMappers.ts | 107 +- .../serverBlobAuditingPoliciesMappers.ts | 123 - .../models/serverCommunicationLinksMappers.ts | 123 - .../models/serverConnectionPoliciesMappers.ts | 122 - .../src/models/serverDnsAliasesMappers.ts | 124 - .../arm-sql/src/models/serverKeysMappers.ts | 123 - .../serverSecurityAlertPoliciesMappers.ts | 123 - .../arm-sql/src/models/serverUsagesMappers.ts | 13 - .../serverVulnerabilityAssessmentsMappers.ts | 105 +- sdk/sql/arm-sql/src/models/serversMappers.ts | 126 - .../src/models/serviceObjectivesMappers.ts | 123 - .../src/models/serviceTierAdvisorsMappers.ts | 123 - .../src/models/subscriptionUsagesMappers.ts | 123 - .../arm-sql/src/models/syncAgentsMappers.ts | 125 - .../arm-sql/src/models/syncGroupsMappers.ts | 131 - .../arm-sql/src/models/syncMembersMappers.ts | 127 - .../src/models/tdeCertificatesMappers.ts | 122 - ...nsparentDataEncryptionActivitiesMappers.ts | 123 - .../transparentDataEncryptionsMappers.ts | 122 - sdk/sql/arm-sql/src/models/usagesMappers.ts | 4 +- .../src/models/virtualClustersMappers.ts | 124 - .../src/models/virtualNetworkRulesMappers.ts | 123 - .../backupLongTermRetentionPolicies.ts | 235 - .../backupShortTermRetentionPolicies.ts | 357 - .../arm-sql/src/operations/capabilities.ts | 83 - .../src/operations/dataMaskingPolicies.ts | 173 - .../src/operations/dataMaskingRules.ts | 181 - .../databaseAutomaticTuningOperations.ts | 171 - .../src/operations/databaseOperations.ts | 212 - ...es.ts => databaseSecurityAlertPolicies.ts} | 142 +- .../databaseThreatDetectionPolicies.ts | 182 - .../arm-sql/src/operations/databaseUsages.ts | 95 - ...aseVulnerabilityAssessmentRuleBaselines.ts | 294 - .../databaseVulnerabilityAssessmentScans.ts | 356 - .../databaseVulnerabilityAssessments.ts | 357 - sdk/sql/arm-sql/src/operations/databases.ts | 1121 +- .../src/operations/elasticPoolActivities.ts | 95 - .../elasticPoolDatabaseActivities.ts | 95 - .../src/operations/elasticPoolOperations.ts | 212 - .../arm-sql/src/operations/elasticPools.ts | 526 +- .../src/operations/encryptionProtectors.ts | 327 - .../extendedDatabaseBlobAuditingPolicies.ts | 176 - .../extendedServerBlobAuditingPolicies.ts | 161 - .../arm-sql/src/operations/failoverGroups.ts | 539 - .../arm-sql/src/operations/firewallRules.ts | 298 - .../src/operations/geoBackupPolicies.ts | 241 - sdk/sql/arm-sql/src/operations/index.ts | 91 +- .../src/operations/instanceFailoverGroups.ts | 467 - .../arm-sql/src/operations/instancePools.ts | 23 +- sdk/sql/arm-sql/src/operations/jobAgents.ts | 413 - .../arm-sql/src/operations/jobCredentials.ts | 367 - .../arm-sql/src/operations/jobExecutions.ts | 565 - .../src/operations/jobStepExecutions.ts | 241 - sdk/sql/arm-sql/src/operations/jobSteps.ts | 591 - .../src/operations/jobTargetExecutions.ts | 382 - .../arm-sql/src/operations/jobTargetGroups.ts | 367 - sdk/sql/arm-sql/src/operations/jobVersions.ts | 224 - sdk/sql/arm-sql/src/operations/jobs.ts | 367 - .../operations/longTermRetentionBackups.ts | 975 -- ...longTermRetentionManagedInstanceBackups.ts | 1010 ++ .../managedDatabaseRestoreDetails.ts | 7 +- .../managedDatabaseSecurityAlertPolicies.ts | 299 - .../managedDatabaseSensitivityLabels.ts | 55 +- ...aseVulnerabilityAssessmentRuleBaselines.ts | 295 - ...gedDatabaseVulnerabilityAssessmentScans.ts | 356 - ...managedDatabaseVulnerabilityAssessments.ts | 354 - .../src/operations/managedDatabases.ts | 20 +- .../managedInstanceAdministrators.ts | 330 - .../managedInstanceEncryptionProtectors.ts | 327 - .../src/operations/managedInstanceKeys.ts | 342 - ...nagedInstanceLongTermRetentionPolicies.ts} | 169 +- ...abases.ts => managedInstanceOperations.ts} | 90 +- .../managedInstanceTdeCertificates.ts | 97 - ...managedInstanceVulnerabilityAssessments.ts | 16 +- .../src/operations/managedInstances.ts | 28 +- ...atabaseBackupShortTermRetentionPolicies.ts | 362 - .../managedServerSecurityAlertPolicies.ts | 270 - sdk/sql/arm-sql/src/operations/operations.ts | 123 - .../operations/privateEndpointConnections.ts | 16 +- .../src/operations/privateLinkResources.ts | 204 - .../src/operations/recommendedElasticPools.ts | 220 - .../src/operations/recoverableDatabases.ts | 155 - .../src/operations/replicationLinks.ts | 367 - .../operations/restorableDroppedDatabases.ts | 158 - .../restorableDroppedManagedDatabases.ts | 204 - .../arm-sql/src/operations/restorePoints.ts | 309 - .../src/operations/sensitivityLabels.ts | 683 - .../serverAutomaticTuningOperations.ts | 161 - .../operations/serverAzureADAdministrators.ts | 161 +- .../operations/serverBlobAuditingPolicies.ts | 270 - .../operations/serverCommunicationLinks.ts | 291 - .../operations/serverConnectionPolicies.ts | 166 - .../src/operations/serverDnsAliases.ts | 401 - sdk/sql/arm-sql/src/operations/serverKeys.ts | 349 - .../operations/serverSecurityAlertPolicies.ts | 270 - .../arm-sql/src/operations/serverUsages.ts | 90 - .../serverVulnerabilityAssessments.ts | 16 +- sdk/sql/arm-sql/src/operations/servers.ts | 545 - .../src/operations/serviceObjectives.ts | 155 - .../src/operations/serviceTierAdvisors.ts | 165 - .../src/operations/subscriptionUsages.ts | 188 - sdk/sql/arm-sql/src/operations/syncAgents.ts | 520 - sdk/sql/arm-sql/src/operations/syncGroups.ts | 993 -- sdk/sql/arm-sql/src/operations/syncMembers.ts | 649 - .../arm-sql/src/operations/tdeCertificates.ts | 97 - .../transparentDataEncryptionActivities.ts | 96 - .../operations/transparentDataEncryptions.ts | 179 - sdk/sql/arm-sql/src/operations/usages.ts | 17 +- .../arm-sql/src/operations/virtualClusters.ts | 416 - .../src/operations/virtualNetworkRules.ts | 341 - sdk/sql/arm-sql/src/sqlManagementClient.ts | 177 +- .../arm-sql/src/sqlManagementClientContext.ts | 28 +- 186 files changed, 3632 insertions(+), 56935 deletions(-) delete mode 100644 sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/capabilitiesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts create mode 100644 sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/firewallRulesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobAgentsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobStepsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobVersionsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/jobsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts create mode 100644 sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts create mode 100644 sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts create mode 100644 sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/operationsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/replicationLinksMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/restorePointsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverKeysMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serverUsagesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serversMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/syncAgentsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/syncGroupsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/syncMembersMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/virtualClustersMappers.ts delete mode 100644 sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts delete mode 100644 sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/capabilities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/dataMaskingRules.ts delete mode 100644 sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts delete mode 100644 sdk/sql/arm-sql/src/operations/databaseOperations.ts rename sdk/sql/arm-sql/src/operations/{databaseBlobAuditingPolicies.ts => databaseSecurityAlertPolicies.ts} (58%) delete mode 100644 sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/databaseUsages.ts delete mode 100644 sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts delete mode 100644 sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts delete mode 100644 sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts delete mode 100644 sdk/sql/arm-sql/src/operations/encryptionProtectors.ts delete mode 100644 sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/failoverGroups.ts delete mode 100644 sdk/sql/arm-sql/src/operations/firewallRules.ts delete mode 100644 sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobAgents.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobCredentials.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobExecutions.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobStepExecutions.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobSteps.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobTargetGroups.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobVersions.ts delete mode 100644 sdk/sql/arm-sql/src/operations/jobs.ts delete mode 100644 sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts create mode 100644 sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts rename sdk/sql/arm-sql/src/operations/{managedBackupShortTermRetentionPolicies.ts => managedInstanceLongTermRetentionPolicies.ts} (55%) rename sdk/sql/arm-sql/src/operations/{recoverableManagedDatabases.ts => managedInstanceOperations.ts} (52%) delete mode 100644 sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/operations.ts delete mode 100644 sdk/sql/arm-sql/src/operations/privateLinkResources.ts delete mode 100644 sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts delete mode 100644 sdk/sql/arm-sql/src/operations/recoverableDatabases.ts delete mode 100644 sdk/sql/arm-sql/src/operations/replicationLinks.ts delete mode 100644 sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts delete mode 100644 sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts delete mode 100644 sdk/sql/arm-sql/src/operations/restorePoints.ts delete mode 100644 sdk/sql/arm-sql/src/operations/sensitivityLabels.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverDnsAliases.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverKeys.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serverUsages.ts delete mode 100644 sdk/sql/arm-sql/src/operations/servers.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serviceObjectives.ts delete mode 100644 sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts delete mode 100644 sdk/sql/arm-sql/src/operations/subscriptionUsages.ts delete mode 100644 sdk/sql/arm-sql/src/operations/syncAgents.ts delete mode 100644 sdk/sql/arm-sql/src/operations/syncGroups.ts delete mode 100644 sdk/sql/arm-sql/src/operations/syncMembers.ts delete mode 100644 sdk/sql/arm-sql/src/operations/tdeCertificates.ts delete mode 100644 sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts delete mode 100644 sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts delete mode 100644 sdk/sql/arm-sql/src/operations/virtualClusters.ts delete mode 100644 sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts diff --git a/sdk/sql/arm-sql/LICENSE.txt b/sdk/sql/arm-sql/LICENSE.txt index b73b4a1293c3..2d3163745319 100644 --- a/sdk/sql/arm-sql/LICENSE.txt +++ b/sdk/sql/arm-sql/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index 0cb82aed7cd6..8854a49afc6d 100644 --- a/sdk/sql/arm-sql/README.md +++ b/sdk/sql/arm-sql/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-sql ### How to use -#### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. +#### nodejs - client creation and get databaseSecurityAlertPolicies as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { SqlManagementClient } = require("@azure/arm-sql"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -38,7 +37,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const resourceGroupName = "testresourceGroupName"; const serverName = "testserverName"; const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + client.databaseSecurityAlertPolicies.get(resourceGroupName, serverName, databaseName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +46,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. +#### browser - Authentication, client creation and get databaseSecurityAlertPolicies as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -84,7 +83,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const resourceGroupName = "testresourceGroupName"; const serverName = "testserverName"; const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + client.databaseSecurityAlertPolicies.get(resourceGroupName, serverName, databaseName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/sql/arm-sql/rollup.config.js b/sdk/sql/arm-sql/rollup.config.js index 6615d95d1208..a044e7d33ee9 100644 --- a/sdk/sql/arm-sql/rollup.config.js +++ b/sdk/sql/arm-sql/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts deleted file mode 100644 index bf0add5c875c..000000000000 --- a/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BackupShortTermRetentionPolicyListResult, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts b/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts deleted file mode 100644 index 95ade0ba7550..000000000000 --- a/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - CloudError, - EditionCapability, - ElasticPoolEditionCapability, - ElasticPoolPerDatabaseMaxPerformanceLevelCapability, - ElasticPoolPerDatabaseMinPerformanceLevelCapability, - ElasticPoolPerformanceLevelCapability, - LicenseTypeCapability, - LocationCapabilities, - LogSizeCapability, - ManagedInstanceEditionCapability, - ManagedInstanceFamilyCapability, - ManagedInstanceVcoresCapability, - ManagedInstanceVersionCapability, - MaxSizeCapability, - MaxSizeRangeCapability, - PerformanceLevelCapability, - ServerVersionCapability, - ServiceObjectiveCapability, - Sku -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts b/sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts deleted file mode 100644 index 5f51959ea946..000000000000 --- a/sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - DataMaskingRuleListResult, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts b/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 208528b42b1d..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseBlobAuditingPolicyListResult, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts b/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts deleted file mode 100644 index be1316bb2af4..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseOperationListResult, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts new file mode 100644 index 000000000000..5bebfc3c6f12 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + BaseResource, + CloudError, + DatabaseSecurityAlertListResult, + DatabaseSecurityAlertPolicy, + InstancePool, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedInstance, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstanceVulnerabilityAssessment, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceIdentity, + SensitivityLabel, + ServerAzureADAdministrator, + ServerVulnerabilityAssessment, + Sku, + TrackedResource, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts b/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts deleted file mode 100644 index e44bd416354e..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - CloudError, - DatabaseUsage, - DatabaseUsageListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts deleted file mode 100644 index 8db2e4f353ef..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - VulnerabilityAssessmentScanRecordListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts deleted file mode 100644 index ddd16788a720..000000000000 --- a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentListResult, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databasesMappers.ts b/sdk/sql/arm-sql/src/models/databasesMappers.ts index d42e76c423cd..bfdc5cc83365 100644 --- a/sdk/sql/arm-sql/src/models/databasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databasesMappers.ts @@ -1,135 +1,11 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseListResult, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseUpdate, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExportRequest, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - ImportExtensionRequest, - ImportRequest, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - Metric, - MetricAvailability, - MetricDefinition, - MetricDefinitionListResult, - MetricListResult, - MetricName, - MetricValue, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - ResourceMoveDefinition, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + CloudError } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts deleted file mode 100644 index e208d357ba22..000000000000 --- a/sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolActivityListResult, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts deleted file mode 100644 index 9ec09441bb5b..000000000000 --- a/sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivityListResult, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts deleted file mode 100644 index 42b902e5b44b..000000000000 --- a/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolOperationListResult, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts index 0207ecc07c86..bfdc5cc83365 100644 --- a/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts +++ b/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts @@ -1,131 +1,11 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolListResult, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - ElasticPoolUpdate, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - Metric, - MetricAvailability, - MetricDefinition, - MetricDefinitionListResult, - MetricListResult, - MetricName, - MetricValue, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + CloudError } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts b/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts deleted file mode 100644 index dd2c39144b9d..000000000000 --- a/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - EncryptionProtectorListResult, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts b/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts deleted file mode 100644 index 5b702951c0c0..000000000000 --- a/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupListResult, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FailoverGroupUpdate, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts b/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts deleted file mode 100644 index c7b1cddbce7e..000000000000 --- a/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - FirewallRuleListResult, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts deleted file mode 100644 index 23569a186da1..000000000000 --- a/sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - GeoBackupPolicyListResult, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index 60b18ceff4a8..1d686848b1cf 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -39,80 +39,45 @@ export interface ProxyResource extends Resource { } /** - * A recoverable database + * A database security alert policy. */ -export interface RecoverableDatabase extends ProxyResource { - /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly edition?: string; - /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjective?: string; - /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly elasticPoolName?: string; - /** - * The last available backup date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastAvailableBackupDate?: Date; -} - -/** - * A restorable dropped database - */ -export interface RestorableDroppedDatabase extends ProxyResource { - /** - * The geo-location where the resource lives - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; +export interface DatabaseSecurityAlertPolicy extends ProxyResource { /** - * The name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been + * applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled' */ - readonly databaseName?: string; + state: SecurityAlertPolicyState; /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action */ - readonly edition?: string; + disabledAlerts?: string[]; /** - * The max size in bytes of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies an array of e-mail addresses to which the alert is sent. */ - readonly maxSizeBytes?: string; + emailAddresses?: string[]; /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies that the alert is sent to the account administrators. */ - readonly serviceLevelObjective?: string; + emailAccountAdmins?: boolean; /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. */ - readonly elasticPoolName?: string; + storageEndpoint?: string; /** - * The creation date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the identifier key of the Threat Detection audit storage account. */ - readonly creationDate?: Date; + storageAccountAccessKey?: string; /** - * The deletion date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the number of days to keep in the Threat Detection audit logs. */ - readonly deletionDate?: Date; + retentionDays?: number; /** - * The earliest restore date of the database (ISO8601 format) + * Specifies the UTC creation time of the policy. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly earliestRestoreDate?: Date; + readonly creationTime?: Date; } /** @@ -130,13747 +95,1563 @@ export interface TrackedResource extends Resource { } /** - * A request to check whether the specified name for a resource is available. + * A sensitivity label. */ -export interface CheckNameAvailabilityRequest { +export interface SensitivityLabel extends ProxyResource { /** - * The name whose availability is to be checked. + * The label name. */ - name: string; -} - -/** - * A response indicating whether the specified name for a resource is available. - */ -export interface CheckNameAvailabilityResponse { + labelName?: string; /** - * True if the name is available, otherwise false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The label ID. */ - readonly available?: boolean; + labelId?: string; /** - * A message explaining why the name is unavailable. Will be null if the name is available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The information type. */ - readonly message?: string; + informationType?: string; /** - * The name whose availability was checked. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The information type ID. */ - readonly name?: string; + informationTypeId?: string; /** - * The reason code explaining why the name is unavailable. Will be null if the name is available. - * Possible values include: 'Invalid', 'AlreadyExists' + * 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 reason?: CheckNameAvailabilityReason; + readonly isDisabled?: boolean; + /** + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + */ + rank?: SensitivityLabelRank; } /** - * A server secure connection policy. + * Properties of a Vulnerability Assessment recurring scans. */ -export interface ServerConnectionPolicy extends ProxyResource { +export interface VulnerabilityAssessmentRecurringScansProperties { /** - * Metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Recurring scans state. */ - readonly kind?: string; + isEnabled?: boolean; /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies that the schedule scan notification will be is sent to the subscription + * administrators. Default value: true. */ - readonly location?: string; + emailSubscriptionAdmins?: boolean; /** - * The server connection type. Possible values include: 'Default', 'Proxy', 'Redirect' + * Specifies an array of e-mail addresses to which the scan notification is sent. */ - connectionType: ServerConnectionType; + emails?: string[]; } /** - * Contains information about a database Threat Detection policy. + * A managed instance vulnerability assessment. */ -export interface DatabaseSecurityAlertPolicy extends ProxyResource { - /** - * The geo-location where the resource lives - */ - location?: string; - /** - * Resource kind. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint and - * storageAccountAccessKey are required. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies the semicolon-separated list of alerts that are disabled, or empty string to disable - * no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; - * Data_Exfiltration; Unsafe_Action. - */ - disabledAlerts?: string; - /** - * Specifies the semicolon-separated list of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string; +export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { /** - * Specifies that the alert is sent to the account administrators. Possible values include: - * 'Enabled', 'Disabled' + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). */ - emailAccountAdmins?: SecurityAlertPolicyEmailAccountAdmins; + storageContainerPath: string; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is - * required. + * A shared access signature (SAS Key) that has read and write access to the blob container + * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, + * StorageContainerSasKey is required. */ - storageEndpoint?: string; + storageContainerSasKey?: string; /** - * Specifies the identifier key of the Threat Detection audit storage account. If state is - * Enabled, storageAccountAccessKey is required. + * Specifies the identifier key of the storage account for vulnerability assessment scan results. + * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies whether to use the default server policy. Possible values include: 'Enabled', - * 'Disabled' + * The recurring scans settings */ - useServerDefault?: SecurityAlertPolicyUseServerDefault; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** + * An interface representing UpsertManagedServerOperationParameters. + */ +export interface UpsertManagedServerOperationParameters { + family?: string; + tier?: string; + vCores?: number; + storageSizeInGB?: number; } /** - * Represents a database data masking policy. + * The parameters of a managed instance operation. */ -export interface DataMaskingPolicy extends ProxyResource { +export interface ManagedInstanceOperationParametersPair { /** - * The state of the data masking policy. Possible values include: 'Disabled', 'Enabled' + * The current parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataMaskingState: DataMaskingState; + readonly currentParameters?: UpsertManagedServerOperationParameters; /** - * 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. + * The requested parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - exemptPrincipals?: string; + readonly requestedParameters?: UpsertManagedServerOperationParameters; +} + +/** + * An interface representing UpsertManagedServerOperationStep. + */ +export interface UpsertManagedServerOperationStep { + order?: number; + name?: string; /** - * The list of the application principals. This is a legacy parameter and is no longer used. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Possible values include: 'NotStarted', 'InProgress', 'SlowedDown', 'Completed', 'Failed', + * 'Canceled' */ - readonly applicationPrincipals?: string; + status?: Status; +} + +/** + * The steps of a managed instance operation. + */ +export interface ManagedInstanceOperationSteps { /** - * The masking level. This is a legacy parameter and is no longer used. + * The total number of operation steps. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maskingLevel?: string; + readonly totalSteps?: string; /** - * The location of the data masking policy. + * The number of current operation steps. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly currentStep?: number; /** - * The kind of data masking policy. Metadata, used for Azure portal. + * The operation steps list. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly stepsList?: UpsertManagedServerOperationStep[]; } /** - * Represents a database data masking rule. + * A managed instance operation. */ -export interface DataMaskingRule extends ProxyResource { +export interface ManagedInstanceOperation extends ProxyResource { + /** + * The name of the managed instance the operation is being performed on. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly managedInstanceName?: string; /** - * The rule Id. + * The name of operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dataMaskingRuleId?: string; + readonly operation?: string; /** - * The alias name. This is a legacy parameter and is no longer used. + * The friendly name of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - aliasName?: string; + readonly operationFriendlyName?: string; /** - * The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, - * tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the - * rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless - * of the provided value of ruleState. Possible values include: 'Disabled', 'Enabled' + * The percentage of the operation completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ruleState?: DataMaskingRuleState; + readonly percentComplete?: number; /** - * The schema name on which the data masking rule is applied. + * The operation start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schemaName: string; + readonly startTime?: Date; /** - * The table name on which the data masking rule is applied. + * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', + * 'CancelInProgress', 'Cancelled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tableName: string; + readonly state?: ManagementOperationState; /** - * The column name on which the data masking rule is applied. + * The operation error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - columnName: string; + readonly errorCode?: number; /** - * The masking function that is used for the data masking rule. Possible values include: - * 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' + * The operation error description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maskingFunction: DataMaskingFunction; + readonly errorDescription?: string; /** - * The numberFrom property of the masking rule. Required if maskingFunction is set to Number, - * otherwise this parameter will be ignored. + * The operation error severity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - numberFrom?: string; + readonly errorSeverity?: number; /** - * The numberTo property of the data masking rule. Required if maskingFunction is set to Number, - * otherwise this parameter will be ignored. + * Whether or not the error is a user error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - numberTo?: string; + readonly isUserError?: boolean; /** - * 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. + * The estimated completion time of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - prefixSize?: string; + readonly estimatedCompletionTime?: Date; /** - * 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. + * The operation description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - suffixSize?: string; + readonly description?: 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. + * Whether the operation can be cancelled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - replacementString?: string; + readonly isCancellable?: boolean; /** - * The location of the data masking rule. + * The operation parameters. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. + * The operation steps. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly operationSteps?: ManagedInstanceOperationSteps; } /** - * Represents a server firewall rule. + * A server vulnerability assessment. */ -export interface FirewallRule extends ProxyResource { +export interface ServerVulnerabilityAssessment extends ProxyResource { /** - * Kind of server that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). */ - readonly kind?: string; + storageContainerPath: string; /** - * Location of the server that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A shared access signature (SAS Key) that has read and write access to the blob container + * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, + * StorageContainerSasKey is required. */ - readonly location?: string; + storageContainerSasKey?: string; /** - * The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to - * represent all Azure-internal IP addresses. + * Specifies the identifier key of the storage account for vulnerability assessment scan results. + * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ - startIpAddress: string; + storageAccountAccessKey?: string; /** - * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to - * startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses. + * The recurring scans settings */ - endIpAddress: string; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** - * A database geo backup policy. + * An ARM Resource SKU. */ -export interface GeoBackupPolicy extends ProxyResource { +export interface Sku { /** - * The state of the geo backup policy. Possible values include: 'Disabled', 'Enabled' + * The name of the SKU, typically, a letter + Number code, e.g. P3. */ - state: GeoBackupPolicyState; + name: string; /** - * The storage type of the geo backup policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tier or edition of the particular SKU, e.g. Basic, Premium. */ - readonly storageType?: string; + tier?: string; /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Size of the particular SKU */ - readonly kind?: string; + size?: string; /** - * Backup policy location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly location?: string; + capacity?: number; } /** - * Import database parameters. + * An Azure SQL instance pool. */ -export interface ImportExtensionRequest { - /** - * The name of the extension. - */ - name?: string; +export interface InstancePool extends TrackedResource { /** - * The type of the extension. + * The name and tier of the SKU. */ - type?: string; + sku?: Sku; /** - * The type of the storage key to use. Possible values include: 'StorageAccessKey', - * 'SharedAccessKey' + * Resource ID of the subnet to place this instance pool in. */ - storageKeyType: StorageKeyType; + subnetId: string; /** - * The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a - * "?." + * Count of vCores belonging to this instance pool. */ - storageKey: string; + vCores: number; /** - * The storage uri to use. + * The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) + * and 'BasePrice' (without SQL license price). Possible values include: 'LicenseIncluded', + * 'BasePrice' */ - storageUri: string; + licenseType: InstancePoolLicenseType; +} + +/** + * An update to an Instance pool. + */ +export interface InstancePoolUpdate { /** - * The name of the SQL administrator. + * Resource tags. */ - administratorLogin: string; + tags?: { [propertyName: string]: string }; +} + +/** + * ARM Usage Name + */ +export interface Name { /** - * The password of the SQL administrator. + * Usage name value */ - administratorLoginPassword: string; + value?: string; /** - * The authentication type. Possible values include: 'SQL', 'ADPassword'. Default value: 'SQL'. + * Usage name localized value. */ - authenticationType?: AuthenticationType; + localizedValue?: string; } /** - * Response for Import/Export Get operation. + * ARM usage. */ -export interface ImportExportResponse extends ProxyResource { +export interface Usage { /** - * The request type of the operation. + * Resource ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestType?: string; + readonly id?: string; /** - * The request type of the operation. + * Resource name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestId?: string; + readonly name?: Name; /** - * The name of the server. + * Resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serverName?: string; + readonly type?: string; /** - * The name of the database. + * Usage unit. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseName?: string; + readonly unit?: string; /** - * The status message returned from the server. + * Usage current value. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: string; + readonly currentValue?: number; /** - * The operation status last modified time. + * Usage limit. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastModifiedTime?: string; + readonly limit?: number; /** - * The operation queued time. + * Usage requested limit. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly queuedTime?: string; + readonly requestedLimit?: number; +} + +/** + * Azure Active Directory identity configuration for a resource. + */ +export interface ResourceIdentity { /** - * The blob uri. + * The Azure Active Directory principal id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly blobUri?: 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. Possible values include: 'None', + * 'SystemAssigned', 'UserAssigned' + */ + type?: IdentityType; /** - * The error message returned from the server. + * The Azure Active Directory tenant id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorMessage?: string; + readonly tenantId?: string; } /** - * Export database parameters. + * An Azure SQL managed instance. */ -export interface ExportRequest { - /** - * The type of the storage key to use. Possible values include: 'StorageAccessKey', - * 'SharedAccessKey' - */ - storageKeyType: StorageKeyType; - /** - * The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a - * "?." - */ - storageKey: string; +export interface ManagedInstance extends TrackedResource { /** - * The storage uri to use. + * The Azure Active Directory identity of the managed instance. */ - storageUri: string; + identity?: ResourceIdentity; /** - * The name of the SQL administrator. + * Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 */ - administratorLogin: string; + sku?: Sku; /** - * The password of the SQL administrator. + * 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. Possible values include: + * 'Default', 'PointInTimeRestore' */ - administratorLoginPassword: string; + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * The authentication type. Possible values include: 'SQL', 'ADPassword'. Default value: 'SQL'. + * The fully qualified domain name of the managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - authenticationType?: AuthenticationType; -} - -/** - * Import database parameters. - */ -export interface ImportRequest extends ExportRequest { + readonly fullyQualifiedDomainName?: string; /** - * The name of the database to import. + * Administrator username for the managed instance. Can only be specified when the managed + * instance is being created (and is required for creation). */ - databaseName: string; + administratorLogin?: string; /** - * The edition for the database being created. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the - * SKU name, tier/edition, family, and capacity) that are available to your subscription in an - * Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: - * - * ```azurecli - * az sql db list-editions -l -o table - * ```` - * - * ```powershell - * Get-AzSqlServerServiceObjective -Location - * ```` - * . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', - * 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', - * 'Hyperscale' + * The administrator login password (required for managed instance creation). */ - edition: DatabaseEdition; + administratorLoginPassword?: string; /** - * The name of the service objective to assign to the database. Possible values include: - * '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' + * Subnet resource ID for the managed instance. */ - serviceObjectiveName: ServiceObjectiveName; + subnetId?: string; /** - * The maximum size for the newly imported database. + * The state of the managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxSizeBytes: string; -} - -/** - * Represents database metrics. - */ -export interface MetricValue { + readonly state?: string; /** - * The number of values for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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). Possible + * values include: 'LicenseIncluded', 'BasePrice' */ - readonly count?: number; + licenseType?: ManagedInstanceLicenseType; /** - * The average value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ - readonly average?: number; + vCores?: number; /** - * The max value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. */ - readonly maximum?: number; + storageSizeInGB?: number; /** - * The min value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collation of the managed instance. */ - readonly minimum?: number; + collation?: string; /** - * The metric timestamp (ISO-8601 format). + * The Dns Zone that the managed instance is in. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly timestamp?: Date; + readonly dnsZone?: string; /** - * The total value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource id of another managed instance whose DNS zone this managed instance will share + * after creation. */ - readonly total?: number; -} - -/** - * A database metric name. - */ -export interface MetricName { + dnsZonePartner?: string; /** - * The name of the database metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not the public data endpoint is enabled. */ - readonly value?: string; + publicDataEndpointEnabled?: boolean; /** - * The friendly name of the database metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the source managed instance associated with create operation of + * this instance. */ - readonly localizedValue?: string; -} - -/** - * Database metrics. - */ -export interface Metric { + sourceManagedInstanceId?: 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.** + * Specifies the point in time (ISO8601 format) of the source database that will be restored to + * create the new database. */ - readonly startTime?: Date; + restorePointInTime?: 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.** + * Connection type used for connecting to the instance. Possible values include: 'Proxy', + * 'Redirect', 'Default' */ - readonly endTime?: Date; + proxyOverride?: ManagedInstanceProxyOverride; /** - * 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.** + * 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". */ - readonly timeGrain?: string; + timezoneId?: string; /** - * The unit of the metric. Possible values include: 'count', 'bytes', 'seconds', 'percent', - * 'countPerSecond', 'bytesPerSecond' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The Id of the instance pool this managed server belongs to. */ - readonly unit?: UnitType; + instancePoolId?: string; /** - * The name information for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies maintenance configuration id to apply to this managed instance. */ - readonly name?: MetricName; + maintenanceConfigurationId?: string; /** - * The metric values for the specified time window and timestep. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - readonly metricValues?: MetricValue[]; + minimalTlsVersion?: string; } /** - * A metric availability value. + * An update request for an Azure SQL Database managed instance. */ -export interface MetricAvailability { +export interface ManagedInstanceUpdate { /** - * The length of retention for the database metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Managed instance sku */ - readonly retention?: string; + sku?: Sku; /** - * The granularity of the database metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. + * RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: + * 'Default', 'PointInTimeRestore' */ - readonly timeGrain?: string; -} - -/** - * A database metric definition. - */ -export interface MetricDefinition { + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * The name information for the metric. + * 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 name?: MetricName; + readonly fullyQualifiedDomainName?: string; /** - * The primary aggregation type defining how metric values are displayed. Possible values - * include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Administrator username for the managed instance. Can only be specified when the managed + * instance is being created (and is required for creation). */ - readonly primaryAggregationType?: PrimaryAggregationType; + administratorLogin?: string; /** - * The resource uri of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The administrator login password (required for managed instance creation). */ - readonly resourceUri?: string; + administratorLoginPassword?: string; /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Subnet resource ID for the managed instance. */ - readonly unit?: UnitDefinitionType; + subnetId?: string; /** - * The list of database metric availabilities for the metric. + * The state of the managed instance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricAvailabilities?: MetricAvailability[]; -} - -/** - * Represents recommended elastic pool metric. - */ -export interface RecommendedElasticPoolMetric { + 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). Possible + * values include: 'LicenseIncluded', 'BasePrice' + */ + licenseType?: ManagedInstanceLicenseType; /** - * The time of metric (ISO8601 format). + * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. */ - dateTime?: Date; + vCores?: number; /** - * Gets or sets the DTUs (Database Transaction Units). See - * https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/ + * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. */ - dtu?: number; + storageSizeInGB?: number; /** - * Gets or sets size in gigabytes. + * Collation of the managed instance. */ - sizeGB?: number; -} - -/** - * Represents a recommended elastic pool. - */ -export interface RecommendedElasticPool extends ProxyResource { + collation?: string; /** - * The edition of the recommended elastic pool. The ElasticPoolEdition enumeration contains all - * the valid editions. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', - * 'BusinessCritical' + * The Dns Zone that the managed instance is in. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseEdition?: ElasticPoolEdition; + readonly dnsZone?: string; /** - * The DTU for the recommended elastic pool. + * The resource id of another managed instance whose DNS zone this managed instance will share + * after creation. */ - dtu?: number; + dnsZonePartner?: string; /** - * The minimum DTU for the database. + * Whether or not the public data endpoint is enabled. */ - databaseDtuMin?: number; + publicDataEndpointEnabled?: boolean; /** - * The maximum DTU for the database. + * The resource identifier of the source managed instance associated with create operation of + * this instance. */ - databaseDtuMax?: number; + sourceManagedInstanceId?: string; /** - * Gets storage size in megabytes. + * Specifies the point in time (ISO8601 format) of the source database that will be restored to + * create the new database. */ - storageMB?: number; + restorePointInTime?: Date; /** - * The observation period start (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Connection type used for connecting to the instance. Possible values include: 'Proxy', + * 'Redirect', 'Default' */ - readonly observationPeriodStart?: Date; + proxyOverride?: ManagedInstanceProxyOverride; /** - * The observation period start (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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". */ - readonly observationPeriodEnd?: Date; + timezoneId?: string; /** - * Gets maximum observed DTU. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The Id of the instance pool this managed server belongs to. */ - readonly maxObservedDtu?: number; + instancePoolId?: string; /** - * Gets maximum observed storage in megabytes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies maintenance configuration id to apply to this managed instance. */ - readonly maxObservedStorageMB?: number; + maintenanceConfigurationId?: string; /** - * The list of databases in this pool. Expanded property - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ - readonly databases?: TrackedResource[]; + minimalTlsVersion?: string; /** - * The list of databases housed in the server. Expanded property - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags. */ - readonly metrics?: RecommendedElasticPoolMetric[]; + tags?: { [propertyName: string]: string }; } /** - * Represents a database replication link. + * A managed database restore details. */ -export interface ReplicationLink extends ProxyResource { - /** - * Location of the server that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** - * Legacy value indicating whether termination is allowed. Currently always returns true. + * Restore status. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isTerminationAllowed?: boolean; + readonly status?: string; /** - * Replication mode of this replication link. + * Current restoring file name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationMode?: string; + readonly currentRestoringFileName?: string; /** - * The name of the server hosting the partner database. + * Last restored file name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerServer?: string; + readonly lastRestoredFileName?: string; /** - * The name of the partner database. + * Last restored file time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerDatabase?: string; + readonly lastRestoredFileTime?: Date; /** - * The Azure Region of the partner database. + * Percent completed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerLocation?: string; + readonly percentCompleted?: number; /** - * The role of the database in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * List of unrestorable files. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly role?: ReplicationRole; + readonly unrestorableFiles?: string[]; /** - * The role of the partner database in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * Number of files detected. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerRole?: ReplicationRole; + readonly numberOfFilesDetected?: number; /** - * The start time for the replication link. + * Last uploaded file name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly startTime?: Date; + readonly lastUploadedFileName?: string; /** - * The percentage of seeding complete for the replication link. + * Last uploaded file time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly percentComplete?: number; + readonly lastUploadedFileTime?: Date; /** - * The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', - * 'CATCH_UP', 'SUSPENDED' + * The reason why restore is in Blocked state. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationState?: ReplicationState; + readonly blockReason?: string; } /** - * An server Active Directory Administrator. + * A managed database resource. */ -export interface ServerAzureADAdministrator extends ProxyResource { +export interface ManagedDatabase extends TrackedResource { /** - * The server administrator login value. + * Collation of the managed database. */ - login: string; + collation?: string; /** - * The server administrator Sid (Secure ID). + * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible', 'Restoring', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sid: string; + readonly status?: ManagedDatabaseStatus; /** - * The server Active Directory Administrator tenant id. + * Creation date of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tenantId: string; -} - -/** - * Server communication link. - */ -export interface ServerCommunicationLink extends ProxyResource { + readonly creationDate?: Date; /** - * The state. + * 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 state?: string; + readonly earliestRestorePoint?: Date; /** - * The name of the partner server. - */ - partnerServer: string; - /** - * Communication link location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Communication link kind. This property is used for Azure Portal metadata. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly kind?: string; -} - -/** - * Represents a database service objective. - */ -export interface ServiceObjective extends ProxyResource { + restorePointInTime?: Date; /** - * The name for the service objective. + * Geo paired region. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serviceObjectiveName?: string; + readonly defaultSecondaryLocation?: string; /** - * Gets whether the service level objective is the default service objective. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - readonly isDefault?: boolean; + catalogCollation?: CatalogCollationType; /** - * Gets whether the service level objective is a system service objective. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', + * 'RestoreLongTermRetentionBackup' */ - readonly isSystem?: boolean; + createMode?: ManagedDatabaseCreateMode; /** - * The description for the service level objective. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri + * of the storage container where backups for this restore are stored. */ - readonly description?: string; + storageContainerUri?: string; /** - * Gets whether the service level objective is enabled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the source database associated with create operation of this + * database. */ - readonly enabled?: boolean; -} - -/** - * Represents the activity on an elastic pool. - */ -export interface ElasticPoolActivity extends ProxyResource { + sourceDatabaseId?: string; /** - * The geo-location where the resource lives + * The restorable dropped database resource id to restore when creating this database. */ - location?: string; + restorableDroppedDatabaseId?: string; /** - * The time the operation finished (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. */ - readonly endTime?: Date; + storageContainerSasToken?: string; /** - * The error code if available. + * Instance Failover Group resource identifier that this managed database belongs to. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorCode?: number; + readonly failoverGroupId?: string; /** - * The error message if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - readonly errorMessage?: string; + recoverableDatabaseId?: string; /** - * The error severity if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the Long Term Retention backup to be used for restore of this managed database. */ - readonly errorSeverity?: number; + longTermRetentionBackupResourceId?: string; +} + +/** + * An managed database update. + */ +export interface ManagedDatabaseUpdate { /** - * The operation name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collation of the managed database. */ - readonly operation?: string; + collation?: string; /** - * The unique operation ID. + * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible', 'Restoring', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operationId?: string; + readonly status?: ManagedDatabaseStatus; /** - * The percentage complete if available. + * Creation date of the database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly percentComplete?: number; + readonly creationDate?: Date; /** - * The requested max DTU per database if available. + * Earliest restore point in time for point in time restore. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedDatabaseDtuMax?: number; + readonly earliestRestorePoint?: Date; /** - * The requested min DTU per database if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly requestedDatabaseDtuMin?: number; + restorePointInTime?: Date; /** - * The requested DTU for the pool if available. + * Geo paired region. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedDtu?: number; + readonly defaultSecondaryLocation?: string; /** - * The requested name for the elastic pool if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - readonly requestedElasticPoolName?: string; + catalogCollation?: CatalogCollationType; /** - * The requested storage limit for the pool in GB if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', + * 'RestoreLongTermRetentionBackup' */ - readonly requestedStorageLimitInGB?: number; + createMode?: ManagedDatabaseCreateMode; /** - * The name of the elastic pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri + * of the storage container where backups for this restore are stored. */ - readonly elasticPoolName?: string; + storageContainerUri?: 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.** + * The resource identifier of the source database associated with create operation of this + * database. */ - readonly serverName?: string; + sourceDatabaseId?: string; /** - * The time the operation started (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The restorable dropped database resource id to restore when creating this database. */ - readonly startTime?: Date; + restorableDroppedDatabaseId?: string; /** - * The current state of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. */ - readonly state?: string; + storageContainerSasToken?: string; /** - * The requested storage limit in MB. + * 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 requestedStorageLimitInMB?: number; + readonly failoverGroupId?: string; /** - * The requested per database DTU guarantee. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - readonly requestedDatabaseDtuGuarantee?: number; + recoverableDatabaseId?: string; /** - * The requested per database DTU cap. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the Long Term Retention backup to be used for restore of this managed database. */ - readonly requestedDatabaseDtuCap?: number; + longTermRetentionBackupResourceId?: string; /** - * The requested DTU guarantee. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags. */ - readonly requestedDtuGuarantee?: number; + tags?: { [propertyName: string]: string }; } /** - * Represents the activity on an elastic pool. + * Contains the information necessary to perform a complete database restore operation. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** - * The geo-location where the resource lives - */ - location?: string; - /** - * The database name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseName?: string; - /** - * The time the operation finished (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly endTime?: Date; - /** - * The error code if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorCode?: number; - /** - * The error message if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorMessage?: string; - /** - * The error severity if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorSeverity?: number; - /** - * The operation name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operation?: string; - /** - * The unique operation ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationId?: string; +export interface CompleteDatabaseRestoreDefinition { /** - * The percentage complete if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The last backup name to apply */ - readonly percentComplete?: number; + lastBackupName: string; +} + +/** + * An interface representing PrivateEndpointProperty. + */ +export interface PrivateEndpointProperty extends BaseResource { /** - * The name for the elastic pool the database is moving into if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource id of the private endpoint. */ - readonly requestedElasticPoolName?: string; + id?: string; +} + +/** + * An interface representing PrivateLinkServiceConnectionStateProperty. + */ +export interface PrivateLinkServiceConnectionStateProperty { /** - * The name of the current elastic pool the database is in if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The private link service connection status. */ - readonly currentElasticPoolName?: string; + status: string; /** - * The name of the current service objective if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The private link service connection description. */ - readonly currentServiceObjective?: string; + description: string; /** - * The name of the requested service objective if available. + * The actions required for private link service connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedServiceObjective?: string; + readonly actionsRequired?: string; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { /** - * 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.** + * Private endpoint which the connection belongs to. */ - readonly serverName?: string; + privateEndpoint?: PrivateEndpointProperty; /** - * The time the operation started (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Connection state of the private endpoint connection. */ - readonly startTime?: Date; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * The current state of the operation. + * State of the private endpoint connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly provisioningState?: string; } /** - * The impact of an operation, both in absolute and relative terms. + * Azure Active Directory administrator. */ -export interface OperationImpact { - /** - * The name of the impact dimension. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; +export interface ServerAzureADAdministrator extends ProxyResource { /** - * The unit in which estimated impact to dimension is measured. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Login name of the server administrator. */ - readonly unit?: string; + login: string; /** - * The absolute impact to dimension. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * SID (object ID) of the server administrator. */ - readonly changeValueAbsolute?: number; + sid: string; /** - * The relative impact to dimension (null if not applicable) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Tenant ID of the administrator. */ - readonly changeValueRelative?: number; + tenantId?: string; } /** - * Represents a database recommended index. + * A long term retention policy. */ -export interface RecommendedIndex extends ProxyResource { - /** - * The proposed index action. You can create a missing index, drop an unused index, or rebuild an - * existing index to improve its performance. Possible values include: 'Create', 'Drop', - * 'Rebuild' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly action?: RecommendedIndexAction; - /** - * The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', - * 'Verifying', 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', - * 'Success' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: RecommendedIndexState; +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { /** - * The UTC datetime showing when this resource was created (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The weekly retention policy for an LTR backup in an ISO 8601 format. */ - readonly created?: Date; + weeklyRetention?: string; /** - * The UTC datetime of when was this resource last changed (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The monthly retention policy for an LTR backup in an ISO 8601 format. */ - readonly lastModified?: Date; + monthlyRetention?: string; /** - * The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible - * values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The yearly retention policy for an LTR backup in an ISO 8601 format. */ - readonly indexType?: RecommendedIndexType; + yearlyRetention?: string; /** - * The schema where table to build index over resides - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The week of year to take the yearly backup in an ISO 8601 format. */ - readonly schema?: string; + weekOfYear?: number; +} + +/** + * A long term retention backup for a managed database. + */ +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * The table on which to build index. + * 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 table?: string; + readonly managedInstanceName?: string; /** - * Columns over which to build index + * The create time of the instance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly columns?: string[]; + readonly managedInstanceCreateTime?: Date; /** - * The list of column names to be included in the index + * 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 includedColumns?: string[]; + readonly databaseName?: string; /** - * The full build index script + * The delete time of the database * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly indexScript?: string; + readonly databaseDeletionTime?: Date; /** - * The estimated impact of doing recommended index action. + * The time the backup was taken * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly estimatedImpact?: OperationImpact[]; + readonly backupTime?: Date; /** - * The values reported after index action is complete. + * 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 reportedImpact?: OperationImpact[]; + readonly backupExpirationTime?: Date; } /** - * Represents a database transparent data encryption configuration. + * Optional Parameters. */ -export interface TransparentDataEncryption extends ProxyResource { - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { /** - * The status of the database transparent data encryption. Possible values include: 'Enabled', - * 'Disabled' + * An OData filter expression that filters elements in the collection. */ - status?: TransparentDataEncryptionStatus; + filter?: string; } /** - * A Slo Usage Metric. + * Optional Parameters. */ -export interface SloUsageMetric { - /** - * The serviceLevelObjective for SLO usage metric. Possible values include: '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' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjective?: ServiceObjectiveName; +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { /** - * The serviceLevelObjectiveId for SLO usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies whether to include disabled recommendations or not. */ - readonly serviceLevelObjectiveId?: string; + includeDisabledRecommendations?: boolean; + skipToken?: string; /** - * Gets or sets inRangeTimeRatio for SLO usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An OData filter expression that filters elements in the collection. */ - readonly inRangeTimeRatio?: number; + filter?: string; } /** - * Represents a Service Tier Advisor. + * Optional Parameters. */ -export interface ServiceTierAdvisor extends ProxyResource { - /** - * The observation period start (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observationPeriodStart?: Date; - /** - * The observation period start (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observationPeriodEnd?: Date; - /** - * The activeTimeRatio for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly activeTimeRatio?: number; - /** - * Gets or sets minDtu for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly minDtu?: number; - /** - * Gets or sets avgDtu for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly avgDtu?: number; - /** - * Gets or sets maxDtu for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxDtu?: number; - /** - * Gets or sets maxSizeInGB for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxSizeInGB?: number; - /** - * Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjectiveUsageMetrics?: SloUsageMetric[]; - /** - * Gets or sets currentServiceLevelObjective for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentServiceLevelObjective?: string; - /** - * Gets or sets currentServiceLevelObjectiveId for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentServiceLevelObjectiveId?: string; - /** - * Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly usageBasedRecommendationServiceLevelObjective?: string; - /** - * Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly usageBasedRecommendationServiceLevelObjectiveId?: string; - /** - * Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseSizeBasedRecommendationServiceLevelObjective?: string; - /** - * Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseSizeBasedRecommendationServiceLevelObjectiveId?: string; - /** - * Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly disasterPlanBasedRecommendationServiceLevelObjective?: string; - /** - * Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly disasterPlanBasedRecommendationServiceLevelObjectiveId?: string; - /** - * Gets or sets overallRecommendationServiceLevelObjective for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly overallRecommendationServiceLevelObjective?: string; +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { /** - * Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly overallRecommendationServiceLevelObjectiveId?: string; - /** - * Gets or sets confidence for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An OData filter expression that filters elements in the collection. */ - readonly confidence?: number; + filter?: string; } /** - * Represents a database transparent data encryption Scan. + * Optional Parameters. */ -export interface TransparentDataEncryptionActivity extends ProxyResource { +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies whether to include disabled recommendations or not. */ - readonly location?: string; + includeDisabledRecommendations?: boolean; + skipToken?: string; /** - * The status of the database. Possible values include: 'Encrypting', 'Decrypting' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An OData filter expression that filters elements in the collection. */ - readonly status?: TransparentDataEncryptionActivityStatus; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface UsagesListByInstancePoolOptionalParams extends msRest.RequestOptionsBase { /** - * The percent complete of the transparent data encryption scan for a database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Optional request parameter to include managed instance usages within the instance pool. */ - readonly percentComplete?: number; + expandChildren?: boolean; } /** - * Represents server metrics. + * Optional Parameters. */ -export interface ServerUsage { +export interface UsagesListByInstancePoolNextOptionalParams extends msRest.RequestOptionsBase { /** - * Name of the server usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Optional request parameter to include managed instance usages within the instance pool. */ - readonly name?: string; + expandChildren?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DatabasesFailoverOptionalParams extends msRest.RequestOptionsBase { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' */ - readonly resourceName?: string; + replicaType?: ReplicaType; +} + +/** + * Optional Parameters. + */ +export interface DatabasesBeginFailoverOptionalParams extends msRest.RequestOptionsBase { /** - * The metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' */ - readonly displayName?: string; + replicaType?: ReplicaType; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { /** - * The current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly currentValue?: number; + onlyLatestPerDatabase?: boolean; /** - * The current limit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly limit?: number; + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams extends msRest.RequestOptionsBase { /** - * The units of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly unit?: string; + onlyLatestPerDatabase?: boolean; /** - * The next reset time for the metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly nextResetTime?: Date; + databaseState?: DatabaseState; } /** - * The database usages. + * Optional Parameters. */ -export interface DatabaseUsage { - /** - * The name of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; +export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams extends msRest.RequestOptionsBase { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly resourceName?: string; + onlyLatestPerDatabase?: boolean; /** - * The usage metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly displayName?: string; + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams extends msRest.RequestOptionsBase { /** - * The current value of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly currentValue?: number; + onlyLatestPerDatabase?: boolean; /** - * The current limit of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly limit?: number; + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams extends msRest.RequestOptionsBase { /** - * The units of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly unit?: string; + onlyLatestPerDatabase?: boolean; /** - * The next reset time for the usage metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly nextResetTime?: Date; + databaseState?: DatabaseState; } /** - * Automatic tuning properties for individual advisors. + * Optional Parameters. */ -export interface AutomaticTuningOptions { +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams extends msRest.RequestOptionsBase { /** - * Automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default' + * Whether or not to only get the latest backup for each database. */ - desiredState?: AutomaticTuningOptionModeDesired; + onlyLatestPerDatabase?: boolean; /** - * Automatic tuning option actual state. Possible values include: 'Off', 'On' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly actualState?: AutomaticTuningOptionModeActual; + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { /** - * Reason code if desired and actual state are different. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly reasonCode?: number; + onlyLatestPerDatabase?: boolean; /** - * Reason description if desired and actual state are different. Possible values include: - * 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', - * 'QueryStoreReadOnly', 'NotSupported' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly reasonDesc?: AutomaticTuningDisabledReason; + databaseState?: DatabaseState; } /** - * Database-level Automatic Tuning. + * Optional Parameters. */ -export interface DatabaseAutomaticTuning extends ProxyResource { - /** - * Automatic tuning desired state. Possible values include: 'Inherit', 'Custom', 'Auto', - * 'Unspecified' - */ - desiredState?: AutomaticTuningMode; +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams extends msRest.RequestOptionsBase { /** - * Automatic tuning actual state. Possible values include: 'Inherit', 'Custom', 'Auto', - * 'Unspecified' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly actualState?: AutomaticTuningMode; + onlyLatestPerDatabase?: boolean; /** - * Automatic tuning options definition. + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - options?: { [propertyName: string]: AutomaticTuningOptions }; + databaseState?: DatabaseState; } /** - * The server encryption protector. + * Optional Parameters. */ -export interface EncryptionProtector extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends msRest.RequestOptionsBase { /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly location?: string; + onlyLatestPerDatabase?: boolean; /** - * Subregion of the encryption protector. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly subregion?: string; + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends msRest.RequestOptionsBase { /** - * The name of the server key. + * Whether or not to only get the latest backup for each database. */ - serverKeyName?: string; + onlyLatestPerDatabase?: boolean; /** - * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - serverKeyType: ServerKeyType; + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams extends msRest.RequestOptionsBase { /** - * The URI of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not to only get the latest backup for each database. */ - readonly uri?: string; + onlyLatestPerDatabase?: boolean; /** - * Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - readonly thumbprint?: string; + databaseState?: DatabaseState; } /** - * Read-write endpoint of the failover group instance. + * Optional Parameters. */ -export interface FailoverGroupReadWriteEndpoint { +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams extends msRest.RequestOptionsBase { /** - * Failover policy of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: - * 'Manual', 'Automatic' + * Whether or not to only get the latest backup for each database. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; + onlyLatestPerDatabase?: boolean; /** - * Grace period before failover with data loss is attempted for the read-write endpoint. If - * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' */ - failoverWithDataLossGracePeriodMinutes?: number; + databaseState?: DatabaseState; } /** - * Read-only endpoint of the failover group instance. + * An interface representing SqlManagementClientOptions. */ -export interface FailoverGroupReadOnlyEndpoint { - /** - * Failover policy of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' - */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +export interface SqlManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** - * Partner server information for the failover group. + * @interface + * A list of the database's security alert policies. + * @extends Array */ -export interface PartnerInfo { +export interface DatabaseSecurityAlertListResult extends Array { /** - * Resource identifier 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.** */ - id: string; + readonly nextLink?: string; +} + +/** + * @interface + * A list of sensitivity labels. + * @extends Array + */ +export interface SensitivityLabelListResult extends Array { /** - * Geo location 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 location?: string; + readonly nextLink?: string; +} + +/** + * @interface + * A list of the ManagedInstance's vulnerability assessments. + * @extends Array + */ +export interface ManagedInstanceVulnerabilityAssessmentListResult extends Array { /** - * Replication role of the partner server. Possible values include: 'Primary', 'Secondary' + * 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. + * @interface + * The response to a list managed instance operations request + * @extends Array */ -export interface FailoverGroup extends ProxyResource { +export interface ManagedInstanceOperationListResult extends Array { /** - * 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; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * Read-write endpoint of the failover group instance. - */ - readWriteEndpoint: FailoverGroupReadWriteEndpoint; - /** - * Read-only endpoint of the failover group instance. - */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; - /** - * Local replication role of the failover group instance. Possible values include: 'Primary', - * 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationRole?: FailoverGroupReplicationRole; - /** - * Replication state of the failover group instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationState?: string; - /** - * List of partner server information for the failover group. - */ - partnerServers: PartnerInfo[]; - /** - * List of databases in the failover group. - */ - databases?: string[]; -} - -/** - * A failover group update request. - */ -export interface FailoverGroupUpdate { - /** - * 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[]; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: 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 localized friendly form of the resource type related to this action/operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resource?: string; - /** - * The localized friendly name for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operation?: string; - /** - * The localized friendly description for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; + readonly nextLink?: string; } /** - * SQL REST API operation definition. + * @interface + * A list of the server's vulnerability assessments. + * @extends Array */ -export interface Operation { - /** - * 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 name?: string; - /** - * The localized display information for this particular operation / action. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly display?: OperationDisplay; - /** - * The intended executor of the operation. Possible values include: 'user', 'system' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly origin?: OperationOrigin; +export interface ServerVulnerabilityAssessmentListResult extends Array { /** - * Additional descriptions for the operation. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly properties?: { [propertyName: string]: any }; + readonly nextLink?: string; } /** - * A server key. + * @interface + * A list of Azure SQL instance pools. + * @extends Array */ -export interface ServerKey extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - */ - kind?: string; - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; +export interface InstancePoolListResult extends Array { /** - * Subregion of the server key. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly subregion?: string; - /** - * The server key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * The URI of the server key. - */ - uri?: string; - /** - * Thumbprint of the server key. - */ - thumbprint?: string; - /** - * The server key creation date. - */ - creationDate?: Date; + readonly nextLink?: string; } /** - * Azure Active Directory identity configuration for a resource. + * @interface + * A list of usages. + * @extends Array */ -export interface ResourceIdentity { - /** - * The Azure Active Directory principal id. - * **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. Possible values include: 'SystemAssigned' - */ - type?: IdentityType; +export interface UsageListResult extends Array { /** - * 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; } /** - * An Azure SQL Database server. + * @interface + * A list of managed instances. + * @extends Array */ -export interface Server extends TrackedResource { - /** - * The Azure Active Directory identity of the server. - */ - identity?: ResourceIdentity; - /** - * Kind of sql server. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Administrator username for the server. Once created it cannot be changed. - */ - administratorLogin?: string; - /** - * The administrator login password (required for server creation). - */ - administratorLoginPassword?: string; - /** - * The version of the server. - */ - version?: string; - /** - * The state of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; +export interface ManagedInstanceListResult extends Array { /** - * The fully qualified domain name of the server. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly fullyQualifiedDomainName?: string; + readonly nextLink?: string; } /** - * An update request for an Azure SQL Database server. + * @interface + * A list of managed databases. + * @extends Array */ -export interface ServerUpdate { - /** - * Administrator username for the server. Once created it cannot be changed. - */ - administratorLogin?: string; - /** - * The administrator login password (required for server creation). - */ - administratorLoginPassword?: string; - /** - * The version of the server. - */ - version?: string; - /** - * The state of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; +export interface ManagedDatabaseListResult extends Array { /** - * The fully qualified domain name of the server. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly fullyQualifiedDomainName?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; + readonly nextLink?: string; } /** - * An Azure SQL Database sync agent. + * @interface + * A list of private endpoint connections. + * @extends Array */ -export interface SyncAgent extends ProxyResource { - /** - * Name of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly syncAgentName?: string; - /** - * ARM resource id of the sync database in the sync agent. - */ - syncDatabaseId?: string; - /** - * Last alive time of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastAliveTime?: Date; - /** - * State of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: SyncAgentState; - /** - * 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 isUpToDate?: boolean; - /** - * Expiration time of the sync agent version. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly expiryTime?: Date; +export interface PrivateEndpointConnectionListResult extends Array { /** - * Version of the sync agent. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly version?: string; + readonly nextLink?: string; } /** - * Properties of an Azure SQL Database sync agent key. + * @interface + * A list of active directory administrators. + * @extends Array */ -export interface SyncAgentKeyProperties { +export interface AdministratorListResult extends Array { /** - * Key of sync agent. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly syncAgentKey?: string; + readonly nextLink?: string; } /** - * An Azure SQL Database sync agent linked database. + * @interface + * A list of long term retention policies. + * @extends Array */ -export interface SyncAgentLinkedDatabase extends ProxyResource { - /** - * Type of the sync agent linked database. Possible values include: 'AzureSqlDatabase', - * 'SqlServerDatabase' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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; - /** - * Database name of the sync agent linked database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseName?: string; +export interface ManagedInstanceLongTermRetentionPolicyListResult extends Array { /** - * User name of the sync agent linked database. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly userName?: string; + readonly nextLink?: string; } /** - * Properties of the sync database id. + * @interface + * A list of long term retention backups for managed database(s). + * @extends Array */ -export interface SyncDatabaseIdProperties { +export interface ManagedInstanceLongTermRetentionBackupListResult extends Array { /** - * ARM resource id of sync database. + * Link to retrieve next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly nextLink?: string; } /** - * Properties of the column in the table of database full schema. + * Defines values for SecurityAlertPolicyState. + * Possible values include: 'New', 'Enabled', 'Disabled' + * @readonly + * @enum {string} */ -export interface SyncFullSchemaTableColumn { - /** - * Data size of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly dataSize?: string; - /** - * Data type of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly dataType?: string; - /** - * Error id of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorId?: string; - /** - * If there is error in the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly hasError?: boolean; - /** - * 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 isPrimaryKey?: boolean; - /** - * Name of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Quoted name of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly quotedName?: string; -} +export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; /** - * Properties of the table in the database full schema. + * Defines values for SensitivityLabelRank. + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + * @readonly + * @enum {string} */ -export interface SyncFullSchemaTable { - /** - * 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 columns?: SyncFullSchemaTableColumn[]; - /** - * Error id of the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorId?: string; - /** - * If there is error in the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly hasError?: boolean; - /** - * Name of the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Quoted name of the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly quotedName?: string; -} +export type SensitivityLabelRank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; /** - * Properties of the database full schema. - */ -export interface SyncFullSchemaProperties { - /** - * List of tables in the database full schema. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tables?: SyncFullSchemaTable[]; - /** - * Last update time of the database schema. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastUpdateTime?: Date; -} - -/** - * Properties of an Azure SQL Database sync group log. - */ -export interface SyncGroupLogProperties { - /** - * Timestamp of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly timestamp?: Date; - /** - * Type of the sync group log. Possible values include: 'All', 'Error', 'Warning', 'Success' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: SyncGroupLogType; - /** - * Source of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly source?: string; - /** - * Details of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly details?: string; - /** - * TracingId of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tracingId?: string; - /** - * OperationStatus of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationStatus?: 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; -} - -/** - * 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 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; -} - -/** - * An Azure SQL Database sync group. - */ -export interface SyncGroup extends ProxyResource { - /** - * Sync interval of the sync group. - */ - interval?: number; - /** - * Last sync time of the sync group. - * **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. Possible values include: 'HubWin', 'MemberWin' - */ - 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. Possible values include: 'NotReady', 'Error', 'Warning', - * 'Progressing', 'Good' - * **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; -} - -/** - * An Azure SQL Database sync member. - */ -export interface SyncMember extends ProxyResource { - /** - * Database type of the sync member. Possible values include: 'AzureSqlDatabase', - * 'SqlServerDatabase' - */ - 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; - /** - * 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. Possible values include: 'Bidirectional', - * 'OneWayMemberToHub', 'OneWayHubToMember' - */ - syncDirection?: SyncDirection; - /** - * Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', - * 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', - * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', - * 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', - * 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly syncState?: SyncMemberState; -} - -/** - * Usage Metric of a Subscription in a Location. - */ -export interface SubscriptionUsage extends ProxyResource { - /** - * User-readable name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * Current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentValue?: number; - /** - * Boundary value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly limit?: number; - /** - * Unit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: string; -} - -/** - * 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; - /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. - */ - family?: string; - /** - * List of resources in this virtual cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly childResources?: string[]; -} - -/** - * An update request for an Azure SQL Database virtual cluster. - */ -export interface VirtualClusterUpdate { - /** - * Subnet resource ID for the virtual cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly subnetId?: string; - /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. - */ - family?: string; - /** - * List of resources in this virtual cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly childResources?: string[]; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: 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; - /** - * Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', - * 'Deleting', 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: VirtualNetworkRuleState; -} - -/** - * An extended database blob auditing policy. - */ -export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { - /** - * Specifies condition of where clause when creating an audit. - */ - predicateExpression?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * Specifies the blob storage subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; -} - -/** - * An extended server blob auditing policy. - */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { - /** - * Specifies condition of where clause when creating an audit. - */ - predicateExpression?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * Specifies the blob storage subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; -} - -/** - * A server blob auditing policy. - */ -export interface ServerBlobAuditingPolicy extends ProxyResource { - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * Specifies the blob storage subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; -} - -/** - * A database blob auditing policy. - */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { - /** - * Resource kind. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * Specifies the blob storage subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - */ - isAzureMonitorTargetEnabled?: boolean; -} - -/** - * Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. - */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { - /** - * The rule baseline result - */ - result: string[]; -} - -/** - * A database vulnerability assessment rule baseline. - */ -export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { - /** - * The rule baseline result - */ - baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** - * Properties of a Vulnerability Assessment recurring scans. - */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** - * Recurring scans state. - */ - isEnabled?: boolean; - /** - * Specifies that the schedule scan notification will be is sent to the subscription - * administrators. Default value: true. - */ - emailSubscriptionAdmins?: boolean; - /** - * Specifies an array of e-mail addresses to which the scan notification is sent. - */ - emails?: string[]; -} - -/** - * A 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 read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * An ARM Resource SKU. - */ -export interface Sku { - /** - * The name of the SKU, typically, a letter + Number code, e.g. P3. - */ - name: string; - /** - * The tier or edition of the particular SKU, e.g. Basic, Premium. - */ - tier?: string; - /** - * Size of the particular SKU - */ - size?: string; - /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. - */ - family?: string; - /** - * Capacity of the particular SKU. - */ - capacity?: number; -} - -/** - * An Azure SQL job agent. - */ -export interface JobAgent extends TrackedResource { - /** - * The name and tier of the SKU. - */ - sku?: Sku; - /** - * Resource ID of the database to store job metadata in. - */ - databaseId: string; - /** - * The state of the job agent. Possible values include: 'Creating', 'Ready', 'Updating', - * 'Deleting', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: JobAgentState; -} - -/** - * An update to an Azure SQL job agent. - */ -export interface JobAgentUpdate { - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * A stored credential that can be used by a job to connect to target databases. - */ -export interface JobCredential extends ProxyResource { - /** - * The credential user name. - */ - username: string; - /** - * The credential password. - */ - password: string; -} - -/** - * The target that a job execution is executed on. - */ -export interface JobExecutionTarget { - /** - * The type of the target. Possible values include: 'TargetGroup', 'SqlDatabase', - * 'SqlElasticPool', 'SqlShardMap', 'SqlServer' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: JobTargetType; - /** - * The server name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serverName?: string; - /** - * The database name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseName?: string; -} - -/** - * An execution of a job - */ -export interface JobExecution extends ProxyResource { - /** - * The job version number. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly jobVersion?: number; - /** - * The job step name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly stepName?: string; - /** - * The job step id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly stepId?: number; - /** - * The unique identifier of the job execution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly jobExecutionId?: string; - /** - * The detailed state of the job execution. Possible values include: 'Created', 'InProgress', - * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', - * 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lifecycle?: JobExecutionLifecycle; - /** - * The ARM provisioning state of the job execution. Possible values include: 'Created', - * 'InProgress', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The time that the job execution was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createTime?: Date; - /** - * The time that the job execution started. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The time that the job execution completed. - * **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; - /** - * Start time of the current attempt. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentAttemptStartTime?: Date; - /** - * The last status or error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastMessage?: string; - /** - * The target that this execution is executed on. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly target?: JobExecutionTarget; -} - -/** - * Scheduling properties of a job. - */ -export interface JobSchedule { - /** - * Schedule start time. Default value: new Date('0001-01-01T00:00:00Z'). - */ - startTime?: Date; - /** - * Schedule end time. Default value: new Date('9999-12-31T11:59:59Z'). - */ - endTime?: Date; - /** - * Schedule interval type. Possible values include: 'Once', 'Recurring'. Default value: 'Once'. - */ - type?: JobScheduleType; - /** - * Whether or not the schedule is enabled. - */ - enabled?: boolean; - /** - * Value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 - * duration format. - */ - interval?: string; -} - -/** - * A job. - */ -export interface Job extends ProxyResource { - /** - * User-defined description of the job. Default value: ''. - */ - description?: string; - /** - * The job version number. - * **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; -} - -/** - * The action to be executed by a job step. - */ -export interface JobStepAction { - /** - * Type of action being executed by the job step. Possible values include: 'TSql'. Default value: - * 'TSql'. - */ - type?: JobStepActionType; - /** - * The source of the action to execute. Possible values include: 'Inline'. Default value: - * 'Inline'. - */ - 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. Possible values include: 'SqlDatabase'. Default value: - * 'SqlDatabase'. - */ - 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. Default value: 'dbo'. - */ - 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. Default value: 43200. - */ - timeoutSeconds?: number; - /** - * Maximum number of times the job step will be reattempted if the first attempt fails. Default - * value: 10. - */ - retryAttempts?: number; - /** - * Initial delay between retries for job step execution. Default value: 1. - */ - initialRetryIntervalSeconds?: number; - /** - * The maximum amount of time to wait between retries for job step execution. Default value: 120. - */ - maximumRetryIntervalSeconds?: number; - /** - * The backoff multiplier for the time between retries. Default value: 2. - */ - retryIntervalBackoffMultiplier?: 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 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. Possible values include: 'Include', - * 'Exclude'. Default value: 'Include'. - */ - membershipType?: JobTargetGroupMembershipType; - /** - * The target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', - * 'SqlShardMap', 'SqlServer' - */ - 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 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 backup. - */ -export interface LongTermRetentionBackup extends ProxyResource { - /** - * The server name that the backup database belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serverName?: string; - /** - * The create time of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serverCreateTime?: 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.** - */ - readonly databaseName?: string; - /** - * The delete time of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseDeletionTime?: Date; - /** - * The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly backupTime?: Date; - /** - * 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 backupExpirationTime?: Date; -} - -/** - * A long term retention policy. - */ -export interface BackupLongTermRetentionPolicy 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 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; -} - -/** - * Automatic tuning properties for individual advisors. - */ -export interface AutomaticTuningServerOptions { - /** - * Automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default' - */ - desiredState?: AutomaticTuningOptionModeDesired; - /** - * Automatic tuning option actual state. Possible values include: 'Off', 'On' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly actualState?: AutomaticTuningOptionModeActual; - /** - * 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 reasonCode?: number; - /** - * Reason description if desired and actual state are different. Possible values include: - * 'Default', 'Disabled', 'AutoConfigured' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reasonDesc?: AutomaticTuningServerReason; -} - -/** - * Server-level Automatic Tuning. - */ -export interface ServerAutomaticTuning extends ProxyResource { - /** - * Automatic tuning desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' - */ - desiredState?: AutomaticTuningServerMode; - /** - * Automatic tuning actual state. Possible values include: 'Custom', 'Auto', 'Unspecified' - * **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 }; -} - -/** - * A server DNS alias. - */ -export interface ServerDnsAlias extends ProxyResource { - /** - * The fully qualified DNS record for alias - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly azureDnsRecord?: string; -} - -/** - * A server 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 server security alert policy. - */ -export interface ServerSecurityAlertPolicy extends ProxyResource { - /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action - */ - disabledAlerts?: string[]; - /** - * Specifies an array of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * Specifies that the alert is sent to the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the Threat Detection audit storage account. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; -} - -/** - * A restorable dropped managed database resource. - */ -export interface RestorableDroppedManagedDatabase extends TrackedResource { - /** - * The name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseName?: string; - /** - * The creation date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * The deletion date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly deletionDate?: Date; - /** - * The earliest restore date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestoreDate?: Date; -} - -/** - * Database restore points. - */ -export interface RestorePoint extends ProxyResource { - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorePointType?: RestorePointType; - /** - * The earliest time to which this database can be restored - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestoreDate?: Date; - /** - * The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorePointCreationDate?: Date; - /** - * The label of restore point for backup request by user - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorePointLabel?: string; -} - -/** - * Contains the information necessary to perform a create database restore point operation. - */ -export interface CreateDatabaseRestorePointDefinition { - /** - * The restore point label to apply - */ - restorePointLabel: string; -} - -/** - * 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. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action - */ - disabledAlerts?: string[]; - /** - * Specifies an array of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * Specifies that the alert is sent to the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the Threat Detection audit storage account. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; -} - -/** - * A managed server security alert policy. - */ -export interface ManagedServerSecurityAlertPolicy 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. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action - */ - disabledAlerts?: string[]; - /** - * Specifies an array of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * Specifies that the alert is sent to the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the Threat Detection audit storage account. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; -} - -/** - * A sensitivity label. - */ -export interface SensitivityLabel extends ProxyResource { - /** - * The label name. - */ - labelName?: string; - /** - * The label ID. - */ - labelId?: string; - /** - * The information type. - */ - informationType?: string; - /** - * The information type ID. - */ - informationTypeId?: string; - /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. - * Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or - * not. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isDisabled?: boolean; -} - -/** - * An Azure SQL managed instance administrator. - */ -export interface ManagedInstanceAdministrator extends ProxyResource { - /** - * Login name of the managed instance administrator. - */ - login: string; - /** - * SID (object ID) of the managed instance administrator. - */ - sid: string; - /** - * Tenant ID of the managed instance administrator. - */ - tenantId?: string; -} - -/** - * A database 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; - /** - * The percentage of the operation completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentComplete?: number; - /** - * The name of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serverName?: string; - /** - * The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: ManagementOperationState; - /** - * The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorCode?: number; - /** - * The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorDescription?: string; - /** - * The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorSeverity?: number; - /** - * Whether or not the error is a user error. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isUserError?: boolean; - /** - * The estimated completion time of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly estimatedCompletionTime?: Date; - /** - * The operation description. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * Whether the operation can be cancelled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isCancellable?: boolean; -} - -/** - * 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.** - */ - 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?: string; - /** - * 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 maximum size capability. - */ -export interface MaxSizeCapability { - /** - * 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 limit?: number; - /** - * The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', - * 'Terabytes', 'Petabytes' - * **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 { - /** - * 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 limit?: number; - /** - * The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', - * 'Terabytes', 'Petabytes', 'Percent' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: LogSizeUnit; -} - -/** - * 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; - /** - * Maximum value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxValue?: MaxSizeCapability; - /** - * 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 scaleSize?: MaxSizeCapability; - /** - * Size of transaction log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly logSize?: LogSizeCapability; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 performance level capability. - */ -export interface PerformanceLevelCapability { - /** - * Performance level value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: number; - /** - * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' - * **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 { - /** - * License type identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 { - /** - * The unique ID of the service objective. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The service objective name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The list of supported maximum database sizes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; - /** - * The performance level. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly performanceLevel?: PerformanceLevelCapability; - /** - * 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[]; - /** - * The included (free) max size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly includedMaxSize?: MaxSizeCapability; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 edition capability. - */ -export interface EditionCapability { - /** - * The database edition name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * 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 supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; - /** - * 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 zoneRedundant?: boolean; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 minimum per-database performance level capability. - */ -export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { - /** - * The minimum performance level per database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly limit?: number; - /** - * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: PerformanceLevelUnit; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 max per-database performance level capability. - */ -export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { - /** - * The maximum performance level per database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly limit?: number; - /** - * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: PerformanceLevelUnit; - /** - * The list of supported min database performance levels. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 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; - /** - * 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[]; - /** - * The maximum number of databases supported. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxDatabaseCount?: number; - /** - * 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 includedMaxSize?: MaxSizeCapability; - /** - * The list of supported max sizes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; - /** - * The list of supported per database max sizes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; - /** - * 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 supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 elastic pool edition capability. - */ -export interface ElasticPoolEditionCapability { - /** - * The elastic pool edition name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * 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 supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; - /** - * 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 zoneRedundant?: boolean; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 server capability - */ -export interface ServerVersionCapability { - /** - * The server version name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The list of supported database editions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedEditions?: EditionCapability[]; - /** - * The list of supported elastic pool editions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 managed instance virtual cores capability. - */ -export interface ManagedInstanceVcoresCapability { - /** - * The virtual cores identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The virtual cores value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: number; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 managed server family capability. - */ -export interface ManagedInstanceFamilyCapability { - /** - * Family name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * SKU name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly sku?: string; - /** - * List of supported license types. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; - /** - * List of supported virtual cores values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; - /** - * Included size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly includedMaxSize?: MaxSizeCapability; - /** - * Storage size ranges. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedStorageSizes?: MaxSizeRangeCapability[]; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 managed server capability - */ -export interface ManagedInstanceEditionCapability { - /** - * The managed server version name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The supported families. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 managed instance capability - */ -export interface ManagedInstanceVersionCapability { - /** - * The server version name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The list of supported managed instance editions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportedEditions?: ManagedInstanceEditionCapability[]; - /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 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[]; - /** - * 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 status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **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 database resource. - */ -export interface Database extends TrackedResource { - /** - * The database SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the - * SKU name, tier/edition, family, and capacity) that are available to your subscription in an - * Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: - * - * ```azurecli - * az sql db list-editions -l -o table - * ```` - * - * ```powershell - * Get-AzSqlServerServiceObjective -Location - * ```` - */ - sku?: Sku; - /** - * Kind of database. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Resource that manages the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly managedBy?: string; - /** - * 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. Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', - * 'Restore', 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - */ - 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. Possible values include: - * 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' - */ - sampleName?: SampleName; - /** - * The resource identifier of the elastic pool containing this database. - */ - elasticPoolId?: string; - /** - * The resource identifier of the source database associated with create operation of this - * database. - */ - sourceDatabaseId?: string; - /** - * The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', - * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', - * 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', - * 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: DatabaseStatus; - /** - * The ID of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseId?: string; - /** - * The creation date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * The current service level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentServiceObjectiveName?: string; - /** - * The requested service level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requestedServiceObjectiveName?: string; - /** - * The default secondary region for this database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * Failover Group resource identifier that this database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failoverGroupId?: string; - /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. - */ - restorePointInTime?: Date; - /** - * Specifies the time that the database was deleted. - */ - sourceDatabaseDeletionDate?: Date; - /** - * The resource identifier of the recovery point associated with create operation of this - * database. - */ - recoveryServicesRecoveryPointId?: string; - /** - * The resource identifier of the long term retention backup associated with create operation of - * this database. - */ - longTermRetentionBackupResourceId?: string; - /** - * The resource identifier of the recoverable database associated with create operation of this - * database. - */ - recoverableDatabaseId?: string; - /** - * The resource identifier of the restorable dropped database associated with create operation of - * this database. - */ - restorableDroppedDatabaseId?: string; - /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - 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. Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType?: DatabaseLicenseType; - /** - * The max log size for this database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxLogSizeBytes?: number; - /** - * This records the earliest start date and time that restore is available for this database - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestoreDate?: Date; - /** - * If enabled, connections that have application intent set to readonly in their connection - * string may be routed to a readonly secondary replica. This property is only settable for - * Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled' - */ - readScale?: DatabaseReadScale; - /** - * The number of readonly secondary replicas associated with the database to which readonly - * application intent connections may be routed. This property is only settable for Hyperscale - * edition databases. - */ - readReplicaCount?: number; - /** - * The name and tier of the SKU. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentSku?: Sku; - /** - * Time in minutes after which database is automatically paused. A value of -1 means that - * automatic pause is disabled - */ - autoPauseDelay?: number; - /** - * Minimal capacity that database will always have allocated, if not paused - */ - minCapacity?: number; - /** - * The date when database was paused by user configuration or action (ISO8601 format). Null if - * the database is ready. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly pausedDate?: Date; - /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if - * the database is paused. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resumedDate?: Date; -} - -/** - * A database resource. - */ -export interface DatabaseUpdate { - /** - * The name and tier of the SKU. - */ - sku?: Sku; - /** - * 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. Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', - * 'Restore', 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - */ - 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. Possible values include: - * 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' - */ - sampleName?: SampleName; - /** - * The resource identifier of the elastic pool containing this database. - */ - elasticPoolId?: string; - /** - * The resource identifier of the source database associated with create operation of this - * database. - */ - sourceDatabaseId?: string; - /** - * The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', - * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', - * 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', - * 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: DatabaseStatus; - /** - * The ID of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseId?: string; - /** - * The creation date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * The current service level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentServiceObjectiveName?: string; - /** - * The requested service level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requestedServiceObjectiveName?: string; - /** - * The default secondary region for this database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * Failover Group resource identifier that this database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failoverGroupId?: string; - /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. - */ - restorePointInTime?: Date; - /** - * Specifies the time that the database was deleted. - */ - sourceDatabaseDeletionDate?: Date; - /** - * The resource identifier of the recovery point associated with create operation of this - * database. - */ - recoveryServicesRecoveryPointId?: string; - /** - * The resource identifier of the long term retention backup associated with create operation of - * this database. - */ - longTermRetentionBackupResourceId?: string; - /** - * The resource identifier of the recoverable database associated with create operation of this - * database. - */ - recoverableDatabaseId?: string; - /** - * The resource identifier of the restorable dropped database associated with create operation of - * this database. - */ - restorableDroppedDatabaseId?: string; - /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - 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. Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType?: DatabaseLicenseType; - /** - * The max log size for this database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxLogSizeBytes?: number; - /** - * This records the earliest start date and time that restore is available for this database - * (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestoreDate?: Date; - /** - * If enabled, connections that have application intent set to readonly in their connection - * string may be routed to a readonly secondary replica. This property is only settable for - * Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled' - */ - readScale?: DatabaseReadScale; - /** - * The number of readonly secondary replicas associated with the database to which readonly - * application intent connections may be routed. This property is only settable for Hyperscale - * edition databases. - */ - readReplicaCount?: number; - /** - * The name and tier of the SKU. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentSku?: Sku; - /** - * Time in minutes after which database is automatically paused. A value of -1 means that - * automatic pause is disabled - */ - autoPauseDelay?: number; - /** - * Minimal capacity that database will always have allocated, if not paused - */ - minCapacity?: number; - /** - * The date when database was paused by user configuration or action (ISO8601 format). Null if - * the database is ready. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly pausedDate?: Date; - /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if - * the database is paused. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resumedDate?: Date; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * Contains the information necessary to perform a resource move (rename). - */ -export interface ResourceMoveDefinition { - /** - * The target ID for the resource - */ - id: string; -} - -/** - * Per database settings of an elastic pool. - */ -export interface ElasticPoolPerDatabaseSettings { - /** - * The minimum capacity all databases are guaranteed. - */ - minCapacity?: number; - /** - * The maximum capacity any one database can consume. - */ - maxCapacity?: number; -} - -/** - * An elastic pool. - */ -export interface ElasticPool extends TrackedResource { - /** - * The elastic pool SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the - * SKU name, tier/edition, family, and capacity) that are available to your subscription in an - * Azure region, use the `Capabilities_ListByLocation` REST API or the following command: - * - * ```azurecli - * az sql elastic-pool list-editions -l -o table - * ```` - */ - sku?: Sku; - /** - * Kind of elastic pool. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * The state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: ElasticPoolState; - /** - * The creation date of the elastic pool (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * The storage limit for the database elastic pool in bytes. - */ - maxSizeBytes?: number; - /** - * The per database settings for the elastic pool. - */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** - * Whether or not this elastic pool is zone redundant, which means the replicas of this elastic - * pool will be spread across multiple availability zones. - */ - zoneRedundant?: boolean; - /** - * The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType?: ElasticPoolLicenseType; -} - -/** - * An elastic pool update. - */ -export interface ElasticPoolUpdate { - sku?: Sku; - /** - * The storage limit for the database elastic pool in bytes. - */ - maxSizeBytes?: number; - /** - * The per database settings for the elastic pool. - */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; - /** - * Whether or not this elastic pool is zone redundant, which means the replicas of this elastic - * pool will be spread across multiple availability zones. - */ - zoneRedundant?: boolean; - /** - * The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType?: ElasticPoolLicenseType; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: 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 vulnerability assessment scan record. - */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { - /** - * The scan ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly scanId?: string; - /** - * The scan trigger type. Possible values include: 'OnDemand', 'Recurring' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; - /** - * The scan status. Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: VulnerabilityAssessmentScanState; - /** - * The scan start time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The scan end time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly endTime?: Date; - /** - * The scan errors. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errors?: VulnerabilityAssessmentScanError[]; - /** - * The scan results storage container path. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageContainerPath?: string; - /** - * The number of failed security checks. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly numberOfFailedSecurityChecks?: number; -} - -/** - * A database Vulnerability Assessment scan export resource. - */ -export interface DatabaseVulnerabilityAssessmentScansExport extends ProxyResource { - /** - * Location of the exported report (e.g. - * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly exportedReportLocation?: string; -} - -/** - * 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. Possible values include: - * 'Manual', 'Automatic' - */ - 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. Possible values include: - * 'Disabled', 'Enabled' - */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** - * Partner region information for the failover group. - */ -export interface PartnerRegionInfo { - /** - * Geo location of the partner managed instances. - */ - location?: string; - /** - * Replication role of the partner managed instances. Possible values include: 'Primary', - * 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; -} - -/** - * Pairs of Managed Instances in the failover group. - */ -export interface ManagedInstancePairInfo { - /** - * Id of Primary Managed Instance in pair. - */ - primaryManagedInstanceId?: string; - /** - * Id of Partner Managed Instance in pair. - */ - partnerManagedInstanceId?: string; -} - -/** - * An instance failover group. - */ -export interface InstanceFailoverGroup extends ProxyResource { - /** - * Read-write endpoint of the failover group instance. - */ - readWriteEndpoint: InstanceFailoverGroupReadWriteEndpoint; - /** - * Read-only endpoint of the failover group instance. - */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; - /** - * Local replication role of the failover group instance. Possible values include: 'Primary', - * 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; - /** - * Replication state of the failover group instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationState?: string; - /** - * Partner region information for the failover group. - */ - partnerRegions: PartnerRegionInfo[]; - /** - * List of managed instance pairs in the failover group. - */ - managedInstancePairs: ManagedInstancePairInfo[]; -} - -/** - * 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; -} - -/** - * 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 key. - */ -export interface ManagedInstanceKey extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * The key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. - */ - uri?: string; - /** - * Thumbprint of the key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly thumbprint?: string; - /** - * The key creation date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; -} - -/** - * The managed instance encryption protector. - */ -export interface ManagedInstanceEncryptionProtector extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * The name of the managed instance key. - */ - serverKeyName?: string; - /** - * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * The URI of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly uri?: string; - /** - * Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly thumbprint?: string; -} - -/** - * A recoverable managed database resource. - */ -export interface RecoverableManagedDatabase extends ProxyResource { - /** - * The last available backup date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastAvailableBackupDate?: string; -} - -/** - * A 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 read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * A server vulnerability assessment. - */ -export interface ServerVulnerabilityAssessment extends ProxyResource { - /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). - */ - storageContainerPath: string; - /** - * A shared access signature (SAS Key) that has read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * 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). Possible values include: 'LicenseIncluded', - * 'BasePrice' - */ - licenseType: InstancePoolLicenseType; -} - -/** - * An update to an Instance pool. - */ -export interface InstancePoolUpdate { - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * ARM Usage Name - */ -export interface Name { - /** - * Usage name value - */ - value?: string; - /** - * Usage name localized value. - */ - localizedValue?: string; -} - -/** - * 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; - /** - * Resource name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: Name; - /** - * Resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Usage unit. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: string; - /** - * Usage current value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentValue?: number; - /** - * Usage limit. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly limit?: number; - /** - * Usage requested limit. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requestedLimit?: number; -} - -/** - * An Azure SQL managed instance. - */ -export interface ManagedInstance extends TrackedResource { - /** - * The Azure Active Directory identity of the managed instance. - */ - identity?: ResourceIdentity; - /** - * Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 - */ - sku?: Sku; - /** - * 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. Possible values include: - * 'Default', 'PointInTimeRestore' - */ - managedInstanceCreateMode?: ManagedServerCreateMode; - /** - * The fully qualified domain name of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fullyQualifiedDomainName?: string; - /** - * Administrator username for the managed instance. Can only be specified when the managed - * instance is being created (and is required for creation). - */ - administratorLogin?: string; - /** - * The administrator login password (required for managed instance creation). - */ - administratorLoginPassword?: string; - /** - * Subnet resource ID for the managed instance. - */ - subnetId?: string; - /** - * The state of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; - /** - * The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL - * license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible - * values include: 'LicenseIncluded', 'BasePrice' - */ - licenseType?: ManagedInstanceLicenseType; - /** - * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. - */ - vCores?: number; - /** - * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. - */ - storageSizeInGB?: number; - /** - * Collation of the managed instance. - */ - collation?: string; - /** - * The Dns Zone that the managed instance is in. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly dnsZone?: string; - /** - * The resource id of another managed instance whose DNS zone this managed instance will share - * after creation. - */ - dnsZonePartner?: string; - /** - * Whether or not the public data endpoint is enabled. - */ - publicDataEndpointEnabled?: boolean; - /** - * The resource identifier of the source managed instance associated with create operation of - * this instance. - */ - sourceManagedInstanceId?: string; - /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. - */ - restorePointInTime?: Date; - /** - * Connection type used for connecting to the instance. Possible values include: 'Proxy', - * 'Redirect', 'Default' - */ - proxyOverride?: ManagedInstanceProxyOverride; - /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM - * sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in - * PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". - */ - timezoneId?: string; - /** - * The Id of the instance pool this managed server belongs to. - */ - instancePoolId?: string; -} - -/** - * An update request for an Azure SQL Database managed instance. - */ -export interface ManagedInstanceUpdate { - /** - * Managed instance sku - */ - sku?: Sku; - /** - * 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. Possible values include: - * 'Default', 'PointInTimeRestore' - */ - managedInstanceCreateMode?: ManagedServerCreateMode; - /** - * The fully qualified domain name of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fullyQualifiedDomainName?: string; - /** - * Administrator username for the managed instance. Can only be specified when the managed - * instance is being created (and is required for creation). - */ - administratorLogin?: string; - /** - * The administrator login password (required for managed instance creation). - */ - administratorLoginPassword?: string; - /** - * Subnet resource ID for the managed instance. - */ - subnetId?: string; - /** - * The state of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; - /** - * The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL - * license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible - * values include: 'LicenseIncluded', 'BasePrice' - */ - licenseType?: ManagedInstanceLicenseType; - /** - * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. - */ - vCores?: number; - /** - * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. - */ - storageSizeInGB?: number; - /** - * Collation of the managed instance. - */ - collation?: string; - /** - * The Dns Zone that the managed instance is in. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly dnsZone?: string; - /** - * The resource id of another managed instance whose DNS zone this managed instance will share - * after creation. - */ - dnsZonePartner?: string; - /** - * Whether or not the public data endpoint is enabled. - */ - publicDataEndpointEnabled?: boolean; - /** - * The resource identifier of the source managed instance associated with create operation of - * this instance. - */ - sourceManagedInstanceId?: string; - /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. - */ - restorePointInTime?: Date; - /** - * Connection type used for connecting to the instance. Possible values include: 'Proxy', - * 'Redirect', 'Default' - */ - proxyOverride?: ManagedInstanceProxyOverride; - /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM - * sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in - * PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". - */ - timezoneId?: string; - /** - * The Id of the instance pool this managed server belongs to. - */ - instancePoolId?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * A managed database restore details. - */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { - /** - * Restore status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: string; - /** - * Current restoring file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentRestoringFileName?: string; - /** - * Last restored file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastRestoredFileName?: string; - /** - * Last restored file time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastRestoredFileTime?: Date; - /** - * Percent completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentCompleted?: number; - /** - * List of unrestorable files. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unrestorableFiles?: string[]; - /** - * Number of files detected. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly numberOfFilesDetected?: number; - /** - * Last uploaded file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastUploadedFileName?: string; - /** - * Last uploaded file time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastUploadedFileTime?: Date; - /** - * The reason why restore is in Blocked state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly blockReason?: string; -} - -/** - * A managed database resource. - */ -export interface ManagedDatabase extends TrackedResource { - /** - * Collation of the managed database. - */ - collation?: string; - /** - * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible', 'Restoring', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: ManagedDatabaseStatus; - /** - * Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * Earliest restore point in time for point in time restore. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestorePoint?: Date; - /** - * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point - * in time (ISO8601 format) of the source database that will be restored to create the new - * database. - */ - restorePointInTime?: Date; - /** - * Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - 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. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' - */ - createMode?: ManagedDatabaseCreateMode; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri - * of the storage container where backups for this restore are stored. - */ - storageContainerUri?: string; - /** - * The resource identifier of the source database associated with create operation of this - * database. - */ - sourceDatabaseId?: string; - /** - * The restorable dropped database resource id to restore when creating this database. - */ - restorableDroppedDatabaseId?: string; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. - */ - storageContainerSasToken?: string; - /** - * Instance Failover Group resource identifier that this managed database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failoverGroupId?: string; - /** - * The resource identifier of the recoverable database associated with create operation of this - * database. - */ - recoverableDatabaseId?: string; -} - -/** - * An managed database update. - */ -export interface ManagedDatabaseUpdate { - /** - * Collation of the managed database. - */ - collation?: string; - /** - * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible', 'Restoring', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: ManagedDatabaseStatus; - /** - * Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * Earliest restore point in time for point in time restore. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestorePoint?: Date; - /** - * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point - * in time (ISO8601 format) of the source database that will be restored to create the new - * database. - */ - restorePointInTime?: Date; - /** - * Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - 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. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' - */ - createMode?: ManagedDatabaseCreateMode; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri - * of the storage container where backups for this restore are stored. - */ - storageContainerUri?: string; - /** - * The resource identifier of the source database associated with create operation of this - * database. - */ - sourceDatabaseId?: string; - /** - * The restorable dropped database resource id to restore when creating this database. - */ - restorableDroppedDatabaseId?: string; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. - */ - storageContainerSasToken?: string; - /** - * Instance Failover Group resource identifier that this managed database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failoverGroupId?: string; - /** - * The resource identifier of the recoverable database associated with create operation of this - * database. - */ - recoverableDatabaseId?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * Contains the information necessary to perform a complete database restore operation. - */ -export interface CompleteDatabaseRestoreDefinition { - /** - * The last backup name to apply - */ - lastBackupName: string; -} - -/** - * An interface representing PrivateEndpointProperty. - */ -export interface PrivateEndpointProperty extends BaseResource { - /** - * Resource id of the private endpoint. - */ - id?: string; -} - -/** - * An interface representing PrivateLinkServiceConnectionStateProperty. - */ -export interface PrivateLinkServiceConnectionStateProperty { - /** - * The private link service connection status. - */ - status: string; - /** - * The private link service connection description. - */ - description: string; - /** - * The actions required for private link service connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly actionsRequired?: string; -} - -/** - * A private endpoint connection - */ -export interface PrivateEndpointConnection extends ProxyResource { - /** - * Private endpoint which the connection belongs to. - */ - privateEndpoint?: PrivateEndpointProperty; - /** - * Connection state of the private endpoint connection. - */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; - /** - * State of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; -} - -/** - * Properties of a private link resource. - */ -export interface PrivateLinkResourceProperties { - /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly groupId?: string; - /** - * The private link resource required member names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requiredMembers?: 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; -} - -/** - * Optional Parameters. - */ -export interface DatabasesFailoverOptionalParams extends msRest.RequestOptionsBase { - /** - * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' - */ - replicaType?: ReplicaType; -} - -/** - * Optional Parameters. - */ -export interface DatabasesBeginFailoverOptionalParams extends msRest.RequestOptionsBase { - /** - * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' - */ - replicaType?: ReplicaType; -} - -/** - * Optional Parameters. - */ -export interface ElasticPoolsListByServerOptionalParams extends msRest.RequestOptionsBase { - /** - * The number of elements in the collection to skip. - */ - skip?: number; -} - -/** - * Optional Parameters. - */ -export interface SyncGroupsListLogsOptionalParams extends msRest.RequestOptionsBase { - /** - * The continuation token for this operation. - */ - continuationToken?: string; -} - -/** - * Optional Parameters. - */ -export interface JobExecutionsListByAgentOptionalParams extends msRest.RequestOptionsBase { - /** - * 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 in the collection to skip. - */ - skip?: number; - /** - * The number of elements to return from the collection. - */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface JobExecutionsListByJobOptionalParams extends msRest.RequestOptionsBase { - /** - * 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 in the collection to skip. - */ - skip?: number; - /** - * The number of elements to return from the collection. - */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface JobStepExecutionsListByJobExecutionOptionalParams extends msRest.RequestOptionsBase { - /** - * 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 in the collection to skip. - */ - skip?: number; - /** - * The number of elements to return from the collection. - */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams extends msRest.RequestOptionsBase { - /** - * 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 in the collection to skip. - */ - skip?: number; - /** - * The number of elements to return from the collection. - */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface JobTargetExecutionsListByStepOptionalParams extends msRest.RequestOptionsBase { - /** - * 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 in the collection to skip. - */ - skip?: number; - /** - * The number of elements to return from the collection. - */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - * Possible values include: 'All', 'Live', 'Deleted' - */ - databaseState?: LongTermRetentionDatabaseState; -} - -/** - * Optional Parameters. - */ -export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - * Possible values include: 'All', 'Live', 'Deleted' - */ - databaseState?: LongTermRetentionDatabaseState; -} - -/** - * Optional Parameters. - */ -export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - * Possible values include: 'All', 'Live', 'Deleted' - */ - databaseState?: LongTermRetentionDatabaseState; -} - -/** - * Optional Parameters. - */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - * Possible values include: 'All', 'Live', 'Deleted' - */ - databaseState?: LongTermRetentionDatabaseState; -} - -/** - * Optional Parameters. - */ -export interface LongTermRetentionBackupsListByLocationOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - * Possible values include: 'All', 'Live', 'Deleted' - */ - databaseState?: LongTermRetentionDatabaseState; -} - -/** - * Optional Parameters. - */ -export interface LongTermRetentionBackupsListByServerOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - * Possible values include: 'All', 'Live', 'Deleted' - */ - databaseState?: LongTermRetentionDatabaseState; -} - -/** - * Optional Parameters. - */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * Specifies whether to include disabled recommendations or not. - */ - includeDisabledRecommendations?: boolean; - skipToken?: string; - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface CapabilitiesListByLocationOptionalParams extends msRest.RequestOptionsBase { - /** - * If specified, restricts the response to only include the selected item. Possible values - * include: 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' - */ - include?: CapabilityGroup; -} - -/** - * Optional Parameters. - */ -export interface ManagedInstanceKeysListByInstanceOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * Specifies whether to include disabled recommendations or not. - */ - includeDisabledRecommendations?: boolean; - skipToken?: string; - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface UsagesListByInstancePoolOptionalParams extends msRest.RequestOptionsBase { - /** - * Optional request parameter to include managed instance usages within the instance pool. - */ - expandChildren?: boolean; -} - -/** - * An interface representing SqlManagementClientOptions. - */ -export interface SqlManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** - * @interface - * The response to a list recoverable databases request - * @extends Array - */ -export interface RecoverableDatabaseListResult extends Array { -} - -/** - * @interface - * The response to a list restorable dropped databases request - * @extends Array - */ -export interface RestorableDroppedDatabaseListResult extends Array { -} - -/** - * @interface - * A list of servers. - * @extends Array - */ -export interface ServerListResult extends Array { - /** - * 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; -} - -/** - * @interface - * The response to a list data masking rules request. - * @extends Array - */ -export interface DataMaskingRuleListResult extends Array { -} - -/** - * @interface - * Represents the response to a List Firewall Rules request. - * @extends Array - */ -export interface FirewallRuleListResult extends Array { -} - -/** - * @interface - * The response to a list geo backup policies request. - * @extends Array - */ -export interface GeoBackupPolicyListResult extends Array { -} - -/** - * @interface - * The response to a list database metrics request. - * @extends Array - */ -export interface MetricListResult extends Array { -} - -/** - * @interface - * The response to a list database metric definitions request. - * @extends Array - */ -export interface MetricDefinitionListResult extends Array { -} - -/** - * @interface - * A list of databases. - * @extends Array - */ -export interface DatabaseListResult extends Array { - /** - * 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; -} - -/** - * @interface - * The result of an elastic pool list request. - * @extends Array - */ -export interface ElasticPoolListResult extends Array { - /** - * 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; -} - -/** - * @interface - * Represents the response to a list recommended elastic pool request. - * @extends Array - */ -export interface RecommendedElasticPoolListResult extends Array { -} - -/** - * @interface - * Represents the response to a list recommended elastic pool metrics request. - * @extends Array - */ -export interface RecommendedElasticPoolListMetricsResult extends Array { -} - -/** - * @interface - * Represents the response to a List database replication link request. - * @extends Array - */ -export interface ReplicationLinkListResult extends Array { -} - -/** - * @interface - * The response to a list Active Directory Administrators request. - * @extends Array - */ -export interface ServerAdministratorListResult extends Array { -} - -/** - * @interface - * A list of server communication links. - * @extends Array - */ -export interface ServerCommunicationLinkListResult extends Array { -} - -/** - * @interface - * Represents the response to a get database service objectives request. - * @extends Array - */ -export interface ServiceObjectiveListResult extends Array { -} - -/** - * @interface - * Represents the response to a list elastic pool activity request. - * @extends Array - */ -export interface ElasticPoolActivityListResult extends Array { -} - -/** - * @interface - * Represents the response to a list elastic pool database activity request. - * @extends Array - */ -export interface ElasticPoolDatabaseActivityListResult extends Array { -} - -/** - * @interface - * Represents the response to a list service tier advisor request. - * @extends Array - */ -export interface ServiceTierAdvisorListResult extends Array { -} - -/** - * @interface - * Represents the response to a list database transparent data encryption activity request. - * @extends Array - */ -export interface TransparentDataEncryptionActivityListResult extends Array { -} - -/** - * @interface - * Represents the response to a list server metrics request. - * @extends Array - */ -export interface ServerUsageListResult extends Array { -} - -/** - * @interface - * The response to a list database metrics request. - * @extends Array - */ -export interface DatabaseUsageListResult extends Array { -} - -/** - * @interface - * A list of server encryption protectors. - * @extends Array - */ -export interface EncryptionProtectorListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of failover groups. - * @extends Array - */ -export interface FailoverGroupListResult extends Array { - /** - * 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; -} - -/** - * @interface - * Result of the request to list SQL operations. - * @extends Array - */ -export interface OperationListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of server keys. - * @extends Array - */ -export interface ServerKeyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sync agents. - * @extends Array - */ -export interface SyncAgentListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sync agent linked databases. - * @extends Array - */ -export interface SyncAgentLinkedDatabaseListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sync database ID properties. - * @extends Array - */ -export interface SyncDatabaseIdListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sync schema properties. - * @extends Array - */ -export interface SyncFullSchemaPropertiesListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sync group log properties. - * @extends Array - */ -export interface SyncGroupLogListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sync groups. - * @extends Array - */ -export interface SyncGroupListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of Azure SQL Database sync members. - * @extends Array - */ -export interface SyncMemberListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of subscription usage metrics in a location. - * @extends Array - */ -export interface SubscriptionUsageListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of virtual clusters. - * @extends Array - */ -export interface VirtualClusterListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of virtual network rules. - * @extends Array - */ -export interface VirtualNetworkRuleListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of server auditing settings. - * @extends Array - */ -export interface ServerBlobAuditingPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of database auditing settings. - * @extends Array - */ -export interface DatabaseBlobAuditingPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of the database's vulnerability assessments. - * @extends Array - */ -export interface DatabaseVulnerabilityAssessmentListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of Azure SQL job agents. - * @extends Array - */ -export interface JobAgentListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of job credentials. - * @extends Array - */ -export interface JobCredentialListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of job executions. - * @extends Array - */ -export interface JobExecutionListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of jobs. - * @extends Array - */ -export interface JobListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of job steps. - * @extends Array - */ -export interface JobStepListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of target groups. - * @extends Array - */ -export interface JobTargetGroupListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of job versions. - * @extends Array - */ -export interface JobVersionListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of long term retention backups. - * @extends Array - */ -export interface LongTermRetentionBackupListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of short term retention policies. - * @extends Array - */ -export interface ManagedBackupShortTermRetentionPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of server DNS aliases. - * @extends Array - */ -export interface ServerDnsAliasListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of the server's security alert policies. - * @extends Array - */ -export interface LogicalServerSecurityAlertPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of restorable dropped managed databases. - * @extends Array - */ -export interface RestorableDroppedManagedDatabaseListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of long term retention backups. - * @extends Array - */ -export interface RestorePointListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of the managed database's security alert policies. - * @extends Array - */ -export interface ManagedDatabaseSecurityAlertPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of the managed Server's security alert policies. - * @extends Array - */ -export interface ManagedServerSecurityAlertPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of sensitivity labels. - * @extends Array - */ -export interface SensitivityLabelListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of managed instance administrators. - * @extends Array - */ -export interface ManagedInstanceAdministratorListResult extends Array { - /** - * 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; -} - -/** - * @interface - * The response to a list database operations request - * @extends Array - */ -export interface DatabaseOperationListResult extends Array { - /** - * 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; -} - -/** - * @interface - * The response to a list elastic pool operations request - * @extends Array - */ -export interface ElasticPoolOperationListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of vulnerability assessment scan records. - * @extends Array - */ -export interface VulnerabilityAssessmentScanRecordListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of instance failover groups. - * @extends Array - */ -export interface InstanceFailoverGroupListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of short term retention policies. - * @extends Array - */ -export interface BackupShortTermRetentionPolicyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of managed instance keys. - * @extends Array - */ -export interface ManagedInstanceKeyListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of managed instance encryption protectors. - * @extends Array - */ -export interface ManagedInstanceEncryptionProtectorListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of recoverable managed databases. - * @extends Array - */ -export interface RecoverableManagedDatabaseListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of the ManagedInstance's vulnerability assessments. - * @extends Array - */ -export interface ManagedInstanceVulnerabilityAssessmentListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of the server's vulnerability assessments. - * @extends Array - */ -export interface ServerVulnerabilityAssessmentListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of Azure SQL instance pools. - * @extends Array - */ -export interface InstancePoolListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of usages. - * @extends Array - */ -export interface UsageListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of managed instances. - * @extends Array - */ -export interface ManagedInstanceListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of managed databases. - * @extends Array - */ -export interface ManagedDatabaseListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of private endpoint connections. - * @extends Array - */ -export interface PrivateEndpointConnectionListResult extends Array { - /** - * 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; -} - -/** - * @interface - * A list of private link resources - * @extends Array - */ -export interface PrivateLinkResourceListResult extends Array { - /** - * 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; -} - -/** - * Defines values for CheckNameAvailabilityReason. - * Possible values include: 'Invalid', 'AlreadyExists' - * @readonly - * @enum {string} - */ -export type CheckNameAvailabilityReason = 'Invalid' | 'AlreadyExists'; - -/** - * Defines values for ServerConnectionType. - * Possible values include: 'Default', 'Proxy', 'Redirect' - * @readonly - * @enum {string} - */ -export type ServerConnectionType = 'Default' | 'Proxy' | 'Redirect'; - -/** - * Defines values for SecurityAlertPolicyState. - * Possible values include: 'New', 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; - -/** - * Defines values for SecurityAlertPolicyEmailAccountAdmins. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SecurityAlertPolicyEmailAccountAdmins = 'Enabled' | 'Disabled'; - -/** - * Defines values for SecurityAlertPolicyUseServerDefault. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SecurityAlertPolicyUseServerDefault = 'Enabled' | 'Disabled'; - -/** - * Defines values for DataMaskingState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type DataMaskingState = 'Disabled' | 'Enabled'; - -/** - * Defines values for DataMaskingRuleState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type DataMaskingRuleState = 'Disabled' | 'Enabled'; - -/** - * Defines values for DataMaskingFunction. - * Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' - * @readonly - * @enum {string} - */ -export type DataMaskingFunction = 'Default' | 'CCN' | 'Email' | 'Number' | 'SSN' | 'Text'; - -/** - * Defines values for GeoBackupPolicyState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type GeoBackupPolicyState = 'Disabled' | 'Enabled'; - -/** - * Defines values for DatabaseEdition. - * Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', - * 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', - * 'Hyperscale' - * @readonly - * @enum {string} - */ -export type DatabaseEdition = 'Web' | 'Business' | 'Basic' | 'Standard' | 'Premium' | 'PremiumRS' | 'Free' | 'Stretch' | 'DataWarehouse' | 'System' | 'System2' | 'GeneralPurpose' | 'BusinessCritical' | 'Hyperscale'; - -/** - * Defines values for ServiceObjectiveName. - * Possible values include: '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' - * @readonly - * @enum {string} - */ -export type ServiceObjectiveName = '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'; - -/** - * Defines values for StorageKeyType. - * Possible values include: 'StorageAccessKey', 'SharedAccessKey' - * @readonly - * @enum {string} - */ -export type StorageKeyType = 'StorageAccessKey' | 'SharedAccessKey'; - -/** - * Defines values for AuthenticationType. - * Possible values include: 'SQL', 'ADPassword' - * @readonly - * @enum {string} - */ -export type AuthenticationType = 'SQL' | 'ADPassword'; - -/** - * Defines values for UnitType. - * Possible values include: 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', - * 'bytesPerSecond' - * @readonly - * @enum {string} - */ -export type UnitType = 'count' | 'bytes' | 'seconds' | 'percent' | 'countPerSecond' | 'bytesPerSecond'; - -/** - * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' - * @readonly - * @enum {string} - */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; - -/** - * Defines values for UnitDefinitionType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', - * 'BytesPerSecond' - * @readonly - * @enum {string} - */ -export type UnitDefinitionType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond'; - -/** - * Defines values for ElasticPoolEdition. - * Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical' - * @readonly - * @enum {string} - */ -export type ElasticPoolEdition = 'Basic' | 'Standard' | 'Premium' | 'GeneralPurpose' | 'BusinessCritical'; - -/** - * Defines values for ReplicationRole. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * @readonly - * @enum {string} - */ -export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; - -/** - * Defines values for ReplicationState. - * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' - * @readonly - * @enum {string} - */ -export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; - -/** - * Defines values for RecommendedIndexAction. - * Possible values include: 'Create', 'Drop', 'Rebuild' - * @readonly - * @enum {string} - */ -export type RecommendedIndexAction = 'Create' | 'Drop' | 'Rebuild'; - -/** - * Defines values for RecommendedIndexState. - * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', - * 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' - * @readonly - * @enum {string} - */ -export type RecommendedIndexState = 'Active' | 'Pending' | 'Executing' | 'Verifying' | 'Pending Revert' | 'Reverting' | 'Reverted' | 'Ignored' | 'Expired' | 'Blocked' | 'Success'; - -/** - * Defines values for RecommendedIndexType. - * Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' - * @readonly - * @enum {string} - */ -export type RecommendedIndexType = 'CLUSTERED' | 'NONCLUSTERED' | 'COLUMNSTORE' | 'CLUSTERED COLUMNSTORE'; - -/** - * Defines values for TransparentDataEncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; - -/** - * Defines values for TransparentDataEncryptionActivityStatus. - * Possible values include: 'Encrypting', 'Decrypting' - * @readonly - * @enum {string} - */ -export type TransparentDataEncryptionActivityStatus = 'Encrypting' | 'Decrypting'; - -/** - * Defines values for AutomaticTuningMode. - * Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * @readonly - * @enum {string} - */ -export type AutomaticTuningMode = 'Inherit' | 'Custom' | 'Auto' | 'Unspecified'; - -/** - * Defines values for AutomaticTuningOptionModeDesired. - * Possible values include: 'Off', 'On', 'Default' - * @readonly - * @enum {string} - */ -export type AutomaticTuningOptionModeDesired = 'Off' | 'On' | 'Default'; - -/** - * Defines values for AutomaticTuningOptionModeActual. - * Possible values include: 'Off', 'On' - * @readonly - * @enum {string} - */ -export type AutomaticTuningOptionModeActual = 'Off' | 'On'; - -/** - * Defines values for AutomaticTuningDisabledReason. - * Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', - * 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' - * @readonly - * @enum {string} - */ -export type AutomaticTuningDisabledReason = 'Default' | 'Disabled' | 'AutoConfigured' | 'InheritedFromServer' | 'QueryStoreOff' | 'QueryStoreReadOnly' | 'NotSupported'; - -/** - * Defines values for ServerKeyType. - * Possible values include: 'ServiceManaged', 'AzureKeyVault' - * @readonly - * @enum {string} - */ -export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; - -/** - * Defines values for ReadWriteEndpointFailoverPolicy. - * Possible values include: 'Manual', 'Automatic' - * @readonly - * @enum {string} - */ -export type ReadWriteEndpointFailoverPolicy = 'Manual' | 'Automatic'; - -/** - * Defines values for ReadOnlyEndpointFailoverPolicy. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type ReadOnlyEndpointFailoverPolicy = 'Disabled' | 'Enabled'; - -/** - * Defines values for FailoverGroupReplicationRole. - * Possible values include: 'Primary', 'Secondary' - * @readonly - * @enum {string} - */ -export type FailoverGroupReplicationRole = 'Primary' | 'Secondary'; - -/** - * Defines values for OperationOrigin. - * Possible values include: 'user', 'system' - * @readonly - * @enum {string} - */ -export type OperationOrigin = 'user' | 'system'; - -/** - * Defines values for IdentityType. - * Possible values include: 'SystemAssigned' - * @readonly - * @enum {string} - */ -export type IdentityType = 'SystemAssigned'; - -/** - * Defines values for SyncAgentState. - * Possible values include: 'Online', 'Offline', 'NeverConnected' - * @readonly - * @enum {string} - */ -export type SyncAgentState = 'Online' | 'Offline' | 'NeverConnected'; - -/** - * Defines values for SyncMemberDbType. - * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * @readonly - * @enum {string} - */ -export type SyncMemberDbType = 'AzureSqlDatabase' | 'SqlServerDatabase'; - -/** - * Defines values for SyncGroupLogType. - * Possible values include: 'All', 'Error', 'Warning', 'Success' - * @readonly - * @enum {string} - */ -export type SyncGroupLogType = 'All' | 'Error' | 'Warning' | 'Success'; - -/** - * Defines values for SyncConflictResolutionPolicy. - * Possible values include: 'HubWin', 'MemberWin' - * @readonly - * @enum {string} - */ -export type SyncConflictResolutionPolicy = 'HubWin' | 'MemberWin'; - -/** - * Defines values for SyncGroupState. - * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' - * @readonly - * @enum {string} - */ -export type SyncGroupState = 'NotReady' | 'Error' | 'Warning' | 'Progressing' | 'Good'; - -/** - * Defines values for SyncDirection. - * Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' - * @readonly - * @enum {string} - */ -export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; - -/** - * Defines values for SyncMemberState. - * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', - * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', - * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', - * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', - * 'ReprovisionFailed', 'UnReprovisioned' - * @readonly - * @enum {string} - */ -export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; - -/** - * Defines values for VirtualNetworkRuleState. - * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' - * @readonly - * @enum {string} - */ -export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Deleting' | 'Unknown'; - -/** - * Defines values for BlobAuditingPolicyState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; - -/** - * Defines values for JobAgentState. - * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' - * @readonly - * @enum {string} - */ -export type JobAgentState = 'Creating' | 'Ready' | 'Updating' | 'Deleting' | 'Disabled'; - -/** - * Defines values for JobExecutionLifecycle. - * Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', - * 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', - * 'Skipped' - * @readonly - * @enum {string} - */ -export type JobExecutionLifecycle = 'Created' | 'InProgress' | 'WaitingForChildJobExecutions' | 'WaitingForRetry' | 'Succeeded' | 'SucceededWithSkipped' | 'Failed' | 'TimedOut' | 'Canceled' | 'Skipped'; - -/** - * Defines values for ProvisioningState. - * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', 'Canceled' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Created' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; - -/** - * Defines values for JobTargetType. - * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', - * 'SqlServer' - * @readonly - * @enum {string} - */ -export type JobTargetType = 'TargetGroup' | 'SqlDatabase' | 'SqlElasticPool' | 'SqlShardMap' | 'SqlServer'; - -/** - * Defines values for JobScheduleType. - * Possible values include: 'Once', 'Recurring' - * @readonly - * @enum {string} - */ -export type JobScheduleType = 'Once' | 'Recurring'; - -/** - * Defines values for JobStepActionType. - * Possible values include: 'TSql' - * @readonly - * @enum {string} - */ -export type JobStepActionType = 'TSql'; - -/** - * Defines values for JobStepActionSource. - * Possible values include: 'Inline' - * @readonly - * @enum {string} - */ -export type JobStepActionSource = 'Inline'; - -/** - * Defines values for JobStepOutputType. - * Possible values include: 'SqlDatabase' - * @readonly - * @enum {string} - */ -export type JobStepOutputType = 'SqlDatabase'; - -/** - * Defines values for JobTargetGroupMembershipType. - * Possible values include: 'Include', 'Exclude' - * @readonly - * @enum {string} - */ -export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; - -/** - * Defines values for AutomaticTuningServerMode. - * Possible values include: 'Custom', 'Auto', 'Unspecified' - * @readonly - * @enum {string} - */ -export type AutomaticTuningServerMode = 'Custom' | 'Auto' | 'Unspecified'; - -/** - * Defines values for AutomaticTuningServerReason. - * Possible values include: 'Default', 'Disabled', 'AutoConfigured' - * @readonly - * @enum {string} - */ -export type AutomaticTuningServerReason = 'Default' | 'Disabled' | 'AutoConfigured'; - -/** - * Defines values for RestorePointType. - * Possible values include: 'CONTINUOUS', 'DISCRETE' - * @readonly - * @enum {string} - */ -export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; - -/** - * Defines values for ManagementOperationState. - * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', - * 'Cancelled' - * @readonly - * @enum {string} - */ -export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; - -/** - * Defines values for MaxSizeUnit. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * @readonly - * @enum {string} - */ -export type MaxSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes'; - -/** - * Defines values for LogSizeUnit. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' - * @readonly - * @enum {string} - */ -export type LogSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes' | 'Percent'; - -/** - * Defines values for CapabilityStatus. - * Possible values include: 'Visible', 'Available', 'Default', 'Disabled' - * @readonly - * @enum {string} - */ -export type CapabilityStatus = 'Visible' | 'Available' | 'Default' | 'Disabled'; - -/** - * Defines values for PerformanceLevelUnit. - * Possible values include: 'DTU', 'VCores' - * @readonly - * @enum {string} - */ -export type PerformanceLevelUnit = 'DTU' | 'VCores'; - -/** - * Defines values for CreateMode. - * Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore', - * 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - * @readonly - * @enum {string} - */ -export type CreateMode = 'Default' | 'Copy' | 'Secondary' | 'PointInTimeRestore' | 'Restore' | 'Recovery' | 'RestoreExternalBackup' | 'RestoreExternalBackupSecondary' | 'RestoreLongTermRetentionBackup' | 'OnlineSecondary'; - -/** - * Defines values for SampleName. - * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' - * @readonly - * @enum {string} - */ -export type SampleName = 'AdventureWorksLT' | 'WideWorldImportersStd' | 'WideWorldImportersFull'; - -/** - * Defines values for DatabaseStatus. - * Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', - * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', - * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', - * 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' - * @readonly - * @enum {string} - */ -export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling' | 'OfflineChangingDwPerformanceTiers' | 'OnlineChangingDwPerformanceTiers' | 'Disabled'; - -/** - * Defines values for CatalogCollationType. - * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * @readonly - * @enum {string} - */ -export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_CI_AS'; - -/** - * Defines values for DatabaseLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} - */ -export type DatabaseLicenseType = 'LicenseIncluded' | 'BasePrice'; - -/** - * Defines values for DatabaseReadScale. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type DatabaseReadScale = 'Enabled' | 'Disabled'; - -/** - * Defines values for ElasticPoolState. - * Possible values include: 'Creating', 'Ready', 'Disabled' - * @readonly - * @enum {string} - */ -export type ElasticPoolState = 'Creating' | 'Ready' | 'Disabled'; - -/** - * Defines values for ElasticPoolLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} - */ -export type ElasticPoolLicenseType = 'LicenseIncluded' | 'BasePrice'; - -/** - * Defines values for VulnerabilityAssessmentScanTriggerType. - * Possible values include: 'OnDemand', 'Recurring' - * @readonly - * @enum {string} - */ -export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; - -/** - * Defines values for VulnerabilityAssessmentScanState. - * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * @readonly - * @enum {string} - */ -export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; - -/** - * Defines values for InstanceFailoverGroupReplicationRole. - * Possible values include: 'Primary', 'Secondary' - * @readonly - * @enum {string} - */ -export type InstanceFailoverGroupReplicationRole = 'Primary' | 'Secondary'; - -/** - * Defines values for InstancePoolLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} - */ -export type InstancePoolLicenseType = 'LicenseIncluded' | 'BasePrice'; - -/** - * Defines values for ManagedServerCreateMode. - * Possible values include: 'Default', 'PointInTimeRestore' - * @readonly - * @enum {string} - */ -export type ManagedServerCreateMode = 'Default' | 'PointInTimeRestore'; - -/** - * Defines values for ManagedInstanceLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} - */ -export type ManagedInstanceLicenseType = 'LicenseIncluded' | 'BasePrice'; - -/** - * Defines values for ManagedInstanceProxyOverride. - * Possible values include: 'Proxy', 'Redirect', 'Default' - * @readonly - * @enum {string} - */ -export type ManagedInstanceProxyOverride = 'Proxy' | 'Redirect' | 'Default'; - -/** - * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', - * 'Restoring', 'Updating' - * @readonly - * @enum {string} - */ -export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Restoring' | 'Updating'; - -/** - * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' - * @readonly - * @enum {string} - */ -export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery'; - -/** - * Defines values for LongTermRetentionDatabaseState. - * Possible values include: 'All', 'Live', 'Deleted' - * @readonly - * @enum {string} - */ -export type LongTermRetentionDatabaseState = 'All' | 'Live' | 'Deleted'; - -/** - * Defines values for VulnerabilityAssessmentPolicyBaselineName. - * Possible values include: 'master', 'default' - * @readonly - * @enum {string} - */ -export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; - -/** - * Defines values for SensitivityLabelSource. - * Possible values include: 'current', 'recommended' - * @readonly - * @enum {string} - */ -export type SensitivityLabelSource = 'current' | 'recommended'; - -/** - * Defines values for CapabilityGroup. - * Possible values include: 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' - * @readonly - * @enum {string} - */ -export type CapabilityGroup = 'supportedEditions' | 'supportedElasticPoolEditions' | 'supportedManagedInstanceVersions'; - -/** - * Defines values for ReplicaType. - * Possible values include: 'Primary', 'ReadableSecondary' - * @readonly - * @enum {string} - */ -export type ReplicaType = 'Primary' | 'ReadableSecondary'; - -/** - * Defines values for Type. - * Possible values include: 'All', 'Error', 'Warning', 'Success' - * @readonly - * @enum {string} - */ -export type Type = 'All' | 'Error' | 'Warning' | 'Success'; - -/** - * Contains response data for the get operation. - */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecoverableDatabase; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecoverableDatabaseListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedDatabase; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedDatabaseListResult; - }; -}; - -/** - * Contains response data for the checkNameAvailability operation. - */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CheckNameAvailabilityResponse; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ServersListResponse = ServerListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type ServersListByResourceGroupResponse = ServerListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServersGetResponse = Server & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Server; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServersCreateOrUpdateResponse = Server & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Server; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ServersUpdateResponse = Server & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Server; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServersBeginCreateOrUpdateResponse = Server & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Server; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type ServersBeginUpdateResponse = Server & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Server; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ServersListNextResponse = ServerListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type ServersListByResourceGroupNextResponse = ServerListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerListResult; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerConnectionPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerConnectionPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabaseThreatDetectionPoliciesGetResponse = DatabaseSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DatabaseThreatDetectionPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingRule; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingRuleListResult; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FirewallRule; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type FirewallRulesGetResponse = FirewallRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FirewallRule; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FirewallRuleListResult; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: GeoBackupPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: GeoBackupPolicy; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: GeoBackupPolicyListResult; - }; -}; - -/** - * Contains response data for the importMethod operation. - */ -export type DatabasesImportMethodResponse = ImportExportResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportExportResponse; - }; -}; - -/** - * Contains response data for the createImportOperation operation. - */ -export type DatabasesCreateImportOperationResponse = ImportExportResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportExportResponse; - }; -}; - -/** - * Contains response data for the exportMethod operation. - */ -export type DatabasesExportMethodResponse = ImportExportResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportExportResponse; - }; -}; - -/** - * Contains response data for the listMetrics operation. - */ -export type DatabasesListMetricsResponse = MetricListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; -}; - -/** - * Contains response data for the listMetricDefinitions operation. - */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricDefinitionListResult; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type DatabasesListByServerResponse = DatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabasesGetResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DatabasesCreateOrUpdateResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type DatabasesUpdateResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the listByElasticPool operation. - */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseListResult; - }; -}; - -/** - * Contains response data for the pause operation. - */ -export type DatabasesPauseResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the resume operation. - */ -export type DatabasesResumeResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the beginImportMethod operation. - */ -export type DatabasesBeginImportMethodResponse = ImportExportResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportExportResponse; - }; -}; - -/** - * Contains response data for the beginCreateImportOperation operation. - */ -export type DatabasesBeginCreateImportOperationResponse = ImportExportResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportExportResponse; - }; -}; - -/** - * Contains response data for the beginExportMethod operation. - */ -export type DatabasesBeginExportMethodResponse = ImportExportResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportExportResponse; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type DatabasesBeginCreateOrUpdateResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type DatabasesBeginUpdateResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the beginPause operation. - */ -export type DatabasesBeginPauseResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the beginResume operation. - */ -export type DatabasesBeginResumeResponse = Database & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Database; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type DatabasesListByServerNextResponse = DatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseListResult; - }; -}; - -/** - * Contains response data for the listByElasticPoolNext operation. - */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseListResult; - }; -}; - -/** - * Contains response data for the listMetrics operation. - */ -export type ElasticPoolsListMetricsResponse = MetricListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; -}; - -/** - * Contains response data for the listMetricDefinitions operation. - */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricDefinitionListResult; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPoolListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ElasticPoolsGetResponse = ElasticPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPool; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPool; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ElasticPoolsUpdateResponse = ElasticPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPool; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ElasticPoolsBeginCreateOrUpdateResponse = ElasticPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPool; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type ElasticPoolsBeginUpdateResponse = ElasticPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPool; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPoolListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RecommendedElasticPoolsGetResponse = RecommendedElasticPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecommendedElasticPool; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type RecommendedElasticPoolsListByServerResponse = RecommendedElasticPoolListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecommendedElasticPoolListResult; - }; -}; - -/** - * Contains response data for the listMetrics operation. - */ -export type RecommendedElasticPoolsListMetricsResponse = RecommendedElasticPoolListMetricsResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecommendedElasticPoolListMetricsResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ReplicationLinksGetResponse = ReplicationLink & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplicationLink; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplicationLinkListResult; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAzureADAdministrator; - }; -}; - -/** - * Contains response data for the deleteMethod operation. - */ -export type ServerAzureADAdministratorsDeleteMethodResponse = ServerAzureADAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAzureADAdministrator; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAzureADAdministrator; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerAzureADAdministratorsListByServerResponse = ServerAdministratorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAdministratorListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzureADAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAzureADAdministrator; - }; -}; - -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type ServerAzureADAdministratorsBeginDeleteMethodResponse = ServerAzureADAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAzureADAdministrator; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerCommunicationLink; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerCommunicationLink; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerCommunicationLinkListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerCommunicationLinksBeginCreateOrUpdateResponse = ServerCommunicationLink & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerCommunicationLink; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServiceObjectivesGetResponse = ServiceObjective & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceObjective; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceObjectiveListResult; - }; -}; - -/** - * Contains response data for the listByElasticPool operation. - */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPoolActivityListResult; - }; -}; - -/** - * Contains response data for the listByElasticPool operation. - */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPoolDatabaseActivityListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServiceTierAdvisorsGetResponse = ServiceTierAdvisor & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceTierAdvisor; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type ServiceTierAdvisorsListByDatabaseResponse = ServiceTierAdvisorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceTierAdvisorListResult; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEncryption & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryption; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type TransparentDataEncryptionsGetResponse = TransparentDataEncryption & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryption; - }; -}; - -/** - * Contains response data for the listByConfiguration operation. - */ -export type TransparentDataEncryptionActivitiesListByConfigurationResponse = TransparentDataEncryptionActivityListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryptionActivityListResult; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerUsagesListByServerResponse = ServerUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerUsageListResult; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseUsageListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAutomaticTuning; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAutomaticTuning; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtectorListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type EncryptionProtectorsGetResponse = EncryptionProtector & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtector; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtector; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type EncryptionProtectorsBeginCreateOrUpdateResponse = EncryptionProtector & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtector; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtectorListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type FailoverGroupsGetResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type FailoverGroupsUpdateResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroupListResult; - }; -}; - -/** - * Contains response data for the failover operation. - */ -export type FailoverGroupsFailoverResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the forceFailoverAllowDataLoss operation. - */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type FailoverGroupsBeginCreateOrUpdateResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type FailoverGroupsBeginUpdateResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the beginFailover operation. - */ -export type FailoverGroupsBeginFailoverResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the beginForceFailoverAllowDataLoss operation. - */ -export type FailoverGroupsBeginForceFailoverAllowDataLossResponse = FailoverGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroup; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: FailoverGroupListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type OperationsListResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type OperationsListNextResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerKeysListByServerResponse = ServerKeyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerKeyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerKeysGetResponse = ServerKey & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerKey; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerKeysCreateOrUpdateResponse = ServerKey & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerKey; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerKeysBeginCreateOrUpdateResponse = ServerKey & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerKey; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerKeyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SyncAgentsGetResponse = SyncAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgent; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgent; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type SyncAgentsListByServerResponse = SyncAgentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgentListResult; - }; -}; - -/** - * Contains response data for the generateKey operation. - */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgentKeyProperties; - }; -}; - -/** - * Contains response data for the listLinkedDatabases operation. - */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgentLinkedDatabaseListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type SyncAgentsBeginCreateOrUpdateResponse = SyncAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgent; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgentListResult; - }; -}; - -/** - * Contains response data for the listLinkedDatabasesNext operation. - */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncAgentLinkedDatabaseListResult; - }; -}; - -/** - * Contains response data for the listSyncDatabaseIds operation. - */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncDatabaseIdListResult; - }; -}; - -/** - * Contains response data for the listHubSchemas operation. - */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncFullSchemaPropertiesListResult; - }; -}; - -/** - * Contains response data for the listLogs operation. - */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroupLogListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SyncGroupsGetResponse = SyncGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroup; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroup; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type SyncGroupsUpdateResponse = SyncGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroup; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroupListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroup; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type SyncGroupsBeginUpdateResponse = SyncGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroup; - }; -}; - -/** - * Contains response data for the listSyncDatabaseIdsNext operation. - */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncDatabaseIdListResult; - }; -}; - -/** - * Contains response data for the listHubSchemasNext operation. - */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncFullSchemaPropertiesListResult; - }; -}; - -/** - * Contains response data for the listLogsNext operation. - */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroupLogListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncGroupListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SyncMembersGetResponse = SyncMember & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMember; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type SyncMembersCreateOrUpdateResponse = SyncMember & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMember; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type SyncMembersUpdateResponse = SyncMember & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMember; - }; -}; - -/** - * Contains response data for the listBySyncGroup operation. - */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMemberListResult; - }; -}; - -/** - * Contains response data for the listMemberSchemas operation. - */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncFullSchemaPropertiesListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMember; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type SyncMembersBeginUpdateResponse = SyncMember & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMember; - }; -}; - -/** - * Contains response data for the listBySyncGroupNext operation. - */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncMemberListResult; - }; -}; - -/** - * Contains response data for the listMemberSchemasNext operation. - */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SyncFullSchemaPropertiesListResult; - }; -}; - -/** - * Contains response data for the listByLocation operation. - */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SubscriptionUsageListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SubscriptionUsage; - }; -}; - -/** - * Contains response data for the listByLocationNext operation. - */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SubscriptionUsageListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type VirtualClustersListResponse = VirtualClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualClusterListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualClusterListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type VirtualClustersGetResponse = VirtualCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualCluster; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type VirtualClustersUpdateResponse = VirtualCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualCluster; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type VirtualClustersBeginUpdateResponse = VirtualCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualCluster; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type VirtualClustersListNextResponse = VirtualClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualClusterListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualClusterListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRule; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRule; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRuleListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRule; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualNetworkRuleListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedDatabaseBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedDatabaseBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicyListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseBlobAuditingPolicy; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseBlobAuditingPolicyListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseBlobAuditingPolicyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessment; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessment; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type JobAgentsListByServerResponse = JobAgentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgentListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobAgentsGetResponse = JobAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgent; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JobAgentsCreateOrUpdateResponse = JobAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgent; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type JobAgentsUpdateResponse = JobAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgent; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type JobAgentsBeginCreateOrUpdateResponse = JobAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgent; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type JobAgentsBeginUpdateResponse = JobAgent & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgent; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type JobAgentsListByServerNextResponse = JobAgentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobAgentListResult; - }; -}; - -/** - * Contains response data for the listByAgent operation. - */ -export type JobCredentialsListByAgentResponse = JobCredentialListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobCredentialListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobCredentialsGetResponse = JobCredential & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobCredential; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JobCredentialsCreateOrUpdateResponse = JobCredential & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobCredential; - }; -}; - -/** - * Contains response data for the listByAgentNext operation. - */ -export type JobCredentialsListByAgentNextResponse = JobCredentialListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobCredentialListResult; - }; -}; - -/** - * Contains response data for the listByAgent operation. - */ -export type JobExecutionsListByAgentResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type JobExecutionsCreateResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the listByJob operation. - */ -export type JobExecutionsListByJobResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobExecutionsGetResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the beginCreate operation. - */ -export type JobExecutionsBeginCreateResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type JobExecutionsBeginCreateOrUpdateResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the listByAgentNext operation. - */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the listByJobNext operation. - */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the listByAgent operation. - */ -export type JobsListByAgentResponse = JobListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobsGetResponse = Job & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Job; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JobsCreateOrUpdateResponse = Job & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Job; - }; -}; - -/** - * Contains response data for the listByAgentNext operation. - */ -export type JobsListByAgentNextResponse = JobListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobListResult; - }; -}; - -/** - * Contains response data for the listByJobExecution operation. - */ -export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobStepExecutionsGetResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the listByJobExecutionNext operation. - */ -export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the listByVersion operation. - */ -export type JobStepsListByVersionResponse = JobStepListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStepListResult; - }; -}; - -/** - * Contains response data for the getByVersion operation. - */ -export type JobStepsGetByVersionResponse = JobStep & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStep; - }; -}; - -/** - * Contains response data for the listByJob operation. - */ -export type JobStepsListByJobResponse = JobStepListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStepListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobStepsGetResponse = JobStep & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStep; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JobStepsCreateOrUpdateResponse = JobStep & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStep; - }; -}; - -/** - * Contains response data for the listByVersionNext operation. - */ -export type JobStepsListByVersionNextResponse = JobStepListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStepListResult; - }; -}; - -/** - * Contains response data for the listByJobNext operation. - */ -export type JobStepsListByJobNextResponse = JobStepListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobStepListResult; - }; -}; - -/** - * Contains response data for the listByJobExecution operation. - */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the listByStep operation. - */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobTargetExecutionsGetResponse = JobExecution & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecution; - }; -}; - -/** - * Contains response data for the listByJobExecutionNext operation. - */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the listByStepNext operation. - */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobExecutionListResult; - }; -}; - -/** - * Contains response data for the listByAgent operation. - */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobTargetGroupListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobTargetGroupsGetResponse = JobTargetGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobTargetGroup; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobTargetGroup; - }; -}; - -/** - * Contains response data for the listByAgentNext operation. - */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobTargetGroupListResult; - }; -}; - -/** - * Contains response data for the listByJob operation. - */ -export type JobVersionsListByJobResponse = JobVersionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobVersionListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JobVersionsGetResponse = JobVersion & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobVersion; - }; -}; - -/** - * Contains response data for the listByJobNext operation. - */ -export type JobVersionsListByJobNextResponse = JobVersionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: JobVersionListResult; - }; -}; - -/** - * Contains response data for the getByResourceGroup operation. - */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackup; - }; -}; - -/** - * Contains response data for the listByResourceGroupDatabase operation. - */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupLocation operation. - */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupServer operation. - */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackup; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByLocation operation. - */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupDatabaseNext operation. - */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupLocationNext operation. - */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupServerNext operation. - */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByLocationNext operation. - */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LongTermRetentionBackupListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type BackupLongTermRetentionPoliciesGetResponse = BackupLongTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupLongTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type BackupLongTermRetentionPoliciesCreateOrUpdateResponse = BackupLongTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupLongTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type BackupLongTermRetentionPoliciesListByDatabaseResponse = BackupLongTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupLongTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type BackupLongTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupLongTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupLongTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ManagedBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type ManagedBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the listByRestorableDroppedDatabase operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicy; - }; -}; - -/** - * Contains response data for the listByRestorableDroppedDatabaseNext operation. - */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAutomaticTuning; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerAutomaticTuning; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerDnsAlias; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerDnsAlias; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerDnsAliasListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerDnsAlias; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerDnsAliasListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LogicalServerSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LogicalServerSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the listByInstance operation. - */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedManagedDatabaseListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedManagedDatabase; - }; -}; - -/** - * Contains response data for the listByInstanceNext operation. - */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedManagedDatabaseListResult; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePointListResult; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type RestorePointsCreateResponse = RestorePoint & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePoint; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RestorePointsGetResponse = RestorePoint & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePoint; - }; -}; - -/** - * Contains response data for the beginCreate operation. - */ -export type RestorePointsBeginCreateResponse = RestorePoint & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePoint; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedDatabaseSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedDatabaseSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByInstance operation. - */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedServerSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ManagedServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByInstanceNext operation. - */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedServerSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the listCurrentByDatabase operation. - */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; - -/** - * Contains response data for the listRecommendedByDatabase operation. - */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SensitivityLabelsGetResponse = SensitivityLabel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabel; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabel; - }; -}; - -/** - * Contains response data for the listCurrentByDatabaseNext operation. - */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; - -/** - * Contains response data for the listRecommendedByDatabaseNext operation. - */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; - -/** - * Contains response data for the listByInstance operation. - */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedInstanceAdministratorListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedInstanceAdministrator; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedInstanceAdministrator; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ManagedInstanceAdministratorsBeginCreateOrUpdateResponse = ManagedInstanceAdministrator & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedInstanceAdministrator; - }; -}; - -/** - * Contains response data for the listByInstanceNext operation. - */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedInstanceAdministratorListResult; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseOperationListResult; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseOperationListResult; - }; -}; - -/** - * Contains response data for the listByElasticPool operation. - */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPoolOperationListResult; - }; -}; - -/** - * Contains response data for the listByElasticPoolNext operation. - */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ElasticPoolOperationListResult; - }; -}; - -/** - * Contains response data for the listByLocation operation. - */ -export type CapabilitiesListByLocationResponse = LocationCapabilities & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LocationCapabilities; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecord; - }; -}; - -/** - * Contains response data for the exportMethod operation. - */ -export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentScansExport; - }; -}; - -/** - * Contains response data for the listByDatabaseNext operation. - */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; - }; -}; - -/** - * Contains response data for the listByDatabase operation. - */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecord; - }; -}; + * Defines values for ManagementOperationState. + * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', + * 'Cancelled' + * @readonly + * @enum {string} + */ +export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; /** - * Contains response data for the exportMethod operation. + * Defines values for InstancePoolLicenseType. + * Possible values include: 'LicenseIncluded', 'BasePrice' + * @readonly + * @enum {string} */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type InstancePoolLicenseType = 'LicenseIncluded' | 'BasePrice'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentScansExport; - }; -}; +/** + * Defines values for IdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned' + * @readonly + * @enum {string} + */ +export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned'; /** - * Contains response data for the listByDatabaseNext operation. + * Defines values for ManagedServerCreateMode. + * Possible values include: 'Default', 'PointInTimeRestore' + * @readonly + * @enum {string} */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ManagedServerCreateMode = 'Default' | 'PointInTimeRestore'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; - }; -}; +/** + * Defines values for ManagedInstanceLicenseType. + * Possible values include: 'LicenseIncluded', 'BasePrice' + * @readonly + * @enum {string} + */ +export type ManagedInstanceLicenseType = 'LicenseIncluded' | 'BasePrice'; /** - * Contains response data for the get operation. + * Defines values for ManagedInstanceProxyOverride. + * Possible values include: 'Proxy', 'Redirect', 'Default' + * @readonly + * @enum {string} */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ManagedInstanceProxyOverride = 'Proxy' | 'Redirect' | 'Default'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessment; - }; -}; +/** + * Defines values for ManagedDatabaseStatus. + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + * 'Restoring', 'Updating' + * @readonly + * @enum {string} + */ +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Restoring' | 'Updating'; /** - * Contains response data for the createOrUpdate operation. + * Defines values for CatalogCollationType. + * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' + * @readonly + * @enum {string} */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_CI_AS'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessment; - }; -}; +/** + * Defines values for ManagedDatabaseCreateMode. + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', + * 'RestoreLongTermRetentionBackup' + * @readonly + * @enum {string} + */ +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery' | 'RestoreLongTermRetentionBackup'; /** - * Contains response data for the listByDatabase operation. + * Defines values for SensitivityLabelSource. + * Possible values include: 'current', 'recommended' + * @readonly + * @enum {string} */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type SensitivityLabelSource = 'current' | 'recommended'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; - }; -}; +/** + * Defines values for ReplicaType. + * Possible values include: 'Primary', 'ReadableSecondary' + * @readonly + * @enum {string} + */ +export type ReplicaType = 'Primary' | 'ReadableSecondary'; /** - * Contains response data for the listByDatabaseNext operation. + * Defines values for DatabaseState. + * Possible values include: 'All', 'Live', 'Deleted' + * @readonly + * @enum {string} */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type DatabaseState = 'All' | 'Live' | 'Deleted'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; - }; -}; +/** + * Defines values for Status. + * Possible values include: 'NotStarted', 'InProgress', 'SlowedDown', 'Completed', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type Status = 'NotStarted' | 'InProgress' | 'SlowedDown' | 'Completed' | 'Failed' | 'Canceled'; /** * Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup & { +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13883,14 +1664,14 @@ export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: DatabaseSecurityAlertPolicy; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup & { +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13903,14 +1684,14 @@ export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: DatabaseSecurityAlertPolicy; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the listByDatabase operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult & { +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult & { /** * The underlying HTTP response. */ @@ -13923,14 +1704,14 @@ export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroup /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroupListResult; + parsedBody: DatabaseSecurityAlertListResult; }; }; /** - * Contains response data for the failover operation. + * Contains response data for the listByDatabaseNext operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup & { +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult & { /** * The underlying HTTP response. */ @@ -13943,14 +1724,14 @@ export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: DatabaseSecurityAlertListResult; }; }; /** - * Contains response data for the forceFailoverAllowDataLoss operation. + * Contains response data for the get operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup & { +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { /** * The underlying HTTP response. */ @@ -13963,14 +1744,14 @@ export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceF /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: SensitivityLabel; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsBeginCreateOrUpdateResponse = InstanceFailoverGroup & { +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { /** * The underlying HTTP response. */ @@ -13983,14 +1764,14 @@ export type InstanceFailoverGroupsBeginCreateOrUpdateResponse = InstanceFailover /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: SensitivityLabel; }; }; /** - * Contains response data for the beginFailover operation. + * Contains response data for the listCurrentByDatabase operation. */ -export type InstanceFailoverGroupsBeginFailoverResponse = InstanceFailoverGroup & { +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -14003,14 +1784,14 @@ export type InstanceFailoverGroupsBeginFailoverResponse = InstanceFailoverGroup /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the beginForceFailoverAllowDataLoss operation. + * Contains response data for the listRecommendedByDatabase operation. */ -export type InstanceFailoverGroupsBeginForceFailoverAllowDataLossResponse = InstanceFailoverGroup & { +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -14023,14 +1804,14 @@ export type InstanceFailoverGroupsBeginForceFailoverAllowDataLossResponse = Inst /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the listByLocationNext operation. + * Contains response data for the listCurrentByDatabaseNext operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult & { +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -14043,14 +1824,14 @@ export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverG /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroupListResult; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listRecommendedByDatabaseNext operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy & { +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -14063,14 +1844,14 @@ export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetenti /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy & { +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -14083,14 +1864,14 @@ export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShort /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ManagedInstanceVulnerabilityAssessment; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy & { +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -14103,14 +1884,14 @@ export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRete /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ManagedInstanceVulnerabilityAssessment; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByInstance operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult & { +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -14123,14 +1904,14 @@ export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShort /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicyListResult; + parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type BackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupShortTermRetentionPolicy & { +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -14143,14 +1924,14 @@ export type BackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = Backup /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByManagedInstance operation. */ -export type BackupShortTermRetentionPoliciesBeginUpdateResponse = BackupShortTermRetentionPolicy & { +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult & { /** * The underlying HTTP response. */ @@ -14163,14 +1944,14 @@ export type BackupShortTermRetentionPoliciesBeginUpdateResponse = BackupShortTer /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ManagedInstanceOperationListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult & { +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation & { /** * The underlying HTTP response. */ @@ -14183,14 +1964,14 @@ export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupS /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicyListResult; + parsedBody: ManagedInstanceOperation; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult & { +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult & { /** * The underlying HTTP response. */ @@ -14203,14 +1984,14 @@ export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListRe /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKeyListResult; + parsedBody: ManagedInstanceOperationListResult; }; }; /** * Contains response data for the get operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey & { +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -14223,34 +2004,14 @@ export type ManagedInstanceKeysGetResponse = ManagedInstanceKey & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKey; + parsedBody: ServerVulnerabilityAssessment; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedInstanceKey; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ManagedInstanceKeysBeginCreateOrUpdateResponse = ManagedInstanceKey & { +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -14263,14 +2024,14 @@ export type ManagedInstanceKeysBeginCreateOrUpdateResponse = ManagedInstanceKey /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKey; + parsedBody: ServerVulnerabilityAssessment; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listByServer operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult & { +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -14283,14 +2044,14 @@ export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyLi /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKeyListResult; + parsedBody: ServerVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult & { +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -14303,14 +2064,14 @@ export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedI /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtectorListResult; + parsedBody: ServerVulnerabilityAssessmentListResult; }; }; /** * Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector & { +export type InstancePoolsGetResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -14323,14 +2084,14 @@ export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncr /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtector; + parsedBody: InstancePool; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector & { +export type InstancePoolsCreateOrUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -14343,14 +2104,14 @@ export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedI /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtector; + parsedBody: InstancePool; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type ManagedInstanceEncryptionProtectorsBeginCreateOrUpdateResponse = ManagedInstanceEncryptionProtector & { +export type InstancePoolsUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -14363,14 +2124,14 @@ export type ManagedInstanceEncryptionProtectorsBeginCreateOrUpdateResponse = Man /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtector; + parsedBody: InstancePool; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult & { +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -14383,14 +2144,14 @@ export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtectorListResult; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the list operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult & { +export type InstancePoolsListResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -14403,14 +2164,14 @@ export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManag /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableManagedDatabaseListResult; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase & { +export type InstancePoolsBeginCreateOrUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -14423,14 +2184,14 @@ export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableManagedDatabase; + parsedBody: InstancePool; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the beginUpdate operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult & { +export type InstancePoolsBeginUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -14443,14 +2204,14 @@ export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableM /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableManagedDatabaseListResult; + parsedBody: InstancePool; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment & { +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -14463,14 +2224,14 @@ export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstance /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessment; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment & { +export type InstancePoolsListNextResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -14483,14 +2244,14 @@ export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessment; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listByInstancePool operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult & { +export type UsagesListByInstancePoolResponse = UsageListResult & { /** * The underlying HTTP response. */ @@ -14503,14 +2264,14 @@ export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; + parsedBody: UsageListResult; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listByInstancePoolNext operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult & { +export type UsagesListByInstancePoolNextResponse = UsageListResult & { /** * The underlying HTTP response. */ @@ -14523,14 +2284,14 @@ export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; + parsedBody: UsageListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByInstancePool operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment & { +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -14543,14 +2304,14 @@ export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAsses /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment & { +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -14563,14 +2324,14 @@ export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnera /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult & { +export type ManagedInstancesGetResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -14583,14 +2344,14 @@ export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabi /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentListResult; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult & { +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -14603,14 +2364,14 @@ export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulne /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentListResult; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { +export type ManagedInstancesUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -14623,14 +2384,14 @@ export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabel; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { +export type ManagedInstancesListResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -14643,14 +2404,14 @@ export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = Sensitivity /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabel; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listCurrentByDatabase operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { +export type ManagedInstancesBeginCreateOrUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -14663,14 +2424,14 @@ export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = Sens /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the listRecommendedByDatabase operation. + * Contains response data for the beginUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { +export type ManagedInstancesBeginUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -14683,14 +2444,14 @@ export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the listCurrentByDatabaseNext operation. + * Contains response data for the listByInstancePoolNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -14703,14 +2464,14 @@ export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listRecommendedByDatabaseNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -14723,14 +2484,14 @@ export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextRespons /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type InstancePoolsGetResponse = InstancePool & { +export type ManagedInstancesListNextResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -14743,14 +2504,14 @@ export type InstancePoolsGetResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type InstancePoolsCreateOrUpdateResponse = InstancePool & { +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult & { /** * The underlying HTTP response. */ @@ -14763,14 +2524,14 @@ export type InstancePoolsCreateOrUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: ManagedDatabaseRestoreDetailsResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByInstance operation. */ -export type InstancePoolsUpdateResponse = InstancePool & { +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -14783,14 +2544,14 @@ export type InstancePoolsUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult & { +export type ManagedDatabasesGetResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -14803,14 +2564,14 @@ export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult & /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type InstancePoolsListResponse = InstancePoolListResult & { +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -14823,14 +2584,14 @@ export type InstancePoolsListResponse = InstancePoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type InstancePoolsBeginCreateOrUpdateResponse = InstancePool & { +export type ManagedDatabasesUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -14843,14 +2604,14 @@ export type InstancePoolsBeginCreateOrUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type InstancePoolsBeginUpdateResponse = InstancePool & { +export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -14863,14 +2624,14 @@ export type InstancePoolsBeginUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginUpdate operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult & { +export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -14883,14 +2644,14 @@ export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResul /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByInstanceNext operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult & { +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -14903,14 +2664,14 @@ export type InstancePoolsListNextResponse = InstancePoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the listByInstancePool operation. + * Contains response data for the get operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -14923,14 +2684,14 @@ export type UsagesListByInstancePoolResponse = UsageListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsageListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByInstancePoolNext operation. + * Contains response data for the createOrUpdate operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -14943,14 +2704,14 @@ export type UsagesListByInstancePoolNextResponse = UsageListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsageListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByInstancePool operation. + * Contains response data for the listByServer operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult & { +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -14963,14 +2724,14 @@ export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResu /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -14983,14 +2744,14 @@ export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListRes /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedInstancesGetResponse = ManagedInstance & { +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -15003,14 +2764,14 @@ export type ManagedInstancesGetResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance & { +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -15023,14 +2784,14 @@ export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance & { +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -15043,14 +2804,14 @@ export type ManagedInstancesUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByServer operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult & { +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult & { /** * The underlying HTTP response. */ @@ -15063,14 +2824,14 @@ export type ManagedInstancesListResponse = ManagedInstanceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: AdministratorListResult; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedInstancesBeginCreateOrUpdateResponse = ManagedInstance & { +export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -15083,14 +2844,14 @@ export type ManagedInstancesBeginCreateOrUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedInstancesBeginUpdateResponse = ManagedInstance & { +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult & { /** * The underlying HTTP response. */ @@ -15103,14 +2864,14 @@ export type ManagedInstancesBeginUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: AdministratorListResult; }; }; /** - * Contains response data for the listByInstancePoolNext operation. + * Contains response data for the get operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult & { +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -15123,14 +2884,14 @@ export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceList /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: ManagedInstanceLongTermRetentionPolicy; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult & { +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -15143,14 +2904,14 @@ export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceLis /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: ManagedInstanceLongTermRetentionPolicy; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByDatabase operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult & { +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -15163,14 +2924,14 @@ export type ManagedInstancesListNextResponse = ManagedInstanceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: ManagedInstanceLongTermRetentionPolicyListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult & { +export type ManagedInstanceLongTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -15183,14 +2944,14 @@ export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDet /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseRestoreDetailsResult; + parsedBody: ManagedInstanceLongTermRetentionPolicy; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & { +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -15203,14 +2964,14 @@ export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: ManagedInstanceLongTermRetentionPolicyListResult; }; }; /** * Contains response data for the get operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase & { +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup & { /** * The underlying HTTP response. */ @@ -15223,14 +2984,14 @@ export type ManagedDatabasesGetResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ManagedInstanceLongTermRetentionBackup; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15243,14 +3004,14 @@ export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByInstance operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase & { +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15263,14 +3024,14 @@ export type ManagedDatabasesUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByLocation operation. */ -export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15283,14 +3044,14 @@ export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the getByResourceGroup operation. */ -export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup & { /** * The underlying HTTP response. */ @@ -15303,14 +3064,14 @@ export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ManagedInstanceLongTermRetentionBackup; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listByResourceGroupDatabase operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15323,14 +3084,14 @@ export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResu /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupInstance operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15343,14 +3104,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroupLocation operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15363,14 +3124,14 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByDatabaseNext operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult & { +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15383,14 +3144,14 @@ export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConn /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15403,14 +3164,14 @@ export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByLocationNext operation. */ -export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult & { +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15423,14 +3184,14 @@ export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpoint /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15443,14 +3204,14 @@ export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListRe /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupInstanceNext operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15463,14 +3224,14 @@ export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResource; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByResourceGroupLocationNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -15483,6 +3244,6 @@ export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceLi /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; diff --git a/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts b/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts deleted file mode 100644 index a31090e2d7d3..000000000000 --- a/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupListResult, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts b/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts index a471ed9af1d2..f3de9e84b88a 100644 --- a/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts +++ b/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts @@ -1,124 +1,39 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, InstancePoolListResult, InstancePoolUpdate, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts b/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts deleted file mode 100644 index 3caafa179664..000000000000 --- a/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobAgentListResult, - JobAgentUpdate, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts b/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts deleted file mode 100644 index be1a9dd38073..000000000000 --- a/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobCredentialListResult, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts b/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts deleted file mode 100644 index 5377feb7dd16..000000000000 --- a/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionListResult, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts b/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts deleted file mode 100644 index 5377feb7dd16..000000000000 --- a/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionListResult, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobStepsMappers.ts b/sdk/sql/arm-sql/src/models/jobStepsMappers.ts deleted file mode 100644 index 36e930956434..000000000000 --- a/sdk/sql/arm-sql/src/models/jobStepsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepListResult, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts b/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts deleted file mode 100644 index 5377feb7dd16..000000000000 --- a/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionListResult, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts b/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts deleted file mode 100644 index 9b433c364f7a..000000000000 --- a/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobTargetGroupListResult, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts b/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts deleted file mode 100644 index e9ef19060444..000000000000 --- a/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - JobVersionListResult, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobsMappers.ts b/sdk/sql/arm-sql/src/models/jobsMappers.ts deleted file mode 100644 index 324fe5622e6d..000000000000 --- a/sdk/sql/arm-sql/src/models/jobsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobListResult, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts b/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts deleted file mode 100644 index e83b6fdbd626..000000000000 --- a/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - LongTermRetentionBackupListResult, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts b/sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts new file mode 100644 index 000000000000..0f1142aa4a8a --- /dev/null +++ b/sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + BaseResource, + CloudError, + DatabaseSecurityAlertPolicy, + InstancePool, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedInstance, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionBackupListResult, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstanceVulnerabilityAssessment, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceIdentity, + SensitivityLabel, + ServerAzureADAdministrator, + ServerVulnerabilityAssessment, + Sku, + TrackedResource, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts deleted file mode 100644 index 03c4d1f05ca5..000000000000 --- a/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedBackupShortTermRetentionPolicyListResult, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts index 7979989c60d3..f0214d1d5f14 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts @@ -1,122 +1,37 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts deleted file mode 100644 index 04f6452546af..000000000000 --- a/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedDatabaseSecurityAlertPolicyListResult, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts index 87d6022ba880..74b2206b7ff9 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts @@ -1,123 +1,38 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, SensitivityLabelListResult, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts deleted file mode 100644 index 8db2e4f353ef..000000000000 --- a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - VulnerabilityAssessmentScanRecordListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts deleted file mode 100644 index ddd16788a720..000000000000 --- a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentListResult, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts index 3020d2d590b6..fa69fe2e636d 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts @@ -1,125 +1,40 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, CompleteDatabaseRestoreDefinition, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseListResult, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedDatabaseUpdate, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts deleted file mode 100644 index f82643c82012..000000000000 --- a/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceAdministratorListResult, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts deleted file mode 100644 index 94c329fb02fb..000000000000 --- a/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceEncryptionProtectorListResult, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts deleted file mode 100644 index 5d77e04a398a..000000000000 --- a/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstanceKeyListResult, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts new file mode 100644 index 000000000000..77d118e1098f --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + BaseResource, + CloudError, + DatabaseSecurityAlertPolicy, + InstancePool, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedInstance, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceLongTermRetentionPolicyListResult, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstanceVulnerabilityAssessment, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceIdentity, + SensitivityLabel, + ServerAzureADAdministrator, + ServerVulnerabilityAssessment, + Sku, + TrackedResource, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts new file mode 100644 index 000000000000..339fbf3466cd --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + BaseResource, + CloudError, + DatabaseSecurityAlertPolicy, + InstancePool, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedInstance, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationListResult, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstanceVulnerabilityAssessment, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceIdentity, + SensitivityLabel, + ServerAzureADAdministrator, + ServerVulnerabilityAssessment, + Sku, + TrackedResource, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts index 935d313fae09..763ff9e66e69 100644 --- a/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts @@ -1,123 +1,38 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, ManagedInstanceVulnerabilityAssessmentListResult, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts index 82dca3bb3c6e..8745f1302b0c 100644 --- a/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts @@ -1,124 +1,39 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, ManagedInstanceListResult, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceUpdate, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts deleted file mode 100644 index 03c4d1f05ca5..000000000000 --- a/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedBackupShortTermRetentionPolicyListResult, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts deleted file mode 100644 index b0f6c453f109..000000000000 --- a/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - ManagedServerSecurityAlertPolicyListResult, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 93b27cc1a62f..61bfb7d5cc31 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -54,111 +54,74 @@ export const ProxyResource: msRest.CompositeMapper = { } }; -export const RecoverableDatabase: msRest.CompositeMapper = { - serializedName: "RecoverableDatabase", - type: { - name: "Composite", - className: "RecoverableDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - edition: { - readOnly: true, - serializedName: "properties.edition", - type: { - name: "String" - } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "properties.serviceLevelObjective", - type: { - name: "String" - } - }, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", - type: { - name: "String" - } - }, - lastAvailableBackupDate: { - readOnly: true, - serializedName: "properties.lastAvailableBackupDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const RestorableDroppedDatabase: msRest.CompositeMapper = { - serializedName: "RestorableDroppedDatabase", +export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "DatabaseSecurityAlertPolicy", type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + state: { + required: true, + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: [ + "New", + "Enabled", + "Disabled" + ] } }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - edition: { - readOnly: true, - serializedName: "properties.edition", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - maxSizeBytes: { - readOnly: true, - serializedName: "properties.maxSizeBytes", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - serviceLevelObjective: { - readOnly: true, - serializedName: "properties.serviceLevelObjective", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - deletionDate: { - readOnly: true, - serializedName: "properties.deletionDate", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "DateTime" + name: "Number" } }, - earliestRestoreDate: { + creationTime: { readOnly: true, - serializedName: "properties.earliestRestoreDate", + serializedName: "properties.creationTime", type: { name: "DateTime" } @@ -196,67 +159,54 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const CheckNameAvailabilityRequest: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityRequest", +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", type: { name: "Composite", - className: "CheckNameAvailabilityRequest", + className: "SensitivityLabel", modelProperties: { - name: { - required: true, - serializedName: "name", + ...ProxyResource.type.modelProperties, + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - type: { - required: true, - isConstant: true, - serializedName: "type", - defaultValue: 'Microsoft.Sql/servers', + labelId: { + serializedName: "properties.labelId", type: { name: "String" } - } - } - } -}; - -export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityResponse", - type: { - name: "Composite", - className: "CheckNameAvailabilityResponse", - modelProperties: { - available: { - readOnly: true, - serializedName: "available", + }, + informationType: { + serializedName: "properties.informationType", type: { - name: "Boolean" + name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + informationTypeId: { + serializedName: "properties.informationTypeId", type: { name: "String" } }, - name: { + isDisabled: { readOnly: true, - serializedName: "name", + serializedName: "properties.isDisabled", type: { - name: "String" + name: "Boolean" } }, - reason: { - readOnly: true, - serializedName: "reason", + rank: { + serializedName: "properties.rank", type: { name: "Enum", allowedValues: [ - "Invalid", - "AlreadyExists" + "None", + "Low", + "Medium", + "High", + "Critical" ] } } @@ -264,99 +214,56 @@ export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { } }; -export const ServerConnectionPolicy: msRest.CompositeMapper = { - serializedName: "ServerConnectionPolicy", +export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMapper = { + serializedName: "VulnerabilityAssessmentRecurringScansProperties", type: { name: "Composite", - className: "ServerConnectionPolicy", + className: "VulnerabilityAssessmentRecurringScansProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", + isEnabled: { + serializedName: "isEnabled", type: { - name: "String" + name: "Boolean" } }, - location: { - readOnly: true, - serializedName: "location", + emailSubscriptionAdmins: { + serializedName: "emailSubscriptionAdmins", + defaultValue: true, type: { - name: "String" + name: "Boolean" } }, - connectionType: { - required: true, - serializedName: "properties.connectionType", + emails: { + serializedName: "emails", type: { - name: "Enum", - allowedValues: [ - "Default", - "Proxy", - "Redirect" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "DatabaseSecurityAlertPolicy", +export const ManagedInstanceVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVulnerabilityAssessment", type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "ManagedInstanceVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - state: { + storageContainerPath: { required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "String" - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } @@ -367,227 +274,97 @@ export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - useServerDefault: { - serializedName: "properties.useServerDefault", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const DataMaskingPolicy: msRest.CompositeMapper = { - serializedName: "DataMaskingPolicy", +export const UpsertManagedServerOperationParameters: msRest.CompositeMapper = { + serializedName: "UpsertManagedServerOperationParameters", type: { name: "Composite", - className: "DataMaskingPolicy", + className: "UpsertManagedServerOperationParameters", modelProperties: { - ...ProxyResource.type.modelProperties, - dataMaskingState: { - required: true, - serializedName: "properties.dataMaskingState", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] - } - }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", - type: { - name: "String" - } - }, - applicationPrincipals: { - readOnly: true, - serializedName: "properties.applicationPrincipals", + family: { + serializedName: "family", type: { name: "String" } }, - maskingLevel: { - readOnly: true, - serializedName: "properties.maskingLevel", + tier: { + serializedName: "tier", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + vCores: { + serializedName: "vCores", type: { - name: "String" + name: "Number" } }, - kind: { - readOnly: true, - serializedName: "kind", + storageSizeInGB: { + serializedName: "storageSizeInGB", type: { - name: "String" + name: "Number" } } } } }; -export const DataMaskingRule: msRest.CompositeMapper = { - serializedName: "DataMaskingRule", +export const ManagedInstanceOperationParametersPair: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationParametersPair", type: { name: "Composite", - className: "DataMaskingRule", + className: "ManagedInstanceOperationParametersPair", modelProperties: { - ...ProxyResource.type.modelProperties, - dataMaskingRuleId: { + currentParameters: { readOnly: true, - serializedName: "properties.id", + serializedName: "currentParameters", type: { - name: "String" - } - }, - aliasName: { - serializedName: "properties.aliasName", - type: { - name: "String" - } - }, - ruleState: { - serializedName: "properties.ruleState", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] - } - }, - schemaName: { - required: true, - serializedName: "properties.schemaName", - type: { - name: "String" - } - }, - tableName: { - required: true, - serializedName: "properties.tableName", - type: { - name: "String" - } - }, - columnName: { - required: true, - serializedName: "properties.columnName", - type: { - name: "String" - } - }, - maskingFunction: { - required: true, - serializedName: "properties.maskingFunction", - type: { - name: "Enum", - allowedValues: [ - "Default", - "CCN", - "Email", - "Number", - "SSN", - "Text" - ] - } - }, - numberFrom: { - serializedName: "properties.numberFrom", - type: { - name: "String" - } - }, - numberTo: { - serializedName: "properties.numberTo", - type: { - name: "String" - } - }, - prefixSize: { - serializedName: "properties.prefixSize", - type: { - name: "String" - } - }, - suffixSize: { - serializedName: "properties.suffixSize", - type: { - name: "String" - } - }, - replacementString: { - serializedName: "properties.replacementString", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - kind: { + requestedParameters: { readOnly: true, - serializedName: "kind", + serializedName: "requestedParameters", type: { - name: "String" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } } } } }; -export const FirewallRule: msRest.CompositeMapper = { - serializedName: "FirewallRule", +export const UpsertManagedServerOperationStep: msRest.CompositeMapper = { + serializedName: "UpsertManagedServerOperationStep", type: { name: "Composite", - className: "FirewallRule", + className: "UpsertManagedServerOperationStep", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", + order: { + serializedName: "order", type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" + name: "Number" } }, - startIpAddress: { - required: true, - serializedName: "properties.startIpAddress", + name: { + serializedName: "name", type: { name: "String" } }, - endIpAddress: { - required: true, - serializedName: "properties.endIpAddress", + status: { + serializedName: "status", type: { name: "String" } @@ -596,370 +373,312 @@ export const FirewallRule: msRest.CompositeMapper = { } }; -export const GeoBackupPolicy: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicy", +export const ManagedInstanceOperationSteps: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationSteps", type: { name: "Composite", - className: "GeoBackupPolicy", + className: "ManagedInstanceOperationSteps", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] - } - }, - storageType: { + totalSteps: { readOnly: true, - serializedName: "properties.storageType", + serializedName: "totalSteps", type: { name: "String" } }, - kind: { + currentStep: { readOnly: true, - serializedName: "kind", + serializedName: "currentStep", type: { - name: "String" + name: "Number" } }, - location: { + stepsList: { readOnly: true, - serializedName: "location", + serializedName: "stepsList", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpsertManagedServerOperationStep" + } + } } } } } }; -export const ImportExtensionRequest: msRest.CompositeMapper = { - serializedName: "ImportExtensionRequest", +export const ManagedInstanceOperation: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperation", type: { name: "Composite", - className: "ImportExtensionRequest", + className: "ManagedInstanceOperation", modelProperties: { - name: { - serializedName: "name", + ...ProxyResource.type.modelProperties, + managedInstanceName: { + readOnly: true, + serializedName: "properties.managedInstanceName", type: { name: "String" } }, - type: { - serializedName: "type", + operation: { + readOnly: true, + serializedName: "properties.operation", type: { name: "String" } }, - storageKeyType: { - required: true, - serializedName: "properties.storageKeyType", - type: { - name: "Enum", - allowedValues: [ - "StorageAccessKey", - "SharedAccessKey" - ] - } - }, - storageKey: { - required: true, - serializedName: "properties.storageKey", + operationFriendlyName: { + readOnly: true, + serializedName: "properties.operationFriendlyName", type: { name: "String" } }, - storageUri: { - required: true, - serializedName: "properties.storageUri", + percentComplete: { + readOnly: true, + serializedName: "properties.percentComplete", type: { - name: "String" + name: "Number" } }, - administratorLogin: { - required: true, - serializedName: "properties.administratorLogin", + startTime: { + readOnly: true, + serializedName: "properties.startTime", type: { - name: "String" + name: "DateTime" } }, - administratorLoginPassword: { - required: true, - serializedName: "properties.administratorLoginPassword", + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } }, - authenticationType: { - serializedName: "properties.authenticationType", - defaultValue: 'SQL', - type: { - name: "Enum", - allowedValues: [ - "SQL", - "ADPassword" - ] - } - }, - operationMode: { - required: true, - isConstant: true, - serializedName: "properties.operationMode", - defaultValue: 'Import', - type: { - name: "String" - } - } - } - } -}; - -export const ImportExportResponse: msRest.CompositeMapper = { - serializedName: "ImportExportResponse", - type: { - name: "Composite", - className: "ImportExportResponse", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestType: { + errorCode: { readOnly: true, - serializedName: "properties.requestType", + serializedName: "properties.errorCode", type: { - name: "String" + name: "Number" } }, - requestId: { + errorDescription: { readOnly: true, - serializedName: "properties.requestId", + serializedName: "properties.errorDescription", type: { - name: "Uuid" + name: "String" } }, - serverName: { + errorSeverity: { readOnly: true, - serializedName: "properties.serverName", + serializedName: "properties.errorSeverity", type: { - name: "String" + name: "Number" } }, - databaseName: { + isUserError: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "properties.isUserError", type: { - name: "String" + name: "Boolean" } }, - status: { + estimatedCompletionTime: { readOnly: true, - serializedName: "properties.status", + serializedName: "properties.estimatedCompletionTime", type: { - name: "String" + name: "DateTime" } }, - lastModifiedTime: { + description: { readOnly: true, - serializedName: "properties.lastModifiedTime", + serializedName: "properties.description", type: { name: "String" } }, - queuedTime: { + isCancellable: { readOnly: true, - serializedName: "properties.queuedTime", + serializedName: "properties.isCancellable", type: { - name: "String" + name: "Boolean" } }, - blobUri: { + operationParameters: { readOnly: true, - serializedName: "properties.blobUri", + serializedName: "properties.operationParameters", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - errorMessage: { + operationSteps: { readOnly: true, - serializedName: "properties.errorMessage", + serializedName: "properties.operationSteps", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const ExportRequest: msRest.CompositeMapper = { - serializedName: "ExportRequest", +export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", type: { name: "Composite", - className: "ExportRequest", + className: "ServerVulnerabilityAssessment", modelProperties: { - storageKeyType: { - required: true, - serializedName: "storageKeyType", - type: { - name: "Enum", - allowedValues: [ - "StorageAccessKey", - "SharedAccessKey" - ] - } - }, - storageKey: { - required: true, - serializedName: "storageKey", - type: { - name: "String" - } - }, - storageUri: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { required: true, - serializedName: "storageUri", + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - administratorLogin: { - required: true, - serializedName: "administratorLogin", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - administratorLoginPassword: { - required: true, - serializedName: "administratorLoginPassword", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", - defaultValue: 'SQL', + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "Enum", - allowedValues: [ - "SQL", - "ADPassword" - ] + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ImportRequest: msRest.CompositeMapper = { - serializedName: "ImportRequest", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "ImportRequest", + className: "Sku", modelProperties: { - ...ExportRequest.type.modelProperties, - databaseName: { + name: { required: true, - serializedName: "databaseName", + serializedName: "name", type: { name: "String" } }, - edition: { - required: true, - serializedName: "edition", + tier: { + serializedName: "tier", type: { name: "String" } }, - serviceObjectiveName: { - required: true, - serializedName: "serviceObjectiveName", + size: { + serializedName: "size", type: { name: "String" } }, - maxSizeBytes: { - required: true, - serializedName: "maxSizeBytes", + family: { + serializedName: "family", type: { name: "String" } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } } } } }; -export const MetricValue: msRest.CompositeMapper = { - serializedName: "MetricValue", +export const InstancePool: msRest.CompositeMapper = { + serializedName: "InstancePool", type: { name: "Composite", - className: "MetricValue", + className: "InstancePool", modelProperties: { - count: { - readOnly: true, - serializedName: "count", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "Number" - } - }, - average: { - readOnly: true, - serializedName: "average", - type: { - name: "Number" + name: "Composite", + className: "Sku" } }, - maximum: { - readOnly: true, - serializedName: "maximum", + subnetId: { + required: true, + serializedName: "properties.subnetId", type: { - name: "Number" + name: "String" } }, - minimum: { - readOnly: true, - serializedName: "minimum", + vCores: { + required: true, + serializedName: "properties.vCores", type: { name: "Number" } }, - timestamp: { - readOnly: true, - serializedName: "timestamp", + licenseType: { + required: true, + serializedName: "properties.licenseType", type: { - name: "DateTime" + name: "String" } - }, - total: { - readOnly: true, - serializedName: "total", + } + } + } +}; + +export const InstancePoolUpdate: msRest.CompositeMapper = { + serializedName: "InstancePoolUpdate", + type: { + name: "Composite", + className: "InstancePoolUpdate", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const MetricName: msRest.CompositeMapper = { - serializedName: "MetricName", +export const Name: msRest.CompositeMapper = { + serializedName: "Name", type: { name: "Composite", - className: "MetricName", + className: "Name", modelProperties: { value: { - readOnly: true, serializedName: "value", type: { name: "String" } }, localizedValue: { - readOnly: true, serializedName: "localizedValue", type: { name: "String" @@ -969,29 +688,30 @@ export const MetricName: msRest.CompositeMapper = { } }; -export const Metric: msRest.CompositeMapper = { - serializedName: "Metric", +export const Usage: msRest.CompositeMapper = { + serializedName: "Usage", type: { name: "Composite", - className: "Metric", + className: "Usage", modelProperties: { - startTime: { + id: { readOnly: true, - serializedName: "startTime", + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - endTime: { + name: { readOnly: true, - serializedName: "endTime", + serializedName: "name", type: { - name: "DateTime" + name: "Composite", + className: "Name" } }, - timeGrain: { + type: { readOnly: true, - serializedName: "timeGrain", + serializedName: "type", type: { name: "String" } @@ -1003,8857 +723,677 @@ export const Metric: msRest.CompositeMapper = { name: "String" } }, - name: { + currentValue: { readOnly: true, - serializedName: "name", + serializedName: "currentValue", type: { - name: "Composite", - className: "MetricName" + name: "Number" } }, - metricValues: { + limit: { readOnly: true, - serializedName: "metricValues", + serializedName: "limit", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricValue" - } - } + name: "Number" + } + }, + requestedLimit: { + readOnly: true, + serializedName: "requestedLimit", + type: { + name: "Number" } } } } }; -export const MetricAvailability: msRest.CompositeMapper = { - serializedName: "MetricAvailability", +export const ResourceIdentity: msRest.CompositeMapper = { + serializedName: "ResourceIdentity", type: { name: "Composite", - className: "MetricAvailability", + className: "ResourceIdentity", modelProperties: { - retention: { + principalId: { readOnly: true, - serializedName: "retention", + serializedName: "principalId", + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", type: { name: "String" } }, - timeGrain: { + tenantId: { readOnly: true, - serializedName: "timeGrain", + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } } } } }; -export const MetricDefinition: msRest.CompositeMapper = { - serializedName: "MetricDefinition", +export const ManagedInstance: msRest.CompositeMapper = { + serializedName: "ManagedInstance", type: { name: "Composite", - className: "MetricDefinition", + className: "ManagedInstance", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "MetricName" + className: "Sku" } }, - primaryAggregationType: { - readOnly: true, - serializedName: "primaryAggregationType", + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { name: "String" } }, - resourceUri: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "resourceUri", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - unit: { - readOnly: true, - serializedName: "unit", + administratorLogin: { + serializedName: "properties.administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - metricAvailabilities: { + state: { readOnly: true, - serializedName: "metricAvailabilities", + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAvailability" - } - } + name: "String" } - } - } - } -}; - -export const RecommendedElasticPoolMetric: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolMetric", - type: { - name: "Composite", - className: "RecommendedElasticPoolMetric", - modelProperties: { - dateTime: { - serializedName: "dateTime", + }, + licenseType: { + serializedName: "properties.licenseType", type: { - name: "DateTime" + name: "String" } }, - dtu: { - serializedName: "dtu", + vCores: { + serializedName: "properties.vCores", type: { name: "Number" } }, - sizeGB: { - serializedName: "sizeGB", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { name: "Number" } - } - } - } -}; - -export const RecommendedElasticPool: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPool", - type: { - name: "Composite", - className: "RecommendedElasticPool", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseEdition: { - readOnly: true, - serializedName: "properties.databaseEdition", + }, + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - dtu: { - serializedName: "properties.dtu", + dnsZone: { + readOnly: true, + serializedName: "properties.dnsZone", type: { - name: "Number" + name: "String" } }, - databaseDtuMin: { - serializedName: "properties.databaseDtuMin", + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { - name: "Number" + name: "String" } }, - databaseDtuMax: { - serializedName: "properties.databaseDtuMax", + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", type: { - name: "Number" + name: "Boolean" } }, - storageMB: { - serializedName: "properties.storageMB", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { - name: "Number" + name: "String" } }, - observationPeriodStart: { - readOnly: true, - serializedName: "properties.observationPeriodStart", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { name: "DateTime" } }, - observationPeriodEnd: { - readOnly: true, - serializedName: "properties.observationPeriodEnd", + proxyOverride: { + serializedName: "properties.proxyOverride", type: { - name: "DateTime" + name: "String" } }, - maxObservedDtu: { - readOnly: true, - serializedName: "properties.maxObservedDtu", + timezoneId: { + serializedName: "properties.timezoneId", type: { - name: "Number" + name: "String" } }, - maxObservedStorageMB: { - readOnly: true, - serializedName: "properties.maxObservedStorageMB", + instancePoolId: { + serializedName: "properties.instancePoolId", type: { - name: "Number" + name: "String" } }, - databases: { - readOnly: true, - serializedName: "properties.databases", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrackedResource" - } - } + name: "String" } }, - metrics: { - readOnly: true, - serializedName: "properties.metrics", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedElasticPoolMetric" - } - } + name: "String" } } } } }; -export const ReplicationLink: msRest.CompositeMapper = { - serializedName: "ReplicationLink", +export const ManagedInstanceUpdate: msRest.CompositeMapper = { + serializedName: "ManagedInstanceUpdate", type: { name: "Composite", - className: "ReplicationLink", + className: "ManagedInstanceUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - isTerminationAllowed: { - readOnly: true, - serializedName: "properties.isTerminationAllowed", + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { - name: "Boolean" + name: "String" } }, - replicationMode: { + fullyQualifiedDomainName: { readOnly: true, - serializedName: "properties.replicationMode", + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } }, - partnerServer: { - readOnly: true, - serializedName: "properties.partnerServer", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - partnerDatabase: { - readOnly: true, - serializedName: "properties.partnerDatabase", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - partnerLocation: { - readOnly: true, - serializedName: "properties.partnerLocation", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - role: { + state: { readOnly: true, - serializedName: "properties.role", + serializedName: "properties.state", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "String" } }, - partnerRole: { - readOnly: true, - serializedName: "properties.partnerRole", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + vCores: { + serializedName: "properties.vCores", type: { - name: "DateTime" + name: "Number" } }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { name: "Number" } }, - replicationState: { + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + dnsZone: { readOnly: true, - serializedName: "properties.replicationState", + serializedName: "properties.dnsZone", type: { name: "String" } - } - } - } -}; - -export const ServerAzureADAdministrator: msRest.CompositeMapper = { - serializedName: "ServerAzureADAdministrator", - type: { - name: "Composite", - className: "ServerAzureADAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - required: true, - isConstant: true, - serializedName: "properties.administratorType", - defaultValue: 'ActiveDirectory', + }, + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } }, - login: { - required: true, - serializedName: "properties.login", + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", + type: { + name: "Boolean" + } + }, + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { name: "String" } }, - sid: { - required: true, - serializedName: "properties.sid", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Uuid" + name: "DateTime" } }, - tenantId: { - required: true, - serializedName: "properties.tenantId", + proxyOverride: { + serializedName: "properties.proxyOverride", type: { - name: "Uuid" + name: "String" } - } - } - } -}; - -export const ServerCommunicationLink: msRest.CompositeMapper = { - serializedName: "ServerCommunicationLink", - type: { - name: "Composite", - className: "ServerCommunicationLink", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + }, + timezoneId: { + serializedName: "properties.timezoneId", type: { name: "String" } }, - partnerServer: { - required: true, - serializedName: "properties.partnerServer", + instancePoolId: { + serializedName: "properties.instancePoolId", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - kind: { - readOnly: true, - serializedName: "kind", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } }; -export const ServiceObjective: msRest.CompositeMapper = { - serializedName: "ServiceObjective", +export const ManagedDatabaseRestoreDetailsResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseRestoreDetailsResult", type: { name: "Composite", - className: "ServiceObjective", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { ...ProxyResource.type.modelProperties, - serviceObjectiveName: { + status: { readOnly: true, - serializedName: "properties.serviceObjectiveName", + serializedName: "properties.status", type: { name: "String" } }, - isDefault: { - nullable: false, + currentRestoringFileName: { readOnly: true, - serializedName: "properties.isDefault", + serializedName: "properties.currentRestoringFileName", type: { - name: "Boolean" + name: "String" } }, - isSystem: { - nullable: false, + lastRestoredFileName: { readOnly: true, - serializedName: "properties.isSystem", + serializedName: "properties.lastRestoredFileName", type: { - name: "Boolean" + name: "String" } }, - description: { + lastRestoredFileTime: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.lastRestoredFileTime", type: { - name: "String" + name: "DateTime" } }, - enabled: { - nullable: false, + percentCompleted: { readOnly: true, - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ElasticPoolActivity: msRest.CompositeMapper = { - serializedName: "ElasticPoolActivity", - type: { - name: "Composite", - className: "ElasticPoolActivity", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + serializedName: "properties.percentCompleted", type: { - name: "String" + name: "Number" } }, - endTime: { + unrestorableFiles: { readOnly: true, - serializedName: "properties.endTime", + serializedName: "properties.unrestorableFiles", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - errorCode: { + numberOfFilesDetected: { readOnly: true, - serializedName: "properties.errorCode", + serializedName: "properties.numberOfFilesDetected", type: { name: "Number" } }, - errorMessage: { + lastUploadedFileName: { readOnly: true, - serializedName: "properties.errorMessage", + serializedName: "properties.lastUploadedFileName", type: { name: "String" } }, - errorSeverity: { + lastUploadedFileTime: { readOnly: true, - serializedName: "properties.errorSeverity", + serializedName: "properties.lastUploadedFileTime", type: { - name: "Number" + name: "DateTime" } }, - operation: { + blockReason: { readOnly: true, - serializedName: "properties.operation", + serializedName: "properties.blockReason", type: { name: "String" } - }, - operationId: { - nullable: false, - readOnly: true, - serializedName: "properties.operationId", + } + } + } +}; + +export const ManagedDatabase: msRest.CompositeMapper = { + serializedName: "ManagedDatabase", + type: { + name: "Composite", + className: "ManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + collation: { + serializedName: "properties.collation", type: { - name: "Uuid" + name: "String" } }, - percentComplete: { + status: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "properties.status", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuMax: { + creationDate: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuMax", + serializedName: "properties.creationDate", type: { - name: "Number" + name: "DateTime" } }, - requestedDatabaseDtuMin: { + earliestRestorePoint: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuMin", + serializedName: "properties.earliestRestorePoint", type: { - name: "Number" + name: "DateTime" } }, - requestedDtu: { - readOnly: true, - serializedName: "properties.requestedDtu", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Number" + name: "DateTime" } }, - requestedElasticPoolName: { + defaultSecondaryLocation: { readOnly: true, - serializedName: "properties.requestedElasticPoolName", + serializedName: "properties.defaultSecondaryLocation", type: { name: "String" } }, - requestedStorageLimitInGB: { - readOnly: true, - serializedName: "properties.requestedStorageLimitInGB", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Number" + name: "String" } }, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { - name: "DateTime" + name: "String" } }, - state: { - readOnly: true, - serializedName: "properties.state", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } }, - requestedStorageLimitInMB: { - readOnly: true, - serializedName: "properties.requestedStorageLimitInMB", + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuGuarantee: { + failoverGroupId: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuGuarantee", + serializedName: "properties.failoverGroupId", type: { - name: "Number" + name: "String" } }, - requestedDatabaseDtuCap: { - readOnly: true, - serializedName: "properties.requestedDatabaseDtuCap", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Number" + name: "String" } }, - requestedDtuGuarantee: { - readOnly: true, - serializedName: "properties.requestedDtuGuarantee", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Number" + name: "String" } } } } }; -export const ElasticPoolDatabaseActivity: msRest.CompositeMapper = { - serializedName: "ElasticPoolDatabaseActivity", +export const ManagedDatabaseUpdate: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseUpdate", type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "ManagedDatabaseUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - databaseName: { + status: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "properties.status", type: { name: "String" } }, - endTime: { + creationDate: { readOnly: true, - serializedName: "properties.endTime", + serializedName: "properties.creationDate", type: { name: "DateTime" } }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", - type: { - name: "Number" - } - }, - errorMessage: { + earliestRestorePoint: { readOnly: true, - serializedName: "properties.errorMessage", + serializedName: "properties.earliestRestorePoint", type: { - name: "String" + name: "DateTime" } }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Number" + name: "DateTime" } }, - operation: { + defaultSecondaryLocation: { readOnly: true, - serializedName: "properties.operation", + serializedName: "properties.defaultSecondaryLocation", type: { name: "String" } }, - operationId: { - nullable: false, - readOnly: true, - serializedName: "properties.operationId", - type: { - name: "Uuid" - } - }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", - type: { - name: "Number" - } - }, - requestedElasticPoolName: { - readOnly: true, - serializedName: "properties.requestedElasticPoolName", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { name: "String" } }, - currentElasticPoolName: { - readOnly: true, - serializedName: "properties.currentElasticPoolName", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - currentServiceObjective: { - readOnly: true, - serializedName: "properties.currentServiceObjective", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { name: "String" } }, - requestedServiceObjective: { - readOnly: true, - serializedName: "properties.requestedServiceObjective", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - } - } - } -}; - -export const OperationImpact: msRest.CompositeMapper = { - serializedName: "OperationImpact", - type: { - name: "Composite", - className: "OperationImpact", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", type: { name: "String" } }, - unit: { + failoverGroupId: { readOnly: true, - serializedName: "unit", + serializedName: "properties.failoverGroupId", type: { name: "String" } }, - changeValueAbsolute: { - readOnly: true, - serializedName: "changeValueAbsolute", - type: { - name: "Number" - } - }, - changeValueRelative: { - readOnly: true, - serializedName: "changeValueRelative", - type: { - name: "Number" - } - } - } - } -}; - -export const RecommendedIndex: msRest.CompositeMapper = { - serializedName: "RecommendedIndex", - type: { - name: "Composite", - className: "RecommendedIndex", - modelProperties: { - ...ProxyResource.type.modelProperties, - action: { - readOnly: true, - serializedName: "properties.action", - type: { - name: "Enum", - allowedValues: [ - "Create", - "Drop", - "Rebuild" - ] - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Pending", - "Executing", - "Verifying", - "Pending Revert", - "Reverting", - "Reverted", - "Ignored", - "Expired", - "Blocked", - "Success" - ] - } - }, - created: { - readOnly: true, - serializedName: "properties.created", - type: { - name: "DateTime" - } - }, - lastModified: { - readOnly: true, - serializedName: "properties.lastModified", - type: { - name: "DateTime" - } - }, - indexType: { - readOnly: true, - serializedName: "properties.indexType", - type: { - name: "Enum", - allowedValues: [ - "CLUSTERED", - "NONCLUSTERED", - "COLUMNSTORE", - "CLUSTERED COLUMNSTORE" - ] - } - }, - schema: { - readOnly: true, - serializedName: "properties.schema", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { name: "String" } }, - table: { - readOnly: true, - serializedName: "properties.table", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { name: "String" } }, - columns: { - readOnly: true, - serializedName: "properties.columns", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedColumns: { - readOnly: true, - serializedName: "properties.includedColumns", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } - }, - indexScript: { - readOnly: true, - serializedName: "properties.indexScript", - type: { - name: "String" - } - }, - estimatedImpact: { - readOnly: true, - serializedName: "properties.estimatedImpact", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } - } - }, - reportedImpact: { - readOnly: true, - serializedName: "properties.reportedImpact", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } - } - } - } - } -}; - -export const TransparentDataEncryption: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryption", - type: { - name: "Composite", - className: "TransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - } - } - } -}; - -export const SloUsageMetric: msRest.CompositeMapper = { - serializedName: "SloUsageMetric", - type: { - name: "Composite", - className: "SloUsageMetric", - modelProperties: { - serviceLevelObjective: { - readOnly: true, - serializedName: "serviceLevelObjective", - type: { - name: "String" - } - }, - serviceLevelObjectiveId: { - nullable: false, - readOnly: true, - serializedName: "serviceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - inRangeTimeRatio: { - nullable: false, - readOnly: true, - serializedName: "inRangeTimeRatio", - type: { - name: "Number" - } } } } }; -export const ServiceTierAdvisor: msRest.CompositeMapper = { - serializedName: "ServiceTierAdvisor", - type: { - name: "Composite", - className: "ServiceTierAdvisor", - modelProperties: { - ...ProxyResource.type.modelProperties, - observationPeriodStart: { - readOnly: true, - serializedName: "properties.observationPeriodStart", - type: { - name: "DateTime" - } - }, - observationPeriodEnd: { - readOnly: true, - serializedName: "properties.observationPeriodEnd", - type: { - name: "DateTime" - } - }, - activeTimeRatio: { - readOnly: true, - serializedName: "properties.activeTimeRatio", - type: { - name: "Number" - } - }, - minDtu: { - readOnly: true, - serializedName: "properties.minDtu", - type: { - name: "Number" - } - }, - avgDtu: { - readOnly: true, - serializedName: "properties.avgDtu", - type: { - name: "Number" - } - }, - maxDtu: { - readOnly: true, - serializedName: "properties.maxDtu", - type: { - name: "Number" - } - }, - maxSizeInGB: { - readOnly: true, - serializedName: "properties.maxSizeInGB", - type: { - name: "Number" - } - }, - serviceLevelObjectiveUsageMetrics: { - readOnly: true, - serializedName: "properties.serviceLevelObjectiveUsageMetrics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SloUsageMetric" - } - } - } - }, - currentServiceLevelObjective: { - readOnly: true, - serializedName: "properties.currentServiceLevelObjective", - type: { - name: "String" - } - }, - currentServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.currentServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - usageBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.usageBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - usageBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.usageBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - databaseSizeBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - databaseSizeBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - disasterPlanBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - disasterPlanBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - overallRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.overallRecommendationServiceLevelObjective", - type: { - name: "String" - } - }, - overallRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.overallRecommendationServiceLevelObjectiveId", - type: { - name: "Uuid" - } - }, - confidence: { - nullable: false, - readOnly: true, - serializedName: "properties.confidence", - type: { - name: "Number" - } - } - } - } -}; - -export const TransparentDataEncryptionActivity: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionActivity", - type: { - name: "Composite", - className: "TransparentDataEncryptionActivity", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", - type: { - name: "Number" - } - } - } - } -}; - -export const ServerUsage: msRest.CompositeMapper = { - serializedName: "ServerUsage", - type: { - name: "Composite", - className: "ServerUsage", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - resourceName: { - readOnly: true, - serializedName: "resourceName", - type: { - name: "String" - } - }, - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const DatabaseUsage: msRest.CompositeMapper = { - serializedName: "DatabaseUsage", - type: { - name: "Composite", - className: "DatabaseUsage", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - resourceName: { - readOnly: true, - serializedName: "resourceName", - type: { - name: "String" - } - }, - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const AutomaticTuningOptions: msRest.CompositeMapper = { - serializedName: "AutomaticTuningOptions", - type: { - name: "Composite", - className: "AutomaticTuningOptions", - modelProperties: { - desiredState: { - serializedName: "desiredState", - type: { - name: "Enum", - allowedValues: [ - "Off", - "On", - "Default" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "actualState", - type: { - name: "Enum", - allowedValues: [ - "Off", - "On" - ] - } - }, - reasonCode: { - readOnly: true, - serializedName: "reasonCode", - type: { - name: "Number" - } - }, - reasonDesc: { - readOnly: true, - serializedName: "reasonDesc", - type: { - name: "Enum", - allowedValues: [ - "Default", - "Disabled", - "AutoConfigured", - "InheritedFromServer", - "QueryStoreOff", - "QueryStoreReadOnly", - "NotSupported" - ] - } - } - } - } -}; - -export const DatabaseAutomaticTuning: msRest.CompositeMapper = { - serializedName: "DatabaseAutomaticTuning", - type: { - name: "Composite", - className: "DatabaseAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "properties.actualState", - type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] - } - }, - options: { - serializedName: "properties.options", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningOptions" - } - } - } - } - } - } -}; - -export const EncryptionProtector: msRest.CompositeMapper = { - serializedName: "EncryptionProtector", - type: { - name: "Composite", - className: "EncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - subregion: { - readOnly: true, - serializedName: "properties.subregion", - type: { - name: "String" - } - }, - serverKeyName: { - serializedName: "properties.serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - readOnly: true, - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "properties.thumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { - serializedName: "FailoverGroupReadWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - required: true, - serializedName: "failoverPolicy", - type: { - name: "String" - } - }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { - serializedName: "FailoverGroupReadOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - type: { - name: "String" - } - } - } - } -}; - -export const PartnerInfo: msRest.CompositeMapper = { - serializedName: "PartnerInfo", - type: { - name: "Composite", - className: "PartnerInfo", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - replicationRole: { - readOnly: true, - serializedName: "replicationRole", - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroup: msRest.CompositeMapper = { - serializedName: "FailoverGroup", - type: { - name: "Composite", - className: "FailoverGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - readWriteEndpoint: { - required: true, - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - readOnly: true, - serializedName: "properties.replicationRole", - type: { - name: "String" - } - }, - replicationState: { - readOnly: true, - serializedName: "properties.replicationState", - type: { - name: "String" - } - }, - partnerServers: { - required: true, - 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 FailoverGroupUpdate: msRest.CompositeMapper = { - serializedName: "FailoverGroupUpdate", - type: { - name: "Composite", - className: "FailoverGroupUpdate", - modelProperties: { - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" - } - }, - databases: { - serializedName: "properties.databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - readOnly: true, - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - readOnly: true, - serializedName: "operation", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - display: { - readOnly: true, - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - readOnly: true, - serializedName: "origin", - type: { - name: "String" - } - }, - properties: { - readOnly: true, - serializedName: "properties", - type: { - name: "Dictionary", - value: { - type: { - name: "Object" - } - } - } - } - } - } -}; - -export const ServerKey: msRest.CompositeMapper = { - serializedName: "ServerKey", - type: { - name: "Composite", - className: "ServerKey", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - subregion: { - readOnly: true, - serializedName: "properties.subregion", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - serializedName: "properties.thumbprint", - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ResourceIdentity: msRest.CompositeMapper = { - serializedName: "ResourceIdentity", - type: { - name: "Composite", - className: "ResourceIdentity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const Server: msRest.CompositeMapper = { - serializedName: "Server", - type: { - name: "Composite", - className: "Server", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - 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: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", - type: { - name: "String" - } - } - } - } -}; - -export const ServerUpdate: msRest.CompositeMapper = { - serializedName: "ServerUpdate", - type: { - name: "Composite", - className: "ServerUpdate", - modelProperties: { - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const SyncAgent: msRest.CompositeMapper = { - serializedName: "SyncAgent", - type: { - name: "Composite", - className: "SyncAgent", - modelProperties: { - ...ProxyResource.type.modelProperties, - syncAgentName: { - readOnly: true, - serializedName: "properties.name", - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", - type: { - name: "String" - } - }, - lastAliveTime: { - readOnly: true, - serializedName: "properties.lastAliveTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - isUpToDate: { - readOnly: true, - serializedName: "properties.isUpToDate", - type: { - name: "Boolean" - } - }, - expiryTime: { - readOnly: true, - serializedName: "properties.expiryTime", - type: { - name: "DateTime" - } - }, - version: { - readOnly: true, - serializedName: "properties.version", - type: { - name: "String" - } - } - } - } -}; - -export const SyncAgentKeyProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentKeyProperties", - type: { - name: "Composite", - className: "SyncAgentKeyProperties", - modelProperties: { - syncAgentKey: { - readOnly: true, - serializedName: "syncAgentKey", - type: { - name: "String" - } - } - } - } -}; - -export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabase", - type: { - name: "Composite", - className: "SyncAgentLinkedDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - readOnly: true, - serializedName: "properties.databaseType", - type: { - name: "String" - } - }, - databaseId: { - readOnly: true, - serializedName: "properties.databaseId", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - userName: { - readOnly: true, - serializedName: "properties.userName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncDatabaseIdProperties: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdProperties", - type: { - name: "Composite", - className: "SyncDatabaseIdProperties", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTableColumn", - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn", - modelProperties: { - dataSize: { - readOnly: true, - serializedName: "dataSize", - type: { - name: "String" - } - }, - dataType: { - readOnly: true, - serializedName: "dataType", - type: { - name: "String" - } - }, - errorId: { - readOnly: true, - serializedName: "errorId", - type: { - name: "String" - } - }, - hasError: { - readOnly: true, - serializedName: "hasError", - type: { - name: "Boolean" - } - }, - isPrimaryKey: { - readOnly: true, - serializedName: "isPrimaryKey", - type: { - name: "Boolean" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - quotedName: { - readOnly: true, - serializedName: "quotedName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncFullSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTable", - type: { - name: "Composite", - className: "SyncFullSchemaTable", - modelProperties: { - columns: { - readOnly: true, - serializedName: "columns", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn" - } - } - } - }, - errorId: { - readOnly: true, - serializedName: "errorId", - type: { - name: "String" - } - }, - hasError: { - readOnly: true, - serializedName: "hasError", - type: { - name: "Boolean" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - quotedName: { - readOnly: true, - serializedName: "quotedName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncFullSchemaProperties: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaProperties", - type: { - name: "Composite", - className: "SyncFullSchemaProperties", - modelProperties: { - tables: { - readOnly: true, - serializedName: "tables", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTable" - } - } - } - }, - lastUpdateTime: { - readOnly: true, - serializedName: "lastUpdateTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const SyncGroupLogProperties: msRest.CompositeMapper = { - serializedName: "SyncGroupLogProperties", - type: { - name: "Composite", - className: "SyncGroupLogProperties", - modelProperties: { - timestamp: { - readOnly: true, - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - source: { - readOnly: true, - serializedName: "source", - type: { - name: "String" - } - }, - details: { - readOnly: true, - serializedName: "details", - type: { - name: "String" - } - }, - tracingId: { - readOnly: true, - serializedName: "tracingId", - type: { - name: "Uuid" - } - }, - operationStatus: { - readOnly: true, - serializedName: "operationStatus", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTableColumn", - type: { - name: "Composite", - className: "SyncGroupSchemaTableColumn", - modelProperties: { - quotedName: { - serializedName: "quotedName", - type: { - name: "String" - } - }, - dataSize: { - serializedName: "dataSize", - type: { - name: "String" - } - }, - dataType: { - serializedName: "dataType", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTable", - type: { - name: "Composite", - className: "SyncGroupSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTableColumn" - } - } - } - }, - quotedName: { - serializedName: "quotedName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupSchema: msRest.CompositeMapper = { - serializedName: "SyncGroupSchema", - type: { - name: "Composite", - className: "SyncGroupSchema", - modelProperties: { - tables: { - serializedName: "tables", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTable" - } - } - } - }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroup: msRest.CompositeMapper = { - serializedName: "SyncGroup", - type: { - name: "Composite", - className: "SyncGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - interval: { - serializedName: "properties.interval", - type: { - name: "Number" - } - }, - lastSyncTime: { - readOnly: true, - serializedName: "properties.lastSyncTime", - type: { - name: "DateTime" - } - }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", - type: { - name: "String" - } - }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", - type: { - name: "String" - } - }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", - type: { - name: "String" - } - }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", - type: { - name: "String" - } - }, - syncState: { - readOnly: true, - serializedName: "properties.syncState", - type: { - name: "String" - } - }, - schema: { - serializedName: "properties.schema", - type: { - name: "Composite", - className: "SyncGroupSchema" - } - } - } - } -}; - -export const SyncMember: msRest.CompositeMapper = { - serializedName: "SyncMember", - type: { - name: "Composite", - className: "SyncMember", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", - type: { - name: "String" - } - }, - syncAgentId: { - serializedName: "properties.syncAgentId", - type: { - name: "String" - } - }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", - type: { - name: "Uuid" - } - }, - serverName: { - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - databaseName: { - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - userName: { - serializedName: "properties.userName", - type: { - name: "String" - } - }, - password: { - serializedName: "properties.password", - type: { - name: "String" - } - }, - syncDirection: { - serializedName: "properties.syncDirection", - type: { - name: "String" - } - }, - syncState: { - readOnly: true, - serializedName: "properties.syncState", - type: { - name: "String" - } - } - } - } -}; - -export const SubscriptionUsage: msRest.CompositeMapper = { - serializedName: "SubscriptionUsage", - type: { - name: "Composite", - className: "SubscriptionUsage", - modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "properties.currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "properties.limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "properties.unit", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualCluster: msRest.CompositeMapper = { - serializedName: "VirtualCluster", - type: { - name: "Composite", - className: "VirtualCluster", - modelProperties: { - ...TrackedResource.type.modelProperties, - subnetId: { - readOnly: true, - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - family: { - serializedName: "properties.family", - type: { - name: "String" - } - }, - childResources: { - readOnly: true, - serializedName: "properties.childResources", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualClusterUpdate: msRest.CompositeMapper = { - serializedName: "VirtualClusterUpdate", - type: { - name: "Composite", - className: "VirtualClusterUpdate", - modelProperties: { - subnetId: { - readOnly: true, - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - family: { - serializedName: "properties.family", - type: { - name: "String" - } - }, - childResources: { - readOnly: true, - serializedName: "properties.childResources", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { - required: true, - serializedName: "properties.virtualNetworkSubnetId", - type: { - name: "String" - } - }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", - type: { - name: "Boolean" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - } - } - } -}; - -export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedDatabaseBlobAuditingPolicy", - type: { - name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", - type: { - name: "String" - } - }, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicy", - type: { - name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", - type: { - name: "String" - } - }, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicy", - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "DatabaseBlobAuditingPolicy", - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentRuleBaselineItem: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentRuleBaselineItem", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", - modelProperties: { - result: { - required: true, - serializedName: "result", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentRuleBaseline: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentRuleBaseline", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - required: true, - serializedName: "properties.baselineResults", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } - } - } - } - } -}; - -export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentRecurringScansProperties", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", - modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - emailSubscriptionAdmins: { - serializedName: "emailSubscriptionAdmins", - defaultValue: true, - type: { - name: "Boolean" - } - }, - emails: { - serializedName: "emails", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessment", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", - type: { - name: "String" - } - }, - family: { - serializedName: "family", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const JobAgent: msRest.CompositeMapper = { - serializedName: "JobAgent", - type: { - name: "Composite", - className: "JobAgent", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - databaseId: { - required: true, - serializedName: "properties.databaseId", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - } - } - } -}; - -export const JobAgentUpdate: msRest.CompositeMapper = { - serializedName: "JobAgentUpdate", - type: { - name: "Composite", - className: "JobAgentUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const JobCredential: msRest.CompositeMapper = { - serializedName: "JobCredential", - type: { - name: "Composite", - className: "JobCredential", - modelProperties: { - ...ProxyResource.type.modelProperties, - username: { - required: true, - serializedName: "properties.username", - type: { - name: "String" - } - }, - password: { - required: true, - serializedName: "properties.password", - type: { - name: "String" - } - } - } - } -}; - -export const JobExecutionTarget: msRest.CompositeMapper = { - serializedName: "JobExecutionTarget", - type: { - name: "Composite", - className: "JobExecutionTarget", - modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - serverName: { - readOnly: true, - serializedName: "serverName", - type: { - name: "String" - } - }, - databaseName: { - readOnly: true, - serializedName: "databaseName", - type: { - name: "String" - } - } - } - } -}; - -export const JobExecution: msRest.CompositeMapper = { - serializedName: "JobExecution", - type: { - name: "Composite", - className: "JobExecution", - modelProperties: { - ...ProxyResource.type.modelProperties, - jobVersion: { - readOnly: true, - serializedName: "properties.jobVersion", - type: { - name: "Number" - } - }, - stepName: { - readOnly: true, - serializedName: "properties.stepName", - type: { - name: "String" - } - }, - stepId: { - readOnly: true, - serializedName: "properties.stepId", - type: { - name: "Number" - } - }, - jobExecutionId: { - readOnly: true, - serializedName: "properties.jobExecutionId", - type: { - name: "Uuid" - } - }, - lifecycle: { - readOnly: true, - serializedName: "properties.lifecycle", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - createTime: { - readOnly: true, - serializedName: "properties.createTime", - type: { - name: "DateTime" - } - }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - endTime: { - readOnly: true, - serializedName: "properties.endTime", - type: { - name: "DateTime" - } - }, - currentAttempts: { - serializedName: "properties.currentAttempts", - type: { - name: "Number" - } - }, - currentAttemptStartTime: { - readOnly: true, - serializedName: "properties.currentAttemptStartTime", - type: { - name: "DateTime" - } - }, - lastMessage: { - readOnly: true, - serializedName: "properties.lastMessage", - type: { - name: "String" - } - }, - target: { - readOnly: true, - serializedName: "properties.target", - type: { - name: "Composite", - className: "JobExecutionTarget" - } - } - } - } -}; - -export const JobSchedule: msRest.CompositeMapper = { - serializedName: "JobSchedule", - type: { - name: "Composite", - className: "JobSchedule", - modelProperties: { - startTime: { - serializedName: "startTime", - defaultValue: new Date('0001-01-01T00:00:00Z'), - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - defaultValue: new Date('9999-12-31T11:59:59Z'), - type: { - name: "DateTime" - } - }, - type: { - serializedName: "type", - defaultValue: 'Once', - type: { - name: "Enum", - allowedValues: [ - "Once", - "Recurring" - ] - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - interval: { - serializedName: "interval", - type: { - name: "String" - } - } - } - } -}; - -export const Job: msRest.CompositeMapper = { - serializedName: "Job", - type: { - name: "Composite", - className: "Job", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - defaultValue: '', - type: { - name: "String" - } - }, - version: { - readOnly: true, - serializedName: "properties.version", - type: { - name: "Number" - } - }, - schedule: { - serializedName: "properties.schedule", - type: { - name: "Composite", - className: "JobSchedule" - } - } - } - } -}; - -export const JobStepAction: msRest.CompositeMapper = { - serializedName: "JobStepAction", - type: { - name: "Composite", - className: "JobStepAction", - modelProperties: { - type: { - serializedName: "type", - defaultValue: 'TSql', - type: { - name: "String" - } - }, - source: { - serializedName: "source", - defaultValue: 'Inline', - type: { - name: "String" - } - }, - value: { - required: true, - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const JobStepOutput: msRest.CompositeMapper = { - serializedName: "JobStepOutput", - type: { - name: "Composite", - className: "JobStepOutput", - modelProperties: { - type: { - serializedName: "type", - defaultValue: 'SqlDatabase', - type: { - name: "String" - } - }, - subscriptionId: { - serializedName: "subscriptionId", - type: { - name: "Uuid" - } - }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String" - } - }, - serverName: { - required: true, - serializedName: "serverName", - type: { - name: "String" - } - }, - databaseName: { - required: true, - serializedName: "databaseName", - type: { - name: "String" - } - }, - schemaName: { - serializedName: "schemaName", - defaultValue: 'dbo', - type: { - name: "String" - } - }, - tableName: { - required: true, - serializedName: "tableName", - type: { - name: "String" - } - }, - credential: { - required: true, - serializedName: "credential", - type: { - name: "String" - } - } - } - } -}; - -export const JobStepExecutionOptions: msRest.CompositeMapper = { - serializedName: "JobStepExecutionOptions", - type: { - name: "Composite", - className: "JobStepExecutionOptions", - modelProperties: { - timeoutSeconds: { - serializedName: "timeoutSeconds", - defaultValue: 43200, - type: { - name: "Number" - } - }, - retryAttempts: { - serializedName: "retryAttempts", - defaultValue: 10, - type: { - name: "Number" - } - }, - initialRetryIntervalSeconds: { - serializedName: "initialRetryIntervalSeconds", - defaultValue: 1, - type: { - name: "Number" - } - }, - maximumRetryIntervalSeconds: { - serializedName: "maximumRetryIntervalSeconds", - defaultValue: 120, - type: { - name: "Number" - } - }, - retryIntervalBackoffMultiplier: { - serializedName: "retryIntervalBackoffMultiplier", - defaultValue: 2, - type: { - name: "Number" - } - } - } - } -}; - -export const JobStep: msRest.CompositeMapper = { - serializedName: "JobStep", - type: { - name: "Composite", - className: "JobStep", - modelProperties: { - ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", - type: { - name: "Number" - } - }, - targetGroup: { - required: true, - serializedName: "properties.targetGroup", - type: { - name: "String" - } - }, - credential: { - required: true, - serializedName: "properties.credential", - type: { - name: "String" - } - }, - action: { - required: true, - serializedName: "properties.action", - type: { - name: "Composite", - className: "JobStepAction" - } - }, - output: { - serializedName: "properties.output", - type: { - name: "Composite", - className: "JobStepOutput" - } - }, - executionOptions: { - serializedName: "properties.executionOptions", - type: { - name: "Composite", - className: "JobStepExecutionOptions" - } - } - } - } -}; - -export const JobTarget: msRest.CompositeMapper = { - serializedName: "JobTarget", - type: { - name: "Composite", - className: "JobTarget", - modelProperties: { - membershipType: { - serializedName: "membershipType", - defaultValue: 'Include', - type: { - name: "Enum", - allowedValues: [ - "Include", - "Exclude" - ] - } - }, - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - type: { - name: "String" - } - }, - databaseName: { - serializedName: "databaseName", - type: { - name: "String" - } - }, - elasticPoolName: { - serializedName: "elasticPoolName", - type: { - name: "String" - } - }, - shardMapName: { - serializedName: "shardMapName", - type: { - name: "String" - } - }, - refreshCredential: { - serializedName: "refreshCredential", - type: { - name: "String" - } - } - } - } -}; - -export const JobTargetGroup: msRest.CompositeMapper = { - serializedName: "JobTargetGroup", - type: { - name: "Composite", - className: "JobTargetGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - members: { - required: true, - serializedName: "properties.members", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTarget" - } - } - } - } - } - } -}; - -export const JobVersion: msRest.CompositeMapper = { - serializedName: "JobVersion", - type: { - name: "Composite", - className: "JobVersion", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const LongTermRetentionBackup: msRest.CompositeMapper = { - serializedName: "LongTermRetentionBackup", - type: { - name: "Composite", - className: "LongTermRetentionBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - serverName: { - readOnly: true, - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - serverCreateTime: { - readOnly: true, - serializedName: "properties.serverCreateTime", - type: { - name: "DateTime" - } - }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - databaseDeletionTime: { - readOnly: true, - serializedName: "properties.databaseDeletionTime", - type: { - name: "DateTime" - } - }, - backupTime: { - readOnly: true, - serializedName: "properties.backupTime", - type: { - name: "DateTime" - } - }, - backupExpirationTime: { - readOnly: true, - serializedName: "properties.backupExpirationTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const BackupLongTermRetentionPolicy: msRest.CompositeMapper = { - serializedName: "BackupLongTermRetentionPolicy", - type: { - name: "Composite", - className: "BackupLongTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", - type: { - name: "String" - } - }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", - type: { - name: "String" - } - }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", - type: { - name: "String" - } - }, - weekOfYear: { - serializedName: "properties.weekOfYear", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedBackupShortTermRetentionPolicy: msRest.CompositeMapper = { - serializedName: "ManagedBackupShortTermRetentionPolicy", - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - } - } - } -}; - -export const AutomaticTuningServerOptions: msRest.CompositeMapper = { - serializedName: "AutomaticTuningServerOptions", - type: { - name: "Composite", - className: "AutomaticTuningServerOptions", - modelProperties: { - desiredState: { - serializedName: "desiredState", - type: { - name: "Enum", - allowedValues: [ - "Off", - "On", - "Default" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "actualState", - type: { - name: "Enum", - allowedValues: [ - "Off", - "On" - ] - } - }, - reasonCode: { - readOnly: true, - serializedName: "reasonCode", - type: { - name: "Number" - } - }, - reasonDesc: { - readOnly: true, - serializedName: "reasonDesc", - type: { - name: "Enum", - allowedValues: [ - "Default", - "Disabled", - "AutoConfigured" - ] - } - } - } - } -}; - -export const ServerAutomaticTuning: msRest.CompositeMapper = { - serializedName: "ServerAutomaticTuning", - type: { - name: "Composite", - className: "ServerAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", - type: { - name: "Enum", - allowedValues: [ - "Custom", - "Auto", - "Unspecified" - ] - } - }, - actualState: { - readOnly: true, - serializedName: "properties.actualState", - type: { - name: "Enum", - allowedValues: [ - "Custom", - "Auto", - "Unspecified" - ] - } - }, - options: { - serializedName: "properties.options", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } - } - } - } - } -}; - -export const ServerDnsAlias: msRest.CompositeMapper = { - serializedName: "ServerDnsAlias", - type: { - name: "Composite", - className: "ServerDnsAlias", - modelProperties: { - ...ProxyResource.type.modelProperties, - azureDnsRecord: { - readOnly: true, - serializedName: "properties.azureDnsRecord", - type: { - name: "String" - } - } - } - } -}; - -export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { - serializedName: "ServerDnsAliasAcquisition", - type: { - name: "Composite", - className: "ServerDnsAliasAcquisition", - modelProperties: { - oldServerDnsAliasId: { - serializedName: "oldServerDnsAliasId", - type: { - name: "String" - } - } - } - } -}; - -export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicy", - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const RestorableDroppedManagedDatabase: msRest.CompositeMapper = { - serializedName: "RestorableDroppedManagedDatabase", - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase", - modelProperties: { - ...TrackedResource.type.modelProperties, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - deletionDate: { - readOnly: true, - serializedName: "properties.deletionDate", - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const RestorePoint: msRest.CompositeMapper = { - serializedName: "RestorePoint", - type: { - name: "Composite", - className: "RestorePoint", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - restorePointType: { - readOnly: true, - serializedName: "properties.restorePointType", - type: { - name: "Enum", - allowedValues: [ - "CONTINUOUS", - "DISCRETE" - ] - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", - type: { - name: "DateTime" - } - }, - restorePointCreationDate: { - readOnly: true, - serializedName: "properties.restorePointCreationDate", - type: { - name: "DateTime" - } - }, - restorePointLabel: { - readOnly: true, - serializedName: "properties.restorePointLabel", - type: { - name: "String" - } - } - } - } -}; - -export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { - serializedName: "CreateDatabaseRestorePointDefinition", - type: { - name: "Composite", - className: "CreateDatabaseRestorePointDefinition", - modelProperties: { - restorePointLabel: { - required: true, - serializedName: "restorePointLabel", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabaseSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseSecurityAlertPolicy", - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ManagedServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ManagedServerSecurityAlertPolicy", - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", - type: { - name: "Composite", - className: "SensitivityLabel", - modelProperties: { - ...ProxyResource.type.modelProperties, - labelName: { - serializedName: "properties.labelName", - type: { - name: "String" - } - }, - labelId: { - serializedName: "properties.labelId", - type: { - name: "String" - } - }, - informationType: { - serializedName: "properties.informationType", - type: { - name: "String" - } - }, - informationTypeId: { - serializedName: "properties.informationTypeId", - type: { - name: "String" - } - }, - isDisabled: { - readOnly: true, - serializedName: "properties.isDisabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedInstanceAdministrator: msRest.CompositeMapper = { - serializedName: "ManagedInstanceAdministrator", - type: { - name: "Composite", - className: "ManagedInstanceAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - required: true, - isConstant: true, - serializedName: "properties.administratorType", - defaultValue: 'ActiveDirectory', - type: { - name: "String" - } - }, - login: { - required: true, - serializedName: "properties.login", - type: { - name: "String" - } - }, - sid: { - required: true, - serializedName: "properties.sid", - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "properties.tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const DatabaseOperation: msRest.CompositeMapper = { - serializedName: "DatabaseOperation", - type: { - name: "Composite", - className: "DatabaseOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - operation: { - readOnly: true, - serializedName: "properties.operation", - type: { - name: "String" - } - }, - operationFriendlyName: { - readOnly: true, - serializedName: "properties.operationFriendlyName", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", - type: { - name: "Number" - } - }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", - type: { - name: "Number" - } - }, - errorDescription: { - readOnly: true, - serializedName: "properties.errorDescription", - type: { - name: "String" - } - }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", - type: { - name: "Number" - } - }, - isUserError: { - readOnly: true, - serializedName: "properties.isUserError", - type: { - name: "Boolean" - } - }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "properties.estimatedCompletionTime", - type: { - name: "DateTime" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ElasticPoolOperation: msRest.CompositeMapper = { - serializedName: "ElasticPoolOperation", - type: { - name: "Composite", - className: "ElasticPoolOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", - type: { - name: "String" - } - }, - operation: { - readOnly: true, - serializedName: "properties.operation", - type: { - name: "String" - } - }, - operationFriendlyName: { - readOnly: true, - serializedName: "properties.operationFriendlyName", - type: { - name: "String" - } - }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", - type: { - name: "Number" - } - }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", - type: { - name: "String" - } - }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", - type: { - name: "Number" - } - }, - errorDescription: { - readOnly: true, - serializedName: "properties.errorDescription", - type: { - name: "String" - } - }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", - type: { - name: "Number" - } - }, - isUserError: { - readOnly: true, - serializedName: "properties.isUserError", - type: { - name: "Boolean" - } - }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "properties.estimatedCompletionTime", - type: { - name: "DateTime" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const MaxSizeCapability: msRest.CompositeMapper = { - serializedName: "MaxSizeCapability", - type: { - name: "Composite", - className: "MaxSizeCapability", - modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - } - } - } -}; - -export const LogSizeCapability: msRest.CompositeMapper = { - serializedName: "LogSizeCapability", - type: { - name: "Composite", - className: "LogSizeCapability", - modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - } - } - } -}; - -export const MaxSizeRangeCapability: msRest.CompositeMapper = { - serializedName: "MaxSizeRangeCapability", - type: { - name: "Composite", - className: "MaxSizeRangeCapability", - modelProperties: { - minValue: { - readOnly: true, - serializedName: "minValue", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - maxValue: { - readOnly: true, - serializedName: "maxValue", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - scaleSize: { - readOnly: true, - serializedName: "scaleSize", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - logSize: { - readOnly: true, - serializedName: "logSize", - type: { - name: "Composite", - className: "LogSizeCapability" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const PerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "PerformanceLevelCapability", - type: { - name: "Composite", - className: "PerformanceLevelCapability", - modelProperties: { - value: { - readOnly: true, - serializedName: "value", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - } - } - } -}; - -export const LicenseTypeCapability: msRest.CompositeMapper = { - serializedName: "LicenseTypeCapability", - type: { - name: "Composite", - className: "LicenseTypeCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ServiceObjectiveCapability: msRest.CompositeMapper = { - serializedName: "ServiceObjectiveCapability", - type: { - name: "Composite", - className: "ServiceObjectiveCapability", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "Uuid" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedMaxSizes: { - readOnly: true, - serializedName: "supportedMaxSizes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } - } - }, - performanceLevel: { - readOnly: true, - serializedName: "performanceLevel", - type: { - name: "Composite", - className: "PerformanceLevelCapability" - } - }, - sku: { - readOnly: true, - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - supportedLicenseTypes: { - readOnly: true, - serializedName: "supportedLicenseTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } - } - }, - includedMaxSize: { - readOnly: true, - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const EditionCapability: msRest.CompositeMapper = { - serializedName: "EditionCapability", - type: { - name: "Composite", - className: "EditionCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedServiceLevelObjectives: { - readOnly: true, - serializedName: "supportedServiceLevelObjectives", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjectiveCapability" - } - } - } - }, - zoneRedundant: { - readOnly: true, - serializedName: "zoneRedundant", - type: { - name: "Boolean" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", - modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", - modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - supportedPerDatabaseMinPerformanceLevels: { - readOnly: true, - serializedName: "supportedPerDatabaseMinPerformanceLevels", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolPerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerformanceLevelCapability", - type: { - name: "Composite", - className: "ElasticPoolPerformanceLevelCapability", - modelProperties: { - performanceLevel: { - readOnly: true, - serializedName: "performanceLevel", - type: { - name: "Composite", - className: "PerformanceLevelCapability" - } - }, - sku: { - readOnly: true, - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - supportedLicenseTypes: { - readOnly: true, - serializedName: "supportedLicenseTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } - } - }, - maxDatabaseCount: { - readOnly: true, - serializedName: "maxDatabaseCount", - type: { - name: "Number" - } - }, - includedMaxSize: { - readOnly: true, - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - supportedMaxSizes: { - readOnly: true, - serializedName: "supportedMaxSizes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } - } - }, - supportedPerDatabaseMaxSizes: { - readOnly: true, - serializedName: "supportedPerDatabaseMaxSizes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } - } - }, - supportedPerDatabaseMaxPerformanceLevels: { - readOnly: true, - serializedName: "supportedPerDatabaseMaxPerformanceLevels", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolEditionCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolEditionCapability", - type: { - name: "Composite", - className: "ElasticPoolEditionCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedElasticPoolPerformanceLevels: { - readOnly: true, - serializedName: "supportedElasticPoolPerformanceLevels", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerformanceLevelCapability" - } - } - } - }, - zoneRedundant: { - readOnly: true, - serializedName: "zoneRedundant", - type: { - name: "Boolean" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ServerVersionCapability: msRest.CompositeMapper = { - serializedName: "ServerVersionCapability", - type: { - name: "Composite", - className: "ServerVersionCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedEditions: { - readOnly: true, - serializedName: "supportedEditions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EditionCapability" - } - } - } - }, - supportedElasticPoolEditions: { - readOnly: true, - serializedName: "supportedElasticPoolEditions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolEditionCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceVcoresCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVcoresCapability", - type: { - name: "Composite", - className: "ManagedInstanceVcoresCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - value: { - readOnly: true, - serializedName: "value", - type: { - name: "Number" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceFamilyCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceFamilyCapability", - type: { - name: "Composite", - className: "ManagedInstanceFamilyCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - sku: { - readOnly: true, - serializedName: "sku", - type: { - name: "String" - } - }, - supportedLicenseTypes: { - readOnly: true, - serializedName: "supportedLicenseTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } - } - }, - supportedVcoresValues: { - readOnly: true, - serializedName: "supportedVcoresValues", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVcoresCapability" - } - } - } - }, - includedMaxSize: { - readOnly: true, - serializedName: "includedMaxSize", - type: { - name: "Composite", - className: "MaxSizeCapability" - } - }, - supportedStorageSizes: { - readOnly: true, - serializedName: "supportedStorageSizes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceEditionCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEditionCapability", - type: { - name: "Composite", - className: "ManagedInstanceEditionCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedFamilies: { - readOnly: true, - serializedName: "supportedFamilies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceFamilyCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceVersionCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVersionCapability", - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedEditions: { - readOnly: true, - serializedName: "supportedEditions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceEditionCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const LocationCapabilities: msRest.CompositeMapper = { - serializedName: "LocationCapabilities", - type: { - name: "Composite", - className: "LocationCapabilities", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedServerVersions: { - readOnly: true, - serializedName: "supportedServerVersions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVersionCapability" - } - } - } - }, - supportedManagedInstanceVersions: { - readOnly: true, - serializedName: "supportedManagedInstanceVersions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability" - } - } - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const Database: msRest.CompositeMapper = { - serializedName: "Database", - type: { - name: "Composite", - className: "Database", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - managedBy: { - readOnly: true, - serializedName: "managedBy", - type: { - name: "String" - } - }, - createMode: { - serializedName: "properties.createMode", - type: { - name: "String" - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - sampleName: { - serializedName: "properties.sampleName", - type: { - name: "String" - } - }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - databaseId: { - readOnly: true, - serializedName: "properties.databaseId", - type: { - name: "Uuid" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - currentServiceObjectiveName: { - readOnly: true, - serializedName: "properties.currentServiceObjectiveName", - type: { - name: "String" - } - }, - requestedServiceObjectiveName: { - readOnly: true, - serializedName: "properties.requestedServiceObjectiveName", - type: { - name: "String" - } - }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "properties.defaultSecondaryLocation", - type: { - name: "String" - } - }, - failoverGroupId: { - readOnly: true, - serializedName: "properties.failoverGroupId", - type: { - name: "String" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", - type: { - name: "DateTime" - } - }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", - type: { - name: "String" - } - }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", - type: { - name: "String" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - maxLogSizeBytes: { - readOnly: true, - serializedName: "properties.maxLogSizeBytes", - type: { - name: "Number" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", - type: { - name: "DateTime" - } - }, - readScale: { - serializedName: "properties.readScale", - type: { - name: "String" - } - }, - readReplicaCount: { - serializedName: "properties.readReplicaCount", - type: { - name: "Number" - } - }, - currentSku: { - readOnly: true, - serializedName: "properties.currentSku", - type: { - name: "Composite", - className: "Sku" - } - }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", - type: { - name: "Number" - } - }, - minCapacity: { - serializedName: "properties.minCapacity", - type: { - name: "Number" - } - }, - pausedDate: { - readOnly: true, - serializedName: "properties.pausedDate", - type: { - name: "DateTime" - } - }, - resumedDate: { - readOnly: true, - serializedName: "properties.resumedDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const DatabaseUpdate: msRest.CompositeMapper = { - serializedName: "DatabaseUpdate", - type: { - name: "Composite", - className: "DatabaseUpdate", - modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - createMode: { - serializedName: "properties.createMode", - type: { - name: "String" - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - sampleName: { - serializedName: "properties.sampleName", - type: { - name: "String" - } - }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - databaseId: { - readOnly: true, - serializedName: "properties.databaseId", - type: { - name: "Uuid" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - currentServiceObjectiveName: { - readOnly: true, - serializedName: "properties.currentServiceObjectiveName", - type: { - name: "String" - } - }, - requestedServiceObjectiveName: { - readOnly: true, - serializedName: "properties.requestedServiceObjectiveName", - type: { - name: "String" - } - }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "properties.defaultSecondaryLocation", - type: { - name: "String" - } - }, - failoverGroupId: { - readOnly: true, - serializedName: "properties.failoverGroupId", - type: { - name: "String" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", - type: { - name: "DateTime" - } - }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", - type: { - name: "String" - } - }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", - type: { - name: "String" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - maxLogSizeBytes: { - readOnly: true, - serializedName: "properties.maxLogSizeBytes", - type: { - name: "Number" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", - type: { - name: "DateTime" - } - }, - readScale: { - serializedName: "properties.readScale", - type: { - name: "String" - } - }, - readReplicaCount: { - serializedName: "properties.readReplicaCount", - type: { - name: "Number" - } - }, - currentSku: { - readOnly: true, - serializedName: "properties.currentSku", - type: { - name: "Composite", - className: "Sku" - } - }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", - type: { - name: "Number" - } - }, - minCapacity: { - serializedName: "properties.minCapacity", - type: { - name: "Number" - } - }, - pausedDate: { - readOnly: true, - serializedName: "properties.pausedDate", - type: { - name: "DateTime" - } - }, - resumedDate: { - readOnly: true, - serializedName: "properties.resumedDate", - type: { - name: "DateTime" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ResourceMoveDefinition: msRest.CompositeMapper = { - serializedName: "ResourceMoveDefinition", - type: { - name: "Composite", - className: "ResourceMoveDefinition", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolPerDatabaseSettings: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings", - modelProperties: { - minCapacity: { - serializedName: "minCapacity", - type: { - name: "Number" - } - }, - maxCapacity: { - serializedName: "maxCapacity", - type: { - name: "Number" - } - } - } - } -}; - -export const ElasticPool: msRest.CompositeMapper = { - serializedName: "ElasticPool", - type: { - name: "Composite", - className: "ElasticPool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolUpdate: msRest.CompositeMapper = { - serializedName: "ElasticPoolUpdate", - type: { - name: "Composite", - className: "ElasticPoolUpdate", - modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", - type: { - name: "Number" - } - }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" - } - }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", - type: { - name: "Boolean" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanError", - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError", - modelProperties: { - code: { - readOnly: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - readOnly: true, - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const VulnerabilityAssessmentScanRecord: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecord", - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecord", - modelProperties: { - ...ProxyResource.type.modelProperties, - scanId: { - readOnly: true, - serializedName: "properties.scanId", - type: { - name: "String" - } - }, - triggerType: { - readOnly: true, - serializedName: "properties.triggerType", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - endTime: { - readOnly: true, - serializedName: "properties.endTime", - type: { - name: "DateTime" - } - }, - errors: { - readOnly: true, - serializedName: "properties.errors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } - } - }, - storageContainerPath: { - readOnly: true, - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - numberOfFailedSecurityChecks: { - readOnly: true, - serializedName: "properties.numberOfFailedSecurityChecks", - type: { - name: "Number" - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentScansExport: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentScansExport", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", - modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { - readOnly: true, - serializedName: "properties.exportedReportLocation", - type: { - name: "String" - } - } - } - } -}; - -export const InstanceFailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupReadWriteEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - required: true, - serializedName: "failoverPolicy", - type: { - name: "String" - } - }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const InstanceFailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupReadOnlyEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - type: { - name: "String" - } - } - } - } -}; - -export const PartnerRegionInfo: msRest.CompositeMapper = { - serializedName: "PartnerRegionInfo", - type: { - name: "Composite", - className: "PartnerRegionInfo", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - replicationRole: { - readOnly: true, - serializedName: "replicationRole", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstancePairInfo: msRest.CompositeMapper = { - serializedName: "ManagedInstancePairInfo", - type: { - name: "Composite", - className: "ManagedInstancePairInfo", - modelProperties: { - primaryManagedInstanceId: { - serializedName: "primaryManagedInstanceId", - type: { - name: "String" - } - }, - partnerManagedInstanceId: { - serializedName: "partnerManagedInstanceId", - type: { - name: "String" - } - } - } - } -}; - -export const InstanceFailoverGroup: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroup", - type: { - name: "Composite", - className: "InstanceFailoverGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - readWriteEndpoint: { - required: true, - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", - type: { - name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" - } - }, - replicationRole: { - readOnly: true, - serializedName: "properties.replicationRole", - type: { - name: "String" - } - }, - replicationState: { - readOnly: true, - serializedName: "properties.replicationState", - type: { - name: "String" - } - }, - partnerRegions: { - required: true, - serializedName: "properties.partnerRegions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } - } - }, - managedInstancePairs: { - required: true, - serializedName: "properties.managedInstancePairs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" - } - } - } - } - } - } -}; - -export const BackupShortTermRetentionPolicy: msRest.CompositeMapper = { - serializedName: "BackupShortTermRetentionPolicy", - type: { - name: "Composite", - className: "BackupShortTermRetentionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - } - } - } -}; - -export const TdeCertificate: msRest.CompositeMapper = { - serializedName: "TdeCertificate", - type: { - name: "Composite", - className: "TdeCertificate", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateBlob: { - required: true, - serializedName: "properties.privateBlob", - type: { - name: "String" - } - }, - certPassword: { - serializedName: "properties.certPassword", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceKey: msRest.CompositeMapper = { - serializedName: "ManagedInstanceKey", - type: { - name: "Composite", - className: "ManagedInstanceKey", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "properties.thumbprint", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ManagedInstanceEncryptionProtector: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEncryptionProtector", - type: { - name: "Composite", - className: "ManagedInstanceEncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - serverKeyName: { - serializedName: "properties.serverKeyName", - type: { - name: "String" - } - }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", - type: { - name: "String" - } - }, - uri: { - readOnly: true, - serializedName: "properties.uri", - type: { - name: "String" - } - }, - thumbprint: { - readOnly: true, - serializedName: "properties.thumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const RecoverableManagedDatabase: msRest.CompositeMapper = { - serializedName: "RecoverableManagedDatabase", - type: { - name: "Composite", - className: "RecoverableManagedDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { - readOnly: true, - serializedName: "properties.lastAvailableBackupDate", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVulnerabilityAssessment", - type: { - name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - required: true, - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - required: true, - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const InstancePool: msRest.CompositeMapper = { - serializedName: "InstancePool", - type: { - name: "Composite", - className: "InstancePool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - subnetId: { - required: true, - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - vCores: { - required: true, - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - licenseType: { - required: true, - serializedName: "properties.licenseType", - type: { - name: "String" - } - } - } - } -}; - -export const InstancePoolUpdate: msRest.CompositeMapper = { - serializedName: "InstancePoolUpdate", - type: { - name: "Composite", - className: "InstancePoolUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const Name: msRest.CompositeMapper = { - serializedName: "Name", - type: { - name: "Composite", - className: "Name", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "String" - } - }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String" - } - } - } - } -}; - -export const Usage: msRest.CompositeMapper = { - serializedName: "Usage", - type: { - name: "Composite", - className: "Usage", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "Composite", - className: "Name" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - unit: { - readOnly: true, - serializedName: "unit", - type: { - name: "String" - } - }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - requestedLimit: { - readOnly: true, - serializedName: "requestedLimit", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedInstance: msRest.CompositeMapper = { - serializedName: "ManagedInstance", - type: { - name: "Composite", - className: "ManagedInstance", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", - type: { - name: "String" - } - }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", - type: { - name: "String" - } - }, - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - vCores: { - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", - type: { - name: "Number" - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - dnsZone: { - readOnly: true, - serializedName: "properties.dnsZone", - 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" - } - } - } - } -}; - -export const ManagedInstanceUpdate: msRest.CompositeMapper = { - serializedName: "ManagedInstanceUpdate", - type: { - name: "Composite", - className: "ManagedInstanceUpdate", - modelProperties: { - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", - type: { - name: "String" - } - }, - fullyQualifiedDomainName: { - readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", - type: { - name: "String" - } - }, - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - vCores: { - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", - type: { - name: "Number" - } - }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - dnsZone: { - readOnly: true, - serializedName: "properties.dnsZone", - 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" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ManagedDatabaseRestoreDetailsResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseRestoreDetailsResult", - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - currentRestoringFileName: { - readOnly: true, - serializedName: "properties.currentRestoringFileName", - type: { - name: "String" - } - }, - lastRestoredFileName: { - readOnly: true, - serializedName: "properties.lastRestoredFileName", - type: { - name: "String" - } - }, - lastRestoredFileTime: { - readOnly: true, - serializedName: "properties.lastRestoredFileTime", - type: { - name: "DateTime" - } - }, - percentCompleted: { - readOnly: true, - serializedName: "properties.percentCompleted", - type: { - name: "Number" - } - }, - unrestorableFiles: { - readOnly: true, - serializedName: "properties.unrestorableFiles", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - numberOfFilesDetected: { - readOnly: true, - serializedName: "properties.numberOfFilesDetected", - type: { - name: "Number" - } - }, - lastUploadedFileName: { - readOnly: true, - serializedName: "properties.lastUploadedFileName", - type: { - name: "String" - } - }, - lastUploadedFileTime: { - readOnly: true, - serializedName: "properties.lastUploadedFileTime", - type: { - name: "DateTime" - } - }, - blockReason: { - readOnly: true, - serializedName: "properties.blockReason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabase: msRest.CompositeMapper = { - serializedName: "ManagedDatabase", - type: { - name: "Composite", - className: "ManagedDatabase", - modelProperties: { - ...TrackedResource.type.modelProperties, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - readOnly: true, - serializedName: "properties.earliestRestorePoint", - type: { - name: "DateTime" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "properties.defaultSecondaryLocation", - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", - type: { - name: "String" - } - }, - createMode: { - serializedName: "properties.createMode", - type: { - name: "String" - } - }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", - type: { - name: "String" - } - }, - failoverGroupId: { - readOnly: true, - serializedName: "properties.failoverGroupId", - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabaseUpdate: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseUpdate", - type: { - name: "Composite", - className: "ManagedDatabaseUpdate", - modelProperties: { - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - earliestRestorePoint: { - readOnly: true, - serializedName: "properties.earliestRestorePoint", - type: { - name: "DateTime" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", - type: { - name: "DateTime" - } - }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "properties.defaultSecondaryLocation", - type: { - name: "String" - } - }, - catalogCollation: { - serializedName: "properties.catalogCollation", - type: { - name: "String" - } - }, - createMode: { - serializedName: "properties.createMode", - type: { - name: "String" - } - }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", - type: { - name: "String" - } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", - type: { - name: "String" - } - }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", - type: { - name: "String" - } - }, - failoverGroupId: { - readOnly: true, - serializedName: "properties.failoverGroupId", - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { - serializedName: "CompleteDatabaseRestoreDefinition", - type: { - name: "Composite", - className: "CompleteDatabaseRestoreDefinition", - modelProperties: { - lastBackupName: { - required: true, - serializedName: "lastBackupName", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointProperty: msRest.CompositeMapper = { - serializedName: "PrivateEndpointProperty", - type: { - name: "Composite", - className: "PrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionStateProperty", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - required: true, - serializedName: "status", - type: { - name: "String" - } - }, - description: { - required: true, - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - readOnly: true, - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResourceProperties: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceProperties", - type: { - name: "Composite", - className: "PrivateLinkResourceProperties", - modelProperties: { - groupId: { - readOnly: true, - serializedName: "groupId", - type: { - name: "String" - } - }, - requiredMembers: { - readOnly: true, - serializedName: "requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - readOnly: true, - serializedName: "properties", - type: { - name: "Composite", - className: "PrivateLinkResourceProperties" - } - } - } - } -}; - -export const RecoverableDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RecoverableDatabaseListResult", - type: { - name: "Composite", - className: "RecoverableDatabaseListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoverableDatabase" - } - } - } - } - } - } -}; - -export const RestorableDroppedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RestorableDroppedDatabaseListResult", - type: { - name: "Composite", - className: "RestorableDroppedDatabaseListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedDatabase" - } - } - } - } - } - } -}; - -export const ServerListResult: msRest.CompositeMapper = { - serializedName: "ServerListResult", - type: { - name: "Composite", - className: "ServerListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Server" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DataMaskingRuleListResult: msRest.CompositeMapper = { - serializedName: "DataMaskingRuleListResult", - type: { - name: "Composite", - className: "DataMaskingRuleListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataMaskingRule" - } - } - } - } - } - } -}; - -export const FirewallRuleListResult: msRest.CompositeMapper = { - serializedName: "FirewallRuleListResult", - type: { - name: "Composite", - className: "FirewallRuleListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FirewallRule" - } - } - } - } - } - } -}; - -export const GeoBackupPolicyListResult: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicyListResult", - type: { - name: "Composite", - className: "GeoBackupPolicyListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GeoBackupPolicy" - } - } - } - } - } - } -}; - -export const MetricListResult: msRest.CompositeMapper = { - serializedName: "MetricListResult", - type: { - name: "Composite", - className: "MetricListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Metric" - } - } - } - } - } - } -}; - -export const MetricDefinitionListResult: msRest.CompositeMapper = { - serializedName: "MetricDefinitionListResult", - type: { - name: "Composite", - className: "MetricDefinitionListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricDefinition" - } - } - } - } - } - } -}; - -export const DatabaseListResult: msRest.CompositeMapper = { - serializedName: "DatabaseListResult", - type: { - name: "Composite", - className: "DatabaseListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Database" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ElasticPoolListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolListResult", - type: { - name: "Composite", - className: "ElasticPoolListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPool" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RecommendedElasticPoolListResult: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolListResult", - type: { - name: "Composite", - className: "RecommendedElasticPoolListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedElasticPool" - } - } - } - } - } - } -}; - -export const RecommendedElasticPoolListMetricsResult: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolListMetricsResult", - type: { - name: "Composite", - className: "RecommendedElasticPoolListMetricsResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedElasticPoolMetric" - } - } - } - } - } - } -}; - -export const ReplicationLinkListResult: msRest.CompositeMapper = { - serializedName: "ReplicationLinkListResult", - type: { - name: "Composite", - className: "ReplicationLinkListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReplicationLink" - } - } - } - } - } - } -}; - -export const ServerAdministratorListResult: msRest.CompositeMapper = { - serializedName: "ServerAdministratorListResult", - type: { - name: "Composite", - className: "ServerAdministratorListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerAzureADAdministrator" - } - } - } - } - } - } -}; - -export const ServerCommunicationLinkListResult: msRest.CompositeMapper = { - serializedName: "ServerCommunicationLinkListResult", - type: { - name: "Composite", - className: "ServerCommunicationLinkListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerCommunicationLink" - } - } - } - } - } - } -}; - -export const ServiceObjectiveListResult: msRest.CompositeMapper = { - serializedName: "ServiceObjectiveListResult", - type: { - name: "Composite", - className: "ServiceObjectiveListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjective" - } - } - } - } - } - } -}; - -export const ElasticPoolActivityListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolActivityListResult", - type: { - name: "Composite", - className: "ElasticPoolActivityListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolActivity" - } - } - } - } - } - } -}; - -export const ElasticPoolDatabaseActivityListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolDatabaseActivityListResult", - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivityListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolDatabaseActivity" - } - } - } - } - } - } -}; - -export const ServiceTierAdvisorListResult: msRest.CompositeMapper = { - serializedName: "ServiceTierAdvisorListResult", - type: { - name: "Composite", - className: "ServiceTierAdvisorListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceTierAdvisor" - } - } - } - } - } - } -}; - -export const TransparentDataEncryptionActivityListResult: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionActivityListResult", - type: { - name: "Composite", - className: "TransparentDataEncryptionActivityListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TransparentDataEncryptionActivity" - } - } - } - } - } - } -}; - -export const ServerUsageListResult: msRest.CompositeMapper = { - serializedName: "ServerUsageListResult", - type: { - name: "Composite", - className: "ServerUsageListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerUsage" - } - } - } - } - } - } -}; - -export const DatabaseUsageListResult: msRest.CompositeMapper = { - serializedName: "DatabaseUsageListResult", - type: { - name: "Composite", - className: "DatabaseUsageListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseUsage" - } - } - } - } - } - } -}; - -export const EncryptionProtectorListResult: msRest.CompositeMapper = { - serializedName: "EncryptionProtectorListResult", - type: { - name: "Composite", - className: "EncryptionProtectorListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EncryptionProtector" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const FailoverGroupListResult: msRest.CompositeMapper = { - serializedName: "FailoverGroupListResult", - type: { - name: "Composite", - className: "FailoverGroupListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverGroup" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ServerKeyListResult: msRest.CompositeMapper = { - serializedName: "ServerKeyListResult", - type: { - name: "Composite", - className: "ServerKeyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerKey" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncAgentListResult: msRest.CompositeMapper = { - serializedName: "SyncAgentListResult", - type: { - name: "Composite", - className: "SyncAgentListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncAgent" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncAgentLinkedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabaseListResult", - type: { - name: "Composite", - className: "SyncAgentLinkedDatabaseListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncAgentLinkedDatabase" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncDatabaseIdListResult: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdListResult", - type: { - name: "Composite", - className: "SyncDatabaseIdListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncDatabaseIdProperties" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncFullSchemaPropertiesListResult: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaPropertiesListResult", - type: { - name: "Composite", - className: "SyncFullSchemaPropertiesListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaProperties" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupLogListResult: msRest.CompositeMapper = { - serializedName: "SyncGroupLogListResult", - type: { - name: "Composite", - className: "SyncGroupLogListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupLogProperties" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupListResult: msRest.CompositeMapper = { - serializedName: "SyncGroupListResult", - type: { - name: "Composite", - className: "SyncGroupListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroup" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SyncMemberListResult: msRest.CompositeMapper = { - serializedName: "SyncMemberListResult", - type: { - name: "Composite", - className: "SyncMemberListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncMember" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SubscriptionUsageListResult: msRest.CompositeMapper = { - serializedName: "SubscriptionUsageListResult", - type: { - name: "Composite", - className: "SubscriptionUsageListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubscriptionUsage" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualClusterListResult: msRest.CompositeMapper = { - serializedName: "VirtualClusterListResult", - type: { - name: "Composite", - className: "VirtualClusterListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualCluster" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRuleListResult", - type: { - name: "Composite", - className: "VirtualNetworkRuleListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkRule" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicyListResult", - type: { - name: "Composite", - className: "ServerBlobAuditingPolicyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "DatabaseBlobAuditingPolicyListResult", - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseBlobAuditingPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentListResult", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessment" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobAgentListResult: msRest.CompositeMapper = { - serializedName: "JobAgentListResult", - type: { - name: "Composite", - className: "JobAgentListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobAgent" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobCredentialListResult: msRest.CompositeMapper = { - serializedName: "JobCredentialListResult", - type: { - name: "Composite", - className: "JobCredentialListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobCredential" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobExecutionListResult: msRest.CompositeMapper = { - serializedName: "JobExecutionListResult", - type: { - name: "Composite", - className: "JobExecutionListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobExecution" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobListResult: msRest.CompositeMapper = { - serializedName: "JobListResult", - type: { - name: "Composite", - className: "JobListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Job" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobStepListResult: msRest.CompositeMapper = { - serializedName: "JobStepListResult", - type: { - name: "Composite", - className: "JobStepListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobStep" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobTargetGroupListResult: msRest.CompositeMapper = { - serializedName: "JobTargetGroupListResult", - type: { - name: "Composite", - className: "JobTargetGroupListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobTargetGroup" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobVersionListResult: msRest.CompositeMapper = { - serializedName: "JobVersionListResult", - type: { - name: "Composite", - className: "JobVersionListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobVersion" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const LongTermRetentionBackupListResult: msRest.CompositeMapper = { - serializedName: "LongTermRetentionBackupListResult", - type: { - name: "Composite", - className: "LongTermRetentionBackupListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LongTermRetentionBackup" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedBackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { - serializedName: "ManagedBackupShortTermRetentionPolicyListResult", - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ServerDnsAliasListResult: msRest.CompositeMapper = { - serializedName: "ServerDnsAliasListResult", - type: { - name: "Composite", - className: "ServerDnsAliasListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerDnsAlias" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "LogicalServerSecurityAlertPolicyListResult", - type: { - name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RestorableDroppedManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RestorableDroppedManagedDatabaseListResult", - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RestorePointListResult: msRest.CompositeMapper = { - serializedName: "RestorePointListResult", - type: { - name: "Composite", - className: "RestorePointListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } -}; - -export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseSecurityAlertPolicyListResult", - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", +export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { + serializedName: "CompleteDatabaseRestoreDefinition", + type: { + name: "Composite", + className: "CompleteDatabaseRestoreDefinition", + modelProperties: { + lastBackupName: { + required: true, + serializedName: "lastBackupName", type: { name: "String" } @@ -9862,28 +1402,14 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMappe } }; -export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "ManagedServerSecurityAlertPolicyListResult", +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicyListResult", + className: "PrivateEndpointProperty", modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedServerSecurityAlertPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + id: { + serializedName: "id", type: { name: "String" } @@ -9892,28 +1418,29 @@ export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper } }; -export const SensitivityLabelListResult: msRest.CompositeMapper = { - serializedName: "SensitivityLabelListResult", +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", type: { name: "Composite", - className: "SensitivityLabelListResult", + className: "PrivateLinkServiceConnectionStateProperty", modelProperties: { - value: { - readOnly: true, - serializedName: "", + status: { + required: true, + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - nextLink: { + description: { + required: true, + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { readOnly: true, - serializedName: "nextLink", + serializedName: "actionsRequired", type: { name: "String" } @@ -9922,28 +1449,30 @@ export const SensitivityLabelListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceAdministratorListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceAdministratorListResult", +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", type: { name: "Composite", - className: "ManagedInstanceAdministratorListResult", + className: "PrivateEndpointConnection", modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceAdministrator" - } - } + name: "Composite", + className: "PrivateEndpointProperty" } }, - nextLink: { + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { readOnly: true, - serializedName: "nextLink", + serializedName: "properties.provisioningState", type: { name: "String" } @@ -9952,101 +1481,139 @@ export const ManagedInstanceAdministratorListResult: msRest.CompositeMapper = { } }; -export const DatabaseOperationListResult: msRest.CompositeMapper = { - serializedName: "DatabaseOperationListResult", +export const ServerAzureADAdministrator: msRest.CompositeMapper = { + serializedName: "ServerAzureADAdministrator", type: { name: "Composite", - className: "DatabaseOperationListResult", + className: "ServerAzureADAdministrator", modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...ProxyResource.type.modelProperties, + administratorType: { + required: true, + isConstant: true, + serializedName: "properties.administratorType", + defaultValue: 'ActiveDirectory', type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseOperation" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + login: { + required: true, + serializedName: "properties.login", type: { name: "String" } + }, + sid: { + required: true, + serializedName: "properties.sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "Uuid" + } } } } }; -export const ElasticPoolOperationListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolOperationListResult", +export const ManagedInstanceLongTermRetentionPolicy: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionPolicy", type: { name: "Composite", - className: "ElasticPoolOperationListResult", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolOperation" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + monthlyRetention: { + serializedName: "properties.monthlyRetention", + type: { + name: "String" + } + }, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } + }, + weekOfYear: { + serializedName: "properties.weekOfYear", + type: { + name: "Number" + } } } } }; -export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecordListResult", +export const ManagedInstanceLongTermRetentionBackup: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionBackup", type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + managedInstanceName: { readOnly: true, - serializedName: "", + serializedName: "properties.managedInstanceName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecord" - } - } + name: "String" } }, - nextLink: { + managedInstanceCreateTime: { readOnly: true, - serializedName: "nextLink", + serializedName: "properties.managedInstanceCreateTime", + type: { + name: "DateTime" + } + }, + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", type: { name: "String" } + }, + databaseDeletionTime: { + readOnly: true, + serializedName: "properties.databaseDeletionTime", + type: { + name: "DateTime" + } + }, + backupTime: { + readOnly: true, + serializedName: "properties.backupTime", + type: { + name: "DateTime" + } + }, + backupExpirationTime: { + readOnly: true, + serializedName: "properties.backupExpirationTime", + type: { + name: "DateTime" + } } } } }; -export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupListResult", +export const DatabaseSecurityAlertListResult: msRest.CompositeMapper = { + serializedName: "DatabaseSecurityAlertListResult", type: { name: "Composite", - className: "InstanceFailoverGroupListResult", + className: "DatabaseSecurityAlertListResult", modelProperties: { value: { readOnly: true, @@ -10056,7 +1623,7 @@ export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceFailoverGroup" + className: "DatabaseSecurityAlertPolicy" } } } @@ -10072,11 +1639,11 @@ export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { } }; -export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { - serializedName: "BackupShortTermRetentionPolicyListResult", +export const SensitivityLabelListResult: msRest.CompositeMapper = { + serializedName: "SensitivityLabelListResult", type: { name: "Composite", - className: "BackupShortTermRetentionPolicyListResult", + className: "SensitivityLabelListResult", modelProperties: { value: { readOnly: true, @@ -10086,7 +1653,7 @@ export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = element: { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy" + className: "SensitivityLabel" } } } @@ -10102,11 +1669,11 @@ export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = } }; -export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceKeyListResult", +export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVulnerabilityAssessmentListResult", type: { name: "Composite", - className: "ManagedInstanceKeyListResult", + className: "ManagedInstanceVulnerabilityAssessmentListResult", modelProperties: { value: { readOnly: true, @@ -10116,7 +1683,7 @@ export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstanceKey" + className: "ManagedInstanceVulnerabilityAssessment" } } } @@ -10132,11 +1699,11 @@ export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEncryptionProtectorListResult", +export const ManagedInstanceOperationListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationListResult", type: { name: "Composite", - className: "ManagedInstanceEncryptionProtectorListResult", + className: "ManagedInstanceOperationListResult", modelProperties: { value: { readOnly: true, @@ -10146,7 +1713,7 @@ export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMappe element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "ManagedInstanceOperation" } } } @@ -10162,11 +1729,11 @@ export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMappe } }; -export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RecoverableManagedDatabaseListResult", +export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentListResult", type: { name: "Composite", - className: "RecoverableManagedDatabaseListResult", + className: "ServerVulnerabilityAssessmentListResult", modelProperties: { value: { readOnly: true, @@ -10176,7 +1743,7 @@ export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoverableManagedDatabase" + className: "ServerVulnerabilityAssessment" } } } @@ -10192,11 +1759,11 @@ export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVulnerabilityAssessmentListResult", +export const InstancePoolListResult: msRest.CompositeMapper = { + serializedName: "InstancePoolListResult", type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessmentListResult", + className: "InstancePoolListResult", modelProperties: { value: { readOnly: true, @@ -10206,7 +1773,7 @@ export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeM element: { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment" + className: "InstancePool" } } } @@ -10222,11 +1789,11 @@ export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeM } }; -export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentListResult", +export const UsageListResult: msRest.CompositeMapper = { + serializedName: "UsageListResult", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", + className: "UsageListResult", modelProperties: { value: { readOnly: true, @@ -10236,7 +1803,7 @@ export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" + className: "Usage" } } } @@ -10252,11 +1819,11 @@ export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { } }; -export const InstancePoolListResult: msRest.CompositeMapper = { - serializedName: "InstancePoolListResult", +export const ManagedInstanceListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceListResult", type: { name: "Composite", - className: "InstancePoolListResult", + className: "ManagedInstanceListResult", modelProperties: { value: { readOnly: true, @@ -10266,7 +1833,7 @@ export const InstancePoolListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "InstancePool" + className: "ManagedInstance" } } } @@ -10282,11 +1849,11 @@ export const InstancePoolListResult: msRest.CompositeMapper = { } }; -export const UsageListResult: msRest.CompositeMapper = { - serializedName: "UsageListResult", +export const ManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseListResult", type: { name: "Composite", - className: "UsageListResult", + className: "ManagedDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -10296,7 +1863,7 @@ export const UsageListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" + className: "ManagedDatabase" } } } @@ -10312,11 +1879,11 @@ export const UsageListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceListResult", +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { readOnly: true, @@ -10326,7 +1893,7 @@ export const ManagedInstanceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstance" + className: "PrivateEndpointConnection" } } } @@ -10342,11 +1909,11 @@ export const ManagedInstanceListResult: msRest.CompositeMapper = { } }; -export const ManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseListResult", +export const AdministratorListResult: msRest.CompositeMapper = { + serializedName: "AdministratorListResult", type: { name: "Composite", - className: "ManagedDatabaseListResult", + className: "AdministratorListResult", modelProperties: { value: { readOnly: true, @@ -10356,7 +1923,7 @@ export const ManagedDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedDatabase" + className: "ServerAzureADAdministrator" } } } @@ -10372,11 +1939,11 @@ export const ManagedDatabaseListResult: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionListResult", +export const ManagedInstanceLongTermRetentionPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionPolicyListResult", type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { readOnly: true, @@ -10386,7 +1953,7 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -10402,11 +1969,11 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const ManagedInstanceLongTermRetentionBackupListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionBackupListResult", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "ManagedInstanceLongTermRetentionBackupListResult", modelProperties: { value: { readOnly: true, @@ -10416,7 +1983,7 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "ManagedInstanceLongTermRetentionBackup" } } } diff --git a/sdk/sql/arm-sql/src/models/operationsMappers.ts b/sdk/sql/arm-sql/src/models/operationsMappers.ts deleted file mode 100644 index 689688180be7..000000000000 --- a/sdk/sql/arm-sql/src/models/operationsMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - CloudError, - Operation, - OperationDisplay, - OperationListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 85f7ca30cdca..71f40da06259 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -20,19 +19,7 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const administratorName0: msRest.OperationURLParameter = { - parameterPath: "administratorName", - mapper: { - required: true, - isConstant: true, - serializedName: "administratorName", - defaultValue: 'activeDirectory', - type: { - name: "String" - } - } -}; -export const administratorName1: msRest.OperationURLParameter = { +export const administratorName: msRest.OperationURLParameter = { parameterPath: "administratorName", mapper: { required: true, @@ -44,61 +31,11 @@ export const administratorName1: msRest.OperationURLParameter = { } } }; -export const apiVersion0: msRest.OperationQueryParameter = { +export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2014-04-01', - type: { - name: "String" - } - } -}; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2015-05-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2017-10-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion3: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2018-06-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion4: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2017-03-01-preview', type: { name: "String" } @@ -114,32 +51,6 @@ export const backupName: msRest.OperationURLParameter = { } } }; -export const baselineName: msRest.OperationURLParameter = { - parameterPath: "baselineName", - mapper: { - required: true, - serializedName: "baselineName", - type: { - name: "Enum", - allowedValues: [ - "master", - "default" - ] - } - } -}; -export const blobAuditingPolicyName: msRest.OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", - mapper: { - required: true, - isConstant: true, - serializedName: "blobAuditingPolicyName", - defaultValue: 'default', - type: { - name: "String" - } - } -}; export const columnName: msRest.OperationURLParameter = { parameterPath: "columnName", mapper: { @@ -150,74 +61,6 @@ export const columnName: msRest.OperationURLParameter = { } } }; -export const communicationLinkName: msRest.OperationURLParameter = { - parameterPath: "communicationLinkName", - mapper: { - required: true, - serializedName: "communicationLinkName", - type: { - name: "String" - } - } -}; -export const connectionPolicyName: msRest.OperationURLParameter = { - parameterPath: "connectionPolicyName", - mapper: { - required: true, - isConstant: true, - serializedName: "connectionPolicyName", - defaultValue: 'default', - type: { - name: "String" - } - } -}; -export const continuationToken: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "continuationToken" - ], - mapper: { - serializedName: "continuationToken", - type: { - name: "String" - } - } -}; -export const createTimeMax: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "createTimeMax" - ], - mapper: { - serializedName: "createTimeMax", - type: { - name: "DateTime" - } - } -}; -export const createTimeMin: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "createTimeMin" - ], - mapper: { - serializedName: "createTimeMin", - type: { - name: "DateTime" - } - } -}; -export const credentialName: msRest.OperationURLParameter = { - parameterPath: "credentialName", - mapper: { - required: true, - serializedName: "credentialName", - type: { - name: "String" - } - } -}; export const databaseName: msRest.OperationURLParameter = { parameterPath: "databaseName", mapper: { @@ -240,38 +83,6 @@ export const databaseState: msRest.OperationQueryParameter = { } } }; -export const dataMaskingPolicyName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", - mapper: { - required: true, - isConstant: true, - serializedName: "dataMaskingPolicyName", - defaultValue: 'Default', - type: { - name: "String" - } - } -}; -export const dataMaskingRuleName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingRuleName", - mapper: { - required: true, - serializedName: "dataMaskingRuleName", - type: { - name: "String" - } - } -}; -export const dnsAliasName: msRest.OperationURLParameter = { - parameterPath: "dnsAliasName", - mapper: { - required: true, - serializedName: "dnsAliasName", - type: { - name: "String" - } - } -}; export const elasticPoolName: msRest.OperationURLParameter = { parameterPath: "elasticPoolName", mapper: { @@ -282,52 +93,6 @@ export const elasticPoolName: msRest.OperationURLParameter = { } } }; -export const encryptionProtectorName: msRest.OperationURLParameter = { - parameterPath: "encryptionProtectorName", - mapper: { - required: true, - isConstant: true, - serializedName: "encryptionProtectorName", - defaultValue: 'current', - type: { - name: "String" - } - } -}; -export const endTime: msRest.OperationQueryParameter = { - parameterPath: "endTime", - mapper: { - required: true, - serializedName: "endTime", - type: { - name: "String" - } - } -}; -export const endTimeMax: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "endTimeMax" - ], - mapper: { - serializedName: "endTimeMax", - type: { - name: "DateTime" - } - } -}; -export const endTimeMin: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "endTimeMin" - ], - mapper: { - serializedName: "endTimeMin", - type: { - name: "DateTime" - } - } -}; export const expandChildren: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -340,39 +105,7 @@ export const expandChildren: msRest.OperationQueryParameter = { } } }; -export const extensionName: msRest.OperationURLParameter = { - parameterPath: "extensionName", - mapper: { - required: true, - isConstant: true, - serializedName: "extensionName", - defaultValue: 'import', - type: { - name: "String" - } - } -}; -export const failoverGroupName: msRest.OperationURLParameter = { - parameterPath: "failoverGroupName", - mapper: { - required: true, - serializedName: "failoverGroupName", - type: { - name: "String" - } - } -}; -export const filter0: msRest.OperationQueryParameter = { - parameterPath: "filter", - mapper: { - required: true, - serializedName: "$filter", - type: { - name: "String" - } - } -}; -export const filter1: msRest.OperationQueryParameter = { +export const filter: msRest.OperationQueryParameter = { parameterPath: [ "options", "filter" @@ -384,50 +117,6 @@ export const filter1: msRest.OperationQueryParameter = { } } }; -export const firewallRuleName: msRest.OperationURLParameter = { - parameterPath: "firewallRuleName", - mapper: { - required: true, - serializedName: "firewallRuleName", - type: { - name: "String" - } - } -}; -export const geoBackupPolicyName: msRest.OperationURLParameter = { - parameterPath: "geoBackupPolicyName", - mapper: { - required: true, - isConstant: true, - serializedName: "geoBackupPolicyName", - defaultValue: 'Default', - type: { - name: "String" - } - } -}; -export const groupName: msRest.OperationURLParameter = { - parameterPath: "groupName", - mapper: { - required: true, - serializedName: "groupName", - type: { - name: "String" - } - } -}; -export const include: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "include" - ], - mapper: { - serializedName: "include", - type: { - name: "String" - } - } -}; export const includeDisabledRecommendations: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -450,78 +139,6 @@ export const instancePoolName: msRest.OperationURLParameter = { } } }; -export const isActive: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "isActive" - ], - mapper: { - serializedName: "isActive", - type: { - name: "Boolean" - } - } -}; -export const jobAgentName: msRest.OperationURLParameter = { - parameterPath: "jobAgentName", - mapper: { - required: true, - serializedName: "jobAgentName", - type: { - name: "String" - } - } -}; -export const jobExecutionId: msRest.OperationURLParameter = { - parameterPath: "jobExecutionId", - mapper: { - required: true, - serializedName: "jobExecutionId", - type: { - name: "Uuid" - } - } -}; -export const jobName: msRest.OperationURLParameter = { - parameterPath: "jobName", - mapper: { - required: true, - serializedName: "jobName", - type: { - name: "String" - } - } -}; -export const jobVersion: msRest.OperationURLParameter = { - parameterPath: "jobVersion", - mapper: { - required: true, - serializedName: "jobVersion", - type: { - name: "Number" - } - } -}; -export const keyName: msRest.OperationURLParameter = { - parameterPath: "keyName", - mapper: { - required: true, - serializedName: "keyName", - type: { - name: "String" - } - } -}; -export const linkId: msRest.OperationURLParameter = { - parameterPath: "linkId", - mapper: { - required: true, - serializedName: "linkId", - type: { - name: "String" - } - } -}; export const locationName: msRest.OperationURLParameter = { parameterPath: "locationName", mapper: { @@ -532,26 +149,6 @@ export const locationName: msRest.OperationURLParameter = { } } }; -export const longTermRetentionDatabaseName: msRest.OperationURLParameter = { - parameterPath: "longTermRetentionDatabaseName", - mapper: { - required: true, - serializedName: "longTermRetentionDatabaseName", - type: { - name: "String" - } - } -}; -export const longTermRetentionServerName: msRest.OperationURLParameter = { - parameterPath: "longTermRetentionServerName", - mapper: { - required: true, - serializedName: "longTermRetentionServerName", - type: { - name: "String" - } - } -}; export const managedInstanceName: msRest.OperationURLParameter = { parameterPath: "managedInstanceName", mapper: { @@ -617,26 +214,6 @@ export const privateEndpointConnectionName: msRest.OperationURLParameter = { } } }; -export const recommendedElasticPoolName: msRest.OperationURLParameter = { - parameterPath: "recommendedElasticPoolName", - mapper: { - required: true, - serializedName: "recommendedElasticPoolName", - type: { - name: "String" - } - } -}; -export const recoverableDatabaseName: msRest.OperationURLParameter = { - parameterPath: "recoverableDatabaseName", - mapper: { - required: true, - serializedName: "recoverableDatabaseName", - type: { - name: "String" - } - } -}; export const replicaType: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -659,26 +236,6 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; -export const restorableDroppedDatabaseId: msRest.OperationURLParameter = { - parameterPath: "restorableDroppedDatabaseId", - mapper: { - required: true, - serializedName: "restorableDroppedDatabaseId", - type: { - name: "String" - } - } -}; -export const restorableDroppededDatabaseId: msRest.OperationURLParameter = { - parameterPath: "restorableDroppededDatabaseId", - mapper: { - required: true, - serializedName: "restorableDroppededDatabaseId", - type: { - name: "String" - } - } -}; export const restoreDetailsName: msRest.OperationURLParameter = { parameterPath: "restoreDetailsName", mapper: { @@ -691,36 +248,6 @@ export const restoreDetailsName: msRest.OperationURLParameter = { } } }; -export const restorePointName: msRest.OperationURLParameter = { - parameterPath: "restorePointName", - mapper: { - required: true, - serializedName: "restorePointName", - type: { - name: "String" - } - } -}; -export const ruleId: msRest.OperationURLParameter = { - parameterPath: "ruleId", - mapper: { - required: true, - serializedName: "ruleId", - type: { - name: "String" - } - } -}; -export const scanId: msRest.OperationURLParameter = { - parameterPath: "scanId", - mapper: { - required: true, - serializedName: "scanId", - type: { - name: "String" - } - } -}; export const schemaName: msRest.OperationURLParameter = { parameterPath: "schemaName", mapper: { @@ -731,7 +258,7 @@ export const schemaName: msRest.OperationURLParameter = { } } }; -export const securityAlertPolicyName0: msRest.OperationURLParameter = { +export const securityAlertPolicyName: msRest.OperationURLParameter = { parameterPath: "securityAlertPolicyName", mapper: { required: true, @@ -743,31 +270,7 @@ export const securityAlertPolicyName0: msRest.OperationURLParameter = { } } }; -export const securityAlertPolicyName1: msRest.OperationURLParameter = { - parameterPath: "securityAlertPolicyName", - mapper: { - required: true, - isConstant: true, - serializedName: "securityAlertPolicyName", - defaultValue: 'Default', - type: { - name: "String" - } - } -}; export const sensitivityLabelSource0: msRest.OperationURLParameter = { - parameterPath: "sensitivityLabelSource", - mapper: { - required: true, - isConstant: true, - serializedName: "sensitivityLabelSource", - defaultValue: 'recommended', - type: { - name: "String" - } - } -}; -export const sensitivityLabelSource1: msRest.OperationURLParameter = { parameterPath: "sensitivityLabelSource", mapper: { required: true, @@ -781,7 +284,7 @@ export const sensitivityLabelSource1: msRest.OperationURLParameter = { } } }; -export const sensitivityLabelSource2: msRest.OperationURLParameter = { +export const sensitivityLabelSource1: msRest.OperationURLParameter = { parameterPath: "sensitivityLabelSource", mapper: { required: true, @@ -793,48 +296,28 @@ export const sensitivityLabelSource2: msRest.OperationURLParameter = { } } }; -export const serverName: msRest.OperationURLParameter = { - parameterPath: "serverName", - mapper: { - required: true, - serializedName: "serverName", - type: { - name: "String" - } - } -}; -export const serviceObjectiveName: msRest.OperationURLParameter = { - parameterPath: "serviceObjectiveName", +export const sensitivityLabelSource2: msRest.OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { required: true, - serializedName: "serviceObjectiveName", + isConstant: true, + serializedName: "sensitivityLabelSource", + defaultValue: 'recommended', type: { name: "String" } } }; -export const serviceTierAdvisorName: msRest.OperationURLParameter = { - parameterPath: "serviceTierAdvisorName", +export const serverName: msRest.OperationURLParameter = { + parameterPath: "serverName", mapper: { required: true, - serializedName: "serviceTierAdvisorName", + serializedName: "serverName", type: { name: "String" } } }; -export const skip: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "skip" - ], - mapper: { - serializedName: "$skip", - type: { - name: "Number" - } - } -}; export const skipToken: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -847,26 +330,6 @@ export const skipToken: msRest.OperationQueryParameter = { } } }; -export const startTime: msRest.OperationQueryParameter = { - parameterPath: "startTime", - mapper: { - required: true, - serializedName: "startTime", - type: { - name: "String" - } - } -}; -export const stepName: msRest.OperationURLParameter = { - parameterPath: "stepName", - mapper: { - required: true, - serializedName: "stepName", - type: { - name: "String" - } - } -}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -877,36 +340,6 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; -export const syncAgentName: msRest.OperationURLParameter = { - parameterPath: "syncAgentName", - mapper: { - required: true, - serializedName: "syncAgentName", - type: { - name: "String" - } - } -}; -export const syncGroupName: msRest.OperationURLParameter = { - parameterPath: "syncGroupName", - mapper: { - required: true, - serializedName: "syncGroupName", - type: { - name: "String" - } - } -}; -export const syncMemberName: msRest.OperationURLParameter = { - parameterPath: "syncMemberName", - mapper: { - required: true, - serializedName: "syncMemberName", - type: { - name: "String" - } - } -}; export const tableName: msRest.OperationURLParameter = { parameterPath: "tableName", mapper: { @@ -917,90 +350,6 @@ export const tableName: msRest.OperationURLParameter = { } } }; -export const targetGroupName: msRest.OperationURLParameter = { - parameterPath: "targetGroupName", - mapper: { - required: true, - serializedName: "targetGroupName", - type: { - name: "String" - } - } -}; -export const targetId: msRest.OperationURLParameter = { - parameterPath: "targetId", - mapper: { - required: true, - serializedName: "targetId", - type: { - name: "Uuid" - } - } -}; -export const top: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "top" - ], - mapper: { - serializedName: "$top", - type: { - name: "Number" - } - } -}; -export const transparentDataEncryptionName: msRest.OperationURLParameter = { - parameterPath: "transparentDataEncryptionName", - mapper: { - required: true, - isConstant: true, - serializedName: "transparentDataEncryptionName", - defaultValue: 'current', - type: { - name: "String" - } - } -}; -export const type: msRest.OperationQueryParameter = { - parameterPath: "type", - mapper: { - required: true, - serializedName: "type", - type: { - name: "String" - } - } -}; -export const usageName: msRest.OperationURLParameter = { - parameterPath: "usageName", - mapper: { - required: true, - serializedName: "usageName", - type: { - name: "String" - } - } -}; -export const virtualClusterName: msRest.OperationURLParameter = { - parameterPath: "virtualClusterName", - mapper: { - required: true, - serializedName: "virtualClusterName", - type: { - name: "String" - } - } -}; -export const virtualNetworkRuleName: msRest.OperationURLParameter = { - parameterPath: "virtualNetworkRuleName", - mapper: { - required: true, - serializedName: "virtualNetworkRuleName", - type: { - name: "String" - } - } -}; export const vulnerabilityAssessmentName: msRest.OperationURLParameter = { parameterPath: "vulnerabilityAssessmentName", mapper: { diff --git a/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts b/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts index 6afd01cf22af..21c8a7a40940 100644 --- a/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts @@ -1,123 +1,38 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts b/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts deleted file mode 100644 index 296ecc5ac9a4..000000000000 --- a/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceListResult, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts b/sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts deleted file mode 100644 index 0eee5fddc7c8..000000000000 --- a/sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolListMetricsResult, - RecommendedElasticPoolListResult, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts deleted file mode 100644 index 9677584090a7..000000000000 --- a/sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableDatabaseListResult, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts deleted file mode 100644 index 1ddfda89c4cf..000000000000 --- a/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - RecoverableManagedDatabaseListResult, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts b/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts deleted file mode 100644 index 11f8b42a5b3b..000000000000 --- a/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - ReplicationLinkListResult, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts deleted file mode 100644 index b74820bd914f..000000000000 --- a/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedDatabaseListResult, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts deleted file mode 100644 index cdc3365f6cf9..000000000000 --- a/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorableDroppedManagedDatabaseListResult, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/restorePointsMappers.ts b/sdk/sql/arm-sql/src/models/restorePointsMappers.ts deleted file mode 100644 index 1dc3fc0e9ba9..000000000000 --- a/sdk/sql/arm-sql/src/models/restorePointsMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - CreateDatabaseRestorePointDefinition, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - RestorePointListResult, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts b/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts deleted file mode 100644 index 87d6022ba880..000000000000 --- a/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - SensitivityLabelListResult, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts b/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts b/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts index f9ecf612a004..125823d7a88c 100644 --- a/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts @@ -1,123 +1,38 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, + AdministratorListResult, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAdministratorListResult, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 2c08a5a5d576..000000000000 --- a/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerBlobAuditingPolicyListResult, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts b/sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts deleted file mode 100644 index 8fee97fe4555..000000000000 --- a/sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerCommunicationLinkListResult, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts b/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts deleted file mode 100644 index 2df18ff0e2c2..000000000000 --- a/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerDnsAliasAcquisition, - ServerDnsAliasListResult, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverKeysMappers.ts b/sdk/sql/arm-sql/src/models/serverKeysMappers.ts deleted file mode 100644 index 83ddf2f8f7b2..000000000000 --- a/sdk/sql/arm-sql/src/models/serverKeysMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerKeyListResult, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts deleted file mode 100644 index ffc361e9b674..000000000000 --- a/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LogicalServerSecurityAlertPolicyListResult, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverUsagesMappers.ts b/sdk/sql/arm-sql/src/models/serverUsagesMappers.ts deleted file mode 100644 index 518a73b015ba..000000000000 --- a/sdk/sql/arm-sql/src/models/serverUsagesMappers.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - CloudError, - ServerUsage, - ServerUsageListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts index 752ff0c23f91..666eb836d631 100644 --- a/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts @@ -1,123 +1,38 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, BaseResource, CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, Resource, ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, SensitivityLabel, - Server, - ServerAutomaticTuning, ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentListResult, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + VulnerabilityAssessmentRecurringScansProperties } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serversMappers.ts b/sdk/sql/arm-sql/src/models/serversMappers.ts deleted file mode 100644 index 30808fc774b5..000000000000 --- a/sdk/sql/arm-sql/src/models/serversMappers.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CheckNameAvailabilityRequest, - CheckNameAvailabilityResponse, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerListResult, - ServerSecurityAlertPolicy, - ServerUpdate, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts b/sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts deleted file mode 100644 index 9f3c7f50b3ec..000000000000 --- a/sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceObjectiveListResult, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts b/sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts deleted file mode 100644 index 894adb3d60dd..000000000000 --- a/sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - ServiceTierAdvisorListResult, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts b/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts deleted file mode 100644 index 00869dab7501..000000000000 --- a/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SubscriptionUsageListResult, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts b/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts deleted file mode 100644 index b4b302816e20..000000000000 --- a/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentKeyProperties, - SyncAgentLinkedDatabase, - SyncAgentLinkedDatabaseListResult, - SyncAgentListResult, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts b/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts deleted file mode 100644 index 2df7178b4a32..000000000000 --- a/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncDatabaseIdListResult, - SyncDatabaseIdProperties, - SyncFullSchemaProperties, - SyncFullSchemaPropertiesListResult, - SyncFullSchemaTable, - SyncFullSchemaTableColumn, - SyncGroup, - SyncGroupListResult, - SyncGroupLogListResult, - SyncGroupLogProperties, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/syncMembersMappers.ts b/sdk/sql/arm-sql/src/models/syncMembersMappers.ts deleted file mode 100644 index 340117c02ee4..000000000000 --- a/sdk/sql/arm-sql/src/models/syncMembersMappers.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncFullSchemaProperties, - SyncFullSchemaPropertiesListResult, - SyncFullSchemaTable, - SyncFullSchemaTableColumn, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - SyncMemberListResult, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts b/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts b/sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts deleted file mode 100644 index 27d7b720ae1f..000000000000 --- a/sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - TransparentDataEncryptionActivityListResult, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts b/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/usagesMappers.ts b/sdk/sql/arm-sql/src/models/usagesMappers.ts index 5e7352c44b40..c3b86c0dc93d 100644 --- a/sdk/sql/arm-sql/src/models/usagesMappers.ts +++ b/sdk/sql/arm-sql/src/models/usagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts b/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts deleted file mode 100644 index 90ecde2829f0..000000000000 --- a/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualClusterListResult, - VirtualClusterUpdate, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts b/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts deleted file mode 100644 index cdf3c431e362..000000000000 --- a/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VirtualNetworkRuleListResult, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts deleted file mode 100644 index 015a8db7ac5e..000000000000 --- a/sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/backupLongTermRetentionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a BackupLongTermRetentionPolicies. */ -export class BackupLongTermRetentionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a BackupLongTermRetentionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Sets 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 parameters The long term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Sets 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 parameters The long term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.BackupLongTermRetentionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.BackupLongTermRetentionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.BackupLongTermRetentionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.BackupLongTermRetentionPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts deleted file mode 100644 index a91d73b39445..000000000000 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/backupShortTermRetentionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a BackupShortTermRetentionPolicies. */ -export class BackupShortTermRetentionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a BackupShortTermRetentionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Updates 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 parameters The short term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Updates 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 parameters The short term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Updates 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 parameters The short term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Updates 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 parameters The short term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a database's short term retention policy. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.BackupShortTermRetentionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.BackupShortTermRetentionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.BackupShortTermRetentionPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts deleted file mode 100644 index 56cbe7ea343b..000000000000 --- a/sdk/sql/arm-sql/src/operations/capabilities.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/capabilitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a Capabilities. */ -export class Capabilities { - private readonly client: SqlManagementClientContext; - - /** - * Create a Capabilities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets the subscription capabilities available for the specified location. - * @param locationName The location name whose capabilities are retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocation(locationName: string, options?: Models.CapabilitiesListByLocationOptionalParams): Promise; - /** - * @param locationName The location name whose capabilities are retrieved. - * @param callback The callback - */ - listByLocation(locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The location name whose capabilities are retrieved. - * @param options The optional parameters - * @param callback The callback - */ - listByLocation(locationName: string, options: Models.CapabilitiesListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.CapabilitiesListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - options - }, - listByLocationOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/capabilities", - urlParameters: [ - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.include, - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LocationCapabilities - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts deleted file mode 100644 index 66ddab401ec4..000000000000 --- a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/dataMaskingPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DataMaskingPolicies. */ -export class DataMaskingPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a DataMaskingPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 parameters Parameters for creating or updating a data masking policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Gets 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 [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.dataMaskingPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DataMaskingPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataMaskingPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.dataMaskingPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DataMaskingPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts deleted file mode 100644 index 730fb4fa3c41..000000000000 --- a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/dataMaskingRulesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DataMaskingRules. */ -export class DataMaskingRules { - private readonly client: SqlManagementClientContext; - - /** - * Create a DataMaskingRules. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 dataMaskingRuleName The name of the data masking rule. - * @param parameters The required parameters for creating or updating a data masking rule. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 dataMaskingRuleName The name of the data masking rule. - * @param parameters The required parameters for creating or updating a data masking rule. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 dataMaskingRuleName The name of the data masking rule. - * @param parameters The required parameters for creating or updating a data masking rule. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - dataMaskingRuleName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.dataMaskingPolicyName, - Parameters.dataMaskingRuleName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DataMaskingRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataMaskingRule - }, - 201: { - bodyMapper: Mappers.DataMaskingRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.dataMaskingPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DataMaskingRuleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts deleted file mode 100644 index c8538356092a..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseAutomaticTuningOperationsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseAutomaticTuningOperations. */ -export class DatabaseAutomaticTuningOperations { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseAutomaticTuningOperations. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a database's automatic tuning. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Update automatic tuning properties for target database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested automatic tuning resource state. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested automatic tuning resource state. - * @param callback The callback - */ - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested automatic tuning resource state. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - updateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseAutomaticTuning - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseAutomaticTuning, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseAutomaticTuning - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseOperations.ts b/sdk/sql/arm-sql/src/operations/databaseOperations.ts deleted file mode 100644 index 73da08119974..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseOperationsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseOperations. */ -export class DatabaseOperations { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseOperations. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - operationId, - options - }, - cancelOperationSpec, - callback); - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of operations performed on the database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const cancelOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.operationId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseOperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseOperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts similarity index 58% rename from sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts rename to sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts index aa9330f4a0d5..58138e57c3a3 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -10,16 +9,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/databaseBlobAuditingPoliciesMappers"; +import * as Mappers from "../models/databaseSecurityAlertPoliciesMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a DatabaseBlobAuditingPolicies. */ -export class DatabaseBlobAuditingPolicies { +/** Class representing a DatabaseSecurityAlertPolicies. */ +export class DatabaseSecurityAlertPolicies { private readonly client: SqlManagementClientContext; /** - * Create a DatabaseBlobAuditingPolicies. + * Create a DatabaseSecurityAlertPolicies. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -27,33 +26,33 @@ export class DatabaseBlobAuditingPolicies { } /** - * Gets a database's blob auditing policy. + * Gets a database's security alert 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 serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this 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 serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this 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 serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -62,40 +61,40 @@ export class DatabaseBlobAuditingPolicies { options }, getOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Creates or updates a database's blob auditing policy. + * Creates or updates a database's security alert policy. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database blob auditing policy. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param parameters The database security alert policy. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database blob auditing policy. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param parameters The database security alert policy. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The database blob auditing policy. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param parameters The database security alert policy. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,37 +104,37 @@ export class DatabaseBlobAuditingPolicies { options }, createOrUpdateOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Lists auditing settings of a database. + * 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. + * @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 optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this 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 serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this 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 serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -144,35 +143,35 @@ export class DatabaseBlobAuditingPolicies { options }, listByDatabaseOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Lists auditing settings of a database. + * Gets a list of database's security alert policies. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByDatabaseNextOperationSpec, - callback) as Promise; + callback) as Promise; } } @@ -180,23 +179,23 @@ export class DatabaseBlobAuditingPolicies { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.blobAuditingPolicyName, + Parameters.securityAlertPolicyName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy + bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, default: { bodyMapper: Mappers.CloudError @@ -207,16 +206,16 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.blobAuditingPolicyName, + Parameters.securityAlertPolicyName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -224,16 +223,16 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.DatabaseBlobAuditingPolicy, + ...Mappers.DatabaseSecurityAlertPolicy, required: true } }, responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy + bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, 201: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicy + bodyMapper: Mappers.DatabaseSecurityAlertPolicy }, default: { bodyMapper: Mappers.CloudError @@ -244,7 +243,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -252,14 +251,14 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicyListResult + bodyMapper: Mappers.DatabaseSecurityAlertListResult }, default: { bodyMapper: Mappers.CloudError @@ -275,12 +274,15 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.DatabaseBlobAuditingPolicyListResult + bodyMapper: Mappers.DatabaseSecurityAlertListResult }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts deleted file mode 100644 index 13565e880d9b..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseThreatDetectionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseThreatDetectionPolicies. */ -export class DatabaseThreatDetectionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseThreatDetectionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a database's threat detection 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 for which database Threat Detection policy is - * defined. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 database Threat Detection policy is - * defined. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 database Threat Detection policy is - * defined. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a database's threat detection 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 for which database Threat Detection policy is - * defined. - * @param parameters The database Threat Detection policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 database Threat Detection policy is - * defined. - * @param parameters The database Threat Detection policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 database Threat Detection policy is - * defined. - * @param parameters The database Threat Detection policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.securityAlertPolicyName0 - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.securityAlertPolicyName0 - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseSecurityAlertPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, - 201: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts deleted file mode 100644 index a7146aee6cb0..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseUsagesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseUsages. */ -export class DatabaseUsages { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseUsages. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns database 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. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/usages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseUsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts deleted file mode 100644 index 12157deacbb5..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseVulnerabilityAssessmentRuleBaselinesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseVulnerabilityAssessmentRuleBaselines. */ -export class DatabaseVulnerabilityAssessmentRuleBaselines { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseVulnerabilityAssessmentRuleBaselines. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a database's vulnerability assessment rule baseline. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - ruleId, - baselineName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a database's vulnerability assessment rule baseline. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - ruleId, - baselineName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Removes the database's vulnerability assessment rule baseline. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - ruleId, - baselineName, - options - }, - deleteMethodOperationSpec, - callback); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseVulnerabilityAssessmentRuleBaseline, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts deleted file mode 100644 index 20c44d8e1471..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseVulnerabilityAssessmentScansMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseVulnerabilityAssessmentScans. */ -export class DatabaseVulnerabilityAssessmentScans { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseVulnerabilityAssessmentScans. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * 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 scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - scanId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Executes a Vulnerability Assessment database scan. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 scanId The vulnerability assessment scan Id. - * @param [options] The optional parameters - * @returns Promise - */ - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain 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 scanId The vulnerability assessment scan Id. - * @param callback The callback - */ - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain 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 scanId The vulnerability assessment scan Id. - * @param options The optional parameters - * @param callback The callback - */ - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - scanId, - options - }, - exportMethodOperationSpec, - callback) as Promise; - } - - /** - * Executes a Vulnerability Assessment database scan. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - beginInitiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - scanId, - options - }, - beginInitiateScanOperationSpec, - options); - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const exportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginInitiateScanOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts deleted file mode 100644 index 3ed1a774ce50..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseVulnerabilityAssessmentsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseVulnerabilityAssessments. */ -export class DatabaseVulnerabilityAssessments { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseVulnerabilityAssessments. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets the database's vulnerability assessment. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 is defined. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 is defined. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates the database's vulnerability assessment. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param parameters The requested resource. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 is defined. - * @param parameters The requested resource. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 is defined. - * @param parameters The requested resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Removes the database's vulnerability assessment. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 is defined. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 is defined. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Lists the vulnerability assessment policies associated with a database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseVulnerabilityAssessment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessment - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index 846dfc51b1bd..70f4e1e29630 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -27,375 +26,6 @@ export class Databases { this.client = client; } - /** - * Imports a bacpac into a new database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The required parameters for importing a Bacpac into a database. - * @param [options] The optional parameters - * @returns Promise - */ - importMethod(resourceGroupName: string, serverName: string, parameters: Models.ImportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginImportMethod(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates an import operation that imports a bacpac into an existing database. The existing - * database must be empty. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to import into - * @param parameters The required parameters for importing a Bacpac into a database. - * @param [options] The optional parameters - * @returns Promise - */ - createImportOperation(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ImportExtensionRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateImportOperation(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Exports a database to a bacpac. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be exported. - * @param parameters The required parameters for exporting a database. - * @param [options] The optional parameters - * @returns Promise - */ - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginExportMethod(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - filter, - options - }, - listMetricsOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listMetricDefinitionsOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of databases. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Gets 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates a new database or updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested database resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.Database, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes 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 [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,databaseName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested database resource state. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Gets a list of databases in an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param [options] The optional parameters - * @returns Promise - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listByElasticPoolOperationSpec, - callback) as Promise; - } - - /** - * Pauses a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. - * @param [options] The optional parameters - * @returns Promise - */ - pause(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginPause(resourceGroupName,serverName,databaseName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Resumes a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. - * @param [options] The optional parameters - * @returns Promise - */ - resume(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginResume(resourceGroupName,serverName,databaseName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Upgrades a data warehouse. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. - * @param [options] The optional parameters - * @returns Promise - */ - upgradeDataWarehouse(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpgradeDataWarehouse(resourceGroupName,serverName,databaseName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Renames a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. - * @param [options] The optional parameters - * @returns Promise - */ - rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. - * @param callback The callback - */ - rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to rename. - * @param parameters The resource move definition for renaming this database. - * @param options The optional parameters - * @param callback The callback - */ - rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - renameOperationSpec, - callback); - } - /** * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -411,722 +41,29 @@ export class Databases { } /** - * Imports a bacpac into a new database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The required parameters for importing a Bacpac into a database. - * @param [options] The optional parameters - * @returns Promise - */ - beginImportMethod(resourceGroupName: string, serverName: string, parameters: Models.ImportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginImportMethodOperationSpec, - options); - } - - /** - * Creates an import operation that imports a bacpac into an existing database. The existing - * database must be empty. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to import into - * @param parameters The required parameters for importing a Bacpac into a database. + * @param databaseName The name of the database to failover. * @param [options] The optional parameters * @returns Promise */ - beginCreateImportOperation(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ImportExtensionRequest, options?: msRest.RequestOptionsBase): Promise { + beginFailover(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabasesBeginFailoverOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, databaseName, - parameters, options }, - beginCreateImportOperationOperationSpec, + beginFailoverOperationSpec, options); } - - /** - * Exports a database to a bacpac. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be exported. - * @param parameters The required parameters for exporting a database. - * @param [options] The optional parameters - * @returns Promise - */ - beginExportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginExportMethodOperationSpec, - options); - } - - /** - * Creates a new database or updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested database resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.Database, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes 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 [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested database resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Pauses a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. - * @param [options] The optional parameters - * @returns Promise - */ - beginPause(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - beginPauseOperationSpec, - options); - } - - /** - * Resumes a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. - * @param [options] The optional parameters - * @returns Promise - */ - beginResume(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - beginResumeOperationSpec, - options); - } - - /** - * Upgrades a data warehouse. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpgradeDataWarehouse(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - beginUpgradeDataWarehouseOperationSpec, - options); - } - - /** - * Failovers a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to failover. - * @param [options] The optional parameters - * @returns Promise - */ - beginFailover(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabasesBeginFailoverOptionalParams): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - beginFailoverOperationSpec, - options); - } - - /** - * Gets a list of databases. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of databases in an elastic pool. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByElasticPoolNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByElasticPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByElasticPoolNextOperationSpec, - callback) as Promise; - } -} +} // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listMetricsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metrics", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0, - Parameters.filter0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Database - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByElasticPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const renameOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ResourceMoveDefinition, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginImportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ImportRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ImportExportResponse - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateImportOperationOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.extensionName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ImportExtensionRequest, - required: true - } - }, - responses: { - 201: { - bodyMapper: Mappers.ImportExportResponse - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginExportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ExportRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ImportExportResponse - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.Database, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Database - }, - 201: { - bodyMapper: Mappers.Database - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseUpdate, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Database - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginPauseOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Database - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginResumeOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Database - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpgradeDataWarehouseOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", @@ -1138,7 +75,7 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.replicaType, - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1152,45 +89,3 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByElasticPoolNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; 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 41b02ce1dc7a..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/elasticPoolActivitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ElasticPoolActivities. */ -export class ElasticPoolActivities { - private readonly client: SqlManagementClientContext; - - /** - * Create a ElasticPoolActivities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - 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 optional parameters - * @returns Promise - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listByElasticPoolOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByElasticPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolActivityListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - 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 12a137296830..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/elasticPoolDatabaseActivitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ElasticPoolDatabaseActivities. */ -export class ElasticPoolDatabaseActivities { - private readonly client: SqlManagementClientContext; - - /** - * Create a ElasticPoolDatabaseActivities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - 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 optional parameters - * @returns Promise - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listByElasticPoolOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByElasticPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolDatabaseActivityListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts deleted file mode 100644 index 049f74e667db..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/elasticPoolOperationsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ElasticPoolOperations. */ -export class ElasticPoolOperations { - private readonly client: SqlManagementClientContext; - - /** - * Create a ElasticPoolOperations. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - operationId, - options - }, - cancelOperationSpec, - callback); - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listByElasticPoolOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of operations performed on the elastic pool. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByElasticPoolNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByElasticPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByElasticPoolNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const cancelOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.operationId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByElasticPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolOperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByElasticPoolNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolOperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPools.ts b/sdk/sql/arm-sql/src/operations/elasticPools.ts index 44ed8f424f87..af0f7bd482ed 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -10,7 +9,6 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; import * as Mappers from "../models/elasticPoolsMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; @@ -27,206 +25,6 @@ export class 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 optional parameters - * @returns Promise - */ - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - }, - listMetricsOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listMetricDefinitionsOperationSpec, - callback) as Promise; - } - - /** - * Gets all elastic pools 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: Models.ElasticPoolsListByServerOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: Models.ElasticPoolsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: Models.ElasticPoolsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Gets 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates 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 parameters The elastic pool parameters. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: Models.ElasticPool, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,elasticPoolName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes 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 optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,elasticPoolName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates 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 parameters The elastic pool update parameters. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: Models.ElasticPoolUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,elasticPoolName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - /** * Failovers an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -241,73 +39,6 @@ export class ElasticPools { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Creates or updates 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 parameters The elastic pool parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: Models.ElasticPool, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - elasticPoolName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes 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 optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates 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 parameters The elastic pool update parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, elasticPoolName: string, parameters: Models.ElasticPoolUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - elasticPoolName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - /** * Failovers an elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -328,240 +59,10 @@ export class ElasticPools { beginFailoverOperationSpec, options); } - - /** - * Gets all elastic pools in a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listMetricsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metrics", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0, - Parameters.filter0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.skip, - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPool - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ElasticPool, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ElasticPool - }, - 201: { - bodyMapper: Mappers.ElasticPool - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ElasticPoolUpdate, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ElasticPool - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginFailoverOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/failover", @@ -572,7 +73,7 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -586,24 +87,3 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts deleted file mode 100644 index bc5c040d3f2c..000000000000 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/encryptionProtectorsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a EncryptionProtectors. */ -export class EncryptionProtectors { - private readonly client: SqlManagementClientContext; - - /** - * Create a EncryptionProtectors. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - revalidate(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRevalidate(resourceGroupName,serverName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Gets a list of server 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 serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Gets a server 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 serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 serverName The name of the server. - * @param parameters The requested encryption protector resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.EncryptionProtector, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as 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 serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - beginRevalidate(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - options - }, - beginRevalidateOperationSpec, - options); - } - - /** - * 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 serverName The name of the server. - * @param parameters The requested encryption protector resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.EncryptionProtector, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Gets a list of server encryption protectors - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.EncryptionProtectorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.encryptionProtectorName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.EncryptionProtector - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRevalidateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.encryptionProtectorName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.encryptionProtectorName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.EncryptionProtector, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.EncryptionProtector - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.EncryptionProtectorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts deleted file mode 100644 index 4e0fc83f296f..000000000000 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/extendedDatabaseBlobAuditingPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ExtendedDatabaseBlobAuditingPolicies. */ -export class ExtendedDatabaseBlobAuditingPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ExtendedDatabaseBlobAuditingPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets an extended database's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an extended database's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The extended database blob auditing policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The extended database blob auditing policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The extended database blob auditing policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.blobAuditingPolicyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.blobAuditingPolicyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ExtendedDatabaseBlobAuditingPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy - }, - 201: { - bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts deleted file mode 100644 index 20f1bd98df01..000000000000 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/extendedServerBlobAuditingPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ExtendedServerBlobAuditingPolicies. */ -export class ExtendedServerBlobAuditingPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ExtendedServerBlobAuditingPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets an extended server's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an extended server's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters Properties of extended blob auditing policy - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ExtendedServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates or updates an extended server's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters Properties of extended blob auditing policy - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ExtendedServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.blobAuditingPolicyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.blobAuditingPolicyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ExtendedServerBlobAuditingPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts deleted file mode 100644 index 6d848d2f2018..000000000000 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/failoverGroupsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a FailoverGroups. */ -export class FailoverGroups { - private readonly client: SqlManagementClientContext; - - /** - * Create a FailoverGroups. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, failoverGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, failoverGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - failoverGroupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param parameters The failover group parameters. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: Models.FailoverGroup, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,failoverGroupName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,failoverGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param parameters The failover group parameters. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: Models.FailoverGroupUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,failoverGroupName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Lists the failover groups 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 containing the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param options The optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Fails over from the current primary server to this server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - failover(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginFailover(resourceGroupName,serverName,failoverGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Fails over from the current primary server to this server. This operation might result in data - * loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - forceFailoverAllowDataLoss(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginForceFailoverAllowDataLoss(resourceGroupName,serverName,failoverGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates or updates a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param parameters The failover group parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: Models.FailoverGroup, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - failoverGroupName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - failoverGroupName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates a failover 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 containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param parameters The failover group parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: Models.FailoverGroupUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - failoverGroupName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Fails over from the current primary server to this server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - beginFailover(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - failoverGroupName, - options - }, - beginFailoverOperationSpec, - options); - } - - /** - * Fails over from the current primary server to this server. This operation might result in data - * loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server containing the failover group. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - beginForceFailoverAllowDataLoss(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - failoverGroupName, - options - }, - beginForceFailoverAllowDataLossOperationSpec, - options); - } - - /** - * Lists the failover groups in a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FailoverGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FailoverGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.FailoverGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.FailoverGroup - }, - 201: { - bodyMapper: Mappers.FailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.FailoverGroupUpdate, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.FailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginFailoverOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginForceFailoverAllowDataLossOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FailoverGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts deleted file mode 100644 index af4cf9ddac0c..000000000000 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/firewallRulesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a FirewallRules. */ -export class FirewallRules { - private readonly client: SqlManagementClientContext; - - /** - * Create a FirewallRules. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - firewallRuleName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * 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 firewallRuleName The name of the firewall rule. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - firewallRuleName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - firewallRuleName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Returns 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 [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.firewallRuleName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.FirewallRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.FirewallRule - }, - 201: { - bodyMapper: Mappers.FirewallRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.firewallRuleName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.firewallRuleName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FirewallRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.FirewallRuleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts deleted file mode 100644 index 661201b459fb..000000000000 --- a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/geoBackupPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a GeoBackupPolicies. */ -export class GeoBackupPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a GeoBackupPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Updates a database 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 parameters The required parameters for creating or updating the geo backup policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The required parameters for creating or updating the geo backup policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The required parameters for creating or updating the geo backup policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Gets a 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 [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Returns a list of geo backup 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. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.geoBackupPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.GeoBackupPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.GeoBackupPolicy - }, - 201: { - bodyMapper: Mappers.GeoBackupPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.geoBackupPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.GeoBackupPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.GeoBackupPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index d044e4c4439f..2d2924d70f9d 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -1,96 +1,25 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./servers"; -export * from "./serverConnectionPolicies"; -export * from "./databaseThreatDetectionPolicies"; -export * from "./dataMaskingPolicies"; -export * from "./dataMaskingRules"; -export * from "./firewallRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./recommendedElasticPools"; -export * from "./replicationLinks"; -export * from "./serverAzureADAdministrators"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serviceTierAdvisors"; -export * from "./transparentDataEncryptions"; -export * from "./transparentDataEncryptionActivities"; -export * from "./serverUsages"; -export * from "./databaseUsages"; -export * from "./databaseAutomaticTuningOperations"; -export * from "./encryptionProtectors"; -export * from "./failoverGroups"; -export * from "./operations"; -export * from "./serverKeys"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./subscriptionUsages"; -export * from "./virtualClusters"; -export * from "./virtualNetworkRules"; -export * from "./extendedDatabaseBlobAuditingPolicies"; -export * from "./extendedServerBlobAuditingPolicies"; -export * from "./serverBlobAuditingPolicies"; -export * from "./databaseBlobAuditingPolicies"; -export * from "./databaseVulnerabilityAssessmentRuleBaselines"; -export * from "./databaseVulnerabilityAssessments"; -export * from "./jobAgents"; -export * from "./jobCredentials"; -export * from "./jobExecutions"; -export * from "./jobs"; -export * from "./jobStepExecutions"; -export * from "./jobSteps"; -export * from "./jobTargetExecutions"; -export * from "./jobTargetGroups"; -export * from "./jobVersions"; -export * from "./longTermRetentionBackups"; -export * from "./backupLongTermRetentionPolicies"; -export * from "./managedBackupShortTermRetentionPolicies"; -export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; -export * from "./serverAutomaticTuningOperations"; -export * from "./serverDnsAliases"; -export * from "./serverSecurityAlertPolicies"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./restorePoints"; -export * from "./managedDatabaseSecurityAlertPolicies"; -export * from "./managedServerSecurityAlertPolicies"; -export * from "./sensitivityLabels"; -export * from "./managedInstanceAdministrators"; -export * from "./databaseOperations"; -export * from "./elasticPoolOperations"; -export * from "./capabilities"; -export * from "./databaseVulnerabilityAssessmentScans"; -export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; -export * from "./managedDatabaseVulnerabilityAssessmentScans"; -export * from "./managedDatabaseVulnerabilityAssessments"; -export * from "./instanceFailoverGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./tdeCertificates"; -export * from "./managedInstanceTdeCertificates"; -export * from "./managedInstanceKeys"; -export * from "./managedInstanceEncryptionProtectors"; -export * from "./recoverableManagedDatabases"; +export * from "./databaseSecurityAlertPolicies"; +export * from "./managedDatabaseSensitivityLabels"; export * from "./managedInstanceVulnerabilityAssessments"; +export * from "./managedInstanceOperations"; export * from "./serverVulnerabilityAssessments"; -export * from "./managedDatabaseSensitivityLabels"; export * from "./instancePools"; export * from "./usages"; export * from "./managedInstances"; export * from "./managedDatabaseRestoreDetails"; export * from "./managedDatabases"; +export * from "./databases"; +export * from "./elasticPools"; export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; +export * from "./serverAzureADAdministrators"; +export * from "./managedInstanceLongTermRetentionPolicies"; +export * from "./longTermRetentionManagedInstanceBackups"; diff --git a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts deleted file mode 100644 index be0ae243f7f4..000000000000 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ /dev/null @@ -1,467 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/instanceFailoverGroupsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a InstanceFailoverGroups. */ -export class InstanceFailoverGroups { - private readonly client: SqlManagementClientContext; - - /** - * Create a InstanceFailoverGroups. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a failover 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 failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The 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 failoverGroupName The name of the failover group. - * @param callback The callback - */ - get(resourceGroupName: string, locationName: string, failoverGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 failoverGroupName The name of the failover group. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - failoverGroupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a failover 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 failoverGroupName The name of the failover group. - * @param parameters The failover group parameters. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: Models.InstanceFailoverGroup, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,locationName,failoverGroupName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a failover 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 failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,locationName,failoverGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Lists the failover groups in a 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 name of the region where the resource is located. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The 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 callback The callback - */ - listByLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - listByLocation(resourceGroupName: string, locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - options - }, - listByLocationOperationSpec, - callback) as Promise; - } - - /** - * Fails over from the current primary managed instance to this managed instance. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param locationName The name of the region where the resource is located. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - failover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginFailover(resourceGroupName,locationName,failoverGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Fails over from the current primary managed instance to this managed instance. This operation - * might result in data loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param locationName The name of the region where the resource is located. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - forceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginForceFailoverAllowDataLoss(resourceGroupName,locationName,failoverGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates or updates a failover 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 failoverGroupName The name of the failover group. - * @param parameters The failover group parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: Models.InstanceFailoverGroup, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - locationName, - failoverGroupName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a failover 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 failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - locationName, - failoverGroupName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Fails over from the current primary managed instance to this managed instance. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param locationName The name of the region where the resource is located. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - beginFailover(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - locationName, - failoverGroupName, - options - }, - beginFailoverOperationSpec, - options); - } - - /** - * Fails over from the current primary managed instance to this managed instance. This operation - * might result in data loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param locationName The name of the region where the resource is located. - * @param failoverGroupName The name of the failover group. - * @param [options] The optional parameters - * @returns Promise - */ - beginForceFailoverAllowDataLoss(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - locationName, - failoverGroupName, - options - }, - beginForceFailoverAllowDataLossOperationSpec, - options); - } - - /** - * Lists the failover groups in a location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByLocationNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InstanceFailoverGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InstanceFailoverGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.InstanceFailoverGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.InstanceFailoverGroup - }, - 201: { - bodyMapper: Mappers.InstanceFailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginFailoverOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/failover", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InstanceFailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginForceFailoverAllowDataLossOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.failoverGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InstanceFailoverGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByLocationNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InstanceFailoverGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index 530623321b35..16c30a316d8b 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -287,7 +286,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -311,7 +310,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -334,7 +333,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -359,7 +358,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -395,7 +394,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -420,7 +419,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -451,6 +450,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -472,6 +474,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts deleted file mode 100644 index 1b7ce4550a4f..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ /dev/null @@ -1,413 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobAgentsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobAgents. */ -export class JobAgents { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobAgents. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of job 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. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Gets a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 to be retrieved. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be created or updated. - * @param parameters The requested job agent resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: Models.JobAgent, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,jobAgentName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,jobAgentName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be updated. - * @param parameters The update to the job agent. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: Models.JobAgentUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,jobAgentName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates or updates a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be created or updated. - * @param parameters The requested job agent resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: Models.JobAgent, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - jobAgentName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - jobAgentName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates a job agent. - * @param resourceGroupName The name of the resource group that contains 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 to be updated. - * @param parameters The update to the job agent. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, parameters: Models.JobAgentUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - jobAgentName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a list of job agents in a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobAgentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobAgent - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.JobAgent, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.JobAgent - }, - 201: { - bodyMapper: Mappers.JobAgent - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.JobAgentUpdate, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.JobAgent - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobAgentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts deleted file mode 100644 index caf6404ca3cb..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobCredentialsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobCredentials. */ -export class JobCredentials { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobCredentials. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of jobs credentials. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - options - }, - listByAgentOperationSpec, - callback) as Promise; - } - - /** - * Gets a jobs credential. - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - credentialName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a job credential. - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param parameters The requested job credential state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param parameters The requested job credential state. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param parameters The requested job credential state. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - credentialName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Deletes a job credential. - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 credentialName The name of the credential. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - credentialName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Gets a list of jobs credentials. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByAgentNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByAgentOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobCredentialListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.credentialName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobCredential - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.credentialName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.JobCredential, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.JobCredential - }, - 201: { - bodyMapper: Mappers.JobCredential - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.credentialName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByAgentNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobCredentialListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts deleted file mode 100644 index 70719de8f48d..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ /dev/null @@ -1,565 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobExecutionsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobExecutions. */ -export class JobExecutions { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobExecutions. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Lists all executions in a job agent. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: Models.JobExecutionsListByAgentOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: Models.JobExecutionsListByAgentOptionalParams, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: Models.JobExecutionsListByAgentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - options - }, - listByAgentOperationSpec, - callback) as Promise; - } - - /** - * 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 to cancel. - * @param [options] The optional parameters - * @returns Promise - */ - cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - cancelOperationSpec, - callback); - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,serverName,jobAgentName,jobName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: Models.JobExecutionsListByJobOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: Models.JobExecutionsListByJobOptionalParams, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: Models.JobExecutionsListByJobOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - options - }, - listByJobOperationSpec, - callback) as Promise; - } - - /** - * 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 - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,jobAgentName,jobName,jobExecutionId,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * 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 optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Lists all executions in a job agent. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByAgentNextOperationSpec, - callback) as Promise; - } - - /** - * Lists a job's executions. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByJobNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByJobNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByAgentOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/executions", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.skip, - Parameters.top, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const cancelOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.skip, - Parameters.top, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - 201: { - bodyMapper: Mappers.JobExecution - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByAgentNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts deleted file mode 100644 index ccf641ff4a81..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobStepExecutionsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobStepExecutions. */ -export class JobStepExecutions { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobStepExecutions. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Lists the step executions 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 [options] The optional parameters - * @returns Promise - */ - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobStepExecutionsListByJobExecutionOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: Models.JobStepExecutionsListByJobExecutionOptionalParams, callback: msRest.ServiceCallback): void; - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobStepExecutionsListByJobExecutionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - listByJobExecutionOperationSpec, - callback) as Promise; - } - - /** - * Gets a step execution 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 [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - stepName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Lists the step executions of a job execution. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByJobExecutionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByJobExecutionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByJobExecutionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.skip, - Parameters.top, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobExecutionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts deleted file mode 100644 index bc44e2296009..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ /dev/null @@ -1,591 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobStepsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobSteps. */ -export class JobSteps { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobSteps. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobVersion, - options - }, - listByVersionOperationSpec, - callback) as 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 optional parameters - * @returns Promise - */ - getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobVersion, - stepName, - options - }, - getByVersionOperationSpec, - callback) as Promise; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - options - }, - listByJobOperationSpec, - callback) as Promise; - } - - /** - * 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 stepName The name of the job step. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - stepName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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. - * @param stepName The name of the job step. - * @param parameters The requested state of the job step. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - stepName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * 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 to delete. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - stepName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Gets all job steps in the specified job version. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByVersionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByVersionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByVersionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByVersionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByVersionNextOperationSpec, - callback) as Promise; - } - - /** - * Gets all job steps for a job's current version. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByJobNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByJobNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByVersionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobStepListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getByVersionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion, - Parameters.stepName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobStep - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobStepListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.stepName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobStep - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.stepName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.JobStep, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.JobStep - }, - 201: { - bodyMapper: Mappers.JobStep - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.stepName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByVersionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobStepListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobStepListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts deleted file mode 100644 index 0a54d2027c5d..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobTargetExecutionsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobTargetExecutions. */ -export class JobTargetExecutions { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobTargetExecutions. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobTargetExecutionsListByJobExecutionOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: Models.JobTargetExecutionsListByJobExecutionOptionalParams, callback: msRest.ServiceCallback): void; - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobTargetExecutionsListByJobExecutionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - options - }, - listByJobExecutionOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: Models.JobTargetExecutionsListByStepOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options: Models.JobTargetExecutionsListByStepOptionalParams, callback: msRest.ServiceCallback): void; - listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: Models.JobTargetExecutionsListByStepOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - stepName, - options - }, - listByStepOperationSpec, - callback) as Promise; - } - - /** - * 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 unique id of the job execution - * @param stepName The name of the step. - * @param targetId The target id. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobExecutionId, - stepName, - targetId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Lists target executions for all steps of a job execution. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByJobExecutionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByJobExecutionNextOperationSpec, - callback) as Promise; - } - - /** - * Lists the target executions of a job step execution. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByStepNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByStepNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByStepNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByJobExecutionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.skip, - Parameters.top, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByStepOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.createTimeMin, - Parameters.createTimeMax, - Parameters.endTimeMin, - Parameters.endTimeMax, - Parameters.isActive, - Parameters.skip, - Parameters.top, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobExecutionId, - Parameters.stepName, - Parameters.targetId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecution - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobExecutionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByStepNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobExecutionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts deleted file mode 100644 index c2f1291e0923..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobTargetGroupsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobTargetGroups. */ -export class JobTargetGroups { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobTargetGroups. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets all target groups in an agent. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - options - }, - listByAgentOperationSpec, - callback) as Promise; - } - - /** - * Gets a target 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 jobAgentName The name of the job agent. - * @param targetGroupName The name of the target group. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 targetGroupName The name of the target group. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 targetGroupName The name of the target group. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - targetGroupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a target 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 jobAgentName The name of the job agent. - * @param targetGroupName The name of the target group. - * @param parameters The requested state of the target group. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 targetGroupName The name of the target group. - * @param parameters The requested state of the target group. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 targetGroupName The name of the target group. - * @param parameters The requested state of the target group. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - targetGroupName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Deletes a target 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 jobAgentName The name of the job agent. - * @param targetGroupName The name of the target group. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 targetGroupName The name of the target group. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 targetGroupName The name of the target group. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - targetGroupName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Gets all target groups in an agent. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByAgentNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByAgentOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobTargetGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.targetGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobTargetGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.targetGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.JobTargetGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.JobTargetGroup - }, - 201: { - bodyMapper: Mappers.JobTargetGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.targetGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByAgentNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobTargetGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts deleted file mode 100644 index 22c8f459d997..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobVersionsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a JobVersions. */ -export class JobVersions { - private readonly client: SqlManagementClientContext; - - /** - * Create a JobVersions. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets all versions of a job. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - options - }, - listByJobOperationSpec, - callback) as Promise; - } - - /** - * Gets a 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 jobVersion The version of the job to get. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - jobVersion, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets all versions of a job. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByJobNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByJobNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByJobOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobVersionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.jobVersion, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobVersion - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByJobNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobVersionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts deleted file mode 100644 index e59fdf513162..000000000000 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/jobsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a Jobs. */ -export class Jobs { - private readonly client: SqlManagementClientContext; - - /** - * Create a Jobs. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of jobs. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - options - }, - listByAgentOperationSpec, - callback) as Promise; - } - - /** - * Gets a job. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a job. - * @param resourceGroupName The name of the resource group that contains 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 parameters The requested job state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 parameters The requested job state. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 parameters The requested job state. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Deletes a job. - * @param resourceGroupName The name of the resource group that contains 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 delete. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 delete. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 delete. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - jobAgentName, - jobName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Gets a list of jobs. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByAgentNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByAgentOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Job - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.Job, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Job - }, - 201: { - bodyMapper: Mappers.Job - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.jobAgentName, - Parameters.jobName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByAgentNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JobListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts deleted file mode 100644 index 6bc0a26893ad..000000000000 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ /dev/null @@ -1,975 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/longTermRetentionBackupsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a LongTermRetentionBackups. */ -export class LongTermRetentionBackups { - private readonly client: SqlManagementClientContext; - - /** - * Create a LongTermRetentionBackups. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The 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 callback The callback - */ - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getByResourceGroupOperationSpec, - callback) as 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 optional parameters - * @returns Promise - */ - deleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteByResourceGroup(resourceGroupName,locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams): Promise; - /** - * @param resourceGroupName The 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 callback The callback - */ - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByResourceGroupDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams): Promise; - /** - * @param resourceGroupName The 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 callback The callback - */ - listByResourceGroupLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - listByResourceGroupLocation(resourceGroupName: string, locationName: string, options: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - options - }, - listByResourceGroupLocationOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams): Promise; - /** - * @param resourceGroupName The 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 callback The callback - */ - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - options - }, - listByResourceGroupServerOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @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 callback The callback - */ - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; - /** - * @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 optional parameters - * @param callback The callback - */ - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - getOperationSpec, - callback) as 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 optional parameters - * @returns Promise - */ - deleteMethod(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams): Promise; - /** - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param callback The callback - */ - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param longTermRetentionDatabaseName The name of the database - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given location. - * @param locationName The location of the database - * @param [options] The optional parameters - * @returns Promise - */ - listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams): Promise; - /** - * @param locationName The location of the database - * @param callback The callback - */ - listByLocation(locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The location of the database - * @param options The optional parameters - * @param callback The callback - */ - listByLocation(locationName: string, options: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - options - }, - listByLocationOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams): Promise; - /** - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param callback The callback - */ - listByServer(locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The location of the database - * @param longTermRetentionServerName The name of the server - * @param options The optional parameters - * @param callback The callback - */ - listByServer(locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - longTermRetentionServerName, - options - }, - listByServerOperationSpec, - callback) as 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 optional parameters - * @returns Promise - */ - beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - beginDeleteByResourceGroupOperationSpec, - options); - } - - /** - * 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 optional parameters - * @returns Promise - */ - beginDeleteMethod(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - locationName, - longTermRetentionServerName, - longTermRetentionDatabaseName, - backupName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Lists all long term retention backups for a database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupDatabaseNextOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupLocationNextOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupServerNextOperationSpec, - callback) as Promise; - } - - /** - * Lists all long term retention backups for a database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByLocationNextOperationSpec, - callback) as Promise; - } - - /** - * Lists the long term retention backups for a given server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.onlyLatestPerDatabase, - Parameters.databaseState, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.onlyLatestPerDatabase, - Parameters.databaseState, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.onlyLatestPerDatabase, - Parameters.databaseState, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - urlParameters: [ - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", - urlParameters: [ - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.onlyLatestPerDatabase, - Parameters.databaseState, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", - urlParameters: [ - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.onlyLatestPerDatabase, - Parameters.databaseState, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", - urlParameters: [ - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.onlyLatestPerDatabase, - Parameters.databaseState, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", - urlParameters: [ - Parameters.locationName, - Parameters.longTermRetentionServerName, - Parameters.longTermRetentionDatabaseName, - Parameters.backupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupLocationNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByLocationNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LongTermRetentionBackupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts new file mode 100644 index 000000000000..a4ff760b2f05 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts @@ -0,0 +1,1010 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/longTermRetentionManagedInstanceBackupsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a LongTermRetentionManagedInstanceBackups. */ +export class LongTermRetentionManagedInstanceBackups { + private readonly client: SqlManagementClientContext; + + /** + * Create a LongTermRetentionManagedInstanceBackups. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a long term retention backup 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 backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param callback The callback + */ + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param options The optional parameters + * @param callback The callback + */ + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(locationName,managedInstanceName,databaseName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams): Promise; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param callback The callback + */ + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstance(locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams): Promise; + /** + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(locationName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(locationName: string, managedInstanceName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, callback: msRest.ServiceCallback): void; + listByInstance(locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams): Promise; + /** + * @param locationName The location of the database. + * @param callback The callback + */ + listByLocation(locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(locationName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Gets a long term retention backup 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 backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The 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 backupName The backup name. + * @param callback The callback + */ + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The 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 backupName The backup name. + * @param options The optional parameters + * @param callback The callback + */ + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + getByResourceGroupOperationSpec, + callback) as 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteByResourceGroup(resourceGroupName,locationName,managedInstanceName,databaseName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns + * Promise + */ + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The 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 callback The callback + */ + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The 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 optional parameters + * @param callback The callback + */ + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + options + }, + listByResourceGroupDatabaseOperationSpec, + callback) as Promise; + } + + /** + * 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 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 [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams): Promise; + /** + * @param resourceGroupName The 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 callback The callback + */ + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The 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 options The optional parameters + * @param callback The callback + */ + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + options + }, + listByResourceGroupInstanceOperationSpec, + callback) as Promise; + } + + /** + * 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 optional parameters + * @returns + * Promise + */ + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams): Promise; + /** + * @param resourceGroupName The 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 callback The callback + */ + listByResourceGroupLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The 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 optional parameters + * @param callback The callback + */ + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + options + }, + listByResourceGroupLocationOperationSpec, + callback) as Promise; + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + beginDeleteByResourceGroupOperationSpec, + options); + } + + /** + * Lists all long term retention backups for a managed database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all long term retention backups for a managed database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupDatabaseNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupInstanceNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupInstanceNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupLocationNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupLocationNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 1ff1a97ed81b..174ae82fe0b3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -79,7 +78,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts deleted file mode 100644 index a35978ff4977..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedDatabaseSecurityAlertPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedDatabaseSecurityAlertPolicies. */ -export class ManagedDatabaseSecurityAlertPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedDatabaseSecurityAlertPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a managed database's security alert 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 managed database for which the security alert policy is - * defined. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 policy is - * defined. - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 policy is - * defined. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a database's security alert 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 managed database for which the security alert policy is - * defined. - * @param parameters The database security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 policy is - * defined. - * @param parameters The database security alert policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 policy is - * defined. - * @param parameters The database security alert policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of managed database's security alert policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.securityAlertPolicyName0, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.securityAlertPolicyName0, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedDatabaseSecurityAlertPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy - }, - 201: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index 78a062d17bb6..a4bb0f6b6e64 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -377,7 +376,7 @@ export class ManagedDatabaseSensitivityLabels { * @param [options] The optional parameters * @returns Promise */ - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listCurrentByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -388,8 +387,8 @@ export class ManagedDatabaseSensitivityLabels { * @param options The optional parameters * @param callback The callback */ - listCurrentByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCurrentByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listCurrentByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -405,7 +404,7 @@ export class ManagedDatabaseSensitivityLabels { * @param [options] The optional parameters * @returns Promise */ - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRecommendedByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -416,8 +415,8 @@ export class ManagedDatabaseSensitivityLabels { * @param options The optional parameters * @param callback The callback */ - listRecommendedByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRecommendedByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -440,11 +439,11 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1, + Parameters.sensitivityLabelSource0, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -470,11 +469,11 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2, + Parameters.sensitivityLabelSource1, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -510,11 +509,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2, + Parameters.sensitivityLabelSource1, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -538,11 +537,11 @@ const disableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0, + Parameters.sensitivityLabelSource2, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -566,11 +565,11 @@ const enableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0, + Parameters.sensitivityLabelSource2, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -594,8 +593,8 @@ const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter1, - Parameters.apiVersion3 + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -623,8 +622,8 @@ const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { queryParameters: [ Parameters.includeDisabledRecommendations, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3 + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -647,6 +646,10 @@ const listCurrentByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -668,6 +671,12 @@ const listRecommendedByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.includeDisabledRecommendations, + Parameters.skipToken, + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts deleted file mode 100644 index 2cff3b673b3f..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedDatabaseVulnerabilityAssessmentRuleBaselines. */ -export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedDatabaseVulnerabilityAssessmentRuleBaselines. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a database's vulnerability assessment rule baseline. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - ruleId, - baselineName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a database's vulnerability assessment rule baseline. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param [options] The optional parameters - * @returns - * Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - ruleId, - baselineName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Removes the database's vulnerability assessment rule baseline. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 rule - * baseline is defined. - * @param ruleId The vulnerability assessment rule ID. - * @param baselineName The name of the vulnerability assessment rule baseline (default implies a - * baseline on a database level rule and master for server level rule). Possible values include: - * 'master', 'default' - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - ruleId, - baselineName, - options - }, - deleteMethodOperationSpec, - callback); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseVulnerabilityAssessmentRuleBaseline, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentRuleBaseline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.ruleId, - Parameters.baselineName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts deleted file mode 100644 index 9cdc67c4f9f3..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedDatabaseVulnerabilityAssessmentScansMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedDatabaseVulnerabilityAssessmentScans. */ -export class ManagedDatabaseVulnerabilityAssessmentScans { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedDatabaseVulnerabilityAssessmentScans. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * 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 scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - scanId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,managedInstanceName,databaseName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 scanId The vulnerability assessment scan Id. - * @param [options] The optional parameters - * @returns Promise - */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 scanId The vulnerability assessment scan Id. - * @param callback The callback - */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 scanId The vulnerability assessment scan Id. - * @param options The optional parameters - * @param callback The callback - */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - scanId, - options - }, - exportMethodOperationSpec, - callback) as Promise; - } - - /** - * 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 database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - beginInitiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - scanId, - options - }, - beginInitiateScanOperationSpec, - options); - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const exportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginInitiateScanOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.scanId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts deleted file mode 100644 index 7880f42b6616..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedDatabaseVulnerabilityAssessmentsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedDatabaseVulnerabilityAssessments. */ -export class ManagedDatabaseVulnerabilityAssessments { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedDatabaseVulnerabilityAssessments. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets the database's vulnerability assessment. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates the database's vulnerability assessment. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param parameters The requested resource. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 parameters The requested resource. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 parameters The requested resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Removes the database's vulnerability assessment. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database for which the vulnerability assessment is defined. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Lists the vulnerability assessments of a managed database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseVulnerabilityAssessment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessment - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.vulnerabilityAssessmentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index 08b45ce8abbc..573706046580 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -290,7 +289,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +315,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -342,7 +341,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -379,7 +378,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -405,7 +404,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +438,7 @@ const beginCompleteRestoreOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -468,6 +467,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts deleted file mode 100644 index 6dea07f57bbc..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedInstanceAdministratorsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedInstanceAdministrators. */ -export class ManagedInstanceAdministrators { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedInstanceAdministrators. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of managed instance administrators. - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @returns Promise - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - listByInstanceOperationSpec, - callback) as Promise; - } - - /** - * Gets a managed instance administrator. - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a managed instance administrator. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param parameters The requested administrator parameters. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedInstanceAdministrator, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a managed instance administrator. - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,managedInstanceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates or updates a managed instance administrator. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param parameters The requested administrator parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedInstanceAdministrator, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a managed instance administrator. - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets a list of managed instance administrators. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByInstanceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByInstanceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAdministratorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.administratorName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAdministrator - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.administratorName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedInstanceAdministrator, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAdministrator - }, - 201: { - bodyMapper: Mappers.ManagedInstanceAdministrator - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.administratorName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstanceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceAdministratorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts deleted file mode 100644 index 1a5461fe6288..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedInstanceEncryptionProtectorsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedInstanceEncryptionProtectors. */ -export class ManagedInstanceEncryptionProtectors { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedInstanceEncryptionProtectors. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - revalidate(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRevalidate(resourceGroupName,managedInstanceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - listByInstanceOperationSpec, - callback) as Promise; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 parameters The requested encryption protector resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedInstanceEncryptionProtector, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as 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 [options] The optional parameters - * @returns Promise - */ - beginRevalidate(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - options - }, - beginRevalidateOperationSpec, - options); - } - - /** - * 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 parameters The requested encryption protector resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedInstanceEncryptionProtector, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Gets a list of managed instance encryption protectors - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByInstanceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByInstanceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceEncryptionProtectorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.encryptionProtectorName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceEncryptionProtector - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRevalidateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.encryptionProtectorName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.encryptionProtectorName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedInstanceEncryptionProtector, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceEncryptionProtector - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstanceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceEncryptionProtectorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts deleted file mode 100644 index 36bd7ef28283..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedInstanceKeysMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedInstanceKeys. */ -export class ManagedInstanceKeys { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedInstanceKeys. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of managed instance keys. - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @returns Promise - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstanceKeysListByInstanceOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options: Models.ManagedInstanceKeysListByInstanceOptionalParams, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstanceKeysListByInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - listByInstanceOperationSpec, - callback) as Promise; - } - - /** - * Gets a managed instance key. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be retrieved. - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, keyName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - keyName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a managed instance key. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be operated on (updated or created). - * @param parameters The requested managed instance key resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: Models.ManagedInstanceKey, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,keyName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes the managed instance key with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,managedInstanceName,keyName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates or updates a managed instance key. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be operated on (updated or created). - * @param parameters The requested managed instance key resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, keyName: string, parameters: Models.ManagedInstanceKey, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - keyName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes the managed instance key with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param keyName The name of the managed instance key to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - keyName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets a list of managed instance keys. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByInstanceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByInstanceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.filter1, - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceKeyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.keyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceKey - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.keyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedInstanceKey, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceKey - }, - 201: { - bodyMapper: Mappers.ManagedInstanceKey - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.keyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstanceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedInstanceKeyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts similarity index 55% rename from sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts rename to sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts index 825d783a4032..ec7c5a4368d8 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -11,16 +10,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; -import * as Mappers from "../models/managedBackupShortTermRetentionPoliciesMappers"; +import * as Mappers from "../models/managedInstanceLongTermRetentionPoliciesMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a ManagedBackupShortTermRetentionPolicies. */ -export class ManagedBackupShortTermRetentionPolicies { +/** Class representing a ManagedInstanceLongTermRetentionPolicies. */ +export class ManagedInstanceLongTermRetentionPolicies { private readonly client: SqlManagementClientContext; /** - * Create a ManagedBackupShortTermRetentionPolicies. + * Create a ManagedInstanceLongTermRetentionPolicies. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -28,15 +27,15 @@ export class ManagedBackupShortTermRetentionPolicies { } /** - * Gets a managed database's short term retention policy. + * Gets 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 [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -44,7 +43,7 @@ export class ManagedBackupShortTermRetentionPolicies { * @param databaseName The name of the database. * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -53,8 +52,8 @@ export class ManagedBackupShortTermRetentionPolicies { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -63,49 +62,34 @@ export class ManagedBackupShortTermRetentionPolicies { options }, getOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Updates a managed database's short term retention policy. + * Sets 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 parameters The short term retention policy info. + * @param parameters The long term retention policy info. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedInstanceLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** - * Updates a managed database's short term retention policy. + * 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 parameters The short term retention policy info. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,managedInstanceName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -113,7 +97,7 @@ export class ManagedBackupShortTermRetentionPolicies { * @param databaseName The name of the database. * @param callback The callback */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -122,8 +106,8 @@ export class ManagedBackupShortTermRetentionPolicies { * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,20 +116,20 @@ export class ManagedBackupShortTermRetentionPolicies { options }, listByDatabaseOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Updates a managed database's short term retention policy. + * Sets 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 parameters The short term retention policy info. + * @param parameters The long term retention policy info. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedInstanceLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -159,54 +143,31 @@ export class ManagedBackupShortTermRetentionPolicies { } /** - * Updates a managed 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 managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. - * @param parameters The short term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - databaseName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a managed database's short term retention policy list. + * Gets a database's long term retention policy. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByDatabaseNextOperationSpec, - callback) as Promise; + callback) as Promise; } } @@ -214,7 +175,7 @@ export class ManagedBackupShortTermRetentionPolicies { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, @@ -223,14 +184,14 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy }, default: { bodyMapper: Mappers.CloudError @@ -241,7 +202,7 @@ const getOperationSpec: msRest.OperationSpec = { const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, @@ -249,14 +210,14 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult }, default: { bodyMapper: Mappers.CloudError @@ -267,7 +228,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, @@ -276,7 +237,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -284,48 +245,13 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.ManagedBackupShortTermRetentionPolicy, + ...Mappers.ManagedInstanceLongTermRetentionPolicy, required: true } }, responses: { 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.databaseName, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedBackupShortTermRetentionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy }, 202: {}, default: { @@ -342,12 +268,15 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts similarity index 52% rename from sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts rename to sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts index a36cefea4644..323918ad015b 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -10,16 +9,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/recoverableManagedDatabasesMappers"; +import * as Mappers from "../models/managedInstanceOperationsMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a RecoverableManagedDatabases. */ -export class RecoverableManagedDatabases { +/** Class representing a ManagedInstanceOperations. */ +export class ManagedInstanceOperations { private readonly client: SqlManagementClientContext; /** - * Create a RecoverableManagedDatabases. + * Create a ManagedInstanceOperations. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -27,21 +26,21 @@ export class RecoverableManagedDatabases { } /** - * Gets a list of recoverable managed databases. + * Gets a list of operations performed on the managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param callback The callback */ - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -49,105 +48,105 @@ export class RecoverableManagedDatabases { * @param options The optional parameters * @param callback The callback */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, options }, - listByInstanceOperationSpec, - callback) as Promise; + listByManagedInstanceOperationSpec, + callback) as Promise; } /** - * Gets a recoverable managed database. + * Gets a management operation on a managed instance. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param recoverableDatabaseName + * @param operationId * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param recoverableDatabaseName + * @param operationId * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param recoverableDatabaseName + * @param operationId * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, - recoverableDatabaseName, + operationId, options }, getOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Gets a list of recoverable managed databases. + * Gets a list of operations performed on the managed instance. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByManagedInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByInstanceNextOperationSpec, - callback) as Promise; + listByManagedInstanceNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByInstanceOperationSpec: msRest.OperationSpec = { +const listByManagedInstanceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.RecoverableManagedDatabaseListResult + bodyMapper: Mappers.ManagedInstanceOperationListResult }, default: { bodyMapper: Mappers.CloudError @@ -158,22 +157,22 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases/{recoverableDatabaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, - Parameters.recoverableDatabaseName, + Parameters.operationId, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.RecoverableManagedDatabase + bodyMapper: Mappers.ManagedInstanceOperation }, default: { bodyMapper: Mappers.CloudError @@ -182,19 +181,22 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByInstanceNextOperationSpec: msRest.OperationSpec = { +const listByManagedInstanceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.RecoverableManagedDatabaseListResult + bodyMapper: Mappers.ManagedInstanceOperationListResult }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts deleted file mode 100644 index 3f394c1ad151..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedInstanceTdeCertificatesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedInstanceTdeCertificates. */ -export class ManagedInstanceTdeCertificates { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedInstanceTdeCertificates. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Creates a TDE certificate for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param parameters The requested TDE certificate to be created or updated. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, managedInstanceName: string, parameters: Models.TdeCertificate, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,managedInstanceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates a TDE certificate for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param parameters The requested TDE certificate to be created or updated. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, managedInstanceName: string, parameters: Models.TdeCertificate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - parameters, - options - }, - beginCreateOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.TdeCertificate, - required: true - } - }, - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index 11ac9da5bce2..60a27c16c75d 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -223,7 +222,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -249,7 +248,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -285,7 +284,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -308,7 +307,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -331,6 +330,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index 9187f0f06a0d..878b720c945c 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -350,7 +349,7 @@ const listByInstancePoolOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -374,7 +373,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -399,7 +398,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -422,7 +421,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -447,7 +446,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -483,7 +482,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -508,7 +507,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -539,6 +538,9 @@ const listByInstancePoolNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -560,6 +562,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -581,6 +586,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts deleted file mode 100644 index f6b8abddc545..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies. */ -export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a dropped 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 managedInstanceName The name of the managed instance. - * @param restorableDroppedDatabaseId - * @param [options] The optional parameters - * @returns - * Promise - */ - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Sets 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 restorableDroppedDatabaseId - * @param parameters The long term retention policy info. - * @param [options] The optional parameters - * @returns - * Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,restorableDroppedDatabaseId,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Sets 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 restorableDroppedDatabaseId - * @param parameters The long term retention policy info. - * @param [options] The optional parameters - * @returns - * Promise - */ - update(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,managedInstanceName,restorableDroppedDatabaseId,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns - * Promise - */ - listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - options - }, - listByRestorableDroppedDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Sets 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 restorableDroppedDatabaseId - * @param parameters The long term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Sets 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 restorableDroppedDatabaseId - * @param parameters The long term retention policy info. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a dropped database's short term retention policy list. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns - * Promise - */ - listByRestorableDroppedDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByRestorableDroppedDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByRestorableDroppedDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByRestorableDroppedDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByRestorableDroppedDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.restorableDroppedDatabaseId, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByRestorableDroppedDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.restorableDroppedDatabaseId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.restorableDroppedDatabaseId, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedBackupShortTermRetentionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.restorableDroppedDatabaseId, - Parameters.policyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedBackupShortTermRetentionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByRestorableDroppedDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts deleted file mode 100644 index 0c58ca809417..000000000000 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/managedServerSecurityAlertPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ManagedServerSecurityAlertPolicies. */ -export class ManagedServerSecurityAlertPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ManagedServerSecurityAlertPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Get a managed server's threat detection 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 [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a threat detection 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 parameters The managed server security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - listByInstanceOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a threat detection 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 parameters The managed server security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - managedInstanceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Get the managed server's threat detection policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByInstanceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.securityAlertPolicyName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstanceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.securityAlertPolicyName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ManagedServerSecurityAlertPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstanceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts deleted file mode 100644 index 21acf86ad037..000000000000 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/operationsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a Operations. */ -export class Operations { - private readonly client: SqlManagementClientContext; - - /** - * Create a Operations. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Lists all of the available SQL Rest API operations. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Lists all of the available SQL Rest API operations. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "providers/Microsoft.Sql/operations", - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.OperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.OperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index f2a129d2a609..1f7d66f533e8 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -215,7 +214,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -240,7 +239,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -300,7 +299,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -323,6 +322,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts deleted file mode 100644 index ff5ec78a08f5..000000000000 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateLinkResourcesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a PrivateLinkResources. */ -export class PrivateLinkResources { - private readonly client: SqlManagementClientContext; - - /** - * Create a PrivateLinkResources. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets the private link resources for SQL 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Gets a private link resource for SQL 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 groupName The name of the private link resource. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param groupName The name of the private link resource. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, groupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param groupName The name of the private link resource. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - groupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets the private link resources for SQL server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateLinkResources", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateLinkResources/{groupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.groupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts b/sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts deleted file mode 100644 index a2eb82653e0e..000000000000 --- a/sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/recommendedElasticPoolsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a RecommendedElasticPools. */ -export class RecommendedElasticPools { - private readonly client: SqlManagementClientContext; - - /** - * Create a RecommendedElasticPools. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a recommended 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 recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - recommendedElasticPoolName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Returns recommended elastic pools. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Returns recommended 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 recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - recommendedElasticPoolName, - options - }, - listMetricsOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.recommendedElasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecommendedElasticPool - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecommendedElasticPoolListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMetricsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/metrics", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.recommendedElasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecommendedElasticPoolListMetricsResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts deleted file mode 100644 index 698f705aec79..000000000000 --- a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/recoverableDatabasesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a RecoverableDatabases. */ -export class RecoverableDatabases { - private readonly client: SqlManagementClientContext; - - /** - * Create a RecoverableDatabases. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a recoverable database, which is a resource representing a database's geo 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 serverName The name of the server. - * @param databaseName The name of the database - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of recoverable databases - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecoverableDatabase - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecoverableDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts deleted file mode 100644 index 2e3b76a6773e..000000000000 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/replicationLinksMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ReplicationLinks. */ -export class ReplicationLinks { - private readonly client: SqlManagementClientContext; - - /** - * Create a ReplicationLinks. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Deletes a database replication link. Cannot be done during failover. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - linkId, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Gets a database replication link. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to get the link for. - * @param linkId The replication link ID to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to get the link for. - * @param linkId The replication link ID to be retrieved. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to get the link for. - * @param linkId The replication link ID to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - linkId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Sets which replica database is primary by failing over from the current primary replica - * database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param [options] The optional parameters - * @returns Promise - */ - failover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginFailover(resourceGroupName,serverName,databaseName,linkId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Sets which replica database is primary by failing over from the current primary replica - * database. This operation might result in data loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param [options] The optional parameters - * @returns Promise - */ - failoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginFailoverAllowDataLoss(resourceGroupName,serverName,databaseName,linkId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Lists a database's replication 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 databaseName The name of the database to retrieve links for. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to retrieve links for. - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to retrieve links for. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Sets which replica database is primary by failing over from the current primary replica - * database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param [options] The optional parameters - * @returns Promise - */ - beginFailover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - linkId, - options - }, - beginFailoverOperationSpec, - options); - } - - /** - * Sets which replica database is primary by failing over from the current primary replica - * database. This operation might result in data loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param [options] The optional parameters - * @returns Promise - */ - beginFailoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - linkId, - options - }, - beginFailoverAllowDataLossOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ReplicationLink - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ReplicationLinkListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginFailoverOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginFailoverAllowDataLossOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts deleted file mode 100644 index 8cead12893dd..000000000000 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/restorableDroppedDatabasesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a RestorableDroppedDatabases. */ -export class RestorableDroppedDatabases { - private readonly client: SqlManagementClientContext; - - /** - * Create a RestorableDroppedDatabases. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a deleted database that can be restored - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param restorableDroppededDatabaseId The id of the deleted database in the form of - * databaseName,deletionTimeInFileTimeFormat - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param restorableDroppededDatabaseId The id of the deleted database in the form of - * databaseName,deletionTimeInFileTimeFormat - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param restorableDroppededDatabaseId The id of the deleted database in the form of - * databaseName,deletionTimeInFileTimeFormat - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - restorableDroppededDatabaseId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of deleted databases that can be restored - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppededDatabaseId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.restorableDroppededDatabaseId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDroppedDatabase - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDroppedDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts deleted file mode 100644 index 616f9c58900d..000000000000 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/restorableDroppedManagedDatabasesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a RestorableDroppedManagedDatabases. */ -export class RestorableDroppedManagedDatabases { - private readonly client: SqlManagementClientContext; - - /** - * Create a RestorableDroppedManagedDatabases. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of restorable dropped managed databases. - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @returns Promise - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - options - }, - listByInstanceOperationSpec, - callback) as Promise; - } - - /** - * Gets a restorable dropped 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 restorableDroppedDatabaseId - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the 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 callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - managedInstanceName, - restorableDroppedDatabaseId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of restorable dropped managed databases. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByInstanceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByInstanceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDroppedManagedDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.managedInstanceName, - Parameters.restorableDroppedDatabaseId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDroppedManagedDatabase - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstanceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDroppedManagedDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts deleted file mode 100644 index d3cbf393d7c6..000000000000 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/restorePointsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a RestorePoints. */ -export class RestorePoints { - private readonly client: SqlManagementClientContext; - - /** - * Create a RestorePoints. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of database restore points. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * Creates a restore point for a data warehouse. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The definition for creating the restore point of this database. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.CreateDatabaseRestorePointDefinition, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Gets a restore point. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 restorePointName The name of the restore point. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 restorePointName The name of the restore point. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 restorePointName The name of the restore point. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - restorePointName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Deletes a restore point. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 restorePointName The name of the restore point. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 restorePointName The name of the restore point. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 restorePointName The name of the restore point. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - restorePointName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Creates a restore point for a data warehouse. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The definition for creating the restore point of this database. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.CreateDatabaseRestorePointDefinition, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - beginCreateOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorePointListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.restorePointName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorePoint - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.restorePointName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CreateDatabaseRestorePointDefinition, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.RestorePoint - }, - 201: { - bodyMapper: Mappers.RestorePoint - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts deleted file mode 100644 index 32d4584c6a05..000000000000 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ /dev/null @@ -1,683 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/sensitivityLabelsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a SensitivityLabels. */ -export class SensitivityLabels { - private readonly client: SqlManagementClientContext; - - /** - * Create a SensitivityLabels. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListCurrentByDatabaseOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.SensitivityLabelsListCurrentByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListCurrentByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listCurrentByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListRecommendedByDatabaseOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.SensitivityLabelsListRecommendedByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListRecommendedByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listRecommendedByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * 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. - * @param databaseName The name of the database. - * @param schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param [options] The optional parameters - * @returns Promise - */ - enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param callback The callback - */ - enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param options The optional parameters - * @param callback The callback - */ - enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - enableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - schemaName, - tableName, - columnName, - options - }, - enableRecommendationOperationSpec, - callback); - } - - /** - * 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. - * @param databaseName The name of the database. - * @param schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param [options] The optional parameters - * @returns Promise - */ - disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param callback The callback - */ - disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param options The optional parameters - * @param callback The callback - */ - disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - disableRecommendation(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - schemaName, - tableName, - columnName, - options - }, - disableRecommendationOperationSpec, - callback); - } - - /** - * 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. - * @param databaseName The name of the database. - * @param schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: - * 'current', 'recommended' - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: - * 'current', 'recommended' - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: - * 'current', 'recommended' - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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. - * @param databaseName The name of the database. - * @param schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - schemaName, - tableName, - columnName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * 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. - * @param databaseName The name of the database. - * @param schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - schemaName, - tableName, - columnName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Gets the sensitivity labels of a given database - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listCurrentByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listCurrentByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listCurrentByDatabaseNextOperationSpec, - callback) as Promise; - } - - /** - * Gets the sensitivity labels of a given database - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listRecommendedByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listRecommendedByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listRecommendedByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.filter1, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SensitivityLabelListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.includeDisabledRecommendations, - Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SensitivityLabelListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const enableRecommendationOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource0, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const disableRecommendationOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource0, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SensitivityLabel - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SensitivityLabel, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SensitivityLabel - }, - 201: { - bodyMapper: Mappers.SensitivityLabel - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource2, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listCurrentByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SensitivityLabelListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listRecommendedByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SensitivityLabelListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts deleted file mode 100644 index b473a84bcf2e..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverAutomaticTuningOperationsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerAutomaticTuningOperations. */ -export class ServerAutomaticTuningOperations { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerAutomaticTuningOperations. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Retrieves server automatic tuning options. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Update automatic tuning options on 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 The requested automatic tuning resource state. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 The requested automatic tuning resource state. - * @param callback The callback - */ - update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 The requested automatic tuning resource state. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - updateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerAutomaticTuning - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerAutomaticTuning, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerAutomaticTuning - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index f80129644663..934daf21c582 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -28,36 +27,7 @@ export class ServerAzureADAdministrators { } /** - * Creates a new Server Active Directory Administrator or updates an existing server Active - * Directory Administrator. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param properties The required parameters for creating or updating an Active Directory - * Administrator. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, properties: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,properties,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes an existing server Active Directory Administrator. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Returns an server Administrator. + * Gets a server Administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -92,7 +62,36 @@ export class ServerAzureADAdministrators { } /** - * Returns a list of server Administrators. + * Creates a new Server Active Directory Administrator or updates an existing server Active + * Directory Administrator. + * @param resourceGroupName The name of the resource group that contains 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 The required parameters for creating or updating an Active Directory + * Administrator. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing server Active Directory Administrator. + * @param resourceGroupName The name of the resource group that contains 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 optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a list of server Administrators. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -106,7 +105,7 @@ export class ServerAzureADAdministrators { * @param serverName The name of the server. * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -114,8 +113,8 @@ export class ServerAzureADAdministrators { * @param options The optional parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,17 +131,17 @@ export class ServerAzureADAdministrators { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param properties The required parameters for creating or updating an Active Directory + * @param parameters The required parameters for creating or updating an Active Directory * Administrator. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, properties: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, - properties, + parameters, options }, beginCreateOrUpdateOperationSpec, @@ -167,6 +166,34 @@ export class ServerAzureADAdministrators { beginDeleteMethodOperationSpec, options); } + + /** + * Gets a list of server Administrators. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -178,10 +205,10 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName0 + Parameters.administratorName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -206,14 +233,14 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.serverName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ServerAdministratorListResult + bodyMapper: Mappers.AdministratorListResult }, default: { bodyMapper: Mappers.CloudError @@ -229,16 +256,16 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName0 + Parameters.administratorName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], requestBody: { - parameterPath: "properties", + parameterPath: "parameters", mapper: { ...Mappers.ServerAzureADAdministrator, required: true @@ -251,9 +278,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ServerAzureADAdministrator }, - 202: { - bodyMapper: Mappers.ServerAzureADAdministrator - }, + 202: {}, default: { bodyMapper: Mappers.CloudError } @@ -268,23 +293,41 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName0 + Parameters.administratorName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ServerAzureADAdministrator - }, - 202: { - bodyMapper: Mappers.ServerAzureADAdministrator - }, - 204: { - bodyMapper: Mappers.ServerAzureADAdministrator + bodyMapper: Mappers.AdministratorListResult }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts deleted file mode 100644 index 31cd942591a6..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverBlobAuditingPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerBlobAuditingPolicies. */ -export class ServerBlobAuditingPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerBlobAuditingPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a server's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a server's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters Properties of blob auditing policy - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Lists auditing settings of a server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a server's blob auditing policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters Properties of blob auditing policy - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Lists auditing settings of a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.blobAuditingPolicyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.blobAuditingPolicyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerBlobAuditingPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts deleted file mode 100644 index e334e3dba6e2..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverCommunicationLinksMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerCommunicationLinks. */ -export class ServerCommunicationLinks { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerCommunicationLinks. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - communicationLinkName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, communicationLinkName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - communicationLinkName, - options - }, - getOperationSpec, - callback) as 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 optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: Models.ServerCommunicationLink, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,communicationLinkName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as 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 optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: Models.ServerCommunicationLink, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - communicationLinkName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.communicationLinkName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.communicationLinkName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerCommunicationLink - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerCommunicationLinkListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.communicationLinkName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerCommunicationLink, - required: true - } - }, - responses: { - 201: { - bodyMapper: Mappers.ServerCommunicationLink - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts deleted file mode 100644 index 8cd96ee36a74..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverConnectionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerConnectionPolicies. */ -export class ServerConnectionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerConnectionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Creates or updates the server's 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 parameters The required parameters for updating a secure connection policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 The required parameters for updating a secure connection policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 The required parameters for updating a secure connection policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Gets the server's secure 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.connectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerConnectionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicy - }, - 201: { - bodyMapper: Mappers.ServerConnectionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.connectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts deleted file mode 100644 index fdd12166a26f..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ /dev/null @@ -1,401 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverDnsAliasesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerDnsAliases. */ -export class ServerDnsAliases { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerDnsAliases. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a server DNS alias. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that 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 dnsAliasName The name of the server DNS alias. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that 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 dnsAliasName The name of the server DNS alias. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - dnsAliasName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates a server dns alias. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,dnsAliasName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes the server DNS alias with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,dnsAliasName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that 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 callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Acquires server DNS alias from another 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 dnsAliasName The name of the server dns alias. - * @param parameters - * @param [options] The optional parameters - * @returns Promise - */ - acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: Models.ServerDnsAliasAcquisition, options?: msRest.RequestOptionsBase): Promise { - return this.beginAcquire(resourceGroupName,serverName,dnsAliasName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates a server dns alias. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - dnsAliasName, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes the server DNS alias with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - dnsAliasName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Acquires server DNS alias from another 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 dnsAliasName The name of the server dns alias. - * @param parameters - * @param [options] The optional parameters - * @returns Promise - */ - beginAcquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: Models.ServerDnsAliasAcquisition, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - dnsAliasName, - parameters, - options - }, - beginAcquireOperationSpec, - options); - } - - /** - * Gets a list of server DNS aliases for a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.dnsAliasName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAlias - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAliasListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.dnsAliasName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAlias - }, - 201: { - bodyMapper: Mappers.ServerDnsAlias - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.dnsAliasName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginAcquireOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}/acquire", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.dnsAliasName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerDnsAliasAcquisition, - required: true - } - }, - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerDnsAliasListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts deleted file mode 100644 index b53497dcea66..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverKeysMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerKeys. */ -export class ServerKeys { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerKeys. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of server keys. - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Gets a server key. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be retrieved. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, keyName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - keyName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a server key. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be operated on (updated or created). The key name - * is required to be in the format of 'vault_key_version'. For example, if the keyId is - * https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901, then - * the server key name should be formatted as: - * YourVaultName_YourKeyName_01234567890123456789012345678901 - * @param parameters The requested server key resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, keyName: string, parameters: Models.ServerKey, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,keyName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes the server key with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,keyName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates or updates a server key. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be operated on (updated or created). The key name - * is required to be in the format of 'vault_key_version'. For example, if the keyId is - * https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901, then - * the server key name should be formatted as: - * YourVaultName_YourKeyName_01234567890123456789012345678901 - * @param parameters The requested server key resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, keyName: string, parameters: Models.ServerKey, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - keyName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes the server key with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param keyName The name of the server key to be deleted. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - keyName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets a list of server keys. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerKeyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.keyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerKey - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.keyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerKey, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerKey - }, - 201: { - bodyMapper: Mappers.ServerKey - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.keyName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerKeyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts deleted file mode 100644 index 56e479b9f51e..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverSecurityAlertPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerSecurityAlertPolicies. */ -export class ServerSecurityAlertPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerSecurityAlertPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Get a server's security alert 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a threat detection 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 parameters The server security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a threat detection 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 parameters The server security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Get the server's threat detection policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.securityAlertPolicyName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.securityAlertPolicyName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerSecurityAlertPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverUsages.ts b/sdk/sql/arm-sql/src/operations/serverUsages.ts deleted file mode 100644 index ca3991457707..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverUsages.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverUsagesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerUsages. */ -export class ServerUsages { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerUsages. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns 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. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/usages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerUsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 09f92258465f..fba59325a4a6 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -211,7 +210,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -237,7 +236,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -273,7 +272,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -296,7 +295,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -319,6 +318,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts deleted file mode 100644 index 734cb28282b2..000000000000 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ /dev/null @@ -1,545 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serversMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a Servers. */ -export class Servers { - private readonly client: SqlManagementClientContext; - - /** - * Create a Servers. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Determines whether a resource can be created with the specified name. - * @param parameters The parameters to request for name availability. - * @param [options] The optional parameters - * @returns Promise - */ - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param parameters The parameters to request for name availability. - * @param callback The callback - */ - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, callback: msRest.ServiceCallback): void; - /** - * @param parameters The parameters to request for name availability. - * @param options The optional parameters - * @param callback The callback - */ - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - parameters, - options - }, - checkNameAvailabilityOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of all servers in the subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of servers in a 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 [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Gets 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates 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 parameters The requested server resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.Server, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes 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 optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates 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 parameters The requested server resource state. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, parameters: Models.ServerUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates or updates 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 parameters The requested server resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.Server, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes 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 optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates 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 parameters The requested server resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a list of all servers in the subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of servers in a resource groups. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CheckNameAvailabilityRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.CheckNameAvailabilityResponse - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/servers", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Server - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.Server, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Server - }, - 201: { - bodyMapper: Mappers.Server - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerUpdate, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Server - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; 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 d10a6be2ddd5..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serviceObjectivesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServiceObjectives. */ -export class ServiceObjectives { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServiceObjectives. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - serviceObjectiveName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.serviceObjectiveName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceObjective - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceObjectiveListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts b/sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts deleted file mode 100644 index ab2ce84c5fa4..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serviceTierAdvisorsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServiceTierAdvisors. */ -export class ServiceTierAdvisors { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServiceTierAdvisors. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a service tier advisor. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param serviceTierAdvisorName The name of service tier advisor. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param serviceTierAdvisorName The name of service tier advisor. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param serviceTierAdvisorName The name of service tier advisor. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - serviceTierAdvisorName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Returns service tier advisors for specified 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 database. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.serviceTierAdvisorName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceTierAdvisor - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceTierAdvisorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts deleted file mode 100644 index 34dc34fce3ad..000000000000 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/subscriptionUsagesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a SubscriptionUsages. */ -export class SubscriptionUsages { - private readonly client: SqlManagementClientContext; - - /** - * Create a SubscriptionUsages. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets all subscription usage metrics in a given location. - * @param locationName The name of the region where the resource is located. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocation(locationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param locationName The name of the region where the resource is located. - * @param callback The callback - */ - listByLocation(locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The name of the region where the resource is located. - * @param options The optional parameters - * @param callback The callback - */ - listByLocation(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - options - }, - listByLocationOperationSpec, - callback) as Promise; - } - - /** - * Gets a subscription usage metric. - * @param locationName The name of the region where the resource is located. - * @param usageName Name of usage metric to return. - * @param [options] The optional parameters - * @returns Promise - */ - get(locationName: string, usageName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param locationName The name of the region where the resource is located. - * @param usageName Name of usage metric to return. - * @param callback The callback - */ - get(locationName: string, usageName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The name of the region where the resource is located. - * @param usageName Name of usage metric to return. - * @param options The optional parameters - * @param callback The callback - */ - get(locationName: string, usageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, usageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - usageName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets all subscription usage metrics in a given location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByLocationNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages", - urlParameters: [ - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SubscriptionUsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages/{usageName}", - urlParameters: [ - Parameters.locationName, - Parameters.usageName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SubscriptionUsage - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByLocationNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SubscriptionUsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts deleted file mode 100644 index 5cbc4360dda4..000000000000 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ /dev/null @@ -1,520 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/syncAgentsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a SyncAgents. */ -export class SyncAgents { - private readonly client: SqlManagementClientContext; - - /** - * Create a SyncAgents. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a sync agent. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, syncAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - syncAgentName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a sync agent. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param parameters The requested sync agent resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, syncAgentName: string, parameters: Models.SyncAgent, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,syncAgentName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a sync agent. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,syncAgentName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that 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 callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Generates a sync agent key. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param [options] The optional parameters - * @returns Promise - */ - generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param callback The callback - */ - generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param options The optional parameters - * @param callback The callback - */ - generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - syncAgentName, - options - }, - generateKeyOperationSpec, - callback) as Promise; - } - - /** - * Lists databases linked to a sync agent. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param [options] The optional parameters - * @returns Promise - */ - listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param callback The callback - */ - listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param options The optional parameters - * @param callback The callback - */ - listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - syncAgentName, - options - }, - listLinkedDatabasesOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a sync agent. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param parameters The requested sync agent resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, syncAgentName: string, parameters: Models.SyncAgent, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - syncAgentName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a sync agent. - * @param resourceGroupName The name of the resource group that 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 syncAgentName The name of the sync agent. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - syncAgentName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Lists sync agents in a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } - - /** - * Lists databases linked to a sync agent. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listLinkedDatabasesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listLinkedDatabasesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listLinkedDatabasesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedDatabasesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listLinkedDatabasesNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.syncAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncAgent - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncAgentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const generateKeyOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}/generateKey", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.syncAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncAgentKeyProperties - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listLinkedDatabasesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}/linkedDatabases", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.syncAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncAgentLinkedDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.syncAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SyncAgent, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SyncAgent - }, - 201: { - bodyMapper: Mappers.SyncAgent - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.syncAgentName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncAgentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listLinkedDatabasesNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncAgentLinkedDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts deleted file mode 100644 index 5824e0f64925..000000000000 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ /dev/null @@ -1,993 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/syncGroupsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a SyncGroups. */ -export class SyncGroups { - private readonly client: SqlManagementClientContext; - - /** - * Create a SyncGroups. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a collection of sync database ids. - * @param locationName The name of the region where the resource is located. - * @param [options] The optional parameters - * @returns Promise - */ - listSyncDatabaseIds(locationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param locationName The name of the region where the resource is located. - * @param callback The callback - */ - listSyncDatabaseIds(locationName: string, callback: msRest.ServiceCallback): void; - /** - * @param locationName The name of the region where the resource is located. - * @param options The optional parameters - * @param callback The callback - */ - listSyncDatabaseIds(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSyncDatabaseIds(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - locationName, - options - }, - listSyncDatabaseIdsOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - refreshHubSchema(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRefreshHubSchema(resourceGroupName,serverName,databaseName,syncGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - listHubSchemasOperationSpec, - callback) as Promise; - } - - /** - * 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 type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', - * 'Success' - * @param [options] The optional parameters - * @returns Promise - */ - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', - * 'Success' - * @param callback The callback - */ - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', - * 'Success' - * @param options The optional parameters - * @param callback The callback - */ - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options: Models.SyncGroupsListLogsOptionalParams, callback: msRest.ServiceCallback): void; - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - startTime, - endTime, - type, - options - }, - listLogsOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - cancelSyncOperationSpec, - callback); - } - - /** - * 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 optional parameters - * @returns Promise - */ - triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - triggerSyncOperationSpec, - callback); - } - - /** - * 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: Models.SyncGroup, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,syncGroupName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,databaseName,syncGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: Models.SyncGroup, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,databaseName,syncGroupName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - beginRefreshHubSchema(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - beginRefreshHubSchemaOperationSpec, - options); - } - - /** - * 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 optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: Models.SyncGroup, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * 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 [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * 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 optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, parameters: Models.SyncGroup, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a collection of sync database ids. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listSyncDatabaseIdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listSyncDatabaseIdsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listSyncDatabaseIdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSyncDatabaseIdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listSyncDatabaseIdsNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a collection of hub database schemas. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listHubSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listHubSchemasNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listHubSchemasNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHubSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listHubSchemasNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a collection of sync group logs. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listLogsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listLogsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listLogsNextOperationSpec, - callback) as Promise; - } - - /** - * Lists sync groups under a hub database. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByDatabaseNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listSyncDatabaseIdsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/syncDatabaseIds", - urlParameters: [ - Parameters.locationName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncDatabaseIdListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listHubSchemasOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listLogsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.startTime, - Parameters.endTime, - Parameters.type, - Parameters.continuationToken, - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncGroupLogListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const cancelSyncOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const triggerSyncOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRefreshHubSchemaOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SyncGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SyncGroup - }, - 201: { - bodyMapper: Mappers.SyncGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SyncGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SyncGroup - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listSyncDatabaseIdsNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncDatabaseIdListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listHubSchemasNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listLogsNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncGroupLogListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts deleted file mode 100644 index 76a574df56e0..000000000000 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ /dev/null @@ -1,649 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/syncMembersMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a SyncMembers. */ -export class SyncMembers { - private readonly client: SqlManagementClientContext; - - /** - * Create a SyncMembers. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 parameters The requested sync member resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: Models.SyncMember, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,syncGroupName,syncMemberName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,databaseName,syncGroupName,syncMemberName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates an existing sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 parameters The requested sync member resource state. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: Models.SyncMember, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,serverName,databaseName,syncGroupName,syncMemberName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - options - }, - listBySyncGroupOperationSpec, - callback) as Promise; - } - - /** - * 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 optional parameters - * @returns Promise - */ - listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 callback The callback - */ - listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @param callback The callback - */ - listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - listMemberSchemasOperationSpec, - callback) as Promise; - } - - /** - * Refreshes 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 optional parameters - * @returns Promise - */ - refreshMemberSchema(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRefreshMemberSchema(resourceGroupName,serverName,databaseName,syncGroupName,syncMemberName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates or updates a sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 parameters The requested sync member resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: Models.SyncMember, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates an existing sync member. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 parameters The requested sync member resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, parameters: Models.SyncMember, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Refreshes 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 optional parameters - * @returns Promise - */ - beginRefreshMemberSchema(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - databaseName, - syncGroupName, - syncMemberName, - options - }, - beginRefreshMemberSchemaOperationSpec, - options); - } - - /** - * Lists sync members in the given sync group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listBySyncGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBySyncGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listBySyncGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySyncGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySyncGroupNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a sync member database schema. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listMemberSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listMemberSchemasNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listMemberSchemasNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMemberSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listMemberSchemasNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncMember - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySyncGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncMemberListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMemberSchemasOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/schemas", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SyncMember, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SyncMember - }, - 201: { - bodyMapper: Mappers.SyncMember - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SyncMember, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SyncMember - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRefreshMemberSchemaOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.syncGroupName, - Parameters.syncMemberName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySyncGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncMemberListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMemberSchemasNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SyncFullSchemaPropertiesListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts deleted file mode 100644 index 0fef38e26455..000000000000 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/tdeCertificatesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a TdeCertificates. */ -export class TdeCertificates { - private readonly client: SqlManagementClientContext; - - /** - * Create a TdeCertificates. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Creates a TDE certificate for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The requested TDE certificate to be created or updated. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, serverName: string, parameters: Models.TdeCertificate, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Creates a TDE certificate for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The requested TDE certificate to be created or updated. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, serverName: string, parameters: Models.TdeCertificate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginCreateOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/tdeCertificates", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.TdeCertificate, - required: true - } - }, - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts deleted file mode 100644 index 35545b94cc76..000000000000 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/transparentDataEncryptionActivitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a TransparentDataEncryptionActivities. */ -export class TransparentDataEncryptionActivities { - private readonly client: SqlManagementClientContext; - - /** - * Create a TransparentDataEncryptionActivities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns a database's transparent data encryption operation result. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. - * @param [options] The optional parameters - * @returns Promise - */ - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 transparent data encryption applies. - * @param callback The callback - */ - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 transparent data encryption applies. - * @param options The optional parameters - * @param callback The callback - */ - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByConfigurationOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByConfigurationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.transparentDataEncryptionName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TransparentDataEncryptionActivityListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts deleted file mode 100644 index 29f3d63bbf1b..000000000000 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/transparentDataEncryptionsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a TransparentDataEncryptions. */ -export class TransparentDataEncryptions { - private readonly client: SqlManagementClientContext; - - /** - * Create a TransparentDataEncryptions. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Creates or updates a database's transparent data encryption 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 databaseName The name of the database for which setting the transparent data encryption - * applies. - * @param parameters The required parameters for creating or updating transparent data encryption. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 setting the transparent data encryption - * applies. - * @param parameters The required parameters for creating or updating transparent data encryption. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 setting the transparent data encryption - * applies. - * @param parameters The required parameters for creating or updating transparent data encryption. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Gets a database's transparent data encryption 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 databaseName The name of the database for which the transparent data encryption applies. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 transparent data encryption applies. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this 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 transparent data encryption applies. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.transparentDataEncryptionName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.TransparentDataEncryption, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.TransparentDataEncryption - }, - 201: { - bodyMapper: Mappers.TransparentDataEncryption - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.transparentDataEncryptionName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TransparentDataEncryption - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/usages.ts b/sdk/sql/arm-sql/src/operations/usages.ts index fc08d9576ea3..6536432e6b56 100644 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ b/sdk/sql/arm-sql/src/operations/usages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -67,7 +66,7 @@ export class Usages { * @param [options] The optional parameters * @returns Promise */ - listByInstancePoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByInstancePoolNext(nextPageLink: string, options?: Models.UsagesListByInstancePoolNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class Usages { * @param options The optional parameters * @param callback The callback */ - listByInstancePoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstancePoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByInstancePoolNext(nextPageLink: string, options: Models.UsagesListByInstancePoolNextOptionalParams, callback: msRest.ServiceCallback): void; + listByInstancePoolNext(nextPageLink: string, options?: Models.UsagesListByInstancePoolNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -102,7 +101,7 @@ const listByInstancePoolOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expandChildren, - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -125,6 +124,10 @@ const listByInstancePoolNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expandChildren, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts deleted file mode 100644 index 8099f722f86f..000000000000 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ /dev/null @@ -1,416 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/virtualClustersMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a VirtualClusters. */ -export class VirtualClusters { - private readonly client: SqlManagementClientContext; - - /** - * Create a VirtualClusters. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of all virtualClusters in the subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of virtual clusters in a resource group. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The 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 optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Gets a virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param callback The callback - */ - get(resourceGroupName: string, virtualClusterName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, virtualClusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - virtualClusterName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Deletes a virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,virtualClusterName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates a virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param parameters The requested managed instance resource state. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, virtualClusterName: string, parameters: Models.VirtualClusterUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,virtualClusterName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - virtualClusterName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates a virtual cluster. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param virtualClusterName The name of the virtual cluster. - * @param parameters The requested managed instance resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, virtualClusterName: string, parameters: Models.VirtualClusterUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - virtualClusterName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Gets a list of all virtualClusters in the subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of virtual clusters in a resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/virtualClusters", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualClusterListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualClusterListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.virtualClusterName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualCluster - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.virtualClusterName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.virtualClusterName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.VirtualClusterUpdate, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.VirtualCluster - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualClusterListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualClusterListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts deleted file mode 100644 index bc25e2b3fb62..000000000000 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/virtualNetworkRulesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a VirtualNetworkRules. */ -export class VirtualNetworkRules { - private readonly client: SqlManagementClientContext; - - /** - * Create a VirtualNetworkRules. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a virtual network 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 virtualNetworkRuleName The name of the virtual network rule. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param virtualNetworkRuleName The name of the virtual network rule. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param virtualNetworkRuleName The name of the virtual network rule. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - virtualNetworkRuleName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an existing virtual network 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 virtualNetworkRuleName The name of the virtual network rule. - * @param parameters The requested virtual Network Rule Resource state. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,virtualNetworkRuleName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes the virtual network rule with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param virtualNetworkRuleName The name of the virtual network rule. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,virtualNetworkRuleName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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 optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains 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 optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an existing virtual network 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 virtualNetworkRuleName The name of the virtual network rule. - * @param parameters The requested virtual Network Rule Resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - virtualNetworkRuleName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes the virtual network rule with the given name. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param virtualNetworkRuleName The name of the virtual network rule. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - virtualNetworkRuleName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets a list of virtual network rules in a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.virtualNetworkRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.virtualNetworkRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.VirtualNetworkRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRule - }, - 201: { - bodyMapper: Mappers.VirtualNetworkRule - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.virtualNetworkRuleName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkRuleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 0f4a0b9b9b6f..aa867dd1619a 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -17,92 +16,22 @@ import { SqlManagementClientContext } from "./sqlManagementClientContext"; class SqlManagementClient extends SqlManagementClientContext { // Operation groups - recoverableDatabases: operations.RecoverableDatabases; - restorableDroppedDatabases: operations.RestorableDroppedDatabases; - servers: operations.Servers; - serverConnectionPolicies: operations.ServerConnectionPolicies; - databaseThreatDetectionPolicies: operations.DatabaseThreatDetectionPolicies; - dataMaskingPolicies: operations.DataMaskingPolicies; - dataMaskingRules: operations.DataMaskingRules; - firewallRules: operations.FirewallRules; - geoBackupPolicies: operations.GeoBackupPolicies; - databases: operations.Databases; - elasticPools: operations.ElasticPools; - recommendedElasticPools: operations.RecommendedElasticPools; - replicationLinks: operations.ReplicationLinks; - serverAzureADAdministrators: operations.ServerAzureADAdministrators; - serverCommunicationLinks: operations.ServerCommunicationLinks; - serviceObjectives: operations.ServiceObjectives; - elasticPoolActivities: operations.ElasticPoolActivities; - elasticPoolDatabaseActivities: operations.ElasticPoolDatabaseActivities; - serviceTierAdvisors: operations.ServiceTierAdvisors; - transparentDataEncryptions: operations.TransparentDataEncryptions; - transparentDataEncryptionActivities: operations.TransparentDataEncryptionActivities; - serverUsages: operations.ServerUsages; - databaseUsages: operations.DatabaseUsages; - databaseAutomaticTuning: operations.DatabaseAutomaticTuningOperations; - encryptionProtectors: operations.EncryptionProtectors; - failoverGroups: operations.FailoverGroups; - operations: operations.Operations; - serverKeys: operations.ServerKeys; - syncAgents: operations.SyncAgents; - syncGroups: operations.SyncGroups; - syncMembers: operations.SyncMembers; - subscriptionUsages: operations.SubscriptionUsages; - virtualClusters: operations.VirtualClusters; - virtualNetworkRules: operations.VirtualNetworkRules; - extendedDatabaseBlobAuditingPolicies: operations.ExtendedDatabaseBlobAuditingPolicies; - extendedServerBlobAuditingPolicies: operations.ExtendedServerBlobAuditingPolicies; - serverBlobAuditingPolicies: operations.ServerBlobAuditingPolicies; - databaseBlobAuditingPolicies: operations.DatabaseBlobAuditingPolicies; - databaseVulnerabilityAssessmentRuleBaselines: operations.DatabaseVulnerabilityAssessmentRuleBaselines; - databaseVulnerabilityAssessments: operations.DatabaseVulnerabilityAssessments; - jobAgents: operations.JobAgents; - jobCredentials: operations.JobCredentials; - jobExecutions: operations.JobExecutions; - jobs: operations.Jobs; - jobStepExecutions: operations.JobStepExecutions; - jobSteps: operations.JobSteps; - jobTargetExecutions: operations.JobTargetExecutions; - jobTargetGroups: operations.JobTargetGroups; - jobVersions: operations.JobVersions; - longTermRetentionBackups: operations.LongTermRetentionBackups; - backupLongTermRetentionPolicies: operations.BackupLongTermRetentionPolicies; - managedBackupShortTermRetentionPolicies: operations.ManagedBackupShortTermRetentionPolicies; - managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; - serverAutomaticTuning: operations.ServerAutomaticTuningOperations; - serverDnsAliases: operations.ServerDnsAliases; - serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; - restorableDroppedManagedDatabases: operations.RestorableDroppedManagedDatabases; - restorePoints: operations.RestorePoints; - managedDatabaseSecurityAlertPolicies: operations.ManagedDatabaseSecurityAlertPolicies; - managedServerSecurityAlertPolicies: operations.ManagedServerSecurityAlertPolicies; - sensitivityLabels: operations.SensitivityLabels; - managedInstanceAdministrators: operations.ManagedInstanceAdministrators; - databaseOperations: operations.DatabaseOperations; - elasticPoolOperations: operations.ElasticPoolOperations; - capabilities: operations.Capabilities; - databaseVulnerabilityAssessmentScans: operations.DatabaseVulnerabilityAssessmentScans; - managedDatabaseVulnerabilityAssessmentRuleBaselines: operations.ManagedDatabaseVulnerabilityAssessmentRuleBaselines; - managedDatabaseVulnerabilityAssessmentScans: operations.ManagedDatabaseVulnerabilityAssessmentScans; - managedDatabaseVulnerabilityAssessments: operations.ManagedDatabaseVulnerabilityAssessments; - instanceFailoverGroups: operations.InstanceFailoverGroups; - backupShortTermRetentionPolicies: operations.BackupShortTermRetentionPolicies; - tdeCertificates: operations.TdeCertificates; - managedInstanceTdeCertificates: operations.ManagedInstanceTdeCertificates; - managedInstanceKeys: operations.ManagedInstanceKeys; - managedInstanceEncryptionProtectors: operations.ManagedInstanceEncryptionProtectors; - recoverableManagedDatabases: operations.RecoverableManagedDatabases; + databaseSecurityAlertPolicies: operations.DatabaseSecurityAlertPolicies; + managedDatabaseSensitivityLabels: operations.ManagedDatabaseSensitivityLabels; managedInstanceVulnerabilityAssessments: operations.ManagedInstanceVulnerabilityAssessments; + managedInstanceOperations: operations.ManagedInstanceOperations; serverVulnerabilityAssessments: operations.ServerVulnerabilityAssessments; - managedDatabaseSensitivityLabels: operations.ManagedDatabaseSensitivityLabels; instancePools: operations.InstancePools; usages: operations.Usages; managedInstances: operations.ManagedInstances; managedDatabaseRestoreDetails: operations.ManagedDatabaseRestoreDetails; managedDatabases: operations.ManagedDatabases; + databases: operations.Databases; + elasticPools: operations.ElasticPools; privateEndpointConnections: operations.PrivateEndpointConnections; - privateLinkResources: operations.PrivateLinkResources; + serverAzureADAdministrators: operations.ServerAzureADAdministrators; + managedInstanceLongTermRetentionPolicies: operations.ManagedInstanceLongTermRetentionPolicies; + longTermRetentionManagedInstanceBackups: operations.LongTermRetentionManagedInstanceBackups; /** * Initializes a new instance of the SqlManagementClient class. @@ -112,92 +41,22 @@ class SqlManagementClient extends SqlManagementClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SqlManagementClientOptions) { super(credentials, subscriptionId, options); - this.recoverableDatabases = new operations.RecoverableDatabases(this); - this.restorableDroppedDatabases = new operations.RestorableDroppedDatabases(this); - this.servers = new operations.Servers(this); - this.serverConnectionPolicies = new operations.ServerConnectionPolicies(this); - this.databaseThreatDetectionPolicies = new operations.DatabaseThreatDetectionPolicies(this); - this.dataMaskingPolicies = new operations.DataMaskingPolicies(this); - this.dataMaskingRules = new operations.DataMaskingRules(this); - this.firewallRules = new operations.FirewallRules(this); - this.geoBackupPolicies = new operations.GeoBackupPolicies(this); - this.databases = new operations.Databases(this); - this.elasticPools = new operations.ElasticPools(this); - this.recommendedElasticPools = new operations.RecommendedElasticPools(this); - this.replicationLinks = new operations.ReplicationLinks(this); - this.serverAzureADAdministrators = new operations.ServerAzureADAdministrators(this); - this.serverCommunicationLinks = new operations.ServerCommunicationLinks(this); - this.serviceObjectives = new operations.ServiceObjectives(this); - this.elasticPoolActivities = new operations.ElasticPoolActivities(this); - this.elasticPoolDatabaseActivities = new operations.ElasticPoolDatabaseActivities(this); - this.serviceTierAdvisors = new operations.ServiceTierAdvisors(this); - this.transparentDataEncryptions = new operations.TransparentDataEncryptions(this); - this.transparentDataEncryptionActivities = new operations.TransparentDataEncryptionActivities(this); - this.serverUsages = new operations.ServerUsages(this); - this.databaseUsages = new operations.DatabaseUsages(this); - this.databaseAutomaticTuning = new operations.DatabaseAutomaticTuningOperations(this); - this.encryptionProtectors = new operations.EncryptionProtectors(this); - this.failoverGroups = new operations.FailoverGroups(this); - this.operations = new operations.Operations(this); - this.serverKeys = new operations.ServerKeys(this); - this.syncAgents = new operations.SyncAgents(this); - this.syncGroups = new operations.SyncGroups(this); - this.syncMembers = new operations.SyncMembers(this); - this.subscriptionUsages = new operations.SubscriptionUsages(this); - this.virtualClusters = new operations.VirtualClusters(this); - this.virtualNetworkRules = new operations.VirtualNetworkRules(this); - this.extendedDatabaseBlobAuditingPolicies = new operations.ExtendedDatabaseBlobAuditingPolicies(this); - this.extendedServerBlobAuditingPolicies = new operations.ExtendedServerBlobAuditingPolicies(this); - this.serverBlobAuditingPolicies = new operations.ServerBlobAuditingPolicies(this); - this.databaseBlobAuditingPolicies = new operations.DatabaseBlobAuditingPolicies(this); - this.databaseVulnerabilityAssessmentRuleBaselines = new operations.DatabaseVulnerabilityAssessmentRuleBaselines(this); - this.databaseVulnerabilityAssessments = new operations.DatabaseVulnerabilityAssessments(this); - this.jobAgents = new operations.JobAgents(this); - this.jobCredentials = new operations.JobCredentials(this); - this.jobExecutions = new operations.JobExecutions(this); - this.jobs = new operations.Jobs(this); - this.jobStepExecutions = new operations.JobStepExecutions(this); - this.jobSteps = new operations.JobSteps(this); - this.jobTargetExecutions = new operations.JobTargetExecutions(this); - this.jobTargetGroups = new operations.JobTargetGroups(this); - this.jobVersions = new operations.JobVersions(this); - this.longTermRetentionBackups = new operations.LongTermRetentionBackups(this); - this.backupLongTermRetentionPolicies = new operations.BackupLongTermRetentionPolicies(this); - this.managedBackupShortTermRetentionPolicies = new operations.ManagedBackupShortTermRetentionPolicies(this); - this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies(this); - this.serverAutomaticTuning = new operations.ServerAutomaticTuningOperations(this); - this.serverDnsAliases = new operations.ServerDnsAliases(this); - this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); - this.restorableDroppedManagedDatabases = new operations.RestorableDroppedManagedDatabases(this); - this.restorePoints = new operations.RestorePoints(this); - this.managedDatabaseSecurityAlertPolicies = new operations.ManagedDatabaseSecurityAlertPolicies(this); - this.managedServerSecurityAlertPolicies = new operations.ManagedServerSecurityAlertPolicies(this); - this.sensitivityLabels = new operations.SensitivityLabels(this); - this.managedInstanceAdministrators = new operations.ManagedInstanceAdministrators(this); - this.databaseOperations = new operations.DatabaseOperations(this); - this.elasticPoolOperations = new operations.ElasticPoolOperations(this); - this.capabilities = new operations.Capabilities(this); - this.databaseVulnerabilityAssessmentScans = new operations.DatabaseVulnerabilityAssessmentScans(this); - this.managedDatabaseVulnerabilityAssessmentRuleBaselines = new operations.ManagedDatabaseVulnerabilityAssessmentRuleBaselines(this); - this.managedDatabaseVulnerabilityAssessmentScans = new operations.ManagedDatabaseVulnerabilityAssessmentScans(this); - this.managedDatabaseVulnerabilityAssessments = new operations.ManagedDatabaseVulnerabilityAssessments(this); - this.instanceFailoverGroups = new operations.InstanceFailoverGroups(this); - this.backupShortTermRetentionPolicies = new operations.BackupShortTermRetentionPolicies(this); - this.tdeCertificates = new operations.TdeCertificates(this); - this.managedInstanceTdeCertificates = new operations.ManagedInstanceTdeCertificates(this); - this.managedInstanceKeys = new operations.ManagedInstanceKeys(this); - this.managedInstanceEncryptionProtectors = new operations.ManagedInstanceEncryptionProtectors(this); - this.recoverableManagedDatabases = new operations.RecoverableManagedDatabases(this); + this.databaseSecurityAlertPolicies = new operations.DatabaseSecurityAlertPolicies(this); + this.managedDatabaseSensitivityLabels = new operations.ManagedDatabaseSensitivityLabels(this); this.managedInstanceVulnerabilityAssessments = new operations.ManagedInstanceVulnerabilityAssessments(this); + this.managedInstanceOperations = new operations.ManagedInstanceOperations(this); this.serverVulnerabilityAssessments = new operations.ServerVulnerabilityAssessments(this); - this.managedDatabaseSensitivityLabels = new operations.ManagedDatabaseSensitivityLabels(this); this.instancePools = new operations.InstancePools(this); this.usages = new operations.Usages(this); this.managedInstances = new operations.ManagedInstances(this); this.managedDatabaseRestoreDetails = new operations.ManagedDatabaseRestoreDetails(this); this.managedDatabases = new operations.ManagedDatabases(this); + this.databases = new operations.Databases(this); + this.elasticPools = new operations.ElasticPools(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); - this.privateLinkResources = new operations.PrivateLinkResources(this); + this.serverAzureADAdministrators = new operations.ServerAzureADAdministrators(this); + this.managedInstanceLongTermRetentionPolicies = new operations.ManagedInstanceLongTermRetentionPolicies(this); + this.longTermRetentionManagedInstanceBackups = new operations.LongTermRetentionManagedInstanceBackups(this); } } diff --git a/sdk/sql/arm-sql/src/sqlManagementClientContext.ts b/sdk/sql/arm-sql/src/sqlManagementClientContext.ts index f189156ca9d6..8856615a8b19 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClientContext.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -18,6 +17,7 @@ const packageVersion = "7.0.2"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; subscriptionId: string; + apiVersion?: string; /** * Initializes a new instance of the SqlManagementClient class. @@ -43,6 +43,7 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); + this.apiVersion = '2018-06-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -57,23 +58,4 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } - - /** - * NOTE: This is an override added manually to workaround bug Azure/ms-rest-js/issues/395 - * When this library is regenerated, this override needs to be brought back - * This override adds the header "Accept: application/json" to every request - */ - sendRequest(options: msRest.RequestPrepareOptions | msRest.WebResourceLike) { - if(!options.headers) { - options.headers = {accept: "application/json"}; - } else { - if (options.headers.set) { - options.headers.set("accept", "application/json"); - } else { - (options.headers as {[key: string]: any})["accept"] = "application/json" - } - } - - return super.sendRequest(options); - } -} \ No newline at end of file +}